HomeSort by: relevance | last modified time | path
    Searched refs:tfd (Results 1 - 25 of 32) sorted by relevancy

1 2

  /src/sys/kern/
sys_timerfd.c 91 timerfd_fire_count(const struct timerfd * const tfd)
93 return (unsigned int)tfd->tfd_itimer.it_overruns;
97 timerfd_is_readable(const struct timerfd * const tfd)
99 return tfd->tfd_itimer.it_overruns != 0 || tfd->tfd_cancelled;
112 struct timerfd * const tfd = local
116 timerfd_wake(tfd);
130 struct timerfd * const tfd = local
136 if (tfd->tfd_cancel_on_set) {
137 tfd->tfd_cancelled = true
159 struct timerfd * const tfd = kmem_zalloc(sizeof(*tfd), KM_SLEEP); local
266 struct timerfd * const tfd = fp->f_timerfd; local
305 struct timerfd * const tfd = fp->f_timerfd; local
339 struct timerfd * const tfd = fp->f_timerfd; local
358 struct timerfd * const tfd = fp->f_timerfd; local
382 struct timerfd * const tfd = fp->f_timerfd; local
393 struct timerfd * const tfd = ((file_t *)kn->kn_obj)->f_timerfd; local
404 struct timerfd * const tfd = ((file_t *)kn->kn_obj)->f_timerfd; local
432 struct timerfd * const tfd = ((file_t *)kn->kn_obj)->f_timerfd; local
457 struct timerfd * const tfd = fp->f_timerfd; local
560 struct timerfd * const tfd = fp->f_timerfd; local
617 struct timerfd * const tfd = fp->f_timerfd; local
    [all...]
  /src/tests/rump/rumpvfs/
t_etfs.c 66 int tfd; local
81 tfd = rump_sys_open(TESTPATH1, O_RDONLY);
82 ATF_REQUIRE(tfd != -1);
83 ATF_REQUIRE(rump_sys_read(tfd, buf, sizeof(buf)) > 0);
84 rump_sys_close(tfd);
89 tfd = rump_sys_open(TESTPATH2, O_RDWR);
90 ATF_REQUIRE(tfd != -1);
92 ATF_REQUIRE((n = rump_sys_read(tfd, buf, sizeof(buf))) > 0);
98 ATF_REQUIRE_EQ(rump_sys_lseek(tfd, 0, SEEK_SET), 0);
100 ATF_REQUIRE_EQ(rump_sys_write(tfd, TESTSTR2, TESTSTR2SZ), TESTSTR2SZ)
122 int rv, tfd; local
170 int rv, tfd; local
237 int rv, tfd; local
    [all...]
  /src/external/bsd/ipf/dist/lib/
ipft_hx.c 28 static int tfd = -1; variable
33 if (tfp && tfd != -1) {
35 return tfd;
39 tfd = 0;
42 tfd = open(fname, O_RDONLY);
43 if (tfd != -1)
44 tfp = fdopen(tfd, "r");
46 return tfd;
52 int cfd = tfd;
54 tfd = -1
    [all...]
ipft_tx.c 34 static int tfd = -1; variable
90 if (tfp && tfd != -1) {
92 return tfd;
96 tfd = 0;
99 tfd = open(fname, O_RDONLY);
100 if (tfd != -1)
101 tfp = fdopen(tfd, "r");
103 return tfd;
109 int cfd = tfd;
111 tfd = -1
    [all...]
  /src/bin/ksh/
tty.c 103 int tfd; local
112 if ((tfd = open(devtty, O_RDWR, 0)) < 0) {
113 if (tfd < 0) {
121 if (tfd < 0) {
124 tfd = 0;
126 tfd = 2;
132 if ((tty_fd = ksh_dupbase(tfd, FDBASE)) < 0) {
143 close(tfd);
  /src/lib/libutil/compat/
compat_passwd.c 76 pw_copy(int ffd, int tfd, struct passwd50 *pw50, struct passwd50 *opw50)
82 __pw_copy50(ffd, tfd, &pw, opw50 ? &opw : NULL);
86 pw_copyx(int ffd, int tfd, struct passwd50 *pw50, struct passwd50 *opw50,
93 return __pw_copyx50(ffd, tfd, &pw, opw50 ? &opw : NULL, errbuf,
  /src/usr.sbin/vipw/
vipw.c 69 int pfd, tfd; local
97 tfd = pw_lock(0);
98 if (tfd < 0) {
108 copyfile(pfd, tfd);
109 (void)close(tfd);
  /src/external/bsd/mdocml/dist/
term_tag.c 55 int tfd; local
57 ofd = tfd = -1;
110 if ((tfd = mkstemp(tag_files.tfn)) == -1) {
119 tfd = open(tagfilename, O_WRONLY | O_CREAT | O_EXCL, 0644);
120 if (tfd == -1) {
126 if ((tag_files.tfs = fdopen(tfd, "w")) == NULL) {
130 tfd = -1;
142 if (tfd != -1)
143 close(tfd);
  /src/sys/dev/ic/
wdcvar.h 185 #define wdc_wait_for_drq(chp, timeout, flags, tfd) \
186 wdcwait((chp), WDCS_DRQ, WDCS_DRQ, (timeout), (flags), (tfd))
187 #define wdc_wait_for_unbusy(chp, timeout, flags, tfd) \
188 wdcwait((chp), 0, 0, (timeout), (flags), (tfd))
189 #define wdc_wait_for_ready(chp, timeout, flags, tfd) \
190 wdcwait((chp), WDCS_DRDY, WDCS_DRDY, (timeout), (flags), (tfd))
mvsata.c 561 mvsata_channel_recover(struct ata_channel *chp, int flags, uint32_t tfd)
583 ata_recovery_resume(chp, drive, tfd, AT_POLL);
1027 int nblks, error, tfd; local
1171 switch(wdc_wait_for_ready(chp, ATA_DELAY, wait_flags, &tfd)) {
1201 if (wdc_wait_for_drq(chp, ATA_DELAY, AT_POLL, &tfd) != 0) {
1205 chp->ch_channel, xfer->c_drive, ATACH_ST(tfd),
1206 ATACH_ERR(tfd));
1210 if (ATACH_ST(tfd) & WDCS_ERR) {
1212 ata_bio->r_error = ATACH_ERR(tfd);
1239 chp->ch_channel, xfer->c_drive, ATACH_ST(tfd), ATACH_ERR(tfd))
1271 int tfd = 0; local
1485 int tfd; local
1629 int tfd; local
1703 int tfd; local
2009 int tfd; local
2207 int tfd; local
2471 int tfd; local
    [all...]
ahcisatareg.h 250 #define AHCI_TFD_ERR(tfd) \
251 (((tfd) & AHCI_P_TFD_ERR_MASK) >> AHCI_P_TFD_ERR_SHIFT)
252 #define AHCI_TFD_ST(tfd) \
253 (((tfd) & AHCI_P_TFD_ST) >> AHCI_P_TFD_ST_SHIFT)
siisata.c 514 uint32_t pss, pis, tfd = 0; local
540 tfd = ATACH_ERR_ST(WDCE_CRC, WDCS_ERR);
557 tfd = ntfd;
594 xfer->ops->c_intr(chp, xfer, tfd);
619 ata_thread_run(chp, 0, ATACH_TH_RECOVERY, tfd);
626 siisata_channel_recover(struct ata_channel *chp, int flags, uint32_t tfd)
649 if ((ATACH_ST(tfd) & (WDCS_BSY|WDCS_DRQ)) != 0) {
657 ata_recovery_resume(chp, drive, tfd, flags);
1079 siisata_cmd_complete(struct ata_channel *chp, struct ata_xfer *xfer, int tfd)
1099 if (ATACH_ST(tfd) & WDCS_BSY)
    [all...]
ahcisata_core.c 648 uint32_t is, tfd, sact; local
658 "is 0x%x CI 0x%x SACT 0x%x TFD 0x%x\n",
679 tfd = AHCI_READ(sc, AHCI_P_TFD(chp->ch_channel));
690 "%s port %d: TFE: sact 0x%x is 0x%x tfd 0x%x\n",
691 AHCINAME(sc), chp->ch_channel, sact, is, tfd),
695 tfd = (WDCE_ABRT << AHCI_P_TFD_ERR_SHIFT) |
709 tfd = AHCI_READ(sc, AHCI_P_TFD(chp->ch_channel));
712 if ((tfd & WDCS_ERR) != 0) {
717 AHCINAME(sc), chp->ch_channel, tfd), DEBUG_INTR);
720 tfd = 0
997 int i, tfd; local
    [all...]
wdc.c 300 int i, j, error, tfd; local
482 if (wdc_wait_for_ready(chp, 10000, 0, &tfd) ==
494 if (wdc_wait_for_ready(chp, 10000, 0, &tfd) ==
1256 __wdcwait(struct ata_channel *chp, int mask, int bits, int timeout, int *tfd)
1267 *tfd = 0;
1315 *tfd = ATACH_ERR_ST(error, status);
1325 int *tfd)
1333 error = __wdcwait(chp, mask, bits, timeout, tfd);
1335 error = __wdcwait(chp, mask, bits, WDCDELAY_POLL, tfd);
1344 WDCDELAY_POLL, tfd) == 0)
1485 int tfd; local
1556 int wflags, tfd; local
    [all...]
  /src/usr.bin/chpass/
chpass.c 85 int ch, dfd, pfd, tfd; local
260 tfd = pw_lock(0);
261 if (tfd < 0) {
265 tfd = pw_lock(10);
266 if (tfd < 0) {
273 if (fcntl(tfd, F_SETFD, 1) < 0)
281 pw_copy(pfd, tfd, pw, (op == LOADENTRY) ? NULL : &old_pw);
284 close(tfd);
  /src/usr.bin/passwd/
local_passwd.c 137 int pfd, tfd; local
204 tfd = pw_lock(0);
205 if (tfd < 0) {
207 tfd = pw_lock(10);
208 if (tfd < 0)
217 pw_copy(pfd, tfd, pw, &old_pw);
272 int pfd, tfd; local
313 tfd = pw_lock(0);
314 if (tfd < 0) {
316 tfd = pw_lock(10)
    [all...]
  /src/sys/dev/ata/
ata_wdc.c 184 int wait_flags, tfd; local
225 &tfd))
232 &tfd))
234 if (ATACH_ST(tfd) & (WDCS_ERR | WDCS_DWF))
246 &tfd))
248 if (ATACH_ST(tfd) & (WDCS_ERR | WDCS_DWF))
265 &tfd))
267 if (ATACH_ST(tfd) & (WDCS_ERR | WDCS_DWF))
280 &tfd))
282 if (ATACH_ST(tfd) & (WDCS_ERR | WDCS_DWF)
345 int nblks, tfd; local
630 int drv_err, tfd; local
    [all...]
ata_recovery.c 160 ata_recovery_resume(struct ata_channel *chp, int drive, int tfd, int flags)
209 xfer->ops->c_intr(chp, xfer, tfd);
  /src/usr.sbin/rpc.yppasswdd/
yppasswdd_mkpw.c 68 int pfd, tfd; local
129 tfd = pw_lock(0);
130 if (tfd < 0) {
155 pw_copy(pfd, tfd, &pw, NULL);
  /src/usr.sbin/lpr/lpr/
lpr.c 97 static int tfd; /* control file descriptor */ variable
304 tfd = nfile(tfname);
306 (void)fchown(tfd, DU, -1); /* owned by daemon for protection */
385 (void)close(tfd);
391 if ((tfd = open(tfname, O_RDWR)) >= 0) {
394 if (read(tfd, &ch, 1) == 1 &&
395 lseek(tfd, (off_t)0, 0) == 0 &&
396 write(tfd, &ch, 1) != 1) {
401 (void)close(tfd);
527 if (write(tfd, buf, len) != (ssize_t)len
    [all...]
  /src/sys/dev/scsipi/
atapi_wdc.c 486 int tfd; local
522 if (wdc_wait_for_unbusy(chp, ATAPI_DELAY, wait_flags, &tfd))
528 &tfd))
530 if (ATACH_ST(tfd) & WDCS_ERR) {
531 if (ATACH_ST(tfd) == WDCE_ABRT) {
562 &tfd))
564 if (ATACH_ST(tfd) & WDCS_ERR) {
565 if (ATACH_ERR(tfd) == WDCE_ABRT) {
603 switch (wdc_wait_for_unbusy(chp, ATAPI_DELAY, wait_flags, &tfd)) {
608 ATACH_ST(tfd));
740 int ire, tfd; local
1175 int tfd; local
    [all...]
  /src/tests/lib/libc/sys/
t_timerfd.c 768 int tfd; local
771 ATF_REQUIRE((tfd = timerfd_create(CLOCK_MONOTONIC, 0)) >= 0);
772 ATF_REQUIRE((fcntl(tfd, F_GETFL) & O_NONBLOCK) == 0);
773 ATF_REQUIRE(fcntl(tfd, F_SETFL, O_NONBLOCK) == 0);
774 ATF_REQUIRE((fcntl(tfd, F_GETFL) & O_NONBLOCK) != 0);
775 ATF_REQUIRE((fcntl(tfd, F_GETFD) & FD_CLOEXEC) == 0);
778 ATF_REQUIRE(ioctl(tfd, FIONREAD, &val) == 0);
781 ATF_REQUIRE_ERRNO(ENOTTY, ioctl(tfd, FIONWRITE, &val) == -1);
782 ATF_REQUIRE_ERRNO(ENOTTY, ioctl(tfd, FIONSPACE, &val) == -1);
783 (void)close(tfd);
    [all...]
  /src/lib/libpam/modules/pam_unix/
pam_unix.c 360 int tfd, pfd; local
363 tfd = pw_lock(0);
364 if (tfd < 0) {
366 tfd = pw_lock(10);
367 if (tfd < 0) {
381 if (pw_copyx(pfd, tfd, pwd, opwd, errbuf, sizeof(errbuf)) == 0) {
  /src/external/bsd/ipf/dist/ipsend/
sock.c 289 struct tcpcb *find_tcp(tfd, ti)
290 int tfd;
347 if (KMCPY(f, o[tfd], sizeof(*f)) == -1)
349 fprintf(stderr, "read(%#lx,%#lx,%lu) - o[tfd] - failed\n",
350 (u_long)o[tfd], (u_long)f, (u_long)sizeof(*f));
  /src/external/bsd/file/dist/src/
compress.c 496 int tfd; local
516 tfd = open(ptr, O_RDWR|O_TRUNC|O_EXCL|O_CREAT, 0600);
525 tfd = mkstemp(buf);
532 if (tfd == -1) {
538 if (swrite(tfd, startbuf, nbytes) != CAST(ssize_t, nbytes))
542 if (swrite(tfd, buf, CAST(size_t, r)) != r)
562 if ((fd = dup2(tfd, fd)) == -1) {
566 (void)close(tfd);

Completed in 99 milliseconds

1 2