Mercurial > gnulib
annotate modules/sys_stat @ 14700:6758fa38915e topic/libposix
manual merge
author | Bruce Korb <bkorb@gnu.org> |
---|---|
date | Fri, 06 May 2011 08:15:59 -0700 |
parents | 8636d98120a9 049942251f65 |
children |
rev | line source |
---|---|
6899 | 1 Description: |
2 A <sys/stat.h> for systems with missing declarations. | |
3 | |
4 Files: | |
9267
b044f86e84cc
Rename sys_stat_.h to sys_stat.in.h.
Bruno Haible <bruno@clisp.org>
parents:
9102
diff
changeset
|
5 lib/sys_stat.in.h |
6899 | 6 m4/sys_stat_h.m4 |
11933
1ffad224c413
fchdir: use more consistent macro convention
Eric Blake <ebb9@byu.net>
parents:
11926
diff
changeset
|
7 m4/unistd_h.m4 |
6899 | 8 |
9 Depends-on: | |
12766
2c14f1e449e5
warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents:
12422
diff
changeset
|
10 arg-nonnull |
12946
9e4da0c0da6a
sys_stat: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
11 c++defs |
8995
1025663f7658
* m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents:
8825
diff
changeset
|
12 include_next |
12163
e16b6783660e
sys_stat: guarantee struct timespec
Eric Blake <ebb9@byu.net>
parents:
12162
diff
changeset
|
13 time |
12766
2c14f1e449e5
warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents:
12422
diff
changeset
|
14 warn-on-use |
6899 | 15 |
16 configure.ac: | |
17 gl_HEADER_SYS_STAT_H | |
7900
2843623a4ec4
Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
Jim Meyering <jim@meyering.net>
parents:
7754
diff
changeset
|
18 AC_PROG_MKDIR_P |
6899 | 19 |
20 Makefile.am: | |
14108
873a3371d1d2
spell the pkginclude directory correctly.
Bruce Korb <bkorb@gnu.org>
parents:
14107
diff
changeset
|
21 nobase_nodist_pkginclude_HEADERS += sys/stat.h |
14102
f49fe7e6d028
add _HEADERS primaries to Makefile.am snippets for installable headers
Gary V. Vaughan <gary@gnu.org>
parents:
13761
diff
changeset
|
22 |
11942
d1047ae4b8d5
openat: declare in POSIX headers
Eric Blake <ebb9@byu.net>
parents:
11933
diff
changeset
|
23 BUILT_SOURCES += sys/stat.h |
6899 | 24 |
25 # We need the following in order to create <sys/stat.h> when the system | |
26 # has one that is incomplete. | |
14527
049942251f65
Ensure to rebuild generated .h files when config.status has changed.
Bruno Haible <bruno@clisp.org>
parents:
14273
diff
changeset
|
27 sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) |
11926
79c91e5cce7a
Use $(MKDIR_P) instead of @MKDIR_P@.
Simon Josefsson <simon@josefsson.org>
parents:
11868
diff
changeset
|
28 $(AM_V_at)$(MKDIR_P) sys |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
10688
diff
changeset
|
29 $(AM_V_GEN)rm -f $@-t $@ && \ |
7421
8bace4b08db5
Mark generated files as "DO NOT EDIT".
Bruno Haible <bruno@clisp.org>
parents:
7274
diff
changeset
|
30 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ |
10375
f96e845fc36d
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
9954
diff
changeset
|
31 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ |
f96e845fc36d
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
9954
diff
changeset
|
32 -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:
12946
diff
changeset
|
33 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
8995
1025663f7658
* m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents:
8825
diff
changeset
|
34 -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ |
11966
715fd167345f
Remove dependency from unistd_h.m4, sys_stat_h.m4, fcntl_h.m4 to openat.m4.
Bruno Haible <bruno@clisp.org>
parents:
11942
diff
changeset
|
35 -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \ |
715fd167345f
Remove dependency from unistd_h.m4, sys_stat_h.m4, fcntl_h.m4 to openat.m4.
Bruno Haible <bruno@clisp.org>
parents:
11942
diff
changeset
|
36 -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \ |
12162 | 37 -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \ |
10664
3eb22f9808e0
Move the lchmod() declaration to <sys/stat.h>.
Bruno Haible <bruno@clisp.org>
parents:
10375
diff
changeset
|
38 -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \ |
10688
989b49566cae
Move the lstat() declaration to <sys/stat.h>.
Bruno Haible <bruno@clisp.org>
parents:
10664
diff
changeset
|
39 -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \ |
11966
715fd167345f
Remove dependency from unistd_h.m4, sys_stat_h.m4, fcntl_h.m4 to openat.m4.
Bruno Haible <bruno@clisp.org>
parents:
11942
diff
changeset
|
40 -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \ |
12266 | 41 -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \ |
11975 | 42 -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \ |
12267 | 43 -e 's|@''GNULIB_MKNOD''@|$(GNULIB_MKNOD)|g' \ |
11975 | 44 -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \ |
12036
1762604ec0a7
stat: new module, for mingw bug
Eric Blake <ebb9@byu.net>
parents:
12008
diff
changeset
|
45 -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \ |
12174 | 46 -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \ |
11942
d1047ae4b8d5
openat: declare in POSIX headers
Eric Blake <ebb9@byu.net>
parents:
11933
diff
changeset
|
47 -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \ |
d1047ae4b8d5
openat: declare in POSIX headers
Eric Blake <ebb9@byu.net>
parents:
11933
diff
changeset
|
48 -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \ |
12162 | 49 -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \ |
10664
3eb22f9808e0
Move the lchmod() declaration to <sys/stat.h>.
Bruno Haible <bruno@clisp.org>
parents:
10375
diff
changeset
|
50 -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \ |
8780
d9e13374d316
Make the generated sys/stat.h more self-contained.
Bruno Haible <bruno@clisp.org>
parents:
8734
diff
changeset
|
51 -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \ |
11942
d1047ae4b8d5
openat: declare in POSIX headers
Eric Blake <ebb9@byu.net>
parents:
11933
diff
changeset
|
52 -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \ |
12266 | 53 -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \ |
11975 | 54 -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \ |
12267 | 55 -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \ |
11975 | 56 -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \ |
12174 | 57 -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \ |
11992
a1e0b2efc812
fchdir: improve use of replacement functions
Eric Blake <ebb9@byu.net>
parents:
11975
diff
changeset
|
58 -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \ |
11975 | 59 -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \ |
12162 | 60 -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \ |
10688
989b49566cae
Move the lstat() declaration to <sys/stat.h>.
Bruno Haible <bruno@clisp.org>
parents:
10664
diff
changeset
|
61 -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \ |
9954
0f61f5040489
Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible <bruno@clisp.org>
parents:
9267
diff
changeset
|
62 -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \ |
12266 | 63 -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \ |
12267 | 64 -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \ |
12036
1762604ec0a7
stat: new module, for mingw bug
Eric Blake <ebb9@byu.net>
parents:
12008
diff
changeset
|
65 -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \ |
12174 | 66 -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \ |
12946
9e4da0c0da6a
sys_stat: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
67 -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
|
68 -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:
12422
diff
changeset
|
69 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ |
9267
b044f86e84cc
Rename sys_stat_.h to sys_stat.in.h.
Bruno Haible <bruno@clisp.org>
parents:
9102
diff
changeset
|
70 < $(srcdir)/sys_stat.in.h; \ |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
10688
diff
changeset
|
71 } > $@-t && \ |
6899 | 72 mv $@-t $@ |
73 MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t | |
74 MOSTLYCLEANDIRS += sys | |
75 | |
76 Include: | |
12008
18ea6ab4e81d
maint: make Include sections of modules consistent
Eric Blake <ebb9@byu.net>
parents:
11992
diff
changeset
|
77 <sys/stat.h> |
6899 | 78 |
79 License: | |
9102
404dc8725caf
Use the synonymous term LGPLv2.
Bruno Haible <bruno@clisp.org>
parents:
8995
diff
changeset
|
80 LGPLv2+ |
6899 | 81 |
82 Maintainer: | |
8995
1025663f7658
* m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents:
8825
diff
changeset
|
83 all |