Mercurial > hg > octave-lojdl > gnulib-hg
annotate modules/utimensat @ 16916:3d02d25fa13d
stdioext: Add support for musl libc.
* m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
* lib/fbufmode.c (fbufmode): Add conditional code for musl.
* m4/fseterr.m4: New file.
* lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
function exists.
* modules/fseterr (Files): Add m4/fseterr.m4.
(configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
__fseterr does not exist.
(Makefile.am): Remove fseterr.c from lib_SOURCES.
* lib/freadable.h: Update comment.
* lib/fwritable.h: Update comment.
* lib/freading.h: Update comment.
* lib/fwriting.h: Update comment.
* m4/freadahead.m4: New file.
* lib/freadahead.h (freadahead): Define as an alias of __freadahead if
that function exists.
* modules/freadahead (Files): Add m4/freadahead.m4.
(configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
__freadahead does not exist.
(Makefile.am): Remove freadahead.c from lib_SOURCES.
* m4/freadptr.m4: New file.
* lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
function exists.
* modules/freadptr (Files): Add m4/freadptr.m4.
(configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
__freadptr does not exist.
(Makefile.am): Remove freadptr.c from lib_SOURCES.
* m4/freadseek.m4: New file.
* lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
exists.
* modules/freadseek (Files): Add m4/freadseek.m4.
(configure.ac): Invoke gl_FUNC_FREADSEEK.
* lib/fpurge.c (fpurge): Update comment.
Reported by and with help from Rich Felker <dalias@aerifal.cx>.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 19 Jun 2012 23:35:08 +0200 |
parents | c3b6b5b6bc32 |
children |
rev | line source |
---|---|
12174 | 1 Description: |
2 Set file access and modification times of a file relative to a directory fd. | |
3 | |
4 Files: | |
5 lib/utimensat.c | |
16033
917610de47d7
New modules 'at-internal', 'openat-h', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
16023
diff
changeset
|
6 lib/at-func.c |
12174 | 7 m4/utimensat.m4 |
8 | |
9 Depends-on: | |
16063
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16033
diff
changeset
|
10 sys_stat |
16033
917610de47d7
New modules 'at-internal', 'openat-h', split off from module 'openat'.
Bruno Haible <bruno@clisp.org>
parents:
16023
diff
changeset
|
11 extensions |
16063
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16033
diff
changeset
|
12 at-internal [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1] |
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16033
diff
changeset
|
13 dosname [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1] |
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16033
diff
changeset
|
14 errno [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1] |
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16033
diff
changeset
|
15 fchdir [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1] |
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16033
diff
changeset
|
16 fcntl-h [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1] |
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16033
diff
changeset
|
17 openat-die [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1] |
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16033
diff
changeset
|
18 openat-h [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1] |
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16033
diff
changeset
|
19 save-cwd [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1] |
14683
efab6978105e
Avoid unnecessary compilation units, through conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
12499
diff
changeset
|
20 utimens [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1] |
16063
c3b6b5b6bc32
More conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
16033
diff
changeset
|
21 fstatat [test $REPLACE_UTIMENSAT = 1] |
12174 | 22 |
23 configure.ac: | |
24 gl_FUNC_UTIMENSAT | |
15136
dfb2d3c2caa7
utimensat: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
25 if test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1; then |
dfb2d3c2caa7
utimensat: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
26 AC_LIBOBJ([utimensat]) |
dfb2d3c2caa7
utimensat: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
27 fi |
12174 | 28 gl_SYS_STAT_MODULE_INDICATOR([utimensat]) |
29 | |
30 Makefile.am: | |
31 | |
32 Include: | |
33 <sys/stat.h> | |
34 | |
35 Link: | |
36 $(LIB_CLOCK_GETTIME) | |
37 | |
38 License: | |
39 GPL | |
40 | |
41 Maintainer: | |
42 Eric Blake |