aboutsummaryrefslogtreecommitdiff
path: root/lib/libutil/trimdomain.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-261-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326219
* When removing the local domain, only do so when the result will be aBrooks Davis2005-10-051-3/+1
| | | | | | | | | | | | host name. This is matches the documented behaviro. The previous behavior would remove the domain name even if the result retained a dot. This fixes rsh connections from a.example.com to example.com. Reviewed by: ceri (at least the concept) Notes: svn path=/head/; revision=150955
* ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.Mark Murray2003-10-181-3/+4
| | | | Notes: svn path=/head/; revision=121193
* Add __FBSDID()s to libutilMatthew Dillon2001-09-301-4/+2
| | | | Notes: svn path=/head/; revision=84225
* Fix some further style nitsBrian Somers2001-03-171-8/+11
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=74386
* Actually commit the new version of trimdomain *blush*Brian Somers2001-03-151-70/+80
| | | | | | | Thanks for covering my blunder to: peter Notes: svn path=/head/; revision=74288
* It would help if trimdomain.c was actually committed. This is a stopgapPeter Wemm2001-03-151-0/+105
world-unbreaker until Brian Somers commits the one he intended to. Pointy Hat to: brian Notes: svn path=/head/; revision=74266