aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstddjb/ipc_bind_reuse_lock.c
Commit message (Collapse)AuthorAgeFilesLines
* Add ipc_bind_reuse_permsLaurent Bercot2021-08-221-35/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* bugfix: ipc_bind_reuse_lock must ignore umaskLaurent Bercot2021-02-131-1/+2
|
* Get rid of webipc.h and DJBUNIX_FLAG_*Laurent Bercot2020-12-091-2/+4
| | | | | | | | | | | | | | Decent semantic header separation is hard. It's always an ongoing process. Here socket.h always included webipc.h for listen(), and webipc.h always included djbunix.h for socket_internal() and socketpair_internal(). That's ugh. Just move all the socket stuff into one socket header. Of course, djbunix.h is still needed most of the time for fd_close() and other operations on fds, but those are generic anyway. Also, O_CLOEXEC exists everywhere now, so we can use it as well as O_NONBLOCK instead of redefining the flags in djbunix.h.
* Revamp lock primitives; prepare for 2.10.0.0 instead of 2.9.4.0Laurent Bercot2020-11-291-1/+5
| | | | | | | | | | | flock() doesn't have a way to test for a lock without taking it. lockf() doesn't have shared locks. The only way to have both is fcntl(). So I rewrote all the locking stuff around fcntl(), and used the opportunity to change the interface. The point of changing the interface is to stop having to bother with the old one, so to hell with compatibility, let's just do a major bump.
* Add ipc_bind_reuse_lock, rewrite ipc_bind_reuse to use itLaurent Bercot2020-11-081-0/+28