Make it possible to turn off each of the Windows oldnames workarounds.
[gnulib.git] / modules / fcntl-h
blob429c283ae4520c6fd96087cdf0610344361005ad
1 Description:
2 Like <fcntl.h>, but with non-working flags defined to 0.
4 Files:
5 lib/fcntl.in.h
6 m4/fcntl_h.m4
7 m4/fcntl-o.m4
8 m4/pid_t.m4
10 Depends-on:
11 extensions
12 include_next
13 snippet/arg-nonnull
14 snippet/c++defs
15 snippet/warn-on-use
16 sys_types
17 unistd
19 configure.ac:
20 gl_FCNTL_H
22 Makefile.am:
23 BUILT_SOURCES += fcntl.h
25 # We need the following in order to create <fcntl.h> when the system
26 # doesn't have one that works with the given compiler.
27 fcntl.h: fcntl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
28         $(AM_V_GEN)rm -f $@-t $@ && \
29         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
30           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
31               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
32               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
33               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
34               -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \
35               -e 's/@''GNULIB_CREAT''@/$(GNULIB_CREAT)/g' \
36               -e 's/@''GNULIB_FCNTL''@/$(GNULIB_FCNTL)/g' \
37               -e 's/@''GNULIB_NONBLOCKING''@/$(GNULIB_NONBLOCKING)/g' \
38               -e 's/@''GNULIB_OPEN''@/$(GNULIB_OPEN)/g' \
39               -e 's/@''GNULIB_OPENAT''@/$(GNULIB_OPENAT)/g' \
40               -e 's/@''GNULIB_MDA_CREAT''@/$(GNULIB_MDA_CREAT)/g' \
41               -e 's/@''GNULIB_MDA_OPEN''@/$(GNULIB_MDA_OPEN)/g' \
42               -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \
43               -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \
44               -e 's|@''REPLACE_CREAT''@|$(REPLACE_CREAT)|g' \
45               -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \
46               -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \
47               -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \
48               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
49               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
50               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
51               < $(srcdir)/fcntl.in.h; \
52         } > $@-t && \
53         mv $@-t $@
54 MOSTLYCLEANFILES += fcntl.h fcntl.h-t
56 Include:
57 <fcntl.h>
59 License:
60 LGPLv2+
62 Maintainer:
63 all