warn-on-use: use instead of link-warning
[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 m4/fcntl-o.m4
8
9 Depends-on:
10 arg-nonnull
11 extensions
12 include_next
13 unistd
14 warn-on-use
15
16 configure.ac:
17 gl_FCNTL_H
18
19 Makefile.am:
20 BUILT_SOURCES += fcntl.h
21
22 # We need the following in order to create <fcntl.h> when the system
23 # doesn't have one that works with the given compiler.
24 fcntl.h: fcntl.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
25         $(AM_V_GEN)rm -f $@-t $@ && \
26         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
27           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
28               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
29               -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \
30               -e 's|@''GNULIB_FCNTL''@|$(GNULIB_FCNTL)|g' \
31               -e 's|@''GNULIB_OPEN''@|$(GNULIB_OPEN)|g' \
32               -e 's|@''GNULIB_OPENAT''@|$(GNULIB_OPENAT)|g' \
33               -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \
34               -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \
35               -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \
36               -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \
37               -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \
38               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
39               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
40               < $(srcdir)/fcntl.in.h; \
41         } > $@-t && \
42         mv $@-t $@
43 MOSTLYCLEANFILES += fcntl.h fcntl.h-t
44
45 Include:
46 <fcntl.h>
47
48 License:
49 LGPL
50
51 Maintainer:
52 all