summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-06 21:53:02 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-06 21:53:02 +0200
commit3a0ecb08f4b3bfa84ff3d04bc7816730df35139e (patch)
tree6cb44bd45ec986f75dd6913695be7d235a6db5f9 /util.h
parent7418040c3ada8c57c436b2a2ff44fb490f6781f7 (diff)
util: implement fd_nonbloc()/fd_cloexec()
Diffstat (limited to 'util.h')
-rw-r--r--util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/util.h b/util.h
index 9f9bca86f2..772d7ae9ff 100644
--- a/util.h
+++ b/util.h
@@ -172,6 +172,9 @@ bool ignore_file(const char *filename);
struct __useless_struct_to_allow_trailing_semicolon__
+int fd_nonblock(int fd, bool nonblock);
+int fd_cloexec(int fd, bool cloexec);
+
const char *ioprio_class_to_string(int i);
int ioprio_class_from_string(const char *s);