Peter Elliott
f20902deb3
Kernel: Support sending filedescriptors with sendmsg(2) and SCM_RIGHTS
...
This is necessary to support the wayland protocol.
I also moved the CMSG_* macros to the kernel API since they are used in
both kernel and userspace.
this does not break ntpquery/SCM_TIMESTAMP.
2023-02-19 00:37:37 +01:00
Gunnar Beutner
de6048b7d3
Kernel: Add definitions for SO_SNDLOWAT and SO_RCVLOWAT
2022-10-24 15:49:39 +02:00
Gunnar Beutner
01ffed710c
Kernel: Add definition for MSB_EOR
...
None of the protocols we support at the moment use this, but it makes
boost happy.
2022-10-24 15:49:39 +02:00
Gunnar Beutner
ce4b66e908
Kernel: Add support for MSG_NOSIGNAL and properly send SIGPIPE
...
Previously we didn't send the SIGPIPE signal to processes when
sendto()/sendmsg()/etc. returned EPIPE. And now we do.
This also adds support for MSG_NOSIGNAL to suppress the signal.
2022-10-24 15:49:39 +02:00
Peter Elliott
1c86678a64
Kernel: Change values of SHUT_{RD,WR,RDWR}
...
For some reason, guile requires these to be specific values.
2022-05-23 00:13:26 +02:00
Tim Schumacher
7dd4648565
Kernel: Add IPsec ESP and AH protocol numbers
2022-05-05 20:47:38 +02:00
Idan Horowitz
8074157c10
Kernel: Add the IPPROTO_{IGMP, IPIP, RAW} protocol macros
...
These are not implemented currently, but are required for some ports to
compile.
2021-12-05 12:53:29 +01:00
Idan Horowitz
d18b3eb53d
Kernel: Add the SO_OOBINLINE SOL_SOCKET-level option macro
...
This is not actually implemented, as we don't have any support for
out-of-band right now, but this is required for some ports to compile.
2021-12-05 12:53:29 +01:00
Idan Horowitz
613ade9dec
Kernel: Implement the SO_DONTROUTE SOL_SOCKET-level option
2021-12-05 12:53:29 +01:00
Idan Horowitz
641498954f
Kernel: Implement the SO_ACCEPTCONN SOL_SOCKET-level option
2021-12-05 12:53:29 +01:00
Idan Horowitz
a0e2fedc20
Kernel: Stub out the SO_DEBUG SOL_SOCKET-level option
2021-12-05 12:53:29 +01:00
Idan Horowitz
e521ffd156
Kernel: Add support for the MSG_WAITALL sys$recvmsg flag
2021-12-05 12:53:29 +01:00
Idan Horowitz
5514d60d8d
Kernel: Add support for the MSG_DONTROUTE sys$sendmsg flag
2021-12-05 12:53:29 +01:00
Idan Horowitz
a8bd78e634
LibC: Include sys/uio.h in sys/socket.h for struct iovec
2021-10-28 11:24:36 +02:00
Idan Horowitz
c45b1e1983
LibC: Add IPPROTO_ICMPV6 macro
2021-10-28 11:24:36 +02:00
Kenneth Myhra
cb10c62327
LibC: Add SOCK_RDM and SOCK_SEQPACKET to socket.h
2021-08-14 22:32:00 +01:00
Andreas Kling
b92e6b02e5
Kernel+LibC: Share definitions for sys/socket.h and sys/un.h
2021-08-14 19:58:11 +02:00