Searched refs:tfd (Results 1 - 25 of 42) sorted by last modified time

12

/freebsd-current/contrib/bmake/
H A Djob.c1632 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 Dmevent.c283 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 Dpci_ahci.c162 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 Dahci.c1436 //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 Dsys_timerfd.c67 #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 Dqueue.c358 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 Dtrans.c3100 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 Dpwd_mkdb.c92 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 Dvipw.c57 int ch, pfd, tfd; local
83 if ((tfd = pw_tmp(pfd)) == -1) {
87 (void)close(tfd);
/freebsd-current/usr.sbin/rpc.yppasswdd/
H A Dyppasswdd_server.c473 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 Dlpr.c90 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 Dprintjob.c93 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 Dchpass.c71 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 Dtmpfs_vnops.c1687 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 Dtmpfs_vfsops.c588 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 Dipft_tx.c29 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 Dipft_hx.c23 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 Dsock.c150 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 Dpw_util.c210 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 Dgr_util.c130 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 Dpam_unix.c292 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 Dtx.c2102 struct_size(ba_res, tfd, tfd_cnt) > pkt_len,
2122 &ba_res->tfd[i];
/freebsd-current/usr.sbin/pw/
H A Dpwupd.c88 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 Dpw_nis.c41 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 Dgrupd.c51 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);

Completed in 239 milliseconds

12