sortix-mirror/kernel/fs
Jonas 'Sortie' Termansen 3c43f71084 Implement file descriptor passing.
This change refactors the Unix socket / pipe backend to have a ring buffer
containing segments, where each segment has an optional leading ancillary
buffer containing control messages followed by a normal data buffer.

The SCM_RIGHTS control message has been implemented which transfers file
descriptors to the receiving process. File descriptors are reference counted
and cycles are prevented using the following restrictions:

1) Unix sockets cannot be sent on themselves (on either end).
2) Unix sockets themselves being sent cannot be sent on.
3) Unix sockets cannot send a Unix socket being sent on.

This is a compatible ABI change.
2021-12-31 22:24:11 +01:00
..
full.cpp Fix st_blksize and st_blocks kernel values. 2018-03-31 00:55:33 +02:00
full.h Fix SEEK_END, file offset overflow, and read/write/mkpartition syscall bugs. 2017-12-04 23:56:46 +01:00
kram.cpp Fix kramfs not initializing the owner of new directories. 2020-10-18 13:36:28 +02:00
kram.h Move readv/writev family and sendmsg/recvmsg into drivers. 2017-02-13 22:04:21 +01:00
null.cpp Fix st_blksize and st_blocks kernel values. 2018-03-31 00:55:33 +02:00
null.h Fix SEEK_END, file offset overflow, and read/write/mkpartition syscall bugs. 2017-12-04 23:56:46 +01:00
random.cpp Fix st_blksize and st_blocks kernel values. 2018-03-31 00:55:33 +02:00
random.h Fix SEEK_END, file offset overflow, and read/write/mkpartition syscall bugs. 2017-12-04 23:56:46 +01:00
user.cpp Implement file descriptor passing. 2021-12-31 22:24:11 +01:00
user.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
util.cpp Fix st_blksize and st_blocks kernel values. 2018-03-31 00:55:33 +02:00
util.h Fix SEEK_END, file offset overflow, and read/write/mkpartition syscall bugs. 2017-12-04 23:56:46 +01:00
zero.cpp Fix st_blksize and st_blocks kernel values. 2018-03-31 00:55:33 +02:00
zero.h Fix SEEK_END, file offset overflow, and read/write/mkpartition syscall bugs. 2017-12-04 23:56:46 +01:00