summaryrefslogtreecommitdiff
path: root/makeint.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-06-28 21:57:59 -0400
committerPaul Smith <psmith@gnu.org>2013-06-28 21:57:59 -0400
commit26fe1a1e362602f333750e7a0c7a85293263ec1b (patch)
treefc76410d37ff3b464dd1da10a4ab4b90e1331354 /makeint.h
parent2d1e73b8653911082b0f9670ff9460e4eb051b4f (diff)
downloadmake-26fe1a1e362602f333750e7a0c7a85293263ec1b.tar.gz
Set O_APPEND mode for stdout/stderr and output-sync temporary files.
POSIX does not guarantee that writes will be atomic if a file is opened for normal (non-append) output. That means if multiple processes are writing to the same file, output could be lost. I can't think of a real use-case where we would NOT want append for stdout/stderr, so force it if we can.
Diffstat (limited to 'makeint.h')
-rw-r--r--makeint.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/makeint.h b/makeint.h
index f1196807..b51e914f 100644
--- a/makeint.h
+++ b/makeint.h
@@ -453,6 +453,7 @@ int alpha_compare (const void *, const void *);
void print_spaces (unsigned int);
char *find_percent (char *);
const char *find_percent_cached (const char **);
+void set_append_mode (int);
int open_tmpfd (void);
FILE *open_tmpfile (char **, const char *);