History log of /freebsd-10.1-release/bin/hostname/hostname.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 250037 28-Apr-2013 eadler

Mark usage() __dead2


# 194795 23-Jun-2009 delphij

Staticify internal routines.


# 165006 08-Dec-2006 kientzle

Style(9) fixes, thanks to Ruslan.


# 165004 08-Dec-2006 kientzle

Support the "-f" option by simply ignoring it.
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


# 139969 10-Jan-2005 imp

/*- or .\"- or #- to begin license clauses.


# 127958 06-Apr-2004 markm

Remove clause 3 from the UCB licenses.

OK'ed by: imp, core


# 114433 01-May-2003 obrien

Quiet warnings about copyright[].


# 99109 30-Jun-2002 obrien

Consistently use __FBSDID


# 91084 22-Feb-2002 markm

Fix warnings inspired by lint, a commercial lint and WARNS=4.


# 90110 02-Feb-2002 imp

o __P has been reoved
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.


# 76877 20-May-2001 kris

Silence WARNS=2 and BDECFLAGS on i386 and alpha

MFC After: 1 week


# 50471 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 36012 13-May-1998 charnier

Correct use of .Nm. Add rcsid.


# 26435 04-Jun-1997 charnier

Revert part of previous patch: Don't use __progname.


# 26403 03-Jun-1997 charnier

/etc/netstart -> /etc/rc.network
Use __progname in usage string. Change usage string to match the man page.


# 24348 28-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 22988 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

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.


# 20415 14-Dec-1996 steve

Merge Lite2 mods, -Wall cleaning, and show usage if
incorrectly called.

Incorrect usage mod obtained from: NetBSD


# 3044 24-Sep-1994 dg

Added $Id$


# 1557 26-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1556,
which included commits to RCS files with non-trunk default branches.


# 1556 26-May-1994 rgrimes

BSD 4.4 Lite bin Sources