annotate modules/tmpfile @ 40160:5c7e0484c1e9

tmpfile: Add support for Android. * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile() works. * lib/tmpfile.c (tmpfile): Add an alternative implementation for Android. * modules/tmpfile (Depends-on): Add 'stdbool'. * doc/posix-functions/tmpfile.texi: Mention the Android bug. * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
author Bruno Haible <bruno@clisp.org>
date Sun, 27 Jan 2019 22:03:14 +0100
parents 51231c56c0a1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8162
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 Description:
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 tmpfile() function: create a temporary file.
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 Files:
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 lib/tmpfile.c
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 m4/tmpfile.m4
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 Depends-on:
13137
fd3c9fa89efe tmpfile: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents: 12008
diff changeset
9 stdio
15474
51231c56c0a1 Add dependencies to the 'largefile' module.
Paul Eggert <eggert@cs.ucla.edu>
parents: 15128
diff changeset
10 largefile
14683
efab6978105e Avoid unnecessary compilation units, through conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents: 13138
diff changeset
11 pathmax [test $REPLACE_TMPFILE = 1]
40160
5c7e0484c1e9 tmpfile: Add support for Android.
Bruno Haible <bruno@clisp.org>
parents: 15474
diff changeset
12 stdbool [test $REPLACE_TMPFILE = 1]
14683
efab6978105e Avoid unnecessary compilation units, through conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents: 13138
diff changeset
13 tempname [test $REPLACE_TMPFILE = 1]
efab6978105e Avoid unnecessary compilation units, through conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents: 13138
diff changeset
14 tmpdir [test $REPLACE_TMPFILE = 1]
8162
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 configure.ac:
13138
0ea8feb1eb60 Rename gl_TMPFILE.
Bruno Haible <bruno@clisp.org>
parents: 13137
diff changeset
17 gl_FUNC_TMPFILE
15128
c7623a5ec63d tmpfile: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents: 14689
diff changeset
18 if test $REPLACE_TMPFILE = 1; then
c7623a5ec63d tmpfile: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents: 14689
diff changeset
19 AC_LIBOBJ([tmpfile])
c7623a5ec63d tmpfile: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents: 14689
diff changeset
20 gl_PREREQ_TMPFILE
c7623a5ec63d tmpfile: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents: 14689
diff changeset
21 fi
13137
fd3c9fa89efe tmpfile: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents: 12008
diff changeset
22 gl_STDIO_MODULE_INDICATOR([tmpfile])
8162
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 Makefile.am:
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 Include:
12008
18ea6ab4e81d maint: make Include sections of modules consistent
Eric Blake <ebb9@byu.net>
parents: 8162
diff changeset
27 <stdio.h>
8162
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 License:
14689
4cb6df751d68 tmpfile: Relicense under LGPL.
Bruno Haible <bruno@clisp.org>
parents: 14683
diff changeset
30 LGPL
8162
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 Maintainer:
46995f2e94ca New module 'tmpfile'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 Ben Pfaff