summaryrefslogtreecommitdiff
path: root/makeint.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-04-16 00:35:48 -0400
committerPaul Smith <psmith@gnu.org>2013-04-16 01:03:59 -0400
commitb5d017c6241ac356915b178d0a9588653d18d460 (patch)
treee101b46d62edb0881bb09fc5ddec6d6bd1ed891c /makeint.h
parent79e9347892dd2b6caa246e18fe050583da744bd8 (diff)
downloadgunmake-b5d017c6241ac356915b178d0a9588653d18d460.tar.gz
Create an open_tmpfd() function to return temp files by FD. Use it.
Diffstat (limited to 'makeint.h')
-rw-r--r--makeint.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/makeint.h b/makeint.h
index fe43260..976b040 100644
--- a/makeint.h
+++ b/makeint.h
@@ -413,6 +413,7 @@ int alpha_compare (const void *, const void *);
void print_spaces (unsigned int);
char *find_percent (char *);
const char *find_percent_cached (const char **);
+int open_tmpfd (void);
FILE *open_tmpfile (char **, const char *);
#ifndef NO_ARCHIVES
@@ -525,6 +526,10 @@ int strncasecmp (const char *s1, const char *s2, int n);
# endif
#endif
+#ifdef POSIX
+# define OUTPUT_SYNC
+#endif
+
#define OUTPUT_SYNC_TARGET 1
#define OUTPUT_SYNC_MAKE 2