|
|
| version 1.11, 2004/03/27 11:48:48 | version 1.12, 2004/04/10 00:48:06 |
|---|---|
| Line 107 struct socket { | Line 107 struct socket { |
| #define SB_NOINTR 0x40 /* operations not interruptible */ | #define SB_NOINTR 0x40 /* operations not interruptible */ |
| #define SB_AIO 0x80 /* AIO operations queued */ | #define SB_AIO 0x80 /* AIO operations queued */ |
| #define SB_KNOTE 0x100 /* kernel note attached */ | #define SB_KNOTE 0x100 /* kernel note attached */ |
| #define SB_MEVENT 0x200 /* need message event notification */ | |
| void (*so_upcall) (struct socket *, void *, int); | void (*so_upcall) (struct socket *, void *, int); |
| void *so_upcallarg; | void *so_upcallarg; |
| Line 179 struct xsocket { | Line 180 struct xsocket { |
| /* | /* |
| * Do we need to notify the other side when I/O is possible? | * Do we need to notify the other side when I/O is possible? |
| */ | */ |
| #define sb_notify(sb) (((sb)->sb_flags & (SB_WAIT | SB_SEL | SB_ASYNC | \ | #define sb_notify(sb) \ |
| SB_UPCALL | SB_AIO | SB_KNOTE)) != 0) | (((sb)->sb_flags & \ |
| (SB_WAIT | SB_SEL | SB_ASYNC | SB_UPCALL | SB_AIO | SB_KNOTE | SB_MEVENT))) | |
| /* | /* |
| * How much space is there in a socket buffer (so->so_snd or so->so_rcv)? | * How much space is there in a socket buffer (so->so_snd or so->so_rcv)? |