Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linux/linux_socket.h
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | |||||
#define LINUX_SOCK_NONBLOCK LINUX_O_NONBLOCK | #define LINUX_SOCK_NONBLOCK LINUX_O_NONBLOCK | ||||
struct l_ucred { | struct l_ucred { | ||||
uint32_t pid; | uint32_t pid; | ||||
uint32_t uid; | uint32_t uid; | ||||
uint32_t gid; | uint32_t gid; | ||||
}; | }; | ||||
#if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) | #if defined(__i386__) || defined(__arm__) || \ | ||||
(defined(__amd64__) && defined(COMPAT_LINUX32)) | |||||
struct linux_accept_args { | struct linux_accept_args { | ||||
register_t s; | register_t s; | ||||
register_t addr; | register_t addr; | ||||
register_t namelen; | register_t namelen; | ||||
}; | }; | ||||
int linux_accept(struct thread *td, struct linux_accept_args *args); | int linux_accept(struct thread *td, struct linux_accept_args *args); | ||||
Show All 13 Lines | |||||
#define LINUX_SHUTDOWN 13 | #define LINUX_SHUTDOWN 13 | ||||
#define LINUX_SETSOCKOPT 14 | #define LINUX_SETSOCKOPT 14 | ||||
#define LINUX_GETSOCKOPT 15 | #define LINUX_GETSOCKOPT 15 | ||||
#define LINUX_SENDMSG 16 | #define LINUX_SENDMSG 16 | ||||
#define LINUX_RECVMSG 17 | #define LINUX_RECVMSG 17 | ||||
#define LINUX_ACCEPT4 18 | #define LINUX_ACCEPT4 18 | ||||
#define LINUX_RECVMMSG 19 | #define LINUX_RECVMMSG 19 | ||||
#define LINUX_SENDMMSG 20 | #define LINUX_SENDMMSG 20 | ||||
#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */ | #define LINUX_SENDFILE 21 | ||||
#endif /* __i386__ || __arm__ || (__amd64__ && COMPAT_LINUX32) */ | |||||
/* Socket defines */ | /* Socket defines */ | ||||
#define LINUX_SOL_SOCKET 1 | #define LINUX_SOL_SOCKET 1 | ||||
#define LINUX_SOL_IP 0 | #define LINUX_SOL_IP 0 | ||||
#define LINUX_SOL_TCP 6 | #define LINUX_SOL_TCP 6 | ||||
#define LINUX_SOL_UDP 17 | #define LINUX_SOL_UDP 17 | ||||
#define LINUX_SOL_IPV6 41 | #define LINUX_SOL_IPV6 41 | ||||
#define LINUX_SOL_IPX 256 | #define LINUX_SOL_IPX 256 | ||||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |