forked from Imagelibrary/rtems
Cosmetics from FreeBSD.
This commit is contained in:
@@ -38,12 +38,15 @@
|
|||||||
#include <sys/queue.h> /* for TAILQ macros */
|
#include <sys/queue.h> /* for TAILQ macros */
|
||||||
#include <sys/select.h> /* for struct selinfo */
|
#include <sys/select.h> /* for struct selinfo */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Kernel structure per socket.
|
* Kernel structure per socket.
|
||||||
* Contains send and receive buffer queues,
|
* Contains send and receive buffer queues,
|
||||||
* handle on protocol and pointer to protocol
|
* handle on protocol and pointer to protocol
|
||||||
* private data and error information.
|
* private data and error information.
|
||||||
*/
|
*/
|
||||||
|
typedef u_quad_t so_gen_t;
|
||||||
|
|
||||||
struct socket {
|
struct socket {
|
||||||
short so_type; /* generic type, see socket.h */
|
short so_type; /* generic type, see socket.h */
|
||||||
short so_options; /* from socket call, see socket.h */
|
short so_options; /* from socket call, see socket.h */
|
||||||
@@ -77,7 +80,7 @@ struct socket {
|
|||||||
/*
|
/*
|
||||||
* Variables for socket buffering.
|
* Variables for socket buffering.
|
||||||
*/
|
*/
|
||||||
struct sockbuf {
|
struct sockbuf {
|
||||||
u_int sb_cc; /* actual chars in buffer */
|
u_int sb_cc; /* actual chars in buffer */
|
||||||
u_int sb_hiwat; /* max actual char count */
|
u_int sb_hiwat; /* max actual char count */
|
||||||
u_int sb_mbcnt; /* chars of mbufs used */
|
u_int sb_mbcnt; /* chars of mbufs used */
|
||||||
|
|||||||
Reference in New Issue
Block a user