Home
last modified time | relevance | path

Searched refs:sfstdin (Results 1 – 25 of 55) sorted by relevance

123

/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dcomm.c129 if(cp1 && in1==sfstdin) in comm()
183 f1 = sfstdin; in b_comm()
188 f2 = sfstdin; in b_comm()
196 else if(f1==sfstdin || f2==sfstdin) in b_comm()
197 sfseek(sfstdin,(Sfoff_t)0,SEEK_END); in b_comm()
198 if(f1!=sfstdin) in b_comm()
200 if(f2!=sfstdin) in b_comm()
H A Djoin.c169 if (jp->file[0].iop && jp->file[0].iop != sfstdin) in done()
171 if (jp->file[1].iop && jp->file[1].iop != sfstdin) in done()
801 if (cp1 && jp->file[n].iop == sfstdin) in join()
802 sfseek(sfstdin, (Sfoff_t)0, SEEK_END); in join()
936 if (sfseek(sfstdin,(Sfoff_t)0,SEEK_CUR) < 0) in b_join()
938 if (sfdcseekable(sfstdin)) in b_join()
943 jp->file[0].iop = sfstdin; in b_join()
953 if (sfseek(sfstdin,(Sfoff_t)0,SEEK_CUR) < 0) in b_join()
955 if (sfdcseekable(sfstdin)) in b_join()
960 jp->file[1].iop = sfstdin; in b_join()
[all …]
H A Dtail.c279 if (tp->sp == sfstdin) in init()
287 tp->sp = sfstdin; in init()
330 pipetail(tp->sp ? tp->sp : sfstdin, op, number, delim); in init()
352 if (tp->sp != sfstdin) in init()
721 if (fp->sp && fp->sp != sfstdin) in b_tail()
738 if (fp->sp && fp->sp != sfstdin) in b_tail()
750 ip = sfstdin; in b_tail()
798 if (ip != sfstdin) in b_tail()
H A Dcmp.c333 f1 = sfstdin; in b_cmp()
341 f2 = sfstdin; in b_cmp()
394 if (f1 && f1 != sfstdin) in b_cmp()
396 if (f2 && f2 != sfstdin) in b_cmp()
H A Dpaste.c263 fp = sfstdin; in b_paste()
270 if(fp!=sfstdin) in b_paste()
281 if((fp=streams[n]) && fp!=sfstdin) in b_paste()
H A Dhead.c130 fp = sfstdin; in b_head()
152 if (fp != sfstdin) in b_head()
H A Drev.c150 fp = sfstdin; in b_rev()
161 if(fp!=sfstdin) in b_rev()
H A Dwc.c157 fp = sfstdin; in b_wc()
173 if (fp!=sfstdin) in b_wc()
H A Dtee.c198 …if ((sfmove(sfstdin, sfstdout, SF_UNBOUND, -1) < 0 || !sfeof(sfstdin)) && !ERROR_PIPE(errno) && er… in b_tee()
H A Dfold.c227 fp = sfstdin; in b_fold()
235 if(fp!=sfstdin) in b_fold()
H A Dcksum.c155 sp = sfstdin; in openfile()
170 return sp == sfstdin ? 0 : sfclose(sp); in closefile()
246 if (ip != sfstdin) in pr()
591 pr(&state, sfstdout, sfstdin, "/dev/stdin", state.permissions, NiL, state.check); in b_cksum()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/
H A Dsfdcmore.c213 r = ttyquery(sfstdin, f, more->prompt, dp);
219 if ((s = sfgetr(sfstdin, '\n', 1)) && (n = sfvalue(sfstdin) - 1) > 0)
319 if (!(sfset(f, 0, 0) & SF_WRITE) || !isatty(sffileno(sfstdin)) || !isatty(sffileno(sfstdout)))
335 astwinsize(sffileno(sfstdin), &rows, &cols);
354 if (sfdisc(sfstdin, &more->disc) != &more->disc)
359 more->input = sfstdin;
365 more->error = sfstdin;
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfextern.c34 (void)vtmtxopen(sfstdin->mutex, VT_INIT); in _sfoncef()
85 #undef sfstdin
89 Sfio_t* sfstdin = &_Sfstdin; variable
97 __EXTERN__(Sfio_t*,sfstdin);
H A Dsfwalk.c43 if(sfstdin->mode & SF_INIT)
44 _sfmode(sfstdin, (sfstdin->mode & SF_RDWR), 0);
H A Dsfnew.c53 { if(f != sfstdin && f != sfstdout && f != sfstderr)
86 { f = file == 0 ? sfstdin : file == 1 ? sfstdout : sfstderr;
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dastquery.c63 if (isatty(sffileno(sfstdin))) in astquery()
64 rfp = sfstdin; in astquery()
81 ip = sfstdin; in astquery()
H A Dastdynamic.c45 #undef sfstdin
70 sfstdin = sp; in _ast_libinit()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Drecfmt.c154 if (!(s = sfreserve(sfstdin, SF_UNBOUND, 0))) in main()
159 size = sfvalue(sfstdin); in main()
160 total = sfsize(sfstdin); in main()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/stdio/
H A Dfgetws.c48 FWIDE(sfstdin, 0); in getws()
49 while (p < e && (c = fgetwc(sfstdin)) != WEOF && (*p++ = c) != '\n'); in getws()
H A Dgetwchar.c30 return fgetwc(sfstdin); in getwchar()
H A Dgetchar.c37 return sfgetc(sfstdin);
H A Dvscanf.c29 return sfvscanf(sfstdin, fmt, args); in vscanf()
H A Dvwscanf.c29 return vfwscanf(sfstdin, fmt, args); in vwscanf()
H A D_stdscanf.c35 v = sfvscanf(sfstdin, fmt, args); in _stdscanf()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dshcomp.c109 in = sfstdin; in main()
172 if(in!=sfstdin) in main()

123