aboutsummaryrefslogtreecommitdiff
path: root/bin/hostname/hostname.c
Commit message (Collapse)AuthorAgeFilesLines
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. 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. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Fix missing '-' for the flags -s and -d on both manpage and usage.Marcelo Araujo2016-11-091-1/+1
| | | | | | | Reported by: garga, bde Notes: svn path=/head/; revision=308459
* Add -d flag that prints domain only.Marcelo Araujo2016-11-081-4/+12
| | | | | | | | | PR: 212875 Submitted by: Ben RUBSON <ben.rubson@gmail.com> Reviewed by: pi Notes: svn path=/head/; revision=308443
* Mark usage() __dead2Eitan Adler2013-04-281-1/+1
| | | | Notes: svn path=/head/; revision=250037
* Staticify internal routines.Xin LI2009-06-231-2/+2
| | | | Notes: svn path=/head/; revision=194795
* Style(9) fixes, thanks to Ruslan.Tim Kientzle2006-12-081-5/+7
| | | | Notes: svn path=/head/; revision=165006
* Support the "-f" option by simply ignoring it.Tim Kientzle2006-12-081-1/+6
| | | | | | | | | | | | This allows script compatibility with Linux, whose "hostname" is the same as BSD "hostname -s". With this change, "hostname -f" is the same on both systems. MFC after: 7 days Notes: svn path=/head/; revision=165004
* /*- or .\"- or #- to begin license clauses.Warner Losh2005-01-101-1/+1
| | | | Notes: svn path=/head/; revision=139969
* Remove clause 3 from the UCB licenses.Mark Murray2004-04-061-4/+0
| | | | | | | OK'ed by: imp, core Notes: svn path=/head/; revision=127958
* Quiet warnings about copyright[].David E. O'Brien2003-05-011-2/+2
| | | | Notes: svn path=/head/; revision=114433
* Consistently use __FBSDIDDavid E. O'Brien2002-06-301-2/+2
| | | | Notes: svn path=/head/; revision=99109
* Fix warnings inspired by lint, a commercial lint and WARNS=4.Mark Murray2002-02-221-2/+5
| | | | Notes: svn path=/head/; revision=91084
* o __P has been reovedWarner Losh2002-02-021-6/+3
| | | | | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. Notes: svn path=/head/; revision=90110
* Silence WARNS=2 and BDECFLAGS on i386 and alphaKris Kennaway2001-05-201-2/+3
| | | | | | | MFC After: 1 week Notes: svn path=/head/; revision=76877
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
| | | | Notes: svn path=/head/; revision=50471
* Correct use of .Nm. Add rcsid.Philippe Charnier1998-05-131-3/+5
| | | | Notes: svn path=/head/; revision=36012
* Revert part of previous patch: Don't use __progname.Philippe Charnier1997-06-041-4/+2
| | | | Notes: svn path=/head/; revision=26435
* /etc/netstart -> /etc/rc.networkPhilippe Charnier1997-06-031-2/+4
| | | | | | | Use __progname in usage string. Change usage string to match the man page. Notes: svn path=/head/; revision=26403
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-281-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24348
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22988
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Merge Lite2 mods, -Wall cleaning, and show usage ifSteve Price1996-12-141-7/+17
| | | | | | | | | incorrectly called. Incorrect usage mod obtained from: NetBSD Notes: svn path=/head/; revision=20415
* Added $Id$David Greenman1994-09-241-0/+2
| | | | Notes: svn path=/head/; revision=3044
* BSD 4.4 Lite bin SourcesRodney W. Grimes1994-05-261-0/+87
Notes: svn path=/head/; revision=1556