cmsg.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cmsghdr
 
struct  iovec
 
struct  msghdr
 
struct  sockaddr_un
 

Macros

#define SQUID_CMSG_DATA(cmsg)   ((cmsg)->cmsg_data)
 
#define CMSG_NXTHDR(mhdr, X)   __cmsg_nxthdr (mhdr, X)
 
#define CMSG_FIRSTHDR(mhdr)
 
#define CMSG_ALIGN(len)
 
#define CMSG_SPACE(len)
 
#define HAVE_CONSTANT_CMSG_SPACE   1
 
#define CMSG_LEN(len)   (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
 
#define SUN_LEN(ptr)
 
#define SCM_RIGHTS   1
 
#define SCM_CREDENTIALS   2
 
#define SCM_SECURITY   3
 
#define AF_LOCAL   1
 
#define SQUID_CMSG_SPACE   CMSG_SPACE
 

Macro Definition Documentation

◆ AF_LOCAL

#define AF_LOCAL   1

Definition at line 128 of file cmsg.h.

◆ CMSG_ALIGN

#define CMSG_ALIGN (   len)
Value:
(((len) + sizeof (size_t) - 1) \
& ~(sizeof (size_t) - 1))

Definition at line 65 of file cmsg.h.

◆ CMSG_FIRSTHDR

#define CMSG_FIRSTHDR (   mhdr)
Value:
((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) \
? (struct cmsghdr *) (mhdr)->msg_control : (struct cmsghdr *) nullptr)
Definition: cmsg.h:35
int const char size_t
Definition: stub_liblog.cc:83

Definition at line 59 of file cmsg.h.

◆ CMSG_LEN

#define CMSG_LEN (   len)    (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))

Definition at line 77 of file cmsg.h.

◆ CMSG_NXTHDR

#define CMSG_NXTHDR (   mhdr,
 
)    __cmsg_nxthdr (mhdr, X)

Definition at line 55 of file cmsg.h.

◆ CMSG_SPACE

#define CMSG_SPACE (   len)
Value:
(CMSG_ALIGN (len) \
+ CMSG_ALIGN (sizeof (struct cmsghdr)))
#define CMSG_ALIGN(len)
Definition: cmsg.h:65

Definition at line 70 of file cmsg.h.

◆ HAVE_CONSTANT_CMSG_SPACE

#define HAVE_CONSTANT_CMSG_SPACE   1

Definition at line 73 of file cmsg.h.

◆ SCM_CREDENTIALS

#define SCM_CREDENTIALS   2

Definition at line 121 of file cmsg.h.

◆ SCM_RIGHTS

#define SCM_RIGHTS   1

Definition at line 118 of file cmsg.h.

◆ SCM_SECURITY

#define SCM_SECURITY   3

Definition at line 124 of file cmsg.h.

◆ SQUID_CMSG_DATA

#define SQUID_CMSG_DATA (   cmsg)    ((cmsg)->cmsg_data)

Definition at line 51 of file cmsg.h.

◆ SQUID_CMSG_SPACE

#define SQUID_CMSG_SPACE   CMSG_SPACE

Definition at line 136 of file cmsg.h.

◆ SUN_LEN

#define SUN_LEN (   ptr)
Value:
((size_t) (((struct sockaddr_un *) 0)->sun_path) \
+ strlen ((ptr)->sun_path))

Definition at line 113 of file cmsg.h.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors