/freebsd-current/contrib/bmake/ |
H A D | job.c | 1632 int tfd; /* File descriptor to the temp file */ local 1634 tfd = Job_TempFile(TMPPAT, tfile, sizeof tfile); 1636 job->cmdFILE = fdopen(tfd, "w+");
|
/freebsd-current/usr.sbin/bhyve/ |
H A D | mevent.c | 283 mevent_add_state(int tfd, enum ev_type type, argument 291 if (tfd < 0 || func == NULL) { 305 if (type != EVF_TIMER && lp->me_fd == tfd && 312 if (type != EVF_TIMER && lp->me_fd == tfd && 327 mevp->me_msecs = tfd; 330 mevp->me_fd = tfd; 359 mevent_add(int tfd, enum ev_type type, argument 363 return (mevent_add_state(tfd, type, func, param, EV_ADD, 0)); 367 mevent_add_flags(int tfd, enum ev_type type, int fflags, argument 371 return (mevent_add_state(tfd, typ 375 mevent_add_disabled(int tfd, enum ev_type type, void (*func)(int, enum ev_type, void *), void *param) argument [all...] |
H A D | pci_ahci.c | 162 uint32_t tfd; member in struct:ahci_port 371 ahci_write_fis_sdb(struct ahci_port *p, int slot, uint8_t *cfis, uint32_t tfd) argument 376 error = (tfd >> 8) & 0xff; 377 tfd &= 0x77; 381 fis[2] = tfd; 385 p->err_cfis[2] = tfd; 392 p->tfd &= ~0x77; 393 p->tfd |= tfd; 398 ahci_write_fis_d2h(struct ahci_port *p, int slot, uint8_t *cfis, uint32_t tfd) argument 1145 uint32_t tfd; local 1223 uint32_t tfd; local 1371 uint32_t tfd; local 1474 uint32_t tfd; local 1498 uint32_t tfd; local 1574 uint32_t tfd; local 1900 uint32_t tfd; local 1975 uint32_t tfd; local [all...] |
/freebsd-current/sys/dev/ahci/ |
H A D | ahci.c | 1436 //device_printf(dev, "%s ERROR is %08x cs %08x ss %08x rs %08x tfd %02x serr %08x fbs %08x ccs %d\n", 1793 "rs %08x tfd %02x serr %08x cmd %08x\n", 1889 device_printf(dev, "is %08x cs %08x ss %08x rs %08x tfd %02x " 1964 uint16_t tfd = ATA_INL(ch->r_mem, AHCI_P_TFD); local 1966 res->status = tfd; 1967 res->error = tfd >> 8; 2414 "(tfd = %08x)\n",
|
/freebsd-current/sys/kern/ |
H A D | sys_timerfd.c | 67 #define TFD_READ 1 /* Jumped, tfd has been read since. */ 82 struct itimerspec tfd_time; /* (t) tfd timer */ 90 struct mtx tfd_lock; /* tfd mtx lock */ 134 struct timerfd *tfd; local 142 LIST_FOREACH(tfd, &timerfd_list, entry) { 143 mtx_lock(&tfd->tfd_lock); 144 if (tfd->tfd_clockid != CLOCK_REALTIME || 145 (tfd->tfd_timflags & TFD_TIMER_ABSTIME) == 0 || 146 timespeccmp(&boottime, &tfd->tfd_boottim, ==)) { 147 mtx_unlock(&tfd 184 struct timerfd *tfd = fp->f_data; local 253 struct timerfd *tfd = fp->f_data; local 270 struct timerfd *tfd = kn->kn_hook; local 280 struct timerfd *tfd = kn->kn_hook; local 296 struct timerfd *tfd = fp->f_data; local 311 struct timerfd *tfd = fp->f_data; local 332 struct timerfd *tfd = fp->f_data; local 352 struct timerfd *tfd = fp->f_data; local 380 timerfd_curval(struct timerfd *tfd, struct itimerspec *old_value) argument 396 struct timerfd *tfd = (struct timerfd *)arg; local 429 struct timerfd *tfd; local 487 struct timerfd *tfd; local 512 struct timerfd *tfd; local [all...] |
/freebsd-current/contrib/sendmail/src/ |
H A D | queue.c | 358 int tfd = -1; local 379 tfd = open(tf, TF_OPEN_FLAGS, QueueFileMode); \ 400 if (tfd < 0 || 402 !lockfile(tfd, tf, NULL, LOCK_EX|LOCK_NB) || 405 (void *) &tfd, SM_IO_WRONLY, 413 tf, (long) geteuid(), tfd, (void *)tfp); 426 if (tfd < 0) 429 if (tfd < 0) 444 if (tfd >= 0) 450 if (lockfile(tfd, t [all...] |
/freebsd-current/sys/contrib/dev/iwlwifi/pcie/ |
H A D | trans.c | 3100 static u32 iwl_trans_pcie_get_cmdlen(struct iwl_trans *trans, void *tfd) argument 3105 for (i = 0; i < trans->txqs.tfd.max_tbs; i++) 3106 cmdlen += iwl_txq_gen1_tfd_tb_get_len(trans, tfd, i); 3443 u16 tfd_size = trans->txqs.tfd.size; 3681 addr_size = trans->txqs.tfd.addr_size;
|
/freebsd-current/usr.sbin/pwd_mkdb/ |
H A D | pwd_mkdb.c | 92 int ch, cnt, ypcnt, makeold, tfd, yp_enabled = 0; local 298 if ((tfd = open(buf, 301 if ((oldfp = fdopen(tfd, "w")) == NULL)
|
/freebsd-current/usr.sbin/vipw/ |
H A D | vipw.c | 57 int ch, pfd, tfd; local 83 if ((tfd = pw_tmp(pfd)) == -1) { 87 (void)close(tfd);
|
/freebsd-current/usr.sbin/rpc.yppasswdd/ |
H A D | yppasswdd_server.c | 473 int pfd, tfd; local 633 if ((tfd = pw_tmp(-1)) == -1) { 638 if (pw_copy(pfd, tfd, &yp_password, NULL) == -1) { 739 int pfd, tfd; local 861 if ((tfd = pw_tmp(-1)) == -1) { 867 if (pw_copy(pfd, tfd, &newpasswd, NULL) == -1) {
|
/freebsd-current/usr.sbin/lpr/lpr/ |
H A D | lpr.c | 90 static int tfd; /* control file descriptor */ variable 315 tfd = nfile(tfname); 317 (void) fchown(tfd, pp->daemon_user, -1); 483 (void) close(tfd); 489 if ((tfd = open(tfname, O_RDWR)) >= 0) { 492 if (read(tfd, &touch_c, 1) == 1 && 493 lseek(tfd, (off_t)0, 0) == 0 && 494 write(tfd, &touch_c, 1) != 1) { 500 (void) close(tfd); 616 write(tfd, bu [all...] |
/freebsd-current/usr.sbin/lpr/lpd/ |
H A D | printjob.c | 93 static int tfd = -1; /* output filter temp file output */ variable 1027 tfd = -1; 1087 tfd = mkstemp(tfile); 1088 if (tfd == -1) { 1094 filtstat = execfilter(pp, filtcmd, av, sfd, tfd); 1113 statrc = fstat(tfd, &stb); /* to find size of tfile */ 1122 sfd = tfd; 1211 if (tfd != -1) { 1213 * If tfd is set, then it is the same value as sfd, and 1217 tfd [all...] |
/freebsd-current/usr.bin/chpass/ |
H A D | chpass.c | 71 int ch, pfd, tfd; local 199 if ((tfd = pw_tmp(-1)) == -1) { 253 if ((tfd = pw_tmp(-1)) == -1) { 257 if (pw_copy(pfd, tfd, pw, old_pw) == -1) {
|
/freebsd-current/sys/fs/tmpfs/ |
H A D | tmpfs_vnops.c | 1687 struct tmpfs_fid_data tfd; local 1693 fhp->fid_len = sizeof(tfd); 1699 tfd.tfd_id = node->tn_id; 1700 tfd.tfd_gen = node->tn_gen; 1701 memcpy(fhp->fid_data, &tfd, fhp->fid_len);
|
H A D | tmpfs_vfsops.c | 588 struct tmpfs_fid_data tfd; local 593 if (fhp->fid_len != sizeof(tfd)) 600 memcpy(&tfd, fhp->fid_data, fhp->fid_len); 604 if (tfd.tfd_id >= tmp->tm_nodes_max) 609 if (node->tn_id == tfd.tfd_id && 610 node->tn_gen == tfd.tfd_gen) {
|
/freebsd-current/sbin/ipf/libipf/ |
H A D | ipft_tx.c | 29 static int tfd = -1; variable 84 if (tfp && tfd != -1) { 86 return (tfd); 90 tfd = 0; 93 tfd = open(fname, O_RDONLY); 94 if (tfd != -1) 95 tfp = fdopen(tfd, "r"); 97 return (tfd); 104 int cfd = tfd; 106 tfd [all...] |
H A D | ipft_hx.c | 23 static int tfd = -1; variable 28 if (tfp && tfd != -1) { 30 return (tfd); 34 tfd = 0; 37 tfd = open(fname, O_RDONLY); 38 if (tfd != -1) 39 tfp = fdopen(tfd, "r"); 41 return (tfd); 48 int cfd = tfd; 50 tfd [all...] |
/freebsd-current/sbin/ipf/ipsend/ |
H A D | sock.c | 150 find_tcp(int tfd, struct tcpiphdr *ti) argument 197 if (KMCPY(f, o[tfd], sizeof(*f)) == -1) 199 fprintf(stderr, "read(%#lx,%#lx,%lu) - o[tfd] - failed\n", 200 (u_long)o[tfd], (u_long)f, (u_long)sizeof(*f));
|
/freebsd-current/lib/libutil/ |
H A D | pw_util.c | 210 int tfd; local 223 if ((tfd = mkostemp(tempname, 0)) == -1) 227 if (write(tfd, buf, (size_t)nr) != nr) 232 close(tfd); 236 return (tfd); 426 pw_copy(int ffd, int tfd, const struct passwd *pw, struct passwd *old_pw) argument 507 if (write(tfd, p, q - p + 1) != q - p + 1) 530 if (write(tfd, p, q - p + 1) != q - p + 1) 546 if (write(tfd, line, len) != (int)len) 554 if (write(tfd, [all...] |
H A D | gr_util.c | 130 int tfd; local 143 if ((tfd = mkostemp(tempname, 0)) == -1) 147 if (write(tfd, buf, (size_t)nr) != nr) 152 close(tfd); 156 return (tfd); 164 gr_copy(int ffd, int tfd, const struct group *gr, struct group *old_gr) argument 245 if (write(tfd, p, q -p + 1) != q - p + 1) 267 if (write(tfd, p, q - p + 1) != q - p + 1) 283 if (write(tfd, line, len) != (int) len) 291 if (write(tfd, [all...] |
/freebsd-current/lib/libpam/modules/pam_unix/ |
H A D | pam_unix.c | 292 int pfd, tfd, retval; local 418 else if ((tfd = pw_tmp(-1)) == -1) 420 else if (pw_copy(pfd, tfd, pwd, old_pwd) == -1)
|
/freebsd-current/sys/contrib/dev/iwlwifi/mvm/ |
H A D | tx.c | 2102 struct_size(ba_res, tfd, tfd_cnt) > pkt_len, 2122 &ba_res->tfd[i];
|
/freebsd-current/usr.sbin/pw/ |
H A D | pwupd.c | 88 int rc, pfd, tfd; local 105 if ((tfd = pw_tmp(-1)) == -1) { 109 if (pw_copy(pfd, tfd, pw, old_pw) == -1) { 111 close(tfd); 114 fsync(tfd); 115 close(tfd);
|
H A D | pw_nis.c | 41 int pfd, tfd; local 58 if ((tfd = pw_tmp(-1)) == -1) { 62 if (pw_copy(pfd, tfd, pw, old_pw) == -1) { 64 close(tfd); 67 fsync(tfd); 68 close(tfd);
|
H A D | grupd.c | 51 int pfd, tfd; local 68 if ((tfd = gr_tmp(-1)) == -1) { 72 if (gr_copy(pfd, tfd, gr, old_gr) == -1) { 74 close(tfd); 77 fsync(tfd); 78 close(tfd);
|