From e92e5cbc9c42a7f926eb4b25fdf6e52ec9d2fa4c Mon Sep 17 00:00:00 2001
From: Laurent Bercot
int pipenb (int *p)
Like
-pipe(),
+pipe(),
but both ends of the created pipe are in non-blocking mode.
int pipecoe (int *p)
Like
-pipe(),
+pipe(),
but both ends of the created pipe are close-on-exec.
int pipenbcoe (int *p)
Like
-pipe(),
+pipe(),
but both ends of the created pipe are in non-blocking mode and close-on-exec.
void fd_close (int fd)
Closes fd.
This is a safe wrapper around
-close().
+close().
int fd_chmod (int fd, unsigned int mode)
Safe wrapper around
-fchmod().
+fchmod().
int fd_chown (int fd, uid_t uid, gid_t gid)
Safe wrapper around
-fchown().
+fchown().
This function requires root privileges.
int fd_sync (int fd)
Safe wrapper around
-fsync().
+fsync().
int fd_chdir (int fd)
Safe wrapper around
-fchdir().
+fchdir().
@@ -196,7 +196,7 @@ Returns 1 if it succeeds and 0 if it fails. Shuts down socket fd, for reading if w is zero, and for writing otherwise. Does not return an error code; does not modify errno. This is just a call to -shutdown() +shutdown() with errno saved, used essentially to isolate application code from sys/socket.h which is a portability nightmare.
@@ -227,14 +227,14 @@ Returns -1 (and sets errno) if an error occurs.
int open2 (char const *file, unsigned int flags)
Safe wrapper around
-open()
+open()
when it takes 2 arguments.
int open3 (char const *file, unsigned int flags, unsigned int mode)
Safe wrapper around
-open()
+open()
when it takes 3 arguments.
pid_t waitpid_nointr (pid_t pid, int *wstat, int flags)
Safe wrapper around
-waitpid().
+waitpid().
-- cgit v1.3.1