|
webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#include <sys/uio.h>Go to the source code of this file.
Classes | |
| struct | proc |
| struct | uio |
| struct | socket |
| struct | socket::sockbuf |
| struct | socket::so_accf |
| struct | xsocket |
| struct | xsocket::xsockbuf |
Macros | |
| #define | SOCK_MAXADDRLEN 255 |
| #define | MSG_NOTIFICATION 0x2000 /* SCTP notification */ |
| #define | SCTP_SO_LINGER 0x0001 |
| #define | SCTP_SO_ACCEPTCONN 0x0002 |
| #define | SS_CANTRCVMORE 0x020 |
| #define | SS_CANTSENDMORE 0x010 |
| #define | sb_startzero sb_mb |
| #define | SB_MAX (256*1024) /* default for max chars in sockbuf */ |
| #define | SB_RAW (64*1024*2) /*Aligning so->so_rcv.sb_hiwat with the receive buffer size of raw socket*/ |
| #define | SB_WAIT 0x04 /* someone is waiting for data/space */ |
| #define | SB_SEL 0x08 /* someone is selecting */ |
| #define | SB_ASYNC 0x10 /* ASYNC I/O, need signals */ |
| #define | SB_UPCALL 0x20 /* someone wants an upcall */ |
| #define | SB_NOINTR 0x40 /* operations not interruptible */ |
| #define | SB_AIO 0x80 /* AIO operations queued */ |
| #define | SB_KNOTE 0x100 /* kernel note attached */ |
| #define | SB_AUTOSIZE 0x800 /* automatically size socket buffer */ |
| #define | SB_EMPTY_FIXUP(sb) |
| #define | ACCEPT_LOCK() (void)pthread_mutex_lock(&accept_mtx) |
| #define | ACCEPT_UNLOCK() (void)pthread_mutex_unlock(&accept_mtx) |
| #define | ACCEPT_LOCK_ASSERT() KASSERT(pthread_mutex_trylock(&accept_mtx) == EBUSY, ("%s: accept_mtx not locked", __func__)) |
| #define | ACCEPT_UNLOCK_ASSERT() |
| #define | SOCKBUF_MTX(_sb) (&(_sb)->sb_mtx) |
| #define | SOCKBUF_LOCK_INIT(_sb, _name) pthread_mutex_init(SOCKBUF_MTX(_sb), NULL) |
| #define | SOCKBUF_LOCK_DESTROY(_sb) pthread_mutex_destroy(SOCKBUF_MTX(_sb)) |
| #define | SOCKBUF_COND_INIT(_sb) pthread_cond_init((&(_sb)->sb_cond), NULL) |
| #define | SOCKBUF_COND_DESTROY(_sb) pthread_cond_destroy((&(_sb)->sb_cond)) |
| #define | SOCK_COND_INIT(_so) pthread_cond_init((&(_so)->timeo_cond), NULL) |
| #define | SOCK_COND_DESTROY(_so) pthread_cond_destroy((&(_so)->timeo_cond)) |
| #define | SOCK_COND(_so) (&(_so)->timeo_cond) |
| #define | SOCK_MTX(_so) SOCKBUF_MTX(&(_so)->so_rcv) |
| #define | SOCK_LOCK_ASSERT(_so) SOCKBUF_LOCK_ASSERT(&(_so)->so_rcv) |
| #define | SS_NOFDREF 0x0001 /* no file table ref any more */ |
| #define | SS_ISCONNECTED 0x0002 /* socket connected to a peer */ |
| #define | SS_ISCONNECTING 0x0004 /* in process of connecting to peer */ |
| #define | SS_ISDISCONNECTING 0x0008 /* in process of disconnecting */ |
| #define | SS_NBIO 0x0100 /* non-blocking ops */ |
| #define | SS_ASYNC 0x0200 /* async i/o notify */ |
| #define | SS_ISCONFIRMING 0x0400 /* deciding to accept connection req */ |
| #define | SS_ISDISCONNECTED 0x2000 /* socket disconnected from peer */ |
| #define | SS_PROTOREF 0x4000 /* strong protocol reference */ |
| #define | SBS_CANTSENDMORE 0x0010 /* can't send more data to peer */ |
| #define | SBS_CANTRCVMORE 0x0020 /* can't receive more data from peer */ |
| #define | SBS_RCVATMARK 0x0040 /* at mark on input */ |
| #define | SQ_INCOMP 0x0800 /* unaccepted, incomplete connection */ |
| #define | SQ_COMP 0x1000 /* unaccepted, complete connection */ |
Enumerations | |
| enum | uio_rw { UIO_READ, UIO_WRITE } |
| enum | uio_seg { UIO_USERSPACE, UIO_SYSSPACE } |
Functions | |
| MALLOC_DECLARE (M_ACCF) | |
| MALLOC_DECLARE (M_PCB) | |
| MALLOC_DECLARE (M_SONAME) | |
Variables | |
| userland_mutex_t | accept_mtx |
| userland_cond_t | accept_cond |
| #define ACCEPT_LOCK | ( | ) | (void)pthread_mutex_lock(&accept_mtx) |
| #define ACCEPT_LOCK_ASSERT | ( | ) | KASSERT(pthread_mutex_trylock(&accept_mtx) == EBUSY, ("%s: accept_mtx not locked", __func__)) |
| #define ACCEPT_UNLOCK | ( | ) | (void)pthread_mutex_unlock(&accept_mtx) |
| #define ACCEPT_UNLOCK_ASSERT | ( | ) |
| #define MSG_NOTIFICATION 0x2000 /* SCTP notification */ |
| #define SB_AIO 0x80 /* AIO operations queued */ |
| #define SB_ASYNC 0x10 /* ASYNC I/O, need signals */ |
| #define SB_AUTOSIZE 0x800 /* automatically size socket buffer */ |
| #define SB_EMPTY_FIXUP | ( | sb | ) |
| #define SB_KNOTE 0x100 /* kernel note attached */ |
| #define SB_NOINTR 0x40 /* operations not interruptible */ |
| #define SB_RAW (64*1024*2) /*Aligning so->so_rcv.sb_hiwat with the receive buffer size of raw socket*/ |
| #define SB_SEL 0x08 /* someone is selecting */ |
| #define sb_startzero sb_mb |
| #define SB_UPCALL 0x20 /* someone wants an upcall */ |
| #define SB_WAIT 0x04 /* someone is waiting for data/space */ |
| #define SBS_CANTRCVMORE 0x0020 /* can't receive more data from peer */ |
| #define SBS_CANTSENDMORE 0x0010 /* can't send more data to peer */ |
| #define SBS_RCVATMARK 0x0040 /* at mark on input */ |
| #define SCTP_SO_ACCEPTCONN 0x0002 |
| #define SCTP_SO_LINGER 0x0001 |
| #define SOCK_COND | ( | _so | ) | (&(_so)->timeo_cond) |
| #define SOCK_COND_DESTROY | ( | _so | ) | pthread_cond_destroy((&(_so)->timeo_cond)) |
| #define SOCK_COND_INIT | ( | _so | ) | pthread_cond_init((&(_so)->timeo_cond), NULL) |
| #define SOCK_LOCK_ASSERT | ( | _so | ) | SOCKBUF_LOCK_ASSERT(&(_so)->so_rcv) |
| #define SOCK_MAXADDRLEN 255 |
| #define SOCK_MTX | ( | _so | ) | SOCKBUF_MTX(&(_so)->so_rcv) |
| #define SOCKBUF_COND_DESTROY | ( | _sb | ) | pthread_cond_destroy((&(_sb)->sb_cond)) |
| #define SOCKBUF_COND_INIT | ( | _sb | ) | pthread_cond_init((&(_sb)->sb_cond), NULL) |
| #define SOCKBUF_LOCK_DESTROY | ( | _sb | ) | pthread_mutex_destroy(SOCKBUF_MTX(_sb)) |
| #define SOCKBUF_LOCK_INIT | ( | _sb, | |
| _name | |||
| ) | pthread_mutex_init(SOCKBUF_MTX(_sb), NULL) |
| #define SOCKBUF_MTX | ( | _sb | ) | (&(_sb)->sb_mtx) |
| #define SQ_COMP 0x1000 /* unaccepted, complete connection */ |
| #define SQ_INCOMP 0x0800 /* unaccepted, incomplete connection */ |
| #define SS_ASYNC 0x0200 /* async i/o notify */ |
| #define SS_CANTRCVMORE 0x020 |
| #define SS_CANTSENDMORE 0x010 |
| #define SS_ISCONFIRMING 0x0400 /* deciding to accept connection req */ |
| #define SS_ISCONNECTED 0x0002 /* socket connected to a peer */ |
| #define SS_ISCONNECTING 0x0004 /* in process of connecting to peer */ |
| #define SS_ISDISCONNECTED 0x2000 /* socket disconnected from peer */ |
| #define SS_ISDISCONNECTING 0x0008 /* in process of disconnecting */ |
| #define SS_NBIO 0x0100 /* non-blocking ops */ |
| #define SS_NOFDREF 0x0001 /* no file table ref any more */ |
| #define SS_PROTOREF 0x4000 /* strong protocol reference */ |
| MALLOC_DECLARE | ( | M_ACCF | ) |
| MALLOC_DECLARE | ( | M_PCB | ) |
| MALLOC_DECLARE | ( | M_SONAME | ) |
| userland_cond_t accept_cond |
| userland_mutex_t accept_mtx |
1.8.13