Provide the definition of GL_LINK-WARNING.
[gnulib.git] / modules / unistd
1 Description:
2 A GNU-like <unistd.h>.
3
4 Files:
5 m4/unistd_h.m4
6 lib/unistd.in.h
7
8 Depends-on:
9 include_next
10 link-warning
11
12 configure.ac:
13 gl_UNISTD_H
14
15 Makefile.am:
16 BUILT_SOURCES += unistd.h
17
18 # We need the following in order to create an empty placeholder for
19 # <unistd.h> when the system doesn't have one.
20 unistd.h: unistd.in.h
21         rm -f $@-t $@
22         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
23           sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
24               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
25               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
26               -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
27               -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \
28               -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \
29               -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \
30               -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \
31               -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \
32               -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \
33               -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \
34               -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \
35               -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \
36               -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \
37               -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \
38               -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \
39               -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \
40               -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \
41               -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
42               -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
43               -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
44               -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
45               -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
46               -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
47               -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
48               -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
49               -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
50               -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
51               -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
52               -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
53               -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
54               -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
55               -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
56               -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
57               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
58               < $(srcdir)/unistd.in.h; \
59         } > $@-t
60         mv $@-t $@
61 MOSTLYCLEANFILES += unistd.h unistd.h-t
62
63 Include:
64 #include <unistd.h>
65
66 License:
67 LGPLv2+
68
69 Maintainer:
70 all