Mercurial > hg > octave-lojdl > gnulib-hg
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 |
rev | line source |
---|---|
10659 | 1 Description: |
2 A GNU-like <dirent.h>. | |
3 | |
4 Files: | |
5 lib/dirent.in.h | |
6 m4/dirent_h.m4 | |
7 m4/unistd_h.m4 | |
8 | |
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 | 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 | 14 |
15 configure.ac: | |
16 gl_DIRENT_H | |
17 | |
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 | 20 |
21 # We need the following in order to create <dirent.h> when the system | |
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 | 25 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ |
26 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | |
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 | 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 | 32 -e 's|@''GNULIB_SCANDIR''@|$(GNULIB_SCANDIR)|g' \ |
11039 | 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 | 37 -e 's|@''HAVE_SCANDIR''@|$(HAVE_SCANDIR)|g' \ |
11039 | 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 | 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 | 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 | 48 mv $@-t $@ |
49 MOSTLYCLEANFILES += dirent.h dirent.h-t | |
50 | |
51 Include: | |
12008
18ea6ab4e81d
maint: make Include sections of modules consistent
Eric Blake <ebb9@byu.net>
parents:
11992
diff
changeset
|
52 <dirent.h> |
10659 | 53 |
54 License: | |
55 LGPLv2+ | |
56 | |
57 Maintainer: | |
58 all |