Lines Matching defs:control
941 * Close all file descriptors contained in the control part starting at
945 so_closefds(void *control, t_uscalar_t controllen, int oldflg,
950 if (control == NULL)
954 close_fds(control, controllen, startoff);
957 /* Scan control part for file descriptors. */
958 for (cmsg = (struct cmsghdr *)control;
959 CMSG_VALID(cmsg, control, (uintptr_t)control + controllen);
973 * in the control buffer. Returns with *fdlenp == -1 if there are no
979 so_getfdopt(void *control, t_uscalar_t controllen, int oldflg,
986 if (control == NULL) {
993 *fdsp = control;
1005 for (cmsg = (struct cmsghdr *)control;
1006 CMSG_VALID(cmsg, control, (uintptr_t)control + controllen);
1031 so_optlen(void *control, t_uscalar_t controllen, int oldflg)
1037 if (control == NULL)
1044 for (cmsg = (struct cmsghdr *)control;
1045 CMSG_VALID(cmsg, control, (uintptr_t)control + controllen);
1062 * Copy options from control to the mblk. Skip any file descriptor options.
1065 so_cmsg2opt(void *control, t_uscalar_t controllen, int oldflg, mblk_t *mp)
1070 if (control == NULL)
1077 for (cmsg = (struct cmsghdr *)control;
1078 CMSG_VALID(cmsg, control, (uintptr_t)control + controllen);
1104 * Return the length of the control message derived from the options.
1177 * Copy options from options to the control. Convert SO_FILEP to
1186 void *control, t_uscalar_t controllen)
1195 (((uint8_t *)control) + ROUNDUP_cmsglen(controllen));
1197 cmsg = (struct cmsghdr *)control;
1212 ASSERT((uintptr_t)cmsg <= (uintptr_t)control + controllen);
1220 error = fdbuf_extract(fdbuf, control,
1290 /* copy content to control data part */
1298 control, controllen, (void *)cend, (void *)cmsg));