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

#define AF_LOCAL   1

Definition at line 128 of file cmsg.h.

Referenced by Ipc::PathToAddress().

#define CMSG_ALIGN (   len)
Value:
(((len) + sizeof (size_t) - 1) \
& ~(sizeof (size_t) - 1))
int unsigned int const char *desc STUB void int len
Definition: stub_fd.cc:20

Definition at line 65 of file cmsg.h.

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

Definition at line 59 of file cmsg.h.

Referenced by Ipc::TypedMsgHdr::getFd(), Ipc::TypedMsgHdr::hasFd(), and Ipc::TypedMsgHdr::putFd().

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

Definition at line 77 of file cmsg.h.

Referenced by Ip::Qos::getTosFromServer(), and Ipc::TypedMsgHdr::putFd().

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

Definition at line 55 of file cmsg.h.

#define CMSG_SPACE (   len)
Value:
+ CMSG_ALIGN (sizeof (struct cmsghdr)))
#define CMSG_ALIGN(len)
Definition: cmsg.h:65
Definition: cmsg.h:35
int unsigned int const char *desc STUB void int len
Definition: stub_fd.cc:20

Definition at line 70 of file cmsg.h.

#define HAVE_CONSTANT_CMSG_SPACE   1

Definition at line 73 of file cmsg.h.

#define SCM_CREDENTIALS   2

Definition at line 121 of file cmsg.h.

#define SCM_RIGHTS   1
#define SCM_SECURITY   3

Definition at line 124 of file cmsg.h.

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

Definition at line 136 of file cmsg.h.

#define SUN_LEN (   ptr)
Value:
((size_t) (((struct sockaddr_un *) 0)->sun_path) \
+ strlen ((ptr)->sun_path))
int const char size_t
Definition: stub_liblog.cc:84

Definition at line 113 of file cmsg.h.

Referenced by Ipc::TypedMsgHdr::address(), and comm_open_uds().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors