chiark / gitweb /
execute: use fd_nonblock()//fd_cloexec() where applicable
[elogind.git] / util.h
diff --git a/util.h b/util.h
index 49abce1dbbbdeb5b5df5635f991ea48b03f41c5a..772d7ae9ffb82a40d44f0c6296012a9fd3693bc2 100644 (file)
--- a/util.h
+++ b/util.h
@@ -136,6 +136,8 @@ char hexchar(int x);
 int unhexchar(char c);
 char octchar(int x);
 int unoctchar(char c);
+char decchar(int x);
+int undecchar(char c);
 
 char *cescape(const char *s);
 char *cunescape(const char *s);
@@ -170,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);