summaryrefslogtreecommitdiff
path: root/lib/xgethostname.c
AgeCommit message (Collapse)Author
2001-12-09Remove declarations of xmalloc and xrealloc.Jim Meyering
Include xalloc.h instead.
2000-07-09(ENAMETOOLONG): Define to an unlikely value if not defined.Jim Meyering
(xgethostname): Remove now-unnecessary #ifdef. Move declaration of `err' into loop where it's used.
2000-07-08(xgethostname): Protect against the SunOS5.5 bugJim Meyering
by allocating a larger buffer. Test the gethostname return value for being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname returns an error and ENAMETOOLONG isn't defined.
1996-11-21remove my @comco addressJim Meyering
1996-11-21(xgethostname): Work around bug in SunOS5.5's gethostname.Jim Meyering
1996-11-05Thu Oct 31 19:32:32 1996 Miles Bader <miles@gnu.ai.mit.edu>Jim Meyering
[ENAMETOOLONG] (xgethostname): If gethostname returns an error other than buffer overflow, exit with an error message instead of allocating infinite amounts of space. [!EXIT_FAILURE] (EXIT_FAILURE): New macro. <errno.h>: New include. [!errno] (errno): New declaration.
1996-07-15indent cpp-directivesJim Meyering
1996-07-15update FSF address in copyrightJim Meyering
1994-09-27merge with 1.10n2Jim Meyering
1994-05-20merge with 1.10 + local build modsJim Meyering
1994-05-13.Jim Meyering
1994-05-02.Jim Meyering