• Home
  • Raw
  • Download

Lines Matching refs:rval

110 	int rval, ttype;  in safe_socket()  local
112 rval = socket(domain, type, protocol); in safe_socket()
114 if (rval < 0) { in safe_socket()
132 return rval; in safe_socket()
138 int rval = getsockopt(sockfd, level, optname, optval, optlen); in safe_getsockopt() local
140 if (!rval) in safe_getsockopt()
147 return rval; in safe_getsockopt()
153 int rval; in safe_setsockopt() local
155 rval = setsockopt(sockfd, level, optname, optval, optlen); in safe_setsockopt()
157 if (rval) { in safe_setsockopt()
163 return rval; in safe_setsockopt()
169 ssize_t rval; in safe_send() local
171 rval = send(sockfd, buf, len, flags); in safe_send()
173 if (rval == -1 || (len_strict && (size_t)rval != len)) { in safe_send()
179 return rval; in safe_send()
186 ssize_t rval; in safe_sendto() local
189 rval = sendto(sockfd, buf, len, flags, dest_addr, addrlen); in safe_sendto()
191 if (rval == -1 || (len_strict && (size_t)rval != len)) { in safe_sendto()
199 return rval; in safe_sendto()
205 ssize_t rval; in safe_sendmsg() local
207 rval = sendmsg(sockfd, msg, flags); in safe_sendmsg()
209 if (rval == -1) { in safe_sendmsg()
215 if (len && (size_t)rval != len) { in safe_sendmsg()
218 file, lineno, sockfd, msg, flags, rval, len); in safe_sendmsg()
221 return rval; in safe_sendmsg()
227 ssize_t rval; in safe_recvmsg() local
229 rval = recvmsg(sockfd, msg, flags); in safe_recvmsg()
231 if (rval == -1) { in safe_recvmsg()
237 if (len && (size_t)rval != len) { in safe_recvmsg()
240 file, lineno, sockfd, msg, flags, rval, len); in safe_recvmsg()
243 return rval; in safe_recvmsg()
286 int rval; in safe_listen() local
288 rval = listen(socket, backlog); in safe_listen()
290 if (rval < 0) { in safe_listen()
296 return rval; in safe_listen()
302 int rval; in safe_connect() local
305 rval = connect(sockfd, addr, addrlen); in safe_connect()
307 if (rval < 0) { in safe_connect()
314 return rval; in safe_connect()
321 int rval; in safe_getsockname() local
324 rval = getsockname(sockfd, addr, addrlen); in safe_getsockname()
326 if (rval < 0) { in safe_getsockname()
333 return rval; in safe_getsockname()
339 int rval = gethostname(name, size); in safe_gethostname() local
341 if (rval < 0) { in safe_gethostname()
347 return rval; in safe_gethostname()