/dragonfly/contrib/dhcpcd/src/ |
H A D | control.c | 85 if (fd->ctx->ps_control_client == fd) in control_free() 89 eloop_event_delete(fd->ctx->eloop, fd->fd); in control_free() 90 close(fd->fd); in control_free() 91 TAILQ_REMOVE(&fd->ctx->control_fds, fd, next); in control_free() 93 free(fd); in control_free() 169 if (writev(fd->fd, iov, iov_len) == -1) { in control_handle_write() 198 if (eloop_event_add(fd->ctx->eloop, fd->fd, ELE_READ, in control_handle_write() 289 l->fd = fd; in control_new() 390 int fd; in make_sock() local 408 int fd; in control_start1() local [all …]
|
/dragonfly/games/hack/ |
H A D | hack.lev.c | 80 savelev(int fd, xchar lev) in savelev() argument 87 if (fd < 0) in savelev() 100 savemonchn(fd, fmon); in savelev() 101 savegoldchn(fd, fgold); in savelev() 102 savetrapchn(fd, ftrap); in savelev() 103 saveobjchn(fd, fobj); in savelev() 104 saveobjchn(fd, billobjs); in savelev() 106 save_engravings(fd); in savelev() 234 fmon = restmonchn(fd); in getlev() 281 fobj = restobjchn(fd); in getlev() [all …]
|
H A D | hack.save.c | 96 int fd, ofd; in dosave0() local 125 savenames(fd); in dosave0() 146 (void) close(fd); in dosave0() 155 dorecover(int fd) in dorecover() argument 163 getlev(fd, 0, 0); in dorecover() 172 (void) close(fd); in dorecover() 188 restnames(fd); in dorecover() 200 getlev(fd, 0, 0); in dorecover() 201 (void) close(fd); in dorecover() 239 restobjchn(int fd) in restobjchn() argument [all …]
|
/dragonfly/tools/tools/ath/athprom/ |
H A D | athprom.c | 76 FILE *fd; in opentemplate() local 90 return fd; in opentemplate() 96 FILE *fd = NULL; in main() local 115 if (fd == NULL) in main() 172 fclose(fd); in main() 232 c = getc(fd); in token() 236 ungetc(c, fd); in token() 258 c = getc(fd); in skipto() 269 c = getc(fd); in skipto() 284 skipws(FILE *fd) in skipws() argument [all …]
|
/dragonfly/usr.sbin/mfiutil/ |
H A D | mfi_foreign.c | 99 close(fd); in foreign_drives() 124 close(fd); in foreign_clear() 132 close(fd); in foreign_clear() 137 close(fd); in foreign_clear() 159 close(fd); in foreign_scan() 165 close(fd); in foreign_scan() 184 close(fd); in foreign_show_cfg() 228 close(fd); in foreign_display() 258 close(fd); in foreign_display() 316 close(fd); in foreign_preview() [all …]
|
H A D | mfi_drive.c | 83 close(fd); in mfi_drive_name() 87 close(fd); in mfi_drive_name() 395 close(fd); in drive_set_state() 403 close(fd); in drive_set_state() 410 close(fd); in drive_set_state() 426 close(fd); in drive_set_state() 524 close(fd); in start_rebuild() 581 close(fd); in abort_rebuild() 620 close(fd); in drive_progress() 697 close(fd); in drive_clear() [all …]
|
H A D | mfi_patrol.c | 100 close(fd); in show_patrol() 133 close(fd); in show_patrol() 159 close(fd); in show_patrol() 188 close(fd); in show_patrol() 210 close(fd); in start_patrol() 214 close(fd); in start_patrol() 236 close(fd); in stop_patrol() 240 close(fd); in stop_patrol() 304 close(fd); in patrol_config() 327 close(fd); in patrol_config() [all …]
|
H A D | mfi_volume.c | 298 if (fd < 0) { in volume_cache() 307 close(fd); in volume_cache() 314 close(fd); in volume_cache() 382 close(fd); in volume_cache() 415 close(fd); in volume_name() 422 close(fd); in volume_name() 433 close(fd); in volume_name() 437 close(fd); in volume_name() 466 close(fd); in volume_progress() 475 close(fd); in volume_progress() [all …]
|
H A D | mfi_show.c | 67 if (fd < 0) { in show_adapter() 76 close(fd); in show_adapter() 133 close(fd); in show_adapter() 164 close(fd); in show_battery() 169 close(fd); in show_battery() 178 close(fd); in show_battery() 186 close(fd); in show_battery() 240 close(fd); in show_battery() 390 close(fd); in show_config() 473 close(fd); in show_volumes() [all …]
|
/dragonfly/contrib/diffutils/lib/ |
H A D | dup2.c | 80 if (fd == desired_fd) in ms_windows_dup2() 87 return fd; in ms_windows_dup2() 146 dupfd = dup2 (fd, desired_fd); in klibc_dup2() 162 rpl_dup2 (int fd, int desired_fd) in rpl_dup2() argument 176 fd = desired_fd; in rpl_dup2() 177 if (fd == desired_fd) in rpl_dup2() 178 return fcntl (fd, F_GETFL) == -1 ? -1 : fd; in rpl_dup2() 199 dupfd (int fd, int desired_fd) in dupfd() argument 201 int duplicated_fd = dup (fd); in dupfd() 216 dup2 (int fd, int desired_fd) in dup2() argument [all …]
|
/dragonfly/contrib/grep/lib/ |
H A D | dup2.c | 80 if (fd == desired_fd) in ms_windows_dup2() 87 return fd; in ms_windows_dup2() 146 dupfd = dup2 (fd, desired_fd); in klibc_dup2() 162 rpl_dup2 (int fd, int desired_fd) in rpl_dup2() argument 176 fd = desired_fd; in rpl_dup2() 177 if (fd == desired_fd) in rpl_dup2() 178 return fcntl (fd, F_GETFL) == -1 ? -1 : fd; in rpl_dup2() 199 dupfd (int fd, int desired_fd) in dupfd() argument 201 int duplicated_fd = dup (fd); in dupfd() 216 dup2 (int fd, int desired_fd) in dup2() argument [all …]
|
/dragonfly/usr.sbin/pciconf/ |
H A D | cap.c | 556 cap_power(fd, p, ptr); in list_caps() 559 cap_agp(fd, p, ptr); in list_caps() 562 cap_vpd(fd, p, ptr); in list_caps() 565 cap_msi(fd, p, ptr); in list_caps() 568 cap_pcix(fd, p, ptr); in list_caps() 571 cap_ht(fd, p, ptr); in list_caps() 577 cap_debug(fd, p, ptr); in list_caps() 587 cap_msix(fd, p, ptr); in list_caps() 590 cap_sata(fd, p, ptr); in list_caps() 593 cap_pciaf(fd, p, ptr); in list_caps() [all …]
|
H A D | pciconf.c | 177 int fd; in list_devs() local 187 if (fd < 0) in list_devs() 209 close(fd); in list_devs() 214 close(fd); in list_devs() 243 close(fd); in list_devs() 801 int fd; in readit() local 805 if (fd < 0) in readit() 822 close(fd); in readit() 828 int fd; in writeit() local 837 if (fd < 0) in writeit() [all …]
|
/dragonfly/lib/libtcplay/ |
H A D | io.c | 56 int fd; in read_to_safe_mem() local 80 close(fd); in read_to_safe_mem() 86 close(fd); in read_to_safe_mem() 114 int fd; in get_random() local 150 close(fd); in get_random() 237 close(fd); in secure_erase() 251 int fd; in get_disk_info() local 268 close(fd); in get_disk_info() 277 int fd; in get_disk_info() local 310 int fd; in write_to_disk() local [all …]
|
/dragonfly/sys/dev/disk/fd/ |
H A D | fd.c | 886 bzero(fd, sizeof *fd); in fd_probe() 1012 fd->ft = fd_types[fd->type - 1]; in fd_probe() 1025 disk_create(fd->fdu, &fd->disk, &fd_ops); in fd_attach() 1178 if (fd->fdc->state != DEVIDLE && fd->fdc->fdu == fd->fdu) { in fd_turnoff() 1185 set_motor(fd->fdc, fd->fdsu, TURNOFF); in fd_turnoff() 1196 if((fd->fdc->fd == fd) && (fd->fdc->state == MOTORWAIT)) in fd_motor_on() 1209 set_motor(fd->fdc, fd->fdsu, TURNON); in fd_turnon() 1695 if (fdc->fd && (fd != fdc->fd)) in fdstate() 1719 fdc->fd = fd; in fdstate() 1757 fd->fdsu, b_cylinder * fd->ft.steptrac, in fdstate() [all …]
|
/dragonfly/contrib/libarchive/libarchive/ |
H A D | archive_read_disk_entry_from_file.c | 150 } else if (fd != NULL && *fd < 0 && a->tree != NULL && in archive_read_disk_entry_setup_path() 161 int fd, in archive_read_disk_entry_from_file() argument 230 if (fd < 0) { in archive_read_disk_entry_from_file() 239 if (fd >= 0) { in archive_read_disk_entry_from_file() 314 close(fd); in archive_read_disk_entry_from_file() 457 if (fd >= 0) { in setup_xattr() 671 if (fd >= 0) in setup_xattr() 689 if (fd >= 0) in setup_xattr() 726 if (*fd >= 0) in setup_xattrs_namespace() 751 if (*fd >= 0) in setup_xattrs_namespace() [all …]
|
/dragonfly/usr.sbin/sdpd/ |
H A D | server.c | 271 int fd; in server_shutdown() local 275 for (fd = 0; fd < srv->maxfd + 1; fd ++) in server_shutdown() 276 if (srv->fdidx[fd].valid) in server_shutdown() 293 int32_t n, fd; in server_do() local 311 for (fd = 0; fd < srv->maxfd + 1 && n > 0; fd ++) { in server_do() 483 srv->fdidx[fd].priv = 1; in server_process_request() 620 close(fd); in server_close_fd() 622 FD_CLR(fd, &srv->fdset); in server_close_fd() 623 if (fd == srv->maxfd) in server_close_fd() 629 memset(&srv->fdidx[fd], 0, sizeof(srv->fdidx[fd])); in server_close_fd() [all …]
|
/dragonfly/contrib/gcc-8.0/gcc/ |
H A D | omp-general.c | 136 fd->pre = NULL; in omp_extract_for_data() 162 fd->sched_kind in omp_extract_for_data() 184 fd->collapse = list_length (fd->tiling); in omp_extract_for_data() 193 if (fd->collapse > 1 || fd->tiling) in omp_extract_for_data() 196 fd->loops = &fd->loop; in omp_extract_for_data() 198 if (fd->ordered && fd->collapse == 1 && loops != NULL) in omp_extract_for_data() 227 fd->chunk_size = (fd->sched_kind == OMP_CLAUSE_SCHEDULE_STATIC) in omp_extract_for_data() 231 int cnt = fd->ordered ? fd->ordered : fd->collapse; in omp_extract_for_data() 264 if (fd->collapse == 1 && !fd->tiling) in omp_extract_for_data() 395 if (fd->collapse > 1 || fd->tiling || (fd->ordered && loops)) in omp_extract_for_data() [all …]
|
/dragonfly/usr.sbin/mpsutil/ |
H A D | mps_flash.c | 78 if (fd < 0) { in flash_save() 86 close(fd); in flash_save() 90 close(fd); in flash_save() 93 if (fd <0) { in flash_save() 109 close(fd); in flash_save() 168 close(fd); in flash_update() 171 close(fd); in flash_update() 184 close(fd); in flash_update() 193 close(fd); in flash_update() 232 close(fd); in flash_update() [all …]
|
/dragonfly/contrib/cryptsetup/lib/ |
H A D | utils.c | 173 if(fd < 0) in sector_size_for_device() 176 close(fd); in sector_size_for_device() 403 int fd = -1; in get_key() local 421 if (fd < 0) { in get_key() 507 close(fd); in get_key() 511 if(fd >= 0 && fd != STDIN_FILENO) in get_key() 512 close(fd); in get_key() 560 int fd; in get_device_infos() local 570 close(fd); in get_device_infos() 606 close(fd); in get_device_infos() [all …]
|
/dragonfly/usr.sbin/makefs/cd9660/ |
H A D | cd9660_write.c | 64 FILE *fd; in cd9660_write_image() local 118 cd9660_write_boot(diskStructure, fd); in cd9660_write_image() 128 fclose(fd); in cd9660_write_image() 135 fclose(fd); in cd9660_write_image() 336 if (fseeko(fd, working_sector * in cd9660_write_file() 347 if (fseeko(fd, working_sector * in cd9660_write_file() 354 temp->su_tail_size, fd); in cd9660_write_file() 355 if (ferror(fd)) { in cd9660_write_file() 398 curpos = ftello(fd); in cd9660_write_filedata() 457 fwrite(buf,1,bytes_read,fd); in cd9660_copy_file() [all …]
|
/dragonfly/usr.bin/truss/ |
H A D | setup.c | 70 int fd; in setup_and_wait() local 85 if (fd == -1) in setup_and_wait() 87 fcntl(fd, F_SETFD, 1); in setup_and_wait() 100 ioctl(fd, PIOCBIC, ~0); in setup_and_wait() 117 fd = open(buf, O_RDWR); in setup_and_wait() 120 if (fd == -1) in setup_and_wait() 126 ioctl(fd, PIOCCONT, 0); in setup_and_wait() 130 close(fd); in setup_and_wait() 142 int fd; in start_tracing() local 153 if (fd == -1) { in start_tracing() [all …]
|
/dragonfly/lib/libc/gen/ |
H A D | termios.c | 55 return (_ioctl(fd, TIOCGETA, t)); in tcgetattr() 70 return (_ioctl(fd, TIOCSETA, t)); in tcsetattr() 82 tcsetpgrp(int fd, pid_t pgrp) in tcsetpgrp() argument 91 tcgetpgrp(int fd) in tcgetpgrp() argument 102 tcgetsid(int fd) in tcgetsid() argument 106 if (_ioctl(fd, TIOCGSID, &s) < 0) in tcgetsid() 113 tcsetsid(int fd, pid_t pid) in tcsetsid() argument 212 __tcdrain(int fd) in __tcdrain() argument 222 tcflush(int fd, int which) in tcflush() argument 244 tcflow(int fd, int action) in tcflow() argument [all …]
|
/dragonfly/lib/libssh/openbsd-compat/ |
H A D | port-net.c | 80 int fd; in sys_valid_rdomain() local 91 close(fd); in sys_valid_rdomain() 94 close(fd); in sys_valid_rdomain() 147 int fd = -1; in sys_tun_open() local 192 return (fd); in sys_tun_open() 195 close(fd); in sys_tun_open() 247 if (fd < 0) { in sys_tun_open() 260 close(fd); in sys_tun_open() 283 return (fd); in sys_tun_open() 286 if (fd >= 0) in sys_tun_open() [all …]
|
/dragonfly/games/trek/ |
H A D | dumpgame.c | 78 int fd; in dumpgame() local 93 write(fd, d->area, i); in dumpgame() 96 close(fd); in dumpgame() 114 int fd; in restartgame() local 120 readdump(fd)) { in restartgame() 122 if (fd >= 0) in restartgame() 123 close(fd); in restartgame() 127 close(fd); in restartgame() 144 int fd; in readdump() local 149 fd = fd1; in readdump() [all …]
|