Lines Matching full:if

42 	if (err < 0)  in os_stat_fd()
45 if (ubuf != NULL) in os_stat_fd()
56 if (err < 0) in os_stat_file()
59 if (ubuf != NULL) in os_stat_file()
74 if (err < 0) in os_access()
86 if (err < 0) in os_ioctl_generic()
95 if (ioctl(fd, SIOCGIFNAME, namebuf) < 0) in os_get_ifname()
106 if (ioctl(fd, TIOCSETD, &disc) < 0) in os_set_slip()
110 if (ioctl(fd, SIOCSIFENCAP, &sencap) < 0) in os_set_slip()
121 if (err < 0) in os_mode_fd()
133 if (err < 0) in os_file_type()
136 if (S_ISDIR(buf.ust_mode)) in os_file_type()
138 else if (S_ISLNK(buf.ust_mode)) in os_file_type()
140 else if (S_ISCHR(buf.ust_mode)) in os_file_type()
142 else if (S_ISBLK(buf.ust_mode)) in os_file_type()
144 else if (S_ISFIFO(buf.ust_mode)) in os_file_type()
146 else if (S_ISSOCK(buf.ust_mode)) in os_file_type()
158 if (err && (errno != EACCES)) in os_file_mode()
160 else if (!err) in os_file_mode()
164 if (err && (errno != EACCES)) in os_file_mode()
166 else if (!err) in os_file_mode()
176 if (flags.r && flags.w) in os_open_file()
178 else if (flags.r) in os_open_file()
180 else if (flags.w) in os_open_file()
184 if (flags.s) in os_open_file()
186 if (flags.c) in os_open_file()
188 if (flags.t) in os_open_file()
190 if (flags.e) in os_open_file()
192 if (flags.a) in os_open_file()
196 if (fd < 0) in os_open_file()
199 if (flags.cl && fcntl(fd, F_SETFD, 1)) { in os_open_file()
217 if (fd < 0) { in os_connect_socket()
223 if (err) { in os_connect_socket()
246 if (actual != offset) in os_seek_file()
255 if (n < 0) in os_read_file()
264 if (n < 0) in os_write_file()
275 if (err < 0) { in os_file_size()
281 if (S_ISBLK(buf.ust_mode)) { in os_file_size()
286 if (fd < 0) { in os_file_size()
292 if (ioctl(fd, BLKGETSIZE, &blocks) < 0) { in os_file_size()
313 if (err < 0) { in os_file_modtime()
329 if (err < 0) in os_set_exec_close()
339 if (err < 0) in os_pipe()
342 if (!close_on_exec) in os_pipe()
346 if (err < 0) in os_pipe()
350 if (err < 0) in os_pipe()
368 if (flags < 0) in os_set_fd_async()
372 if (fcntl(fd, F_SETFL, flags) < 0) { in os_set_fd_async()
379 if ((fcntl(fd, F_SETSIG, SIGIO) < 0) || in os_set_fd_async()
395 if (flags < 0) in os_clear_fd_async()
399 if (fcntl(fd, F_SETFL, flags) < 0) in os_clear_fd_async()
409 if (flags < 0) in os_set_fd_block()
412 if (blocking) in os_set_fd_block()
417 if (fcntl(fd, F_SETFL, flags) < 0) in os_set_fd_block()
428 if (new < 0) in os_accept_connection()
449 if (r && w) in os_shutdown_socket()
451 else if (r) in os_shutdown_socket()
453 else if (w) in os_shutdown_socket()
459 if (err < 0) in os_shutdown_socket()
483 if (n < 0) in os_rcv_fd()
485 else if (n != iov.iov_len) in os_rcv_fd()
489 if (cmsg == NULL) { in os_rcv_fd()
494 if ((cmsg->cmsg_level != SOL_SOCKET) || in os_rcv_fd()
510 if (sock < 0) in os_create_unix_socket()
513 if (close_on_exec) { in os_create_unix_socket()
515 if (err < 0) in os_create_unix_socket()
525 if (err < 0) in os_create_unix_socket()
546 if (!err) in os_lock_file()
551 if (err) { in os_lock_file()