Mercurial > hg > octave-kai > gnulib-hg
annotate modules/fstatat @ 17298:d536543d59a6
statat: new module, split out from fstatat
GNU Emacs needs the POSIX-specified fstatat, but not the
gnulib-specified statat and lstat. Split the latter two into a
new module 'statat'.
* lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
* lib/openat.h, lib/statat.c (STATAT_INLINE):
Rename from FSTATAT_INLINE. All uses changed.
* modules/fstatat (Files): Remove lib/statat.c.
(gl_MODULE_INDICATOR([fstatat])): Remove.
(lib_SOURCES): Remove.
(Maintainer): Add self.
* modules/statat, modules/statat-tests, tests/test-statat.c: New files.
* tests/test-fstatat.c (BASE): Don't define if already defined.
(do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Wed, 23 Jan 2013 18:20:09 -0800 |
parents | 794ea55f5504 |
children |
rev | line source |
---|---|
16023
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 Description: |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
2 fstatat() function: Return information about a file at a directory. |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 Files: |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 lib/fstatat.c |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 lib/at-func.c |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 m4/fstatat.m4 |
16089
592c7f4c8a2a
Fix some modules' file list.
Bruno Haible <bruno@clisp.org>
parents:
16063
diff
changeset
|
8 m4/lstat.m4 |
16023
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 Depends-on: |
16063
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16058
diff
changeset
|
11 sys_stat |
16023
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 extensions |
16063
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16058
diff
changeset
|
13 at-internal [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1] |
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16058
diff
changeset
|
14 dosname [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1] |
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16058
diff
changeset
|
15 errno [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1] |
17099
66fafd5c6640
fchmodat, fchownat, fstatat: use extern-inline
Paul Eggert <eggert@cs.ucla.edu>
parents:
16089
diff
changeset
|
16 extern-inline [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1] |
16063
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16058
diff
changeset
|
17 fchdir [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1] |
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16058
diff
changeset
|
18 fcntl-h [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1] |
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16058
diff
changeset
|
19 lstat [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1] |
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16058
diff
changeset
|
20 openat-die [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1] |
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16058
diff
changeset
|
21 openat-h [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1] |
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16058
diff
changeset
|
22 save-cwd [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1] |
16023
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
23 |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
24 configure.ac: |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
25 gl_FUNC_FSTATAT |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
26 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
27 AC_LIBOBJ([fstatat]) |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
28 fi |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
29 gl_SYS_STAT_MODULE_INDICATOR([fstatat]) |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
30 |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
31 Makefile.am: |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
32 |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
33 Include: |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
34 <sys/stat.h> |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
35 |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
36 License: |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
37 GPL |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
38 |
dc33aa820898
New module 'fstatat', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
39 Maintainer: |
17298
d536543d59a6
statat: new module, split out from fstatat
Paul Eggert <eggert@cs.ucla.edu>
parents:
17137
diff
changeset
|
40 Jim Meyering, Eric Blake, Paul Eggert |