Home
last modified time | relevance | path

Searched refs:infile (Results 1 – 25 of 71) sorted by relevance

123

/illumos-gate/usr/src/cmd/rpcgen/
H A Drpc_main.c256 if (infile != NULL && streq(outfile, infile)) { in open_output()
322 infilename = (infile == NULL) ? "<stdin>" : infile; in open_input()
330 if (infile) in open_input()
331 addarg(infile); in open_input()
413 if (infile && (include = extendfile(infile, ".h"))) { in c_output()
640 if (infile && (include = extendfile(infile, ".h"))) { in s_output()
729 if (infile && (include = extendfile(infile, ".h"))) { in l_output()
791 if (infile && (include = extendfile(infile, ".h"))) { in svc_output()
829 if (infile && (include = extendfile(infile, ".h"))) { in clnt_output()
1016 perror(infile); in checkfiles()
[all …]
/illumos-gate/usr/src/cmd/dfs.cmds/shareall/
H A Dshareall.sh52 -) infile=;; # use stdin
53 *) infile=$1;; # use a given source file
56 infile=/etc/dfs/dfstab # default
62 if [ "$infile" = "/etc/dfs/dfstab" ]
69 done < $infile |
83 done < $infile |
93 if [ "$infile" = "/etc/dfs/dfstab" ]
97 cat $infile|/sbin/sh
/illumos-gate/usr/src/cmd/dispadmin/
H A Dfssdispadmin.c67 char *infile; in main() local
102 infile = optarg; in main()
134 setadmin(infile); in main()
191 setadmin(char *infile) in setadmin() argument
211 if ((fp = fopen(infile, "r")) == NULL) in setadmin()
234 "resolution value\n", infile, line); in setadmin()
244 "quantum value\n", infile, line); in setadmin()
250 infile, line); in setadmin()
253 fatalerr("%s, line %d: syntax error\n", infile, line); in setadmin()
257 fatalerr("cannot read settings from %s\n", infile); in setadmin()
[all …]
H A Drtdispadmin.c73 char *infile; in main() local
103 infile = optarg; in main()
135 set_rtdptbl(infile); in main()
215 set_rtdptbl(infile) in set_rtdptbl() argument
216 char *infile; in set_rtdptbl()
250 if ((fp = fopen(infile, "r")) == NULL)
251 fatalerr("%s: Can't open %s for input\n", basenm, infile);
H A Dfxdispadmin.c70 char *infile; in main() local
105 infile = optarg; in main()
138 set_fxdptbl(infile); in main()
218 set_fxdptbl(char *infile) in set_fxdptbl() argument
255 if ((fp = fopen(infile, "r")) == NULL) in set_fxdptbl()
256 fatalerr("%s: Can't open %s for input\n", basenm, infile); in set_fxdptbl()
/illumos-gate/usr/src/tools/tokenize/
H A Dtokenize.sh42 infile=/tmp/$$
43 echo 'fcode-version1' > $infile
44 cat $1 >> $infile
45 echo 'end0' >> $infile
53 -s "aout-header? off silent? on tokenize $infile $outfile" < /dev/null
55 rm $infile
/illumos-gate/usr/src/cmd/bnu/
H A Dmailst.c48 mailst(user, subj, str, infile, errfile) in mailst() argument
49 char *user, *subj, *str, *infile, *errfile; in mailst()
83 if (*infile) {
84 if (!NOTEMPTY(infile))
86 else if (chkpth(infile, CK_READ) == FAIL) {
90 "user %s, stdin %s", user, infile);
93 else if ((fi = fopen(infile, "r")) == NULL) {
97 "user %s, stdin %s", user, infile);
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/
H A Dimport.c45 char *infile = NULL; in kc_import() local
70 infile = get_string(optarg_av, &rv); in kc_import()
71 if (infile == NULL) { in kc_import()
112 if (infile == NULL) { in kc_import()
128 rv = load_policies(infile, &plclist); in kc_import()
153 policyname, infile); in kc_import()
164 if (infile != NULL) in kc_import()
165 free(infile); in kc_import()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dtrestore.c43 static Sfio_t *infile; variable
50 infile = in; in sh_trestore()
59 long l = sfgetl(infile); in r_tree()
182 while((l=sfgetu(infile))>0) in r_arg()
196 ap->argflag = sfgetc(infile); in r_arg()
220 fp->fortyp = sfgetu(infile); in r_arg()
236 while((l=sfgetl(infile))>=0) in r_redirect()
283 com->comline = sfgetu(infile); in r_comarg()
305 if((l=sfgetl(infile))>0) in r_comlist()
320 while((l=sfgetl(infile))>=0) in r_switch()
[all …]
/illumos-gate/usr/src/cmd/loadkeys/
H A Dloadkeys.y72 static FILE *infile; variable
195 if (infile == NULL) return (1); in main()
202 fclose(infile); in main()
322 infile = fopen(pathbuf, "r"); in open_mapping_file()
323 if (infile) return (infile); in open_mapping_file()
339 return (infile); in open_mapping_file()
771 if ((c = getc(infile)) == EOF) in yylex()
774 (void) ungetc(c, infile); in yylex()
802 (void) ungetc(c, infile); in yylex()
851 (void) ungetc(c, infile); in yylex()
[all …]
/illumos-gate/usr/src/cmd/sed/
H A Dmain.c90 FILE *infile; /* Current input file */ variable
330 if (infile == NULL) { in mf_fgets()
336 infile = stdin; in mf_fgets()
345 if (infile != NULL && (c = getc(infile)) != EOF) { in mf_fgets()
346 (void) ungetc(c, infile); in mf_fgets()
350 if (infile == stdin) { in mf_fgets()
354 if (infile != NULL) { in mf_fgets()
355 (void) fclose(infile); in mf_fgets()
465 len = getline(&p, &plen, infile); in mf_fgets()
515 if (feof(infile) != 0 || (ch = getc(infile)) == EOF) { in lastline()
[all …]
/illumos-gate/usr/src/cmd/deroff/
H A Dderoff.c108 static FILE *infile; variable
173 infile = stdin; in main()
175 infile = opn(argv[optind++]); in main()
176 files[0] = infile; in main()
235 if (infile != stdin) in eof()
236 (void) fclose(infile); in eof()
238 infile = *--filesp; in eof()
240 infile = opn(argv[optind++]); in eof()
512 if (infile != stdin) { in comline()
513 (void) fclose(infile); in comline()
[all …]
/illumos-gate/usr/src/cmd/ctfconvert/
H A Dctfconvert.c253 const char *infile = NULL; in main() local
337 infile = argv[0]; in main()
343 ifd = open(infile, O_RDONLY); in main()
353 if (outfile != NULL && strcmp(infile, outfile) != 0) in main()
436 (void) unlink(infile); in main()
460 if (outfile == NULL || strcmp(infile, outfile) == 0) { in main()
461 if (asprintf(&tmpfile, "%s.ctf", infile) == -1) { in main()
463 (void) unlink(infile); in main()
473 (void) unlink(infile); in main()
480 if (rename(tmpfile, infile) != 0) { in main()
[all …]
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddevpolicy.c107 loadprivs(const char *infile) in loadprivs() argument
114 in = fopen(infile, "r"); in loadprivs()
150 loadpolicy(const char *infile) in loadpolicy() argument
164 in = fopen(infile, "r"); in loadpolicy()
167 err_print(OPEN_FAILED, infile, strerror(errno)); in loadpolicy()
197 err_print(DPLCY_ONE_DFLT, infile); in loadpolicy()
205 err_print(DPLCY_FIRST, infile); in loadpolicy()
258 err_print(UNEXPECTED_EOF, infile); in loadpolicy()
/illumos-gate/usr/src/cmd/tsol/zones/
H A Dzoneunshare.sh64 -) infile=;; # use stdin
65 *) infile=$1;; # use a given source file
68 infile=/etc/dfs/sharetab # default
76 done < $infile |
H A Dzoneshare.sh64 -) infile=;; # use stdin
65 *) infile=$1;; # use a given source file
68 infile=$prefix/etc/dfs/dfstab # default
78 done < $infile |
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dmain.cc68 char *infile = NULL; // input/output file names in main() local
231 infile = Stdin; in main()
233 infile = argv[optind]; in main()
240 open_input_file(infile, ihdr, israw, fflag, i_offset, fmt); in main()
247 infile, err.msg()); in main()
298 realfile = infile; in main()
304 perror(infile); in main()
330 infile); in main()
/illumos-gate/usr/src/cmd/streams/log/
H A Dstrace.c48 static int infile = 0; /* set if using standard input for arguments */ variable
82 infile = 0; in getarg()
96 infile = 0; in getarg()
125 if (infile) { in getid()
138 if (infile) in getid()
153 infile = 1; in getid()
/illumos-gate/usr/src/cmd/csplit/
H A Dcsplit.c66 FILE *infile, *outfile; /* I/O file streams */ variable
139 infile = tmpfile(); in main()
142 if (fwrite(tmpbuf, 1, BUFSIZ, infile) == 0) in main()
160 rewind(infile); in main()
161 } else if ((infile = fopen(*argv, "r")) == NULL) in main()
311 saveloc = ftello(infile); in findline()
322 (void) fseeko(infile, (offset_t)saveloc, SEEK_SET); in findline()
326 (void) fseeko(infile, (offset_t)saveloc, SEEK_SET); in findline()
420 ret = fgets(linbuf, LINSIZ, infile); in getaline()
/illumos-gate/usr/src/cmd/fm/mcdecode/
H A Dmcdecode.c219 const char *infile = NULL; in main() local
236 infile = optarg; in main()
255 if (outfile != NULL && infile != NULL) { in main()
269 if (argc != 1 && infile == NULL) { in main()
275 if (infile != NULL) { in main()
276 mcdecode_from_file(infile, pa); in main()
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dconfig.c91 FILE *infile; local
105 infile = fopen(filename, "rF");
106 if (!infile) {
115 while (fgets(buf, sizeof(buf), infile)) {
210 fclose(infile);
220 fclose(infile);
/illumos-gate/usr/src/cmd/awk/
H A Dlib.c66 static FILE *infile = NULL; variable
193 while (argno < *ARGC || infile == stdin) { in getrec()
211 infile = stdin; in getrec()
212 else if ((infile = fopen(file, "rF")) == NULL) in getrec()
216 c = readrec(&buf, &bufsize, infile); in getrec()
237 if (infile != stdin) in getrec()
238 (void) fclose(infile); in getrec()
239 infile = NULL; in getrec()
251 if (infile != NULL && infile != stdin) in nextfile()
252 (void) fclose(infile); in nextfile()
[all …]
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Dprocess_xattrs.c80 mv_xattrs(char *cmd, char *infile, char *outfile, int sattr, int silent) in mv_xattrs() argument
98 if ((srcfd = open(infile, O_RDONLY)) == -1) { in mv_xattrs()
103 response = sysattr_list(cmd, srcfd, infile); in mv_xattrs()
152 if (writefile(sattrfd, tattrfd, infile, outfile, dp->d_name, in mv_xattrs()
226 cmd, infile); in mv_xattrs()
230 "attributes, "), cmd, infile); in mv_xattrs()
H A Dwritefile.c44 writefile(int fi, int fo, char *infile, char *outfile, char *asfile, in writefile() argument
60 src_size = strlen(infile) + strlen(asfile) + in writefile()
63 src_size = strlen(infile) + 1; in writefile()
74 infile, dgettext(TEXT_DOMAIN, " attribute "), asfile); in writefile()
76 (void) snprintf(srcbuf, src_size, "%s", infile); in writefile()
/illumos-gate/usr/src/cmd/ypcmd/
H A Dmakedbm.c122 char *infile, *outfile; local
141 infile = outfile = NULL; /* where to get files */
205 } else if (infile == NULL)
206 infile = argv[0];
214 if (infile == NULL || outfile == NULL)
312 if (strcmp(infile, "-") != 0)
313 infp = fopen(infile, "r");
321 fprintf(stderr, "makedbm: can't open %s\n", infile);
433 addpair(fdb, yp_last_modified, get_date(infile));

123