Move more declarations into <unistd.h>.
[gnulib.git] / modules / unistd
1 Description:
2 A GNU-like <unistd.h>.
3
4 Files:
5 m4/unistd_h.m4
6 lib/unistd_.h
7
8 Depends-on:
9 absolute-header
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_.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|@''ABSOLUTE_UNISTD_H''@|$(ABSOLUTE_UNISTD_H)|g' \
25               -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \
26               -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \
27               -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \
28               -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \
29               -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \
30               -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \
31               -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \
32               -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
33               -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
34               -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
35               -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
36               -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
37               -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
38               -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
39               < $(srcdir)/unistd_.h; \
40         } > $@-t
41         mv $@-t $@
42 MOSTLYCLEANFILES += unistd.h unistd.h-t
43
44 Include:
45 #include <unistd.h>
46
47 License:
48 LGPL
49
50 Maintainer:
51 Simon Josefsson