mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
localsocket: fix cmsg
This commit is contained in:
@@ -89,6 +89,7 @@ typedef struct {
|
||||
#define SOCK_DGRAM 2
|
||||
#define SOCK_RAW 3
|
||||
|
||||
#define MSG_CMSG_CLOEXEC 0x40000000
|
||||
#define MSG_CTRUNC 0x8
|
||||
#define MSG_PEEK 2
|
||||
#define MSG_WAITALL 0x100
|
||||
|
||||
@@ -28,7 +28,7 @@ int fd_dup(int oldfd, int newfd, bool exact, int flags, int *ret);
|
||||
int fd_clone(proc_t *proc);
|
||||
int fd_setflags(int fd, int flags);
|
||||
int fd_getflags(int fd, int *flags);
|
||||
int fd_insert(file_t *file, int *fdp);
|
||||
int fd_insert(file_t *file, int *fdp, int flags);
|
||||
|
||||
#define FILE_LOCK(x) MUTEX_ACQUIRE(&(x)->mutex)
|
||||
#define FILE_UNLOCK(x) MUTEX_RELEASE(&(x)->mutex)
|
||||
|
||||
@@ -51,6 +51,7 @@ typedef struct {
|
||||
#define SOCKET_RECV_FLAGS_PEEK 0x8000000000000000l
|
||||
#define SOCKET_RECV_FLAGS_WAITALL 0x4000000000000000l
|
||||
#define SOCKET_RECV_FLAGS_CTRLTRUNCATED 0x2000000000000000l
|
||||
#define SOCKET_RECV_FLAGS_CLOEXEC_CTRL 0x1000000000000000l
|
||||
#define SOCKET_SEND_FLAGS_NOSIGNAL 0x8000000000000000l
|
||||
|
||||
typedef struct socketops_t {
|
||||
|
||||
Reference in New Issue
Block a user