From cc31550d01415181e70150ad3e9043d049b07a09 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 20 Nov 2020 15:22:48 +0000 Subject: Add fd_shutdown() --- doc/libstddjb/djbunix.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc/libstddjb') diff --git a/doc/libstddjb/djbunix.html b/doc/libstddjb/djbunix.html index 9a921de..e70fe4f 100644 --- a/doc/libstddjb/djbunix.html +++ b/doc/libstddjb/djbunix.html @@ -191,6 +191,16 @@ file descriptors was closed, it now points to /dev/null. Returns 1 if it succeeds and 0 if it fails.

+

+ void fd_shutdown (int fd, int w)
+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() +with errno saved, used essentially to isolate application code from +sys/socket.h which is a portability nightmare. +

+

int lock_ex (int fd)
Gets an exclusive advisory lock on fd. fd must point to -- cgit v1.2.3