/freebsd-9.3-release/contrib/ipfilter/lib/ |
H A D | 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 [all...] |
H A D | ipft_td.c | 56 static int tfd = -1; variable 62 if (tfd != -1) 63 return tfd; 66 tfd = 0; 69 tfd = open(fname, O_RDONLY); 70 tfp = fdopen(tfd, "r"); 72 return tfd; 79 return close(tfd);
|
H A D | ipft_tx.c | 40 static int tfd = -1; variable 100 if (tfp && tfd != -1) { 102 return tfd; 106 tfd = 0; 109 tfd = open(fname, O_RDONLY); 110 if (tfd != -1) 111 tfp = fdopen(tfd, "r"); 113 return tfd; 119 int cfd = tfd; 121 tfd [all...] |
/freebsd-9.3-release/usr.bin/setchannel/ |
H A D | setchannel.c | 92 int tfd; local 212 tfd = open(dev_name, O_RDONLY); 213 if (tfd < 0) { 220 if (ioctl(tfd, TVTUNER_SETAFC, &afc) < 0) { 221 perror("ioctl(tfd, TVTUNER_SETAFC) failed."); 226 if (ioctl(tfd, METEORSINPUT, &device) < 0) { 227 perror("ioctl(tfd, METEORSINPUT) failed."); 232 if (ioctl(tfd, BT848_SAUDIO, &audio) < 0) { 233 perror("ioctl(tfd, BT848_SAUDIO) failed."); 237 if (ioctl(tfd, BT848_GAUDI [all...] |
/freebsd-9.3-release/usr.sbin/vipw/ |
H A D | vipw.c | 69 int ch, pfd, tfd; local 95 if ((tfd = pw_tmp(pfd)) == -1) { 99 (void)close(tfd);
|
/freebsd-9.3-release/contrib/libbegemot/ |
H A D | rpoll.c | 200 static int * tfd; /* sorted entries */ variable 443 if(tfd[i] == handle) { 444 tfd[i] = -1; 465 * Reconstruct the tfd-array. This will be an sorted array of indexes 478 tfd = _xrealloc(tfd, sizeof(int *) * tfd_alloc); 481 pp = tfd; 486 assert(pp - tfd == (ptrdiff_t)tims_used); 490 qsort(tfd, tfd_used, sizeof(int), tim_cmp); 535 i, tfd[ [all...] |
/freebsd-9.3-release/lib/libutil/ |
H A D | gr_util.c | 136 int tfd; local 149 if ((tfd = mkstemp(tempname)) == -1) 153 if (write(tfd, buf, (size_t)nr) != nr) 158 close(tfd); 162 return (tfd); 170 gr_copy(int ffd, int tfd, const struct group *gr, struct group *old_gr) argument 233 if (write(tfd, p, q -p + 1) != q - p + 1) 255 if (write(tfd, p, q - p + 1) != q - p + 1) 271 if (write(tfd, line, len) != (int) len) 279 if (write(tfd, [all...] |
H A D | pw_util.c | 219 int tfd; local 232 if ((tfd = mkstemp(tempname)) == -1) 236 if (write(tfd, buf, (size_t)nr) != nr) 241 close(tfd); 245 return (tfd); 431 pw_copy(int ffd, int tfd, const struct passwd *pw, struct passwd *old_pw) argument 501 if (write(tfd, p, q - p + 1) != q - p + 1) 524 if (write(tfd, p, q - p + 1) != q - p + 1) 540 if (write(tfd, line, len) != (int)len) 548 if (write(tfd, [all...] |
/freebsd-9.3-release/release/picobsd/tinyware/passwd/ |
H A D | local_passwd.c | 76 pw_copy(int ffd, int tfd, struct passwd *pw, struct passwd *old_pw); 202 int pfd, tfd; local 228 tfd = pw_tmp(); 229 pw_copy(pfd, tfd, pw, NULL);
|
H A D | pw_copy.c | 84 pw_copy(int ffd, int tfd, struct passwd *pw, struct passwd *old_pw) argument 101 if (!(to = fdopen(tfd, "w")))
|
/freebsd-9.3-release/usr.bin/chpass/ |
H A D | chpass.c | 83 int ch, pfd, tfd; local 211 if ((tfd = pw_tmp(-1)) == -1) { 265 if ((tfd = pw_tmp(-1)) == -1) { 269 if (pw_copy(pfd, tfd, pw, old_pw) == -1) {
|
/freebsd-9.3-release/contrib/file/src/ |
H A D | compress.c | 244 int tfd; local 250 tfd = open(ptr, O_RDWR|O_TRUNC|O_EXCL|O_CREAT, 0600); 258 tfd = mkstemp(buf); 264 if (tfd == -1) { 270 if (swrite(tfd, startbuf, nbytes) != (ssize_t)nbytes) 274 if (swrite(tfd, buf, (size_t)r) != r) 294 if ((fd = dup2(tfd, fd)) == -1) { 298 (void)close(tfd);
|
/freebsd-9.3-release/usr.sbin/lpr/lpr/ |
H A D | lpr.c | 102 static int tfd; /* control file descriptor */ variable 327 tfd = nfile(tfname); 329 (void) fchown(tfd, pp->daemon_user, -1); 495 (void) close(tfd); 501 if ((tfd = open(tfname, O_RDWR)) >= 0) { 504 if (read(tfd, &touch_c, 1) == 1 && 505 lseek(tfd, (off_t)0, 0) == 0 && 506 write(tfd, &touch_c, 1) != 1) { 512 (void) close(tfd); 628 write(tfd, bu [all...] |
/freebsd-9.3-release/usr.sbin/rpc.yppasswdd/ |
H A D | yppasswdd_server.c | 458 int pfd, tfd; local 612 if ((tfd = pw_tmp(-1)) == -1) { 617 if (pw_copy(pfd, tfd, &yp_password, NULL) == -1) { 718 int pfd, tfd; local 835 if ((tfd = pw_tmp(-1)) == -1) { 841 if (pw_copy(pfd, tfd, &newpasswd, NULL) == -1) {
|
/freebsd-9.3-release/lib/libpam/modules/pam_unix/ |
H A D | pam_unix.c | 278 int pfd, tfd, retval; local 403 else if ((tfd = pw_tmp(-1)) == -1) 405 else if (pw_copy(pfd, tfd, pwd, old_pwd) == -1)
|
/freebsd-9.3-release/contrib/ipfilter/ipsend/ |
H A D | sock.c | 296 struct tcpcb *find_tcp(tfd, ti) 297 int tfd; 345 if (KMCPY(f, o[tfd], sizeof(*f)) == -1) 347 fprintf(stderr, "read(%#lx,%#lx,%lu) - o[tfd] - failed\n", 348 (u_long)o[tfd], (u_long)f, (u_long)sizeof(*f));
|
/freebsd-9.3-release/usr.sbin/lpr/lpd/ |
H A D | printjob.c | 104 static int tfd = -1; /* output filter temp file output */ variable 1038 tfd = -1; 1098 tfd = mkstemp(tfile); 1099 if (tfd == -1) { 1105 filtstat = execfilter(pp, filtcmd, av, sfd, tfd); 1124 statrc = fstat(tfd, &stb); /* to find size of tfile */ 1133 sfd = tfd; 1222 if (tfd != -1) { 1224 * If tfd is set, then it is the same value as sfd, and 1228 tfd [all...] |
/freebsd-9.3-release/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | output.c | 738 int tfd = -1; local 746 if ((tfd = open(newname, O_RDWR | O_CREAT | O_TRUNC, st.st_mode)) < 0) 748 if ((telf = elf_begin(tfd, ELF_C_WRITE, NULL)) == NULL) 758 (void) close(tfd);
|
/freebsd-9.3-release/contrib/sendmail/src/ |
H A D | queue.c | 355 int tfd = -1; local 376 tfd = open(tf, TF_OPEN_FLAGS, QueueFileMode); \ 395 if (tfd < 0 || 397 !lockfile(tfd, tf, NULL, LOCK_EX|LOCK_NB) || 400 (void *) &tfd, SM_IO_WRONLY, 408 tf, (int) geteuid(), tfd, tfp); 421 if (tfd < 0) 424 if (tfd < 0) 439 if (tfd >= 0) 445 if (lockfile(tfd, t [all...] |
/freebsd-9.3-release/usr.sbin/pwd_mkdb/ |
H A D | pwd_mkdb.c | 104 int ch, cnt, ypcnt, makeold, tfd, yp_enabled = 0; local 315 if ((tfd = open(buf, 318 if ((oldfp = fdopen(tfd, "w")) == NULL)
|
/freebsd-9.3-release/usr.bin/make/ |
H A D | job.c | 1574 int tfd; /* File descriptor for temp file */ local 1637 if ((tfd = mkstemp(tfile)) == -1) 1639 job->cmdFILE = fdopen(tfd, "w+"); 1642 close(tfd);
|
/freebsd-9.3-release/contrib/bmake/ |
H A D | job.c | 1545 int tfd; /* File descriptor to the temp file */ local 1608 tfd = mkTempFile(TMPPAT, &tfile); 1613 job->cmdFILE = fdopen(tfd, "w+");
|
/freebsd-9.3-release/sys/dev/stge/ |
H A D | if_stge.c | 1071 struct stge_tfd *tfd; local 1119 tfd = &sc->sc_rdata.stge_tx_ring[si]; 1121 tfd->tfd_frags[i].frag_word0 = 1137 tfd->tfd_control = htole64(tfc);
|
/freebsd-9.3-release/sys/dev/ahci/ |
H A D | ahci.c | 1616 //device_printf(dev, "%s ERROR is %08x cs %08x ss %08x rs %08x tfd %02x serr %08x fbs %08x ccs %d\n", 1956 "rs %08x tfd %02x serr %08x cmd %08x\n", 2053 device_printf(dev, "is %08x cs %08x ss %08x rs %08x tfd %02x " 2129 uint16_t tfd = ATA_INL(ch->r_mem, AHCI_P_TFD); local 2131 res->status = tfd; 2132 res->error = tfd >> 8; 2583 "(tfd = %08x)\n",
|