view modules/gethostname @ 16105:a2d45c112907

Depend on module fcntl-h when AT_FDCWD is used. * modules/utimens (Depends-on): Add fcntl-h. * modules/areadlinkat (Depends-on): Likewise. * modules/areadlinkat-with-size (Depends-on): Likewise. * modules/faccessat (Depends-on): Likewise. * modules/fchmodat (Depends-on): Likewise. * modules/fchownat (Depends-on): Likewise. * modules/getcwd (Depends-on): Likewise. * modules/mkdirat (Depends-on): Likewise. * modules/mkfifoat (Depends-on): Likewise. * modules/readlinkat (Depends-on): Likewise. * modules/symlinkat (Depends-on): Likewise. * modules/dup2-tests (Depends-on): Likewise. * modules/fdutimensat-tests (Depends-on): Likewise. * modules/futimens-tests (Depends-on): Likewise.
author Bruno Haible <bruno@clisp.org>
date Sat, 19 Nov 2011 21:07:36 +0100
parents b86e9061a6d0
children
line wrap: on
line source

Description:
gethostname() function: Return machine's hostname.

Files:
lib/gethostname.c
m4/gethostname.m4
lib/w32sock.h

Depends-on:
unistd
sys_socket      [test $HAVE_GETHOSTNAME = 0]
errno           [test $HAVE_GETHOSTNAME = 0]
sockets         [test $HAVE_GETHOSTNAME = 0]
msvc-nothrow    [test $HAVE_GETHOSTNAME = 0]

configure.ac:
gl_FUNC_GETHOSTNAME
if test $HAVE_GETHOSTNAME = 0; then
  AC_LIBOBJ([gethostname])
  gl_PREREQ_GETHOSTNAME
fi
gl_UNISTD_MODULE_INDICATOR([gethostname])

Makefile.am:

Include:
<unistd.h>

Link:
$(GETHOSTNAME_LIB)

License:
LGPLv2+

Maintainer:
all