Lines Matching refs:cmsg
67 # define CMSG_DATA(cmsg) ((unsigned char *) ((uintptr_t) (cmsg) + sizeof(struct cmsghdr))) argument
976 const struct cmsghdr *cmsg = (const struct cmsghdr *)cmsghdr_c; in to_zval_read_cmsg_data() local
981 entry = get_ancillary_reg_entry(cmsg->cmsg_level, cmsg->cmsg_type); in to_zval_read_cmsg_data()
984 cmsg->cmsg_level, cmsg->cmsg_type); in to_zval_read_cmsg_data()
987 if (CMSG_LEN(entry->size) > cmsg->cmsg_len) { in to_zval_read_cmsg_data()
990 (zend_long)CMSG_LEN(entry->size), (zend_long)cmsg->cmsg_len); in to_zval_read_cmsg_data()
994 len = (size_t)cmsg->cmsg_len; /* use another var because type of cmsg_len varies */ in to_zval_read_cmsg_data()
1001 entry->to_array((const char *)CMSG_DATA(cmsg), zv, ctx); in to_zval_read_cmsg_data()
1021 struct cmsghdr *cmsg; in to_zval_read_control_array() local
1028 for (cmsg = CMSG_FIRSTHDR(msg); in to_zval_read_control_array()
1029 cmsg != NULL && !ctx->err.has_error; in to_zval_read_control_array()
1030 cmsg = CMSG_NXTHDR(msg, cmsg)) { in to_zval_read_control_array()
1041 to_zval_read_control((const char *)cmsg, elem, ctx); in to_zval_read_control_array()