Commit c2bd076b authored by Peter Miller's avatar Peter Miller

Imported Upstream version 1.4

parent 1bf9f5b1
......@@ -287,7 +287,7 @@ GETTING HELP
When reporting problems, please include the version number given by
the
$ explain -version
explain version 1.D003
explain version 1.D004
...warranty disclaimer...
$
command. Please do not send this example; run the program for the
......@@ -295,7 +295,7 @@ GETTING HELP
COPYRIGHT
libexplain version 1
Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013 Peter Miller
Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014 Peter Miller
The libexplain package is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
......
This diff is collapsed.
......@@ -31,7 +31,7 @@ DESCRIPTION
different, but similarly named, function. The library also provides
thread safe variants of each explanation function.
Coverage includes 220 system calls and 547 ioctl requests.
Coverage includes 221 system calls and 547 ioctl requests.
Tutorial Documentation
There is a paper available in PDF format
......@@ -45,18 +45,18 @@ HOME PAGE
URL: http://libexplain.sourceforge.net/
File: index.html # the libexplain page
File: libexplain.1.3.README # Description, from the tar file
File: libexplain.1.3.lsm # Description, LSM format
File: libexplain.1.3.tar.gz # the complete source
File: libexplain.1.3.pdf # Reference Manual
File: libexplain.1.4.README # Description, from the tar file
File: libexplain.1.4.lsm # Description, LSM format
File: libexplain.1.4.tar.gz # the complete source
File: libexplain.1.4.pdf # Reference Manual
BUILDING LIBEXPLAIN
Full instructions for building libexplain may be found in the BUILDING
file included in this distribution.
COPYRIGHT
libexplain version 1.3
Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013 Peter Miller
libexplain version 1.4
Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014 Peter Miller
Library License
The shared library, and its include files, are GNU LGPL licensed.
......@@ -102,7 +102,33 @@ RELEASE NOTES
those of you who have generously sent me suggestions and bug reports,
see the etc/CHANGES.* files.
Coverage includes 220 system calls and 547 ioctl requests.
Coverage includes 221 system calls and 547 ioctl requests.
Version 1.4 (2014-Mar-03)
* Numerous false negative test results, have been fixed on FreeBSD.
* When building on FreeBSD some interesting flags need to be specified
CC=gvc46 \ CPPFLAGS=-I/usr/local/include \ LDFLAGS=-L/usr/local/lib \
Also care must be taken if an earlier version of libexplain is
installed, and can be found on $LD_LIBRARY_PATH, this may cause false
negatives.
* This change set adds mor efixes for FreeBSD compilation.
* Some problems discovered using the clang compiler have been fixed.
This is a work in progress.
* My thanks to Vinxxe <vinxxe@gmail.com> for reporting a problem
compiling from source.
* Explanations are now available for errors reported by the
lchownat(2), linkat(2), mount(2), nanosleep(3), settimeofday(2),
sleep(3), uname(2), usleep(3), system calls.
* Added a work-around for gethostname on Darwin/OSX.
* This change set borrows some of the glib nanosleep fixes.
Version 1.3 (2013-Nov-19)
* Explanations are now available or errors reported by the
......
#
# libexplain - Explain errno values returned by libc functions
# Copyright (C) 2008-2013 Peter Miller
# Copyright (C) 2008-2014 Peter Miller
# Written by Peter Miller <pmiller@opensource.org.au>
#
# This program is free software; you can redistribute it and/or modify
......@@ -25,7 +25,7 @@ project_specific =
},
{
name = "aemakegen:version-info";
value = "55:0:4";
value = "56:0:5";
},
{
name = "aemakegen:debian:copyright";
......
#
# libexplain - Explain errno values returned by libc functions
# Copyright (C) 2013 Peter Miller
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3 of the License, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
Prototype: int linkat(int old_fildes, const char *old_path, int new_fildes,
const char *new_path, int flags);
section: 2
Synopsis: create a file link relative to directory file descriptors
Include: unistd.h
Use-Return-Value: false
Or-Die-Warn-Unused: false
Reset-Errno: false
# vim: set ts=8 sw=4 et :
/*
* libexplain - Explain errno values returned by libc functions
* Copyright (C) 2009, 2010, 2013 Peter Miller
* Copyright (C) 2009, 2010, 2013, 2014 Peter Miller
* Written by Peter Miller <pmiller@opensource.org.au>
*
* This program is free software; you can redistribute it and/or modify
......@@ -181,7 +181,7 @@ ioctl_scan_include(const char *pathname)
"%s:%d: %.*s 0x%08lX",
p,
line_number,
match[1].rm_eo - match[1].rm_so,
(int)(match[1].rm_eo - match[1].rm_so),
line + match[1].rm_so,
strtoul(line + match[2].rm_so, 0, 0)
);
......@@ -199,9 +199,9 @@ ioctl_scan_include(const char *pathname)
"%s:%d: %.*s %.*s",
p,
line_number,
match[1].rm_eo - match[1].rm_so,
(int)(match[1].rm_eo - match[1].rm_so),
line + match[1].rm_so,
match[2].rm_eo - match[2].rm_so,
(int)(match[2].rm_eo - match[2].rm_so),
line + match[2].rm_so
);
......@@ -309,10 +309,12 @@ walker(const char *pathname, const struct stat *st, int typeflag,
if (typeflag == FTW_D)
{
explain_output_error("walking %s\n", pathname);
#ifdef FTW_SKIP_SUBTREE
if (!strcmp(pathname, ".."))
return FTW_SKIP_SUBTREE;
if (ends_with(pathname, "/.."))
return FTW_SKIP_SUBTREE;
#endif
}
if (S_ISREG(st->st_mode) && ends_with(pathname , ".h"))
ioctl_scan_include(pathname);
......
......@@ -3642,6 +3642,13 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
......@@ -4648,6 +4655,34 @@ done
test -n "$YACC" || YACC="yacc"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdio.h>
int
main ()
{
#ifndef __clang__
This is not clang!
#endif
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
cv_c_compiler_clang=yes
cv_c_compiler_gcc=no
else
cv_c_compiler_clang=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
case "$YACC" in
*bison*)
;;
......@@ -6370,7 +6405,6 @@ for ac_header in \
linux/isdn_ppp.h \
linux/ivtvfb.h \
linux/joystick.h \
linux/kd.h \
linux/kdev_t.h \
linux/kvm.h \
linux/lp.h \
......@@ -6503,6 +6537,28 @@ done
for ac_header in linux/kd.h
do :
ac_fn_c_check_header_compile "$LINENO" "linux/kd.h" "ac_cv_header_linux_kd_h" "
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <linux/kd.h>
#ifdef __FreeBSD__
=%fail^!
#endif
"
if test "x$ac_cv_header_linux_kd_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LINUX_KD_H 1
_ACEOF
fi
done
for ac_header in net/if.h
do :
ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
......@@ -6981,6 +7037,47 @@ _ACEOF
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utsname::domainname" >&5
$as_echo_n "checking for struct utsname::domainname... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#ifdef HAVE_SYS_UTSNAME_H
#include <sys/utsname.h>
#endif
int
main ()
{
struct utsname x;
x.domainname[0] = 0;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
ac_av_utsname_domainname=1
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
ac_av_utsname_domainname=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cat >>confdefs.h <<_ACEOF
#define HAVE_UTSNAME_DOMAINNAME $ac_av_utsname_domainname
_ACEOF
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what va_list is compatible with" >&5
$as_echo_n "checking what va_list is compatible with... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
......@@ -7838,7 +7935,7 @@ for ac_func in \
cap_get_proc \
capget \
cfmakeraw \
dhmod \
chmod \
dirfd \
dladdr \
dlsym \
......@@ -7882,7 +7979,7 @@ for ac_func in \
lchmod \
lchown \
lchownat \
lchownat \
linkat \
lutime \
lutimeat \
lutimens \
......@@ -8075,6 +8172,40 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stdio defines off_t" >&5
$as_echo_n "checking stdio defines off_t... " >&6; }
if test "$cross_compiling" = yes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cross" >&5
$as_echo "cross" >&6; }
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/types.h>
#include <sys/mount.h>
int main(int argc, char **argv){
int x = MS_MOVE;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
$as_echo "#define HAVE_SYS_MOUNT_MS_MOVE 1" >>confdefs.h
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/types.h defines off_t" >&5
$as_echo_n "checking sys/types.h defines off_t... " >&6; }
if test "$cross_compiling" = yes; then :
......
libexplain (1.3.D012-1) unstable; urgency=low
libexplain (1.4.D001-1) unstable; urgency=low
* Explanations arse now availiable for errors reported by he mount(2) system
call.
* This change set prepares the LibExplain projevt or the nect public release.
* 1.1.D002: Closes: #707432
* 1.2.D045: Closes: #723409
* This is a summary, see earlier changelog entries for details of individual
bug fixes.
-- Peter Miller <pmiller@opensource.org.au> Sun, 08 Dec 2013 12:47:03 +1100
-- Peter Miller <pmiller@opensource.org.au> Mon, 03 Mar 2014 21:00:19 +1100
libexplain (1.3.D025-1) unstable; urgency=low
* This change set fixes the last few false negative test results, on FreeBSD.
-- Peter Miller <pmiller@opensource.org.au> Mon, 03 Mar 2014 13:33:19 +1100
libexplain (1.3.D024-1) unstable; urgency=low
* This change set fixes some false negatives when testing FreeBSD.
-- Peter Miller <pmiller@opensource.org.au> Sat, 01 Mar 2014 10:09:24 +1100
libexplain (1.3.D023-1) unstable; urgency=low
* This change fixes a false negative from test 19 on FreeBSD.
* ./configure --prefix=/usr
-- Peter Miller <pmiller@opensource.org.au> Fri, 28 Feb 2014 11:42:44 +1100
libexplain (1.3.D022-1) unstable; urgency=low
* This change set gets more of libexplain to compile on FreeBSD.
* CC=gvc46 \e
* CPPFLAGS=/usr/local/incvlude \e
* LDFLAGS=-L/usr/local/lib \e
* ./configure
-- Peter Miller <pmiller@opensource.org.au> Thu, 27 Feb 2014 10:46:59 +1100
libexplain (1.3.D021-1) unstable; urgency=low
* This change set adds mor efixes for FreeBSD compilation.
-- Peter Miller <pmiller@opensource.org.au> Tue, 25 Feb 2014 22:24:41 +1100
libexplain (1.3.D020-1) unstable; urgency=low
* This change set fix es a voupleof FreeBSD build issues.
-- Peter Miller <pmiller@opensource.org.au> Sun, 23 Feb 2014 12:13:24 +1100
libexplain (1.3.D019-1) unstable; urgency=low
* This change set fixes additional poblem with the clang compiler.
-- Peter Miller <pmiller@opensource.org.au> Sat, 22 Feb 2014 22:37:46 +1100
libexplain (1.3.D018-1) unstable; urgency=low
* This change set vope with dome clang differences.
-- Peter Miller <pmiller@opensource.org.au> Fri, 21 Feb 2014 20:32:32 +1100
libexplain (1.3.D017-1) unstable; urgency=low
* This change set copes with ambiguity areound the MS_MOVE symbol defined in
<sys/mount.h>
* My thnaks to the LP PPA build farm or findin this problem.
-- Peter Miller <pmiller@opensource.org.au> Fri, 10 Jan 2014 16:00:53 +1100
libexplain (1.3.D016-1) unstable; urgency=low
* My thanks to Vinxxe <vinxxe@gmail.com> for reporting a problem compiling
from source.
* This change fixes some files that failed to notice the explain_buffer_ebusy
rename... which is odd, the compiler should have barfed.
* My thanks to the LP PPA build farm for finding this problem.
-- Peter Miller <pmiller@opensource.org.au> Thu, 09 Jan 2014 22:39:53 +1100
libexplain (1.3.D015-1) unstable; urgency=low
* This change set fixes a build problem with mal-formed MS_MOVE defintions in
<sys/mount.h>
* My thanks to the LP PPA build farm for finding this problem.
-- Peter Miller <pmiller@opensource.org.au> Thu, 09 Jan 2014 22:01:55 +1100
libexplain (1.3.D014-1) unstable; urgency=low
* Explanations are now available for errors reported by the linkat(2) system
call.
-- Peter Miller <pmiller@opensource.org.au> Fri, 27 Dec 2013 17:14:10 +1100
libexplain (1.3.D013-1) unstable; urgency=low
* This changeset fixes abuild glitch om Ubuntu Lucid.
* zmy thsnks to the LaunchPad PPA build farm for finding this problem.
-- Peter Miller <pmiller@opensource.org.au> Sun, 08 Dec 2013 20:58:22 +1100
libexplain (1.3.D012-1) unstable; urgency=low
* Explanations arse now availiable for errors reported by he mount(2) system
call.
-- Peter Miller <pmiller@opensource.org.au> Sun, 08 Dec 2013 12:52:09 +1100
libexplain (1.3.D011-1) unstable; urgency=low
......@@ -540,6 +640,7 @@ libexplain (1.1.D002-1) unstable; urgency=low
* This change set fixes a problem with building on Ubuntu Raring. My thanks
to the LauchPad PPA build farm for finding this problem.
* Debian: Closes #707432
-- Peter Miller <pmiller@opensource.org.au> Wed, 21 Nov 2012 13:04:03 +1100
......
......@@ -737,6 +737,8 @@ Files: cat/main.c
libexplain/buffer/errno/lchownat.h
libexplain/buffer/errno/link.c
libexplain/buffer/errno/link.h
libexplain/buffer/errno/linkat.c
libexplain/buffer/errno/linkat.h
libexplain/buffer/errno/listen.c
libexplain/buffer/errno/listen.h
libexplain/buffer/errno/lseek.c
......@@ -3301,6 +3303,9 @@ Files: cat/main.c
libexplain/link.h
libexplain/link_on_error.c
libexplain/link_or_die.c
libexplain/linkat.c
libexplain/linkat.h
libexplain/linkat_or_die.c
libexplain/listen.c
libexplain/listen.h
libexplain/listen_on_error.c
......@@ -4126,34 +4131,49 @@ Files: cat/main.c
Copyright: 1991, 1993-1994, 1997, 2001, 2005-2009, 2013 Peter Miller
2008, 2010, 2013, Peter Miller
2008, 2013 Peter Miller
2008, 2013-2014, Peter Miller
2008-2009, 2011, 2013, Peter Miller
2008-2009, 2011-2013, Peter Miller
2008-2009, 2012-2013, Peter Miller
2008-2009, 2013 Peter Miller
2008-2009, 2013-2014, Peter Miller
2008-2010, 2012-2013, Peter Miller
2008-2010, 2012-2014, Peter Miller
2008-2010, 2013 Peter Miller
2008-2010, 2013-2014, Peter Miller
2008-2011, 2013 Peter Miller
2008-2011, 2013-2014, Peter Miller
2008-2013, Peter Miller
2008-2014, Peter Miller
2009, 2011, 2013, Peter Miller
2009, 2011, 2013-2014, Peter Miller
2009, 2011-2013, Peter Miller
2009, 2012-2013, Peter Miller
2009, 2013 Peter Miller
2009, 2013-2014, Peter Miller
2009, Peter Miller
2009-2010, 2012-2013, Peter Miller
2009-2010, 2013 Peter Miller
2009-2011, 2013 Peter Miller
2009-2011, 2013-2014, Peter Miller
2009-2013, Peter Miller
2009-2014, Peter Miller
2010, 2012-2013, Peter Miller
2010, 2013 Peter Miller
2010, 2013-2014, Peter Miller
2010, Peter Miller
2010-2011, 2013 Peter Miller
2010-2012, Peter Miller
2010-2013, Peter Miller
2011, 2013 Peter Miller
2011, 2013-2014, Peter Miller
2011-2012, 2014 Peter Miller
2011-2012, Peter Miller
2011-2013, Peter Miller
2012-2013, Peter Miller
2012-2014, Peter Miller
2013, Peter Miller
2013-2014, Peter Miller
License: LGPL-3+
On Debian systems, the complete text of the GNU
General Public License, version 3, can be found in
......@@ -4389,6 +4409,8 @@ Files: codegen/aegis.c
explain/syscall/lchownat.h
explain/syscall/link.c
explain/syscall/link.h
explain/syscall/linkat.c
explain/syscall/linkat.h
explain/syscall/listen.c
explain/syscall/listen.h
explain/syscall/lseek.c
......@@ -4723,6 +4745,7 @@ Files: codegen/aegis.c
test/lchmod/main.c
test/lchownat/main.c
test/link/main.c
test/linkat/main.c
test/lstat/main.c
test/lutimes/main.c
test/mincore/main.c
......@@ -4800,9 +4823,11 @@ Copyright: 2008, 2012 Peter Miller
2009, 2012 Peter Miller
2009, 2012-2013, Peter Miller
2009, 2013 Peter Miller
2009, 2013-2014, Peter Miller
2009, Peter Miller
2009-2010, 2012 Peter Miller
2009-2010, 2013 Peter Miller
2009-2010, 2013-2014, Peter Miller
2009-2010, Peter Miller
2009-2011, Peter Miller
2009-2013, Peter Miller
......@@ -4850,7 +4875,7 @@ License: LGPL-3+
/usr/share/common-licenses/LGPL-3.
Files: libexplain/putchar_or_die.c
Copyright: 2008-2011, 2013 Peter Miller
Copyright: 2008-2011, 2013-2014, Peter Miller
== EOF)
License: LGPL-3+
On Debian systems, the complete text of the GNU
......
......@@ -109,6 +109,7 @@ usr/include/libexplain/lchown.h
usr/include/libexplain/lchownat.h
usr/include/libexplain/libexplain.h
usr/include/libexplain/link.h
usr/include/libexplain/linkat.h
usr/include/libexplain/listen.h
usr/include/libexplain/lseek.h
usr/include/libexplain/lstat.h
......@@ -453,6 +454,8 @@ usr/share/man/man3/explain_lchownat.3
usr/share/man/man3/explain_lchownat_or_die.3
usr/share/man/man3/explain_link.3
usr/share/man/man3/explain_link_or_die.3
usr/share/man/man3/explain_linkat.3
usr/share/man/man3/explain_linkat_or_die.3
usr/share/man/man3/explain_listen.3
usr/share/man/man3/explain_listen_or_die.3
usr/share/man/man3/explain_lseek.3
......
Document: libexplain
Title: Libexplain Manuals
Author: Softwasre Source Code Repository Owner
Author: Software Source Code Repository Owner
Abstract: Libexplain Manuals
Section: Programming
......
/*
* libexplain - Explain errno values returned by libc functions
* Copyright (C) 2008-2013 Peter Miller
* Copyright (C) 2008-2014 Peter Miller
* Written by Peter Miller <pmiller@opensource.org.au>
*
* This program is free software; you can redistribute it and/or modify
......
dnl!
dnl! libexplain - Explain errno values returned by libc functions
dnl! Copyright (C) 2008-2013 Peter Miller
dnl! Copyright (C) 2008-2014 Peter Miller
dnl! Written by Peter Miller <pmiller@opensource.org.au>
dnl!
dnl! This program is free software; you can redistribute it and/or
......@@ -19,6 +19,8 @@ dnl!
AC_INIT(install-sh)
AC_CONFIG_HEADER(libexplain/config.h)
AC_USE_SYSTEM_EXTENSIONS
AC_LANG_C
AC_LANG_ASSERT(C)
AC_PROG_CC
AC_PROG_CPP
AC_CANONICAL_HOST
......@@ -26,6 +28,26 @@ AC_PROG_INSTALL
AC_PROG_RANLIB
AC_PROG_YACC
dnl!
dnl! See if the clang compiler is masquerading as gcc.
dnl!
dnl! Autoconf detects the Clang compiler as GNU GCC (clang sets defines
dnl! like __GNUC__ etc) but Clang is *not* completely compatible. If we
dnl! detect Clang we set ac_vc_c_compiler_gnu to 'no'.
dnl!
AC_TRY_LINK([
#include <stdio.h>
], [
#ifndef __clang__
This is not clang!
#endif
],
[cv_c_compiler_clang=yes
cv_c_compiler_gcc=no
],
[cv_c_compiler_clang=no]
)
case "$YACC" in
*bison*)
;;
......@@ -435,7 +457,6 @@ AC_CHECK_HEADERS([ \
linux/isdn_ppp.h \
linux/ivtvfb.h \
linux/joystick.h \
linux/kd.h \
linux/kdev_t.h \
linux/kvm.h \
linux/lp.h \
......@@ -560,6 +581,16 @@ dnl!
dnl! Headers that need special handling.
dnl!
AC_CHECK_HEADERS([linux/kd.h], [], [], [[
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <linux/kd.h>
#ifdef __FreeBSD__
=%fail^!
#endif
]])
AC_CHECK_HEADERS([net/if.h], [], [], [[
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
......@@ -772,6 +803,30 @@ getmntent function.])
dnl! =======================================================================
dnl!
dnl! We need to know whether struct utsname::domainname exists.
dnl!
AC_MSG_CHECKING([for struct utsname::domainname])
AC_TRY_COMPILE([
#ifdef HAVE_SYS_UTSNAME_H
#include <sys/utsname.h>
#endif
], [
struct utsname x;
x.domainname[0] = 0;
], [
AC_MSG_RESULT([yes])
ac_av_utsname_domainname=1
], [
AC_MSG_RESULT([no])
ac_av_utsname_domainname=0
])
AC_DEFINE_UNQUOTED([HAVE_UTSNAME_DOMAINNAME], $ac_av_utsname_domainname,
[Define this symbol to indicate the presence of the utsname domainname
member.])
dnl! =======================================================================
dnl!
dnl! We need to know whether va_list is compatible with const void *
dnl!
......@@ -891,7 +946,7 @@ AC_CHECK_FUNCS( \
cap_get_proc \
capget \
cfmakeraw \
dhmod \
chmod \
dirfd \