comparison m4/unistd_h.m4 @ 12068:14cddb59cb05

linkat: new module * modules/linkat: New file. * lib/at-func2.c (at_func2): Likewise. * lib/linkat.c (linkat): Likewise. * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise. * lib/openat-priv.h (at_func2): Add declaration. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses. * modules/unistd (Makefile.am): Substitute them. * lib/unistd.in.h (linkat): Declare it. * MODULES.html.sh (systems lacking POSIX:2008): Mention module. * doc/posix-functions/linkat.texi (linkat): Likewise. * doc/posix-functions/link.texi (link): Tweak wording. * tests/test-link.c (main): Move guts... * tests/test-link.h (test_link): ...into new file. * modules/linkat-tests: New test. * tests/test-linkat.c: Likewise. * modules/link-tests (Files): Ship new file. (Depends-on): Add stdbool. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Tue, 08 Sep 2009 20:47:40 -0600
parents 36183b482b71
children 0bc26baea4bf
comparison
equal deleted inserted replaced
12067:c1ef4ce880fc 12068:14cddb59cb05
1 # unistd_h.m4 serial 29 1 # unistd_h.m4 serial 30
2 dnl Copyright (C) 2006-2009 Free Software Foundation, Inc. 2 dnl Copyright (C) 2006-2009 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation 3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it, 4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved. 5 dnl with or without modifications, as long as this notice is preserved.
6 6
50 GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R]) 50 GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R])
51 GNULIB_GETPAGESIZE=0; AC_SUBST([GNULIB_GETPAGESIZE]) 51 GNULIB_GETPAGESIZE=0; AC_SUBST([GNULIB_GETPAGESIZE])
52 GNULIB_GETUSERSHELL=0; AC_SUBST([GNULIB_GETUSERSHELL]) 52 GNULIB_GETUSERSHELL=0; AC_SUBST([GNULIB_GETUSERSHELL])
53 GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN]) 53 GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN])
54 GNULIB_LINK=0; AC_SUBST([GNULIB_LINK]) 54 GNULIB_LINK=0; AC_SUBST([GNULIB_LINK])
55 GNULIB_LINKAT=0; AC_SUBST([GNULIB_LINKAT])
55 GNULIB_LSEEK=0; AC_SUBST([GNULIB_LSEEK]) 56 GNULIB_LSEEK=0; AC_SUBST([GNULIB_LSEEK])
56 GNULIB_PIPE2=0; AC_SUBST([GNULIB_PIPE2]) 57 GNULIB_PIPE2=0; AC_SUBST([GNULIB_PIPE2])
57 GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK]) 58 GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK])
58 GNULIB_READLINKAT=0; AC_SUBST([GNULIB_READLINKAT]) 59 GNULIB_READLINKAT=0; AC_SUBST([GNULIB_READLINKAT])
59 GNULIB_RMDIR=0; AC_SUBST([GNULIB_RMDIR]) 60 GNULIB_RMDIR=0; AC_SUBST([GNULIB_RMDIR])
77 HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE]) 78 HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE])
78 HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME]) 79 HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME])
79 HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE]) 80 HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE])
80 HAVE_GETUSERSHELL=1; AC_SUBST([HAVE_GETUSERSHELL]) 81 HAVE_GETUSERSHELL=1; AC_SUBST([HAVE_GETUSERSHELL])
81 HAVE_LINK=1; AC_SUBST([HAVE_LINK]) 82 HAVE_LINK=1; AC_SUBST([HAVE_LINK])
83 HAVE_LINKAT=1; AC_SUBST([HAVE_LINKAT])
82 HAVE_PIPE2=1; AC_SUBST([HAVE_PIPE2]) 84 HAVE_PIPE2=1; AC_SUBST([HAVE_PIPE2])
83 HAVE_READLINK=1; AC_SUBST([HAVE_READLINK]) 85 HAVE_READLINK=1; AC_SUBST([HAVE_READLINK])
84 HAVE_READLINKAT=1; AC_SUBST([HAVE_READLINKAT]) 86 HAVE_READLINKAT=1; AC_SUBST([HAVE_READLINKAT])
85 HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP]) 87 HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP])
86 HAVE_SYMLINK=1; AC_SUBST([HAVE_SYMLINK]) 88 HAVE_SYMLINK=1; AC_SUBST([HAVE_SYMLINK])