Home | History | Annotate | Download | only in tests-mx32

Lines Matching refs:len

44 get_peercred(int fd, void *val, socklen_t *len)
46 int rc = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, val, len);
77 TAIL_ALLOC_OBJECT_CONST_PTR(socklen_t, len);
103 *len = sizeof(*peercred);
104 get_peercred(sv[0], peercred, len);
109 printf("}, [%d]) = %s\n", *len, errstr);
112 *len = 0;
113 get_peercred(sv[0], peercred, len);
118 *len = sizeof(*peercred) + 1;
119 get_peercred(sv[0], peercred, len);
125 (unsigned int) sizeof(*peercred) + 1, *len, errstr);
131 *len = sizeof_pid_truncated;
132 get_peercred(sv[0], pid_truncated, len);
134 print_quoted_hex(pid_truncated, *len);
135 printf("}, [%d]) = %s\n", *len, errstr);
141 *len = sizeof_pid;
142 get_peercred(sv[0], pid, len);
145 printf("}, [%d]) = %s\n", *len, errstr);
152 *len = sizeof_uid_truncated;
153 get_peercred(sv[0], uid_truncated, len);
164 printf("}, [%d]) = %s\n", *len, errstr);
170 *len = sizeof_uid;
171 get_peercred(sv[0], uid, len);
175 printf("}, [%d]) = %s\n", *len, errstr);
182 *len = sizeof_gid_truncated;
183 get_peercred(sv[0], gid_truncated, len);
195 printf("}, [%d]) = %s\n", *len, errstr);
198 *len = sizeof(*peercred);
199 get_peercred(sv[0], &peercred->uid, len);
201 sv[0], so_str(), &peercred->uid, *len, errstr);
204 get_peercred(sv[0], peercred, len + 1);
206 sv[0], so_str(), peercred, len + 1, errstr);