| /openbsd/src/bin/ksh/ |
| D | tty.c | 31 int tfd; in tty_init() local 36 tfd = open("/dev/tty", O_RDWR); in tty_init() 37 if (tfd == -1) { in tty_init() 44 tfd = 0; in tty_init() 46 tfd = 2; in tty_init() 52 if ((tty_fd = fcntl(tfd, F_DUPFD_CLOEXEC, FDBASE)) == -1) { in tty_init() 58 close(tfd); in tty_init()
|
| /openbsd/src/usr.bin/mandoc/ |
| D | term_tag.c | 53 int tfd; in term_tag_init() local 55 ofd = tfd = -1; in term_tag_init() 108 if ((tfd = mkstemp(tag_files.tfn)) == -1) { in term_tag_init() 117 tfd = open(tagfilename, O_WRONLY | O_CREAT | O_EXCL, 0644); in term_tag_init() 118 if (tfd == -1) { in term_tag_init() 124 if ((tag_files.tfs = fdopen(tfd, "w")) == NULL) { in term_tag_init() 128 tfd = -1; in term_tag_init() 140 if (tfd != -1) in term_tag_init() 141 close(tfd); in term_tag_init()
|
| /openbsd/src/usr.sbin/vipw/ |
| D | vipw.c | 50 int pfd, tfd; in main() local 78 tfd = pw_lock(0); in main() 79 if (tfd == -1) in main() 84 copyfile(pfd, tfd, &begin); in main() 85 (void)close(tfd); in main()
|
| /openbsd/src/lib/libutil/ |
| D | check_expire.c | 165 int tfd, pfd; in pwd_update() local 168 tfd = pw_lock(0); in pwd_update() 169 if (tfd == -1) { in pwd_update() 182 pw_copy(pfd, tfd, pwd, opwd); in pwd_update()
|
| D | passwd.c | 317 pw_copy(int ffd, int tfd, const struct passwd *pw, const struct passwd *opw) in pw_copy() argument 329 if (!(to = fdopen(tfd, "w"))) in pw_copy()
|
| /openbsd/src/usr.sbin/lpr/lpr/ |
| D | lpr.c | 84 static int tfd; /* control file descriptor */ variable 287 tfd = nfile(tfname); in main() 358 (void)close(tfd); in main() 364 if ((tfd = safe_open(tfname, O_RDWR|O_NOFOLLOW, 0)) >= 0) { in main() 367 if (read(tfd, &c, 1) == 1 && in main() 368 lseek(tfd, (off_t)0, SEEK_SET) == 0 && in main() 369 write(tfd, &c, 1) != 1) { in main() 374 (void)close(tfd); in main() 494 write(tfd, buf, len); in card()
|
| /openbsd/src/usr.bin/chpass/ |
| D | chpass.c | 65 int i, ch, pfd, tfd, dfd; in main() local 196 for (i = 1; (tfd = pw_lock(0)) == -1; i++) { in main() 213 pw_copy(pfd, tfd, pw, opw); in main()
|
| /openbsd/src/usr.bin/passwd/ |
| D | local_passwd.c | 67 int i, pfd, tfd = -1; in local_passwd() local 143 for (i = 1; (tfd = pw_lock(0)) == -1; i++) { in local_passwd() 160 pw_copy(pfd, tfd, pw, opw); in local_passwd()
|
| /openbsd/src/regress/lib/libcrypto/x509/bettertls/certificates/ |
| D | 3358.chain | 45 CQAvagEZ3hvCA6aH1wKKhTPxTign14sUGYC12Byr+FKKV0l5pfmQntQHVW8H/tfd
|
| /openbsd/src/usr.sbin/pwd_mkdb/ |
| D | pwd_mkdb.c | 109 int ch, tfd, makeold, secureonly, flags, checkonly; in main() local 267 if ((tfd = open(buf, in main() 270 if ((oldfp = fdopen(tfd, "w")) == NULL) in main()
|
| /openbsd/src/sys/dev/pci/ |
| D | if_tht.c | 1404 struct tht_fifo_desc *tfd) in tht_fifo_alloc() argument 1408 tf->tf_len = THT_FIFO_SIZE(tfd->tfd_size); in tht_fifo_alloc() 1413 tf->tf_desc = tfd; in tht_fifo_alloc() 1417 0, tf->tf_len, THT_FIFO_PRE_SYNC(tfd)); in tht_fifo_alloc() 1420 tht_write(sc, tfd->tfd_cfg0, (u_int32_t)dva | tfd->tfd_size); in tht_fifo_alloc() 1421 tht_write(sc, tfd->tfd_cfg1, (u_int32_t)(dva >> 32)); in tht_fifo_alloc()
|
| D | if_stge.c | 456 struct stge_tfd *tfd; in stge_start() local 497 tfd = &sc->sc_txdescs[nexttx]; in stge_start() 540 tfd->tfd_frags[seg].frag_word0 = in stge_start() 575 tfd->tfd_control = htole64(tfc); in stge_start()
|
| D | if_iwxreg.h | 6677 struct iwx_compressed_ba_tfd tfd[]; member
|
| D | if_iwx.c | 5532 sizeof(ba_res->tfd[0]) * tfd_cnt)) in iwx_rx_compressed_ba() 5536 struct iwx_compressed_ba_tfd *ba_tfd = &ba_res->tfd[i]; in iwx_rx_compressed_ba()
|
| /openbsd/src/sys/dev/ic/ |
| D | ahci.c | 2078 u_int32_t tfd; in ahci_port_intr() local 2082 tfd = ahci_pread(ap, AHCI_PREG_TFD); in ahci_port_intr() 2085 if ((tfd & AHCI_PREG_TFD_STS_ERR) && in ahci_port_intr() 2088 " %b, DIAG: %b\n", PORTNAME(ap), tfd, in ahci_port_intr() 2101 u_int32_t tfd, serr; in ahci_port_intr() local 2104 tfd = ahci_pread(ap, AHCI_PREG_TFD); in ahci_port_intr() 2134 " %b, DIAG: %b\n", PORTNAME(ap), err_slot, tfd, in ahci_port_intr() 2152 if (ISSET(tfd, AHCI_PREG_TFD_STS_BSY | AHCI_PREG_TFD_STS_DRQ)) { in ahci_port_intr() 3140 u_int32_t tfd; in ahci_hibernate_io_poll() local 3143 tfd = ahci_pread(ap, AHCI_PREG_TFD); in ahci_hibernate_io_poll() [all …]
|