Lines Matching refs:sockfd
84 int tst_getsockport(const char *file, const int lineno, int sockfd) in tst_getsockport() argument
90 safe_getsockname(file, lineno, NULL, sockfd, sa, &addrlen); in tst_getsockport()
161 int safe_getsockopt(const char *file, const int lineno, int sockfd, int level, in safe_getsockopt() argument
164 int rval = getsockopt(sockfd, level, optname, optval, optlen); in safe_getsockopt()
171 file, lineno, sockfd, level, optname, optval, optlen); in safe_getsockopt()
176 int safe_setsockopt(const char *file, const int lineno, int sockfd, int level, in safe_setsockopt() argument
181 rval = setsockopt(sockfd, level, optname, optval, optlen); in safe_setsockopt()
186 file, lineno, sockfd, level, optname, optval, optlen); in safe_setsockopt()
193 int sockfd, const void *buf, size_t len, int flags) in safe_send() argument
197 rval = send(sockfd, buf, len, flags); in safe_send()
202 file, lineno, sockfd, buf, len, flags); in safe_send()
209 int sockfd, const void *buf, size_t len, int flags, in safe_sendto() argument
215 rval = sendto(sockfd, buf, len, flags, dest_addr, addrlen); in safe_sendto()
220 file, lineno, sockfd, buf, len, flags, in safe_sendto()
229 int sockfd, const struct msghdr *msg, int flags) in safe_sendmsg() argument
233 rval = sendmsg(sockfd, msg, flags); in safe_sendmsg()
238 file, lineno, sockfd, msg, flags); in safe_sendmsg()
244 file, lineno, sockfd, msg, flags, rval, len); in safe_sendmsg()
251 int sockfd, struct msghdr *msg, int flags) in safe_recvmsg() argument
255 rval = recvmsg(sockfd, msg, flags); in safe_recvmsg()
260 file, lineno, sockfd, msg, flags); in safe_recvmsg()
266 file, lineno, sockfd, msg, flags, rval, len); in safe_recvmsg()
326 int sockfd, struct sockaddr *addr, socklen_t *addrlen) in safe_accept() argument
330 rval = accept(sockfd, addr, addrlen); in safe_accept()
335 sockfd, addr, *addrlen); in safe_accept()
342 int sockfd, const struct sockaddr *addr, socklen_t addrlen) in safe_connect() argument
347 rval = connect(sockfd, addr, addrlen); in safe_connect()
352 sockfd, tst_sock_addr(addr, addrlen, buf, in safe_connect()
360 void (cleanup_fn)(void), int sockfd, struct sockaddr *addr, in safe_getsockname() argument
366 rval = getsockname(sockfd, addr, addrlen); in safe_getsockname()
371 sockfd, tst_sock_addr(addr, *addrlen, buf, in safe_getsockname()