chiark
/
gitweb
/
~ian
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fds: Introduce pipe_cloexec()
[secnet.git]
/
secnet.h
diff --git
a/secnet.h
b/secnet.h
index ce01d24e31749e1bb8a00db3444f1c5cb449bcab..f0ab80b8cde32ab4214577205b7ae37b7a88fa18 100644
(file)
--- a/
secnet.h
+++ b/
secnet.h
@@
-139,6
+139,7
@@
extern void *safe_malloc(size_t size, const char *message);
extern void *safe_malloc_ary(size_t size, size_t count, const char *message);
void setcloexec(int fd); /* cannot fail */
extern void *safe_malloc_ary(size_t size, size_t count, const char *message);
void setcloexec(int fd); /* cannot fail */
+void pipe_cloexec(int fd[2]); /* pipe(), setcloexec() twice; cannot fail */
extern int sys_cmd(const char *file, const char *argc, ...);
extern int sys_cmd(const char *file, const char *argc, ...);