annotate modules/dirent @ 14730:f0a9a2cd267c

fclose: preserve fflush errors Caught by gcc -Werror=unused-but-set-variable. * lib/fclose.c (rpl_fclose): Don't lose fflush errors. Reported by Jim Meyering. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Wed, 11 May 2011 11:35:06 -0600
parents 049942251f65
children 6758fa38915e 5f709022a256
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10659
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 Description:
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 A GNU-like <dirent.h>.
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 Files:
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 lib/dirent.in.h
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 m4/dirent_h.m4
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 m4/unistd_h.m4
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 Depends-on:
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12536
diff changeset
10 arg-nonnull
12930
8de7d7c428e7 dirent: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
11 c++defs
10659
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 include_next
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12536
diff changeset
13 warn-on-use
10659
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 configure.ac:
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 gl_DIRENT_H
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 Makefile.am:
12536
cd64e80f94e4 link-warning: always build headers with link warnings
Eric Blake <ebb9@byu.net>
parents: 12422
diff changeset
19 BUILT_SOURCES += dirent.h
10659
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 # We need the following in order to create <dirent.h> when the system
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 # doesn't have one that works with the given compiler.
14527
049942251f65 Ensure to rebuild generated .h files when config.status has changed.
Bruno Haible <bruno@clisp.org>
parents: 14273
diff changeset
23 dirent.h: dirent.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
11868
67c2b22aff08 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents: 11039
diff changeset
24 $(AM_V_GEN)rm -f $@-t $@ && \
10659
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
13761
a19ace3ba849 Avoid line length limitation from HP NonStop system header files.
Bruno Haible <bruno@clisp.org>
parents: 13508
diff changeset
28 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
10659
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 -e 's|@''NEXT_DIRENT_H''@|$(NEXT_DIRENT_H)|g' \
10663
2b0380d48ff6 Move the dirfd() declaration to <dirent.h>.
Bruno Haible <bruno@clisp.org>
parents: 10659
diff changeset
30 -e 's|@''GNULIB_DIRFD''@|$(GNULIB_DIRFD)|g' \
11934
80567a8f98f8 fdopendir: split into its own module
Eric Blake <ebb9@byu.net>
parents: 11868
diff changeset
31 -e 's|@''GNULIB_FDOPENDIR''@|$(GNULIB_FDOPENDIR)|g' \
11038
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents: 10663
diff changeset
32 -e 's|@''GNULIB_SCANDIR''@|$(GNULIB_SCANDIR)|g' \
11039
8842f30244d1 New module 'alphasort'.
Bruno Haible <bruno@clisp.org>
parents: 11038
diff changeset
33 -e 's|@''GNULIB_ALPHASORT''@|$(GNULIB_ALPHASORT)|g' \
10663
2b0380d48ff6 Move the dirfd() declaration to <dirent.h>.
Bruno Haible <bruno@clisp.org>
parents: 10659
diff changeset
34 -e 's|@''HAVE_DECL_DIRFD''@|$(HAVE_DECL_DIRFD)|g' \
13095
c47c56095752 fdopendir: work around FreeBSD bug
Eric Blake <eblake@redhat.com>
parents: 12930
diff changeset
35 -e 's|@''HAVE_DECL_FDOPENDIR''@|$(HAVE_DECL_FDOPENDIR)|g' \
11934
80567a8f98f8 fdopendir: split into its own module
Eric Blake <ebb9@byu.net>
parents: 11868
diff changeset
36 -e 's|@''HAVE_FDOPENDIR''@|$(HAVE_FDOPENDIR)|g' \
11038
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents: 10663
diff changeset
37 -e 's|@''HAVE_SCANDIR''@|$(HAVE_SCANDIR)|g' \
11039
8842f30244d1 New module 'alphasort'.
Bruno Haible <bruno@clisp.org>
parents: 11038
diff changeset
38 -e 's|@''HAVE_ALPHASORT''@|$(HAVE_ALPHASORT)|g' \
11992
a1e0b2efc812 fchdir: improve use of replacement functions
Eric Blake <ebb9@byu.net>
parents: 11934
diff changeset
39 -e 's|@''REPLACE_CLOSEDIR''@|$(REPLACE_CLOSEDIR)|g' \
13508
abc6ebd285a3 dirfd: Avoid link error on AIX 7.1.
Bruno Haible <bruno@clisp.org>
parents: 13095
diff changeset
40 -e 's|@''REPLACE_DIRFD''@|$(REPLACE_DIRFD)|g' \
12127
bda9467a9d66 fdopendir: fix GNU/Hurd bug
Eric Blake <ebb9@byu.net>
parents: 12008
diff changeset
41 -e 's|@''REPLACE_FDOPENDIR''@|$(REPLACE_FDOPENDIR)|g' \
11992
a1e0b2efc812 fchdir: improve use of replacement functions
Eric Blake <ebb9@byu.net>
parents: 11934
diff changeset
42 -e 's|@''REPLACE_OPENDIR''@|$(REPLACE_OPENDIR)|g' \
12930
8de7d7c428e7 dirent: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
43 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
12422
f7842310a565 New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents: 12410
diff changeset
44 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12536
diff changeset
45 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
10659
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46 < $(srcdir)/dirent.in.h; \
11868
67c2b22aff08 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents: 11039
diff changeset
47 } > $@-t && \
10659
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
48 mv $@-t $@
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
49 MOSTLYCLEANFILES += dirent.h dirent.h-t
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
51 Include:
12008
18ea6ab4e81d maint: make Include sections of modules consistent
Eric Blake <ebb9@byu.net>
parents: 11992
diff changeset
52 <dirent.h>
10659
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
53
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
54 License:
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
55 LGPLv2+
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
56
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
57 Maintainer:
fb8bcb95d71a New module 'dirent'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
58 all