From e92e5cbc9c42a7f926eb4b25fdf6e52ec9d2fa4c Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 28 Apr 2025 08:44:56 +0000 Subject: Update docs to latest posix version Signed-off-by: Laurent Bercot --- doc/libstddjb/djbunix.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'doc/libstddjb/djbunix.html') diff --git a/doc/libstddjb/djbunix.html b/doc/libstddjb/djbunix.html index 63eca54..18af549 100644 --- a/doc/libstddjb/djbunix.html +++ b/doc/libstddjb/djbunix.html @@ -71,21 +71,21 @@ Returns 0 if it succeeds, or -1 (and sets errno) if it fails.

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.

@@ -123,32 +123,32 @@ Returns 0 if it succeeds, or -1 (and sets errno) if it fails. 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.

@@ -267,7 +267,7 @@ Returns a valid fd number if it succeeds, or -1 (and sets errno) if it fails. Opens file in read-only, blocking mode. Returns a valid fd number if it succeeds, or -1 (and sets errno) if it fails. This call does not block. The -open() +open() system call is actually performed with the O_NONBLOCK option, and blocking mode is set afterwards; this behaviour allows for more transparent interactions with FIFOs. @@ -413,7 +413,7 @@ or -1 (and sets errno) if it fails.

pid_t waitpid_nointr (pid_t pid, int *wstat, int flags)
Safe wrapper around -waitpid(). +waitpid().

-- cgit v1.3.1