mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
sys/socket.h: Add "Socket"-level control message types
Signed-off-by: Huang Qi <huangqi3@xiaomi.com> Change-Id: I05f8dd29501f6b06cdd278e0e416f210a98aa6b0
This commit is contained in:
@@ -261,6 +261,12 @@
|
|||||||
#define CMSG_FIRSTHDR(msg) \
|
#define CMSG_FIRSTHDR(msg) \
|
||||||
__CMSG_FIRSTHDR((msg)->msg_control, (msg)->msg_controllen)
|
__CMSG_FIRSTHDR((msg)->msg_control, (msg)->msg_controllen)
|
||||||
|
|
||||||
|
/* "Socket"-level control message types: */
|
||||||
|
|
||||||
|
#define SCM_RIGHTS 0x01 /* rw: access rights (array of int) */
|
||||||
|
#define SCM_CREDENTIALS 0x02 /* rw: struct ucred */
|
||||||
|
#define SCM_SECURITY 0x03 /* rw: security label */
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Type Definitions
|
* Type Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user