Home
last modified time | relevance | path

Searched refs:dfd (Results 1 – 10 of 10) sorted by relevance

/mirbsd/src/usr.bin/chpass/
Dchpass.c84 int i, ch, pfd, tfd, dfd; in main() local
175 dfd = mkstemp(tempname); in main()
176 if (dfd == -1 || fcntl(dfd, F_SETFD, 1) == -1) in main()
178 display(tempname, dfd, pw); in main()
180 close(dfd); in main()
/mirbsd/src/usr.sbin/rbootd/
Dparseconf.c313 DIR *dfd; in GetBootFiles() local
327 if ((dfd = opendir(".")) == NULL) { /* open BootDir */ in GetBootFiles()
339 for (dp = readdir(dfd); dp != NULL; dp = readdir(dfd)) { in GetBootFiles()
351 (void) closedir(dfd); /* close BootDir */ in GetBootFiles()
/mirbsd/src/gnu/usr.sbin/sendmail/sendmail/
Dcollect.c198 int dfd; local
221 dfd = sm_io_getinfo(df, SM_IO_WHAT_FD, NULL);
222 if (dfd < 0 || fstat(dfd, &stbuf) < 0)
760 int dfd; local
768 dfd = sm_io_getinfo(df, SM_IO_WHAT_FD, NULL);
769 if (dfd >= 0)
770 dumpfd(dfd, true, true);
Dmap.c1411 int dfd; local
1579 dfd = dbm_dirfno(dbm);
1581 if (dfd == pfd)
1595 if (filechanged(dirfile, dfd, &std) ||
1624 if (dfd >= 0)
1625 (void) lockfile(dfd, map->map_file, ".dir", LOCK_UN);
1639 if (fchown(dfd, TrustedUid, -1) < 0 ||
1675 int dfd, pfd; local
1695 dfd = dbm_dirfno((DBM *) map->map_db1);
1696 if (dfd >= 0 && !bitset(MF_LOCKED, map->map_mflags))
[all …]
Dsrvrsmtp.c3608 int dfd; local
3615 dfd = sm_io_getinfo(df, SM_IO_WHAT_FD, NULL);
3616 if (dfd >= 0)
3617 dumpfd(dfd, true, true);
Dqueue.c551 int dfd; local
562 dfd = open(df, O_WRONLY|O_CREAT|O_TRUNC|QF_O_EXTRA,
566 if (dfd < 0 || (dfp = sm_io_open(SmFtStdiofd, SM_TIME_DEFAULT,
567 (void *) &dfd, SM_IO_WRONLY_B,
571 if (fstat(dfd, &stbuf) < 0)
/mirbsd/src/sbin/savecore/
Dsavecore.c525 DIR *dfd; in find_dev() local
530 if ((dfd = opendir(_PATH_DEV)) == NULL) { in find_dev()
535 while ((dir = readdir(dfd))) { in find_dev()
545 closedir(dfd); in find_dev()
553 closedir(dfd); in find_dev()
/mirbsd/src/sys/kern/
Dkern_descrip.c1217 dupfdopen(fdp, indx, dfd, mode, error) in dupfdopen() argument
1219 int indx, dfd;
1243 if ((wfp = fd_getfile(fdp, dfd)) == NULL)
1269 fdp->fd_ofileflags[indx] = fdp->fd_ofileflags[dfd];
1278 fdp->fd_ofiles[indx] = fdp->fd_ofiles[dfd];
1279 fdp->fd_ofileflags[indx] = fdp->fd_ofileflags[dfd];
1280 fdp->fd_ofiles[dfd] = NULL;
1281 fdp->fd_ofileflags[dfd] = 0;
1287 fd_unused(fdp, dfd);
/mirbsd/src/sys/sys/
Dfiledesc.h114 int dupfdopen(struct filedesc *fdp, int indx, int dfd, int mode,
/mirbsd/src/gnu/usr.bin/perl/
Dperlio.c2841 const int dfd = PerlLIO_dup(fileno(stdio)); local
2842 if (dfd >= 0) {
2843 stdio = PerlSIO_fdopen(dfd, PerlIO_modestr(o,mode));