MCPcopy Create free account
hub / github.com/qilingframework/qiling / make_cmsghdr

Function make_cmsghdr

qiling/os/posix/structs.py:109–119  ·  view source on GitHub ↗
(archbits: int, endian: QL_ENDIAN)

Source from the content-addressed store, hash-verified

107
108
109def make_cmsghdr(archbits: int, endian: QL_ENDIAN):
110 Struct = struct.get_aligned_struct(archbits, endian)
111
112 class cmsghdr(Struct):
113 _fields_ = (
114 ('cmsg_len', ctypes.c_int32),
115 ('cmsg_level', ctypes.c_int32),
116 ('cmsg_type', ctypes.c_int32)
117 )
118
119 return cmsghdr
120
121
122def make_iovec(archbits: int, endian: QL_ENDIAN):

Callers 1

ql_syscall_recvmsgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected