link-warning: Add copyright notice.
[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 link-warning
11 unistd
12 extensions
13
14 configure.ac:
15 gl_FCNTL_H
16
17 Makefile.am:
18 BUILT_SOURCES += $(FCNTL_H)
19
20 # We need the following in order to create <fcntl.h> when the system
21 # doesn't have one that works with the given compiler.
22 fcntl.h: fcntl.in.h $(LINK_WARNING_H)
23         $(AM_V_GEN)rm -f $@-t $@ && \
24         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
25           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
26               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
27               -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \
28               -e 's|@''GNULIB_OPEN''@|$(GNULIB_OPEN)|g' \
29               -e 's|@''GNULIB_OPENAT''@|$(GNULIB_OPENAT)|g' \
30               -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \
31               -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \
32               -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \
33               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
34               < $(srcdir)/fcntl.in.h; \
35         } > $@-t && \
36         mv $@-t $@
37 MOSTLYCLEANFILES += fcntl.h fcntl.h-t
38
39 Include:
40 <fcntl.h>
41
42 License:
43 LGPL
44
45 Maintainer:
46 all