Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/socketvar.h
Show First 20 Lines • Show All 315 Lines • ▼ Show 20 Lines | struct socket_hhook_data { | ||||
int status; | int status; | ||||
}; | }; | ||||
extern int maxsockets; | extern int maxsockets; | ||||
extern u_long sb_max; | extern u_long sb_max; | ||||
extern so_gen_t so_gencnt; | extern so_gen_t so_gencnt; | ||||
struct file; | struct file; | ||||
struct filecaps; | |||||
struct filedesc; | struct filedesc; | ||||
struct mbuf; | struct mbuf; | ||||
struct sockaddr; | struct sockaddr; | ||||
struct ucred; | struct ucred; | ||||
struct uio; | struct uio; | ||||
/* 'which' values for socket upcalls. */ | /* 'which' values for socket upcalls. */ | ||||
#define SO_RCV 1 | #define SO_RCV 1 | ||||
#define SO_SND 2 | #define SO_SND 2 | ||||
/* Return values for socket upcalls. */ | /* Return values for socket upcalls. */ | ||||
#define SU_OK 0 | #define SU_OK 0 | ||||
#define SU_ISCONNECTED 1 | #define SU_ISCONNECTED 1 | ||||
/* | /* | ||||
* From uipc_socket and friends | * From uipc_socket and friends | ||||
*/ | */ | ||||
int getsockaddr(struct sockaddr **namp, caddr_t uaddr, size_t len); | int getsockaddr(struct sockaddr **namp, caddr_t uaddr, size_t len); | ||||
int getsock_cap(struct thread *td, int fd, cap_rights_t *rightsp, | int getsock_cap(struct thread *td, int fd, cap_rights_t *rightsp, | ||||
struct file **fpp, u_int *fflagp); | struct file **fpp, u_int *fflagp, struct filecaps *havecaps); | ||||
void soabort(struct socket *so); | void soabort(struct socket *so); | ||||
int soaccept(struct socket *so, struct sockaddr **nam); | int soaccept(struct socket *so, struct sockaddr **nam); | ||||
void soaio_enqueue(struct task *task); | void soaio_enqueue(struct task *task); | ||||
void soaio_rcv(void *context, int pending); | void soaio_rcv(void *context, int pending); | ||||
void soaio_snd(void *context, int pending); | void soaio_snd(void *context, int pending); | ||||
int socheckuid(struct socket *so, uid_t uid); | int socheckuid(struct socket *so, uid_t uid); | ||||
int sobind(struct socket *so, struct sockaddr *nam, struct thread *td); | int sobind(struct socket *so, struct sockaddr *nam, struct thread *td); | ||||
int sobindat(int fd, struct socket *so, struct sockaddr *nam, | int sobindat(int fd, struct socket *so, struct sockaddr *nam, | ||||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |