temp-file: New functions for creating temporary files honoring $TMPDIR.
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 30 Jul 2010 05:08:33 +0000 (22:08 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 30 Jul 2010 05:08:33 +0000 (22:08 -0700)
commite99991940478d76062c4ab8e44a5747354e33259
tree0ebcf81bfbaf891f3c644cd4324c8f7a875bc8a8
parent1d57a8b4c556e227cd562dcfa56c8cbce79f73a8
temp-file: New functions for creating temporary files honoring $TMPDIR.

The tmpfile() function is useful, but it doesn't necessarily honor
the $TMPDIR environment variable.  Some of our users find that a problem,
so this commit replaces tmpfile() usage by a new pair of functions
create_temp_file() and close_temp_file() that do honor $TMPDIR.

Bug #30530.
Smake
src/language/stats/flip.c
src/libpspp/automake.mk
src/libpspp/ext-array.c
src/libpspp/pool.c
src/libpspp/pool.h
src/libpspp/temp-file.c [new file with mode: 0644]
src/libpspp/temp-file.h [new file with mode: 0644]
src/output/odt.c
tests/automake.mk