Home
last modified time | relevance | path

Searched refs:nfile (Results 1 – 17 of 17) sorted by relevance

/freebsd/bin/sh/
H A Dredir.c128 for (n = redir ; n ; n = n->nfile.next) { in redirect()
129 fd = n->nfile.fd; in redirect()
132 if ((n->nfile.type == NTOFD || n->nfile.type == NFROMFD) && in redirect()
168 int fd = redir->nfile.fd; in openredirect()
174 switch (redir->nfile.type) { in openredirect()
176 fname = redir->nfile.expfname; in openredirect()
181 fname = redir->nfile.expfname; in openredirect()
187 fname = redir->nfile.expfname; in openredirect()
206 fname = redir->nfile.expfname; in openredirect()
211 fname = redir->nfile.expfname; in openredirect()
H A Dshow.c130 for (np = cmd->ncmd.redirect ; np ; np = np->nfile.next) { in shcmd()
133 switch (np->nfile.type) { in shcmd()
145 if (np->nfile.fd != dftfd) in shcmd()
146 fprintf(fp, "%d", np->nfile.fd); in shcmd()
148 if (np->nfile.type == NTOFD || np->nfile.type == NFROMFD) { in shcmd()
153 } else if (np->nfile.type == NHERE) { in shcmd()
155 } else if (np->nfile.type == NXHERE) { in shcmd()
158 sharg(np->nfile.fname, fp); in shcmd()
H A Dnodetypes112 NTO nfile # fd> fname
113 NFROM nfile # fd< fname
114 NFROMTO nfile # fd<> fname
115 NAPPEND nfile # fd>> fname
116 NCLOBBER nfile # fd>| fname
H A Dparser.c428 rpp = &n2->nfile.next; in command()
601 rpp = &n2->nfile.next; in command()
655 rpp = &n->nfile.next; in simplecmd()
778 n->nfile.fname = makename(); in parsefname()
1031 np = (union node *)stalloc(sizeof (struct nfile)); in parseredir()
1033 np->nfile.fd = 1; in parseredir()
1046 np->nfile.fd = 0; in parseredir()
1049 if (sizeof (struct nfile) != sizeof (struct nhere)) { in parseredir()
1051 np->nfile.fd = 0; in parseredir()
1072 np->nfile.fd = digit_val(fd); in parseredir()
H A Djobs.c1360 if (n->nfile.fd != deffd) { in cmdtxtredir()
1361 s[0] = n->nfile.fd + '0'; in cmdtxtredir()
1374 cmdtxt(n->nfile.fname); in cmdtxtredir()
1460 for (np = n->ncmd.redirect ; np ; np = np->nfile.next) { in cmdtxt()
H A Deval.c524 for (redir = n ; redir ; redir = redir->nfile.next) { in expredir()
533 expandarg(redir->nfile.fname, &fn, EXP_TILDE); in expredir()
534 redir->nfile.expfname = fn.args[0]; in expredir()
/freebsd/usr.sbin/ypldap/
H A Dparse.y131 struct file *nfile; variable
133 if ((nfile = pushfile($2, 0)) == NULL) {
140 file = nfile;
680 struct file *nfile; in pushfile() local
682 if ((nfile = calloc(1, sizeof(struct file))) == NULL) { in pushfile()
686 if ((nfile->name = strdup(name)) == NULL) { in pushfile()
688 free(nfile); in pushfile()
691 if ((nfile->stream = fopen(nfile->name, "r")) == NULL) { in pushfile()
692 log_warn("%s", nfile->name); in pushfile()
693 free(nfile->name); in pushfile()
[all …]
/freebsd/usr.sbin/lpr/common_source/
H A Ddisplayq.c500 show(const char *nfile, const char *datafile, int copies) in show() argument
502 if (strcmp(nfile, " ") == 0) in show()
503 nfile = "(standard input)"; in show()
505 ldump(nfile, datafile, copies); in show()
507 dump(nfile, datafile, copies); in show()
524 dump(const char *nfile, const char *datafile, int copies) in dump() argument
538 nlen = strlen(nfile); in dump()
543 printf("...%s ", &nfile[3+nlen-rem]); in dump()
556 lastsep = strrchr(nfile, '/'); in dump()
569 printf("%s", nfile); in dump()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dmktree.c47 static int nfile = 2; variable
71 nfile = atoi(optarg); in main()
77 if (nlevel < 0 || ndir < 0 || nfile < 0 || pbasedir == NULL) { in main()
121 for (f = 0; f < nfile; f++) { in mktree()
130 for (f = 0; f < nfile; f++) { in mktree()
/freebsd/tests/sys/cddl/zfs/bin/
H A Dmktree.c47 static int nfile = 2; variable
71 nfile = atoi(optarg); in main()
77 if (nlevel < 0 || ndir < 0 || nfile < 0 || pbasedir == NULL) { in main()
121 for (f = 0; f < nfile; f++) { in mktree()
130 for (f = 0; f < nfile; f++) { in mktree()
/freebsd/tests/sys/cddl/zfs/tests/acl/nontrivial/
H A Dzfs_acl_chmod_aclmode_001_pos.ksh104 nfile=$basedir/nfile; ndir=$basedir/ndir
109 allnodes="$nfile $ndir"
435 log_must usr_exec $TOUCH $nfile
/freebsd/tools/test/stress2/misc/
H A Dsendfile13.sh186 char ofile[128], nfile[128];
231 sprintf(nfile, "%s/n%06d.%06d", todir, getpid(),
249 if (rename(ofile, nfile) != 0)
250 err(1, "rename(%s, %s)", ofile, nfile);
H A Dsendfile14.sh178 char ofile[128], nfile[128];
222 sprintf(nfile, "%s/n%06d.%06d", todir, getpid(), idx);
239 if (rename(ofile, nfile) != 0)
240 err(1, "rename(%s, %s)", ofile, nfile);
/freebsd/usr.sbin/lpr/lpr/
H A Dlpr.c112 static int nfile(char *_n);
315 tfd = nfile(tfname); in main()
535 fd = nfile(dfname); in copy()
623 nfile(char *n) in nfile() function
/freebsd/sbin/pfctl/
H A Dparse.y619 struct file *nfile; variable
621 if ((nfile = pushfile($2, 0)) == NULL) {
628 file = nfile;
6930 struct file *nfile; in pushfile() local
6932 if ((nfile = calloc(1, sizeof(struct file))) == NULL || in pushfile()
6933 (nfile->name = strdup(name)) == NULL) { in pushfile()
6937 if (TAILQ_FIRST(&files) == NULL && strcmp(nfile->name, "-") == 0) { in pushfile()
6938 nfile->stream = stdin; in pushfile()
6939 free(nfile->name); in pushfile()
6940 if ((nfile->name = strdup("stdin")) == NULL) { in pushfile()
[all …]
/freebsd/share/doc/smm/02.config/
H A Dspell.ok215 nfile
/freebsd/usr.bin/gzip/
H A Dgzip.c2054 print_verbage(const char *file, const char *nfile, off_t usize, off_t gsize) in print_verbage() argument
2060 if (nfile) in print_verbage()
2061 fprintf(stderr, " -- replaced with %s", nfile); in print_verbage()