Mercurial > hg > octave-nkf > gnulib-hg
annotate modules/unistd @ 14733:8d8a6d8151f4
group-member: Declare function in <unistd.h>.
* lib/unistd.in.h (group_member): New declaration.
* lib/group-member.h: Remove file.
* lib/group-member.c: Include <unistd.h> instead of group-member.h.
* tests/test-unistd-c++.cc: Check signature of group_member.
* m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
* m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
(gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
HAVE_GROUP_MEMBER.
* modules/group-member (Files): Remove lib/group-member.h.
(Depends-on): Add unistd. Specify conditions.
(configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
(Include): Change to <unistd.h>.
* modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
HAVE_GROUP_MEMBER.
* NEWS: Mention the change.
* lib/euidaccess.c: Don't include group-member.h.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 12 May 2011 02:03:07 +0200 |
parents | 8b22057e98d2 |
children | 5f709022a256 |
rev | line source |
---|---|
6685
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
1 Description: |
8199
51d32a83a7df
Move more declarations into <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
7865
diff
changeset
|
2 A GNU-like <unistd.h>. |
6685
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
3 |
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
4 Files: |
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
5 m4/unistd_h.m4 |
9271
56962d28d442
Rename unistd_.h to unistd.in.h.
Bruno Haible <bruno@clisp.org>
parents:
9102
diff
changeset
|
6 lib/unistd.in.h |
6685
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
7 |
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
8 Depends-on: |
12725
b6a49a4ae7d7
unistd: warn on use of environ without module
Eric Blake <ebb9@byu.net>
parents:
12613
diff
changeset
|
9 arg-nonnull |
12949
a30dc7c28962
unistd: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
10 c++defs |
8995
1025663f7658
* m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents:
8982
diff
changeset
|
11 include_next |
11832
ff3dd373542b
stddef: fix NetBSD 5.0 NULL bug, rather than working around it
Eric Blake <ebb9@byu.net>
parents:
11810
diff
changeset
|
12 stddef |
12725
b6a49a4ae7d7
unistd: warn on use of environ without module
Eric Blake <ebb9@byu.net>
parents:
12613
diff
changeset
|
13 warn-on-use |
6685
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
14 |
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
15 configure.ac: |
8199
51d32a83a7df
Move more declarations into <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
7865
diff
changeset
|
16 gl_UNISTD_H |
6685
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
17 |
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
18 Makefile.am: |
8199
51d32a83a7df
Move more declarations into <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
7865
diff
changeset
|
19 BUILT_SOURCES += unistd.h |
6685
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
20 |
6689
93d578c7aa44
* lib/c-stack.c: Include unistd.h unconditionally, since we now assume
Paul Eggert <eggert@cs.ucla.edu>
parents:
6687
diff
changeset
|
21 # We need the following in order to create an empty placeholder for |
93d578c7aa44
* lib/c-stack.c: Include unistd.h unconditionally, since we now assume
Paul Eggert <eggert@cs.ucla.edu>
parents:
6687
diff
changeset
|
22 # <unistd.h> when the system doesn't have one. |
14527
049942251f65
Ensure to rebuild generated .h files when config.status has changed.
Bruno Haible <bruno@clisp.org>
parents:
14316
diff
changeset
|
23 unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
11832
diff
changeset
|
24 $(AM_V_GEN)rm -f $@-t $@ && \ |
7421
8bace4b08db5
Mark generated files as "DO NOT EDIT".
Bruno Haible <bruno@clisp.org>
parents:
6689
diff
changeset
|
25 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ |
8199
51d32a83a7df
Move more declarations into <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
7865
diff
changeset
|
26 sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ |
10375
f96e845fc36d
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
9721
diff
changeset
|
27 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ |
f96e845fc36d
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
9721
diff
changeset
|
28 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
13761
a19ace3ba849
Avoid line length limitation from HP NonStop system header files.
Bruno Haible <bruno@clisp.org>
parents:
13314
diff
changeset
|
29 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
8995
1025663f7658
* m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents:
8982
diff
changeset
|
30 -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ |
8199
51d32a83a7df
Move more declarations into <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
7865
diff
changeset
|
31 -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \ |
10609 | 32 -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \ |
8199
51d32a83a7df
Move more declarations into <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
7865
diff
changeset
|
33 -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \ |
11886 | 34 -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \ |
9721 | 35 -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \ |
10662
ad36db29dad7
Move the euidaccess() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
10661
diff
changeset
|
36 -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \ |
11945 | 37 -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \ |
8199
51d32a83a7df
Move more declarations into <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
7865
diff
changeset
|
38 -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \ |
11966
715fd167345f
Remove dependency from unistd_h.m4, sys_stat_h.m4, fcntl_h.m4 to openat.m4.
Bruno Haible <bruno@clisp.org>
parents:
11956
diff
changeset
|
39 -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \ |
10565 | 40 -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \ |
8199
51d32a83a7df
Move more declarations into <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
7865
diff
changeset
|
41 -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \ |
51d32a83a7df
Move more declarations into <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
7865
diff
changeset
|
42 -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \ |
10661
65c9436dc0d3
Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
10610
diff
changeset
|
43 -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \ |
10582
738187526552
New module 'getdtablesize'.
Bruno Haible <bruno@clisp.org>
parents:
10565
diff
changeset
|
44 -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \ |
12279
6a41b8f5f874
getgroups, getugroups: provide stubs for mingw
Eric Blake <ebb9@byu.net>
parents:
12120
diff
changeset
|
45 -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \ |
10692
b867b19bccb3
Add gethostname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
10666
diff
changeset
|
46 -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \ |
12613 | 47 -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \ |
8199
51d32a83a7df
Move more declarations into <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
7865
diff
changeset
|
48 -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \ |
9498
a2c450a3023c
Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents:
9276
diff
changeset
|
49 -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \ |
10666
d162e4057aa8
Add getusershell(), setusershell(), endusershell() declarations to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
10662
diff
changeset
|
50 -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \ |
14733
8d8a6d8151f4
group-member: Declare function in <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
14583
diff
changeset
|
51 -e 's|@''GNULIB_GROUP_MEMBER''@|$(GNULIB_GROUP_MEMBER)|g' \ |
8982
04a20e8bea33
Revamp lchown so that it lives in unistd.h where it belongs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
8872
diff
changeset
|
52 -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \ |
11041 | 53 -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \ |
12068 | 54 -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \ |
8872 | 55 -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \ |
13923 | 56 -e 's|@''GNULIB_PIPE''@|$(GNULIB_PIPE)|g' \ |
11870 | 57 -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \ |
12355 | 58 -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \ |
13314
d44fde85189e
New module pwrite.
Peter O'Gorman <pogma@thewrittenword.com>
parents:
13266
diff
changeset
|
59 -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \ |
14583
8b22057e98d2
Support non-blocking pipe I/O in read() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14578
diff
changeset
|
60 -e 's|@''GNULIB_READ''@|$(GNULIB_READ)|g' \ |
8199
51d32a83a7df
Move more declarations into <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
7865
diff
changeset
|
61 -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \ |
11967
399ddfe4310e
faccessat, symlinkat: continue cleanup of previous patch
Eric Blake <ebb9@byu.net>
parents:
11966
diff
changeset
|
62 -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \ |
11993
767d867147de
rmdir: work around cygwin 1.5.x and mingw bugs
Eric Blake <ebb9@byu.net>
parents:
11992
diff
changeset
|
63 -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \ |
8786 | 64 -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \ |
12056
e0c5d88f8c3b
symlink: new module, for Solaris 9 bug
Eric Blake <ebb9@byu.net>
parents:
12045
diff
changeset
|
65 -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \ |
11956 | 66 -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \ |
13023 | 67 -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \ |
11810
d2c9dd185002
Ensure that getopt() gets declared by <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
11801
diff
changeset
|
68 -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \ |
14578
4e83bc0de9e4
Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14527
diff
changeset
|
69 -e 's|@''GNULIB_UNISTD_H_NONBLOCKING''@|$(GNULIB_UNISTD_H_NONBLOCKING)|g' \ |
10484 | 70 -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \ |
12040
e8108d5c7ca7
unlink: new module, for Solaris 9 bug
Eric Blake <ebb9@byu.net>
parents:
12008
diff
changeset
|
71 -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \ |
11966
715fd167345f
Remove dependency from unistd_h.m4, sys_stat_h.m4, fcntl_h.m4 to openat.m4.
Bruno Haible <bruno@clisp.org>
parents:
11956
diff
changeset
|
72 -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \ |
12315 | 73 -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \ |
10484 | 74 -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \ |
12742
eb23650d64e1
Split large sed scripts, for HP-UX sed.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents:
12725
diff
changeset
|
75 < $(srcdir)/unistd.in.h | \ |
eb23650d64e1
Split large sed scripts, for HP-UX sed.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents:
12725
diff
changeset
|
76 sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \ |
8199
51d32a83a7df
Move more declarations into <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
7865
diff
changeset
|
77 -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \ |
11886 | 78 -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \ |
10662
ad36db29dad7
Move the euidaccess() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
10661
diff
changeset
|
79 -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \ |
11945 | 80 -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \ |
13125
e3ca987c9a94
fchdir: Fix regression introduced on 2010-03-08.
Bruno Haible <bruno@clisp.org>
parents:
13124
diff
changeset
|
81 -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \ |
11942
d1047ae4b8d5
openat: declare in POSIX headers
Eric Blake <ebb9@byu.net>
parents:
11886
diff
changeset
|
82 -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \ |
10565 | 83 -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \ |
8199
51d32a83a7df
Move more declarations into <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
7865
diff
changeset
|
84 -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ |
10582
738187526552
New module 'getdtablesize'.
Bruno Haible <bruno@clisp.org>
parents:
10565
diff
changeset
|
85 -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \ |
12279
6a41b8f5f874
getgroups, getugroups: provide stubs for mingw
Eric Blake <ebb9@byu.net>
parents:
12120
diff
changeset
|
86 -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \ |
10692
b867b19bccb3
Add gethostname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
10666
diff
changeset
|
87 -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \ |
12613 | 88 -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \ |
9498
a2c450a3023c
Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents:
9276
diff
changeset
|
89 -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \ |
14733
8d8a6d8151f4
group-member: Declare function in <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
14583
diff
changeset
|
90 -e 's|@''HAVE_GROUP_MEMBER''@|$(HAVE_GROUP_MEMBER)|g' \ |
12290
7e3695d9b328
lchown: detect Solaris and FreeBSD bug
Eric Blake <ebb9@byu.net>
parents:
12289
diff
changeset
|
91 -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \ |
11041 | 92 -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \ |
12068 | 93 -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \ |
13925
29a686188651
pipe-posix: Make it work in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
13923
diff
changeset
|
94 -e 's|@''HAVE_PIPE''@|$(HAVE_PIPE)|g' \ |
11870 | 95 -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \ |
12355 | 96 -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \ |
13314
d44fde85189e
New module pwrite.
Peter O'Gorman <pogma@thewrittenword.com>
parents:
13266
diff
changeset
|
97 -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \ |
8199
51d32a83a7df
Move more declarations into <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
7865
diff
changeset
|
98 -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ |
11956 | 99 -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \ |
8786 | 100 -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ |
12056
e0c5d88f8c3b
symlink: new module, for Solaris 9 bug
Eric Blake <ebb9@byu.net>
parents:
12045
diff
changeset
|
101 -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \ |
11956 | 102 -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \ |
11942
d1047ae4b8d5
openat: declare in POSIX headers
Eric Blake <ebb9@byu.net>
parents:
11886
diff
changeset
|
103 -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \ |
12315 | 104 -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \ |
9721 | 105 -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \ |
13941
8a75c6738522
fchdir: Add missing declaration on OSF/1 5.1.
Bruno Haible <bruno@clisp.org>
parents:
13925
diff
changeset
|
106 -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \ |
13911
e6744cae0421
getdomainname: Use the system function when possible.
Bruno Haible <bruno@clisp.org>
parents:
13761
diff
changeset
|
107 -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \ |
8199
51d32a83a7df
Move more declarations into <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
7865
diff
changeset
|
108 -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ |
13124
69f0d92b5794
getpagesize: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
109 -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \ |
13010
23b6d428ea53
getusershell: Provide declaration, missing on Solaris 9.
Bruno Haible <bruno@clisp.org>
parents:
12949
diff
changeset
|
110 -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \ |
13967
c0afec342ca5
ttyname_r: Add missing declaration on HP-UX 11.
Bruno Haible <bruno@clisp.org>
parents:
13941
diff
changeset
|
111 -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \ |
9498
a2c450a3023c
Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents:
9276
diff
changeset
|
112 -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \ |
a2c450a3023c
Move declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible <bruno@clisp.org>
parents:
9276
diff
changeset
|
113 -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \ |
14316
6f2788453d27
Split large sed scripts, for HP-UX sed.
Bruno Haible <bruno@clisp.org>
parents:
14273
diff
changeset
|
114 | \ |
6f2788453d27
Split large sed scripts, for HP-UX sed.
Bruno Haible <bruno@clisp.org>
parents:
14273
diff
changeset
|
115 sed -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ |
10609 | 116 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \ |
11992
a1e0b2efc812
fchdir: improve use of replacement functions
Eric Blake <ebb9@byu.net>
parents:
11981
diff
changeset
|
117 -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \ |
11726
c694fa3f9d7d
dup2: work around mingw and cygwin 1.5 bug
Eric Blake <ebb9@byu.net>
parents:
11041
diff
changeset
|
118 -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \ |
11942
d1047ae4b8d5
openat: declare in POSIX headers
Eric Blake <ebb9@byu.net>
parents:
11886
diff
changeset
|
119 -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \ |
8199
51d32a83a7df
Move more declarations into <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
7865
diff
changeset
|
120 -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \ |
13911
e6744cae0421
getdomainname: Use the system function when possible.
Bruno Haible <bruno@clisp.org>
parents:
13761
diff
changeset
|
121 -e 's|@''REPLACE_GETDOMAINNAME''@|$(REPLACE_GETDOMAINNAME)|g' \ |
13999
f4f90f0b7167
getlogin_r: Work around portability problem on OSF/1.
Bruno Haible <bruno@clisp.org>
parents:
13967
diff
changeset
|
122 -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \ |
12279
6a41b8f5f874
getgroups, getugroups: provide stubs for mingw
Eric Blake <ebb9@byu.net>
parents:
12120
diff
changeset
|
123 -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \ |
9552
6632990b0812
Override getpagesize on mingw.
Martin Lambers <marlam@marlam.de>
parents:
9498
diff
changeset
|
124 -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \ |
8982
04a20e8bea33
Revamp lchown so that it lives in unistd.h where it belongs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
8872
diff
changeset
|
125 -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ |
11981 | 126 -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \ |
12120 | 127 -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \ |
8872 | 128 -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \ |
12355 | 129 -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \ |
13314
d44fde85189e
New module pwrite.
Peter O'Gorman <pogma@thewrittenword.com>
parents:
13266
diff
changeset
|
130 -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \ |
14583
8b22057e98d2
Support non-blocking pipe I/O in read() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14578
diff
changeset
|
131 -e 's|@''REPLACE_READ''@|$(REPLACE_READ)|g' \ |
12058
36183b482b71
readlink: fix cygwin 1.5.x bug with return type
Eric Blake <ebb9@byu.net>
parents:
12056
diff
changeset
|
132 -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \ |
11993
767d867147de
rmdir: work around cygwin 1.5.x and mingw bugs
Eric Blake <ebb9@byu.net>
parents:
11992
diff
changeset
|
133 -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \ |
12326 | 134 -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \ |
12056
e0c5d88f8c3b
symlink: new module, for Solaris 9 bug
Eric Blake <ebb9@byu.net>
parents:
12045
diff
changeset
|
135 -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \ |
13266
ddd7bebf854c
ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
13125
diff
changeset
|
136 -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \ |
12040
e8108d5c7ca7
unlink: new module, for Solaris 9 bug
Eric Blake <ebb9@byu.net>
parents:
12008
diff
changeset
|
137 -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \ |
12045
2bd4d1ff29e9
openat: fix unlinkat bugs on Solaris 9
Eric Blake <ebb9@byu.net>
parents:
12040
diff
changeset
|
138 -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \ |
12315 | 139 -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \ |
10484 | 140 -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \ |
10610
9202c6340cce
Combine the two replacements of 'close'.
Paolo Bonzini <bonzini@gnu.org>
parents:
10609
diff
changeset
|
141 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \ |
11801
a29d6bab4448
Make it possible to use module 'gethostname' without module 'close' or 'ioctl'.
Bruno Haible <bruno@clisp.org>
parents:
11726
diff
changeset
|
142 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \ |
12949
a30dc7c28962
unistd: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
143 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ |
12422
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
12410
diff
changeset
|
144 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ |
12742
eb23650d64e1
Split large sed scripts, for HP-UX sed.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents:
12725
diff
changeset
|
145 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
11832
diff
changeset
|
146 } > $@-t && \ |
7863 | 147 mv $@-t $@ |
148 MOSTLYCLEANFILES += unistd.h unistd.h-t | |
6685
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
149 |
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
150 Include: |
12008
18ea6ab4e81d
maint: make Include sections of modules consistent
Eric Blake <ebb9@byu.net>
parents:
11993
diff
changeset
|
151 <unistd.h> |
6685
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
152 |
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
153 License: |
9102
404dc8725caf
Use the synonymous term LGPLv2.
Bruno Haible <bruno@clisp.org>
parents:
8995
diff
changeset
|
154 LGPLv2+ |
6685
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
155 |
143f906c9a6a
Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
156 Maintainer: |
8995
1025663f7658
* m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents:
8982
diff
changeset
|
157 all |