fcntl-h: rename from fcntl, in preparation for fcntl(2)
[gnulib.git] / modules / fcntl-h
1 Description:
2 Like <fcntl.h>, but with non-working flags defined to 0.
3
4 Files:
5 lib/fcntl.in.h
6 m4/fcntl_h.m4
7
8 Depends-on:
9 include_next
10 unistd
11 extensions
12
13 configure.ac:
14 gl_FCNTL_H
15
16 Makefile.am:
17 BUILT_SOURCES += $(FCNTL_H)
18
19 # We need the following in order to create <fcntl.h> when the system
20 # doesn't have one that works with the given compiler.
21 fcntl.h: fcntl.in.h
22         $(AM_V_GEN)rm -f $@-t $@ && \
23         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
24           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
25               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
26               -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \
27               -e 's|@''GNULIB_OPEN''@|$(GNULIB_OPEN)|g' \
28               -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \
29               < $(srcdir)/fcntl.in.h; \
30         } > $@-t && \
31         mv $@-t $@
32 MOSTLYCLEANFILES += fcntl.h fcntl.h-t
33
34 Include:
35 #include <fcntl.h>
36
37 License:
38 LGPL
39
40 Maintainer:
41 all