Lines 1-5
Link Here
|
1 |
/* System-specific socket constants and types. Linux version. |
1 |
/* System-specific socket constants and types. Linux version. |
2 |
Copyright (C) 1991, 1992, 1994-2001, 2004, 2006, 2007, 2008, 2009 |
2 |
Copyright (C) 1991, 1992, 1994-2001, 2004, 2006, 2007, 2008, 2009, 2010 |
3 |
Free Software Foundation, Inc. |
3 |
Free Software Foundation, Inc. |
4 |
This file is part of the GNU C Library. |
4 |
This file is part of the GNU C Library. |
5 |
|
5 |
|
Lines 65-71
enum __socket_type
Link Here
|
65 |
SOCK_CLOEXEC = 010000000, /* Atomically set close-on-exec flag for the |
65 |
SOCK_CLOEXEC = 010000000, /* Atomically set close-on-exec flag for the |
66 |
new descriptor(s). */ |
66 |
new descriptor(s). */ |
67 |
#define SOCK_CLOEXEC SOCK_CLOEXEC |
67 |
#define SOCK_CLOEXEC SOCK_CLOEXEC |
68 |
#undef SOCK_NONBLOCK |
|
|
69 |
SOCK_NONBLOCK = 0x40000000 /* Atomically mark descriptor(s) as |
68 |
SOCK_NONBLOCK = 0x40000000 /* Atomically mark descriptor(s) as |
70 |
non-blocking. */ |
69 |
non-blocking. */ |
71 |
#define SOCK_NONBLOCK SOCK_NONBLOCK |
70 |
#define SOCK_NONBLOCK SOCK_NONBLOCK |
Lines 235-242
enum
Link Here
|
235 |
#define MSG_MORE MSG_MORE |
234 |
#define MSG_MORE MSG_MORE |
236 |
|
235 |
|
237 |
MSG_CMSG_CLOEXEC = 0x40000000 /* Set close_on_exit for file |
236 |
MSG_CMSG_CLOEXEC = 0x40000000 /* Set close_on_exit for file |
238 |
descriptor received through |
237 |
descriptor received through |
239 |
SCM_RIGHTS. */ |
238 |
SCM_RIGHTS. */ |
240 |
#define MSG_CMSG_CLOEXEC MSG_CMSG_CLOEXEC |
239 |
#define MSG_CMSG_CLOEXEC MSG_CMSG_CLOEXEC |
241 |
}; |
240 |
}; |
242 |
|
241 |
|
Lines 260-265
struct msghdr
Link Here
|
260 |
int msg_flags; /* Flags on received message. */ |
259 |
int msg_flags; /* Flags on received message. */ |
261 |
}; |
260 |
}; |
262 |
|
261 |
|
|
|
262 |
#ifdef __USE_GNU |
263 |
/* For `recvmmsg'. */ |
264 |
struct mmsghdr |
265 |
{ |
266 |
struct msghdr msg_hdr; /* Actual message header. */ |
267 |
unsigned int msg_len; /* Number of received bytes for the entry. */ |
268 |
}; |
269 |
#endif |
270 |
|
263 |
/* Structure used for storage of ancillary data object information. */ |
271 |
/* Structure used for storage of ancillary data object information. */ |
264 |
struct cmsghdr |
272 |
struct cmsghdr |
265 |
{ |
273 |
{ |
Lines 404-407
struct linger
Link Here
|
404 |
int l_linger; /* Time to linger. */ |
412 |
int l_linger; /* Time to linger. */ |
405 |
}; |
413 |
}; |
406 |
|
414 |
|
|
|
415 |
|
416 |
__BEGIN_DECLS |
417 |
|
418 |
/* Receive a message as described by MESSAGE from socket FD. |
419 |
Returns the number of bytes read or -1 for errors. |
420 |
|
421 |
This function is a cancellation point and therefore not marked with |
422 |
__THROW. */ |
423 |
extern int recvmmsg (int __fd, struct mmsghdr *__vmessages, |
424 |
unsigned int __vlen, int __flags, |
425 |
__const struct timespec *__tmo); |
426 |
|
427 |
__END_DECLS |
428 |
|
407 |
#endif /* bits/socket.h */ |
429 |
#endif /* bits/socket.h */ |
408 |
- |
|
|