| /freebsd-12.1/tools/regression/capsicum/syscalls/ |
| H A D | cap_fcntls_limit.c | 48 fcntl_tests_0(int fd) in fcntl_tests_0() argument 157 fcntl_tests_1(int fd) in fcntl_tests_1() argument 209 fcntl_tests_2(int fd) in fcntl_tests_2() argument 258 int fd; in fcntl_tests_send_0() local 284 int fd; in fcntl_tests_recv_0() local 413 int fd, pfd, sp[2]; in main() local 419 fcntl_tests_0(fd); in main() 423 fcntl_tests_1(fd); in main() 427 fcntl_tests_2(fd); in main() 434 fcntl_tests_0(fd); in main() [all …]
|
| H A D | cap_ioctls_limit.c | 50 ioctl_tests_0(int fd) in ioctl_tests_0() argument 131 ioctl_tests_1(int fd) in ioctl_tests_1() argument 177 ioctl_tests_2(int fd) in ioctl_tests_2() argument 219 int fd; in ioctl_tests_send_0() local 248 int fd; in ioctl_tests_recv_0() local 319 int fd, pfd, sp[2]; in main() local 325 ioctl_tests_0(fd); in main() 329 ioctl_tests_1(fd); in main() 333 ioctl_tests_2(fd); in main() 343 ioctl_tests_0(fd); in main() [all …]
|
| /freebsd-12.1/tools/regression/poll/ |
| H A D | pipeselect.c | 69 if (fd < 0) in child() 194 fd1 = fd; in child() 195 fd = fd2; in child() 200 fd = fd1; in child() 211 close(fd); in child() 218 parent(int fd) in parent() argument 225 if (fd < 0) in parent() 250 if (fd < 0) in parent() 276 int fd[2], num; in main() local 288 fd[0] = -1; in main() [all …]
|
| /freebsd-12.1/lib/libgeom/ |
| H A D | geom_util.c | 56 int fd; in g_open() local 61 return (fd); in g_open() 205 int fd; in g_get_name() local 210 g_close(fd); in g_get_name() 234 fd = -1; in g_open_by_ident() 267 return (fd); in g_open_by_ident() 279 int fd; in g_device_path_open() local 289 close(fd); in g_device_path_open() 314 close(fd); in g_device_path_open() 319 *fdp = fd; in g_device_path_open() [all …]
|
| /freebsd-12.1/sys/dev/fdc/ |
| H A D | fdc.c | 314 fd->sectorsize = 128 << fd->ft->secsize; in fdsettype() 736 fd = fdc->fd; in fdc_biodone() 776 fd = fdc->fd; in fdc_worker() 834 fd = fdc->fd = bp->bio_driver1; in fdc_worker() 895 i = fd->ft->sectrac * fd->ft->heads; in fdc_worker() 909 fd->fd_iosize = fd->sectorsize; in fdc_worker() 1131 fd->fd_ioptr += fd->fd_iosize; in fdc_worker() 1468 pp->stripesize = fd->ft->heads * fd->ft->sectrac * fd->sectorsize; in fd_access() 1524 fdsettype(fd, &fd->fts); in fd_ioctl() 1950 fdc->fd = fd; in fd_probe() [all …]
|
| /freebsd-12.1/tools/tools/ath/athprom/ |
| H A D | athprom.c | 77 FILE *fd; in opentemplate() local 91 return fd; in opentemplate() 97 FILE *fd = NULL; in main() local 116 if (fd == NULL) in main() 173 fclose(fd); in main() 233 c = getc(fd); in token() 237 ungetc(c, fd); in token() 259 c = getc(fd); in skipto() 270 c = getc(fd); in skipto() 285 skipws(FILE *fd) in skipws() argument [all …]
|
| /freebsd-12.1/libexec/tftpd/tests/ |
| H A D | functional.c | 383 int fd; variable 426 int fd; variable 444 int fd; variable 467 int fd; variable 498 int fd; variable 525 int fd; variable 540 int fd; variable 556 int fd; variable 580 int fd; variable 641 int fd; variable [all …]
|
| /freebsd-12.1/contrib/netbsd-tests/fs/vfs/ |
| H A D | t_io.c | 53 int fd; in holywrite() local 75 rump_sys_close(fd); in holywrite() 84 int fd; in extendbody() local 121 int fd; in overwritebody() local 161 int fd; in shrinkfile() local 167 rump_sys_close(fd); in shrinkfile() 176 int fd; in read_after_unlink() local 184 rump_sys_close(fd); in read_after_unlink() 194 rump_sys_close(fd); in read_after_unlink() 204 int fd; in wrrd_after_unlink() local [all …]
|
| /freebsd-12.1/sbin/sconfig/ |
| H A D | sconfig.c | 927 int fd; in get_mask() local 938 close (fd); in get_mask() 943 for (i=0, fd=-1; i<12 && fd<0; i++) { in get_mask() 974 close (fd); in get_mask() 1007 int fd; in open_chan_ctl() local 1046 return fd; in open_chan_ctl() 1180 close (fd); in main() 1185 close (fd); in main() 1190 close (fd); in main() 1195 close (fd); in main() [all …]
|
| /freebsd-12.1/tests/sys/fs/fusefs/ |
| H A D | write.cc | 210 int fd; in TEST_F() local 253 int fd; in TEST_F() local 280 int fd; in TEST_F() local 313 int fd; in TEST_F() local 334 int fd; in TEST_F() local 376 int fd; in TEST_F() local 404 int fd; in TEST_F() local 432 int fd; in TEST_F() local 463 int fd; in TEST_F() local 499 int fd; in TEST_F() local [all …]
|
| H A D | locks.cc | 124 int fd; in TEST_F() local 145 int fd; in TEST_F() local 163 int fd; in TEST_F() local 182 int fd; in TEST_F() local 205 int fd; in TEST_F() local 232 int fd; in TEST_F() local 275 int fd; in TEST_F() local 329 int fd; in TEST_F() local 353 int fd; in TEST_F() local 379 int fd; in TEST_F() local [all …]
|
| /freebsd-12.1/contrib/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_fd.cc | 47 return fd < 0 || fd >= kTableSize; in bogusfd() 75 CHECK_GE(fd, 0); in fddesc() 161 if (bogusfd(fd)) in FdAcquire() 172 if (bogusfd(fd)) in FdRelease() 184 if (bogusfd(fd)) in FdAccess() 192 if (bogusfd(fd)) in FdClose() 220 if (bogusfd(fd)) in FdFileCreate() 246 if (bogusfd(fd)) in FdEventCreate() 253 if (bogusfd(fd)) in FdSignalCreate() 260 if (bogusfd(fd)) in FdInotifyCreate() [all …]
|
| /freebsd-12.1/lib/libfigpar/ |
| H A D | figpar.c | 107 int fd; in parse_config() local 162 close(fd); in parse_config() 169 close(fd); in parse_config() 188 close(fd); in parse_config() 195 close(fd); in parse_config() 254 close(fd); in parse_config() 361 close(fd); in parse_config() 373 close(fd); in parse_config() 406 close(fd); in parse_config() 413 close(fd); in parse_config() [all …]
|
| /freebsd-12.1/tests/sys/posixshm/ |
| H A D | posixshm_test.c | 69 int fd; in shm_open_should_fail() local 144 close(fd); in ATF_TC_BODY() 161 close(fd); in ATF_TC_BODY() 176 close(fd); in ATF_TC_BODY() 203 close(fd); in ATF_TC_BODY() 211 int fd; in ATF_TC_BODY() local 217 close(fd); in ATF_TC_BODY() 253 int fd; in ATF_TC_BODY() local 296 int fd; in ATF_TC_BODY() local 315 int fd; in ATF_TC_BODY() local [all …]
|
| /freebsd-12.1/tests/sys/file/ |
| H A D | closefrom_test.c | 134 int fd; in devnull() local 137 if (fd < 0) in devnull() 139 return (fd); in devnull() 159 if (start != fd) in main() 181 if (fd != 10) in main() 205 if (fd != 3) in main() 224 if (fd >= 0) in main() 242 if (fd >= 0) in main() 256 if (fd != 6) in main() 263 if (fd != 3) in main() [all …]
|
| /freebsd-12.1/tools/regression/security/open_to_operation/ |
| H A D | open_to_operation.c | 224 close(fd); in check_dup() 250 close(fd); in check_dup2() 274 close(fd); in check_fchdir() 298 close(fd); in check_fchflags() 322 close(fd); in check_fchmod() 346 close(fd); in check_fchown() 370 close(fd); in check_flock() 396 close(fd); in check_fpathconf() 421 close(fd); in check_fstat() 446 close(fd); in check_fstatfs() [all …]
|
| /freebsd-12.1/contrib/ofed/librdmacm/ |
| H A D | preload.c | 120 int fd; member 290 fdi->fd = fd; in fd_store() 301 *fd = fdi->fd; in fd_get() 342 *fd = fdi->fd; in fd_close() 756 *fd = fdi->fd; in fd_fork_get() 900 rfds[i].fd = fd_getd(fds[i].fd); in poll() 918 for (fd = 0; fd < *nfds; fd++) { in select_to_rpoll() 924 fds[i].fd = fd_getd(fd); in select_to_rpoll() 937 for (i = 0, fd = 0; i < nfds; fd++) { in rpoll_to_select() 1077 rfcntl(fd, cmd) : real.fcntl(fd, cmd); in fcntl() [all …]
|
| /freebsd-12.1/usr.sbin/diskinfo/ |
| H A D | diskinfo.c | 151 if (fd < 0) { in main() 155 error = fstat(fd, &sb); in main() 273 close(fd); in main() 280 candelete(int fd) in candelete() argument 327 rdmega(int fd) in rdmega() argument 503 rdmega(fd); in speeddisk() 512 rdmega(fd); in speeddisk() 521 rdmega(fd); in speeddisk() 540 rdmega(fd); in commandtime() 583 aiop->aio_fildes = fd; in iops() [all …]
|
| /freebsd-12.1/tests/sys/kern/ |
| H A D | unix_passfd_test.c | 75 int fd; in devnull() local 79 *fdp = fd; in devnull() 86 int fd; in tempfile() local 93 *fdp = fd; in tempfile() 132 *fdp++ = fd; in putfds() 356 sendfd(fd[0], fd[0]); in ATF_TC_BODY() 357 close(fd[0]); in ATF_TC_BODY() 360 close(fd[1]); in ATF_TC_BODY() 370 int fd[2]; in ATF_TC_BODY() local 373 sendfd(fd[0], fd[0]); in ATF_TC_BODY() [all …]
|
| /freebsd-12.1/usr.sbin/pciconf/ |
| H A D | cap.c | 755 cap_power(fd, p, ptr); in list_caps() 758 cap_agp(fd, p, ptr); in list_caps() 761 cap_vpd(fd, p, ptr); in list_caps() 764 cap_msi(fd, p, ptr); in list_caps() 767 cap_pcix(fd, p, ptr); in list_caps() 770 cap_ht(fd, p, ptr); in list_caps() 776 cap_debug(fd, p, ptr); in list_caps() 786 cap_msix(fd, p, ptr); in list_caps() 789 cap_sata(fd, p, ptr); in list_caps() 795 cap_ea(fd, p, ptr); in list_caps() [all …]
|
| /freebsd-12.1/usr.sbin/mptutil/ |
| H A D | mpt_config.c | 251 close(fd); in clear_config() 262 close(fd); in clear_config() 274 close(fd); in clear_config() 320 close(fd); in clear_config() 785 close(fd); in create_volume() 832 close(fd); in delete_volume() 1013 close(fd); in add_spare() 1079 close(fd); in remove_spare() 1131 close(fd); in pd_create() 1183 close(fd); in pd_delete() [all …]
|
| /freebsd-12.1/usr.sbin/mfiutil/ |
| H A D | mfi_patrol.c | 103 close(fd); in show_patrol() 136 close(fd); in show_patrol() 162 close(fd); in show_patrol() 191 close(fd); in show_patrol() 213 close(fd); in start_patrol() 217 close(fd); in start_patrol() 239 close(fd); in stop_patrol() 243 close(fd); in stop_patrol() 307 close(fd); in patrol_config() 330 close(fd); in patrol_config() [all …]
|
| /freebsd-12.1/usr.sbin/bluetooth/sdpd/ |
| H A D | server.c | 231 int fd; in server_shutdown() local 235 for (fd = 0; fd < srv->maxfd + 1; fd ++) in server_shutdown() 236 if (srv->fdidx[fd].valid) in server_shutdown() 237 server_close_fd(srv, fd); in server_shutdown() 253 int32_t n, fd; in server_do() local 271 for (fd = 0; fd < srv->maxfd + 1 && n > 0; fd ++) { in server_do() 572 close(fd); in server_close_fd() 574 FD_CLR(fd, &srv->fdset); in server_close_fd() 575 if (fd == srv->maxfd) in server_close_fd() 581 memset(&srv->fdidx[fd], 0, sizeof(srv->fdidx[fd])); in server_close_fd() [all …]
|
| /freebsd-12.1/contrib/libarchive/libarchive/ |
| H A D | archive_read_disk_entry_from_file.c | 146 } else if (fd != NULL && *fd < 0 && a->tree != NULL && in archive_read_disk_entry_setup_path() 157 int fd, in archive_read_disk_entry_from_file() argument 226 if (fd < 0) { in archive_read_disk_entry_from_file() 235 if (fd >= 0) { in archive_read_disk_entry_from_file() 308 close(fd); in archive_read_disk_entry_from_file() 451 if (fd >= 0) { in setup_xattr() 665 if (fd >= 0) in setup_xattr() 683 if (fd >= 0) in setup_xattr() 721 if (*fd >= 0) in setup_xattrs() 744 if (*fd >= 0) in setup_xattrs() [all …]
|
| /freebsd-12.1/sys/contrib/ncsw/inc/Peripherals/ |
| H A D | dpaa_ext.h | 114 #define DPAA_FD_GET_ADDRH(fd) ((t_DpaaFD *)fd)->addrh /**< Macro to g… argument 115 #define DPAA_FD_GET_ADDRL(fd) ((t_DpaaFD *)fd)->addrl … argument 116 …efine DPAA_FD_GET_PHYS_ADDR(fd) ((physAddress_t)(((uint64_t)DPAA_FD_GET_ADDRH(fd) << 32) | (ui… argument 117 #define DPAA_FD_GET_FORMAT(fd) ((((t_DpaaFD *)fd)->length & DPAA_FD_FORMAT_MASK) >> (31-2)) … argument 118 #define DPAA_FD_GET_OFFSET(fd) ((((t_DpaaFD *)fd)->length & DPAA_FD_OFFSET_MASK) >> (31-11))… argument 119 #define DPAA_FD_GET_LENGTH(fd) (((t_DpaaFD *)fd)->length & DPAA_FD_LENGTH_MASK) … argument 123 #define DPAA_FD_SET_ADDRH(fd,val) ((t_DpaaFD *)fd)->addrh = (val) /**< Macro to set … argument 124 #define DPAA_FD_SET_ADDRL(fd,val) ((t_DpaaFD *)fd)->addrl = (val) … argument 131 #define DPAA_FD_SET_FORMAT(fd,val) (((t_DpaaFD *)fd)->length = ((((t_DpaaFD *)fd)->length & ~DPA… argument 132 #define DPAA_FD_SET_OFFSET(fd,val) (((t_DpaaFD *)fd)->length = ((((t_DpaaFD *)fd)->length & ~DPA… argument [all …]
|