Searched refs:iop (Results 1 - 25 of 37) sorted by relevance

12

/macosx-10.10/bash-94.1.2/bash-3.2/lib/sh/
H A Dvprint.c43 vfprintf (iop, fmt, ap)
44 FILE *iop;
51 if (iop->_flag & _IONBF)
53 iop->_flag &= ~_IONBF;
54 iop->_ptr = iop->_base = localbuf;
55 len = _doprnt (fmt, ap, iop);
56 (void) fflush (iop);
57 iop->_flag |= _IONBF;
58 iop
[all...]
/macosx-10.10/Libc-1044.1.2/stdio/FreeBSD/
H A Dfsetpos.c46 fsetpos(iop, pos)
47 FILE *iop;
50 return (fseeko(iop, (off_t)*pos, SEEK_SET));
H A Dprintfcommon.h68 io_init(struct io_state *iop, FILE *fp) argument
71 iop->uio.uio_iov = iop->iov;
72 iop->uio.uio_resid = 0;
73 iop->uio.uio_iovcnt = 0;
74 iop->fp = fp;
82 io_print(struct io_state *iop, const CHAR * __restrict ptr, int len, locale_t loc) argument
85 iop->iov[iop->uio.uio_iovcnt].iov_base = (char *)ptr;
86 iop
110 io_pad(struct io_state *iop, int howmany, const CHAR * __restrict with, locale_t loc) argument
128 io_printandpad(struct io_state *iop, const CHAR *p, const CHAR *ep, int len, const CHAR * __restrict with, locale_t loc) argument
146 io_flush(struct io_state *iop, locale_t loc) argument
[all...]
/macosx-10.10/ksh-23/ksh/src/lib/libast/uwin/
H A Dgetpass.c53 Sfio_t *iop; local
56 if(!(iop = sfopen((Sfio_t*)0, "/dev/tty", "r")))
58 if(tcgetattr(sffileno(iop),&told) < 0)
63 if(tcsetattr(sffileno(iop),TCSANOW,&tnew) < 0)
67 if(cp = sfgetr(iop,'\n',1))
69 tcsetattr(sffileno(iop),TCSANOW,&told);
71 sfclose(iop);
/macosx-10.10/ksh-23/ksh/src/lib/libast/disc/
H A Dsfdcdos.c109 static ssize_t dos_read(Sfio_t *iop, void *buff, size_t size, Sfdisc_t* disc) argument
111 static ssize_t dos_read(iop, buff, size, disc)
112 Sfio_t *iop;
129 if((n = sfrd(iop,buff,size,disc)) <= 0)
230 static Sfoff_t cur_offset(Dosdisc_t *dp, Sfoff_t offset,Sfio_t *iop,register int whence) argument
232 static Sfoff_t cur_offset(dp, offset, iop, whence)
235 Sfio_t *iop;
246 iop->next = iop->data + n;
271 iop
276 dos_seek(Sfio_t *iop, Sfoff_t offset, register int whence, Sfdisc_t* disc) argument
367 dos_except(Sfio_t *iop, int type, void *arg, Sfdisc_t *disc) argument
[all...]
/macosx-10.10/ksh-23/ksh/src/cmd/ksh93/sh/
H A Dtdump.c191 static int p_redirect(register const struct ionod *iop) argument
193 while(iop)
195 if(iop->iovname)
196 sfputl(outfile,iop->iofile|IOVNM);
198 sfputl(outfile,iop->iofile);
199 p_string(iop->ioname);
200 if(iop->iodelim)
202 p_string(iop->iodelim);
203 sfputl(outfile,iop->iosize);
204 sfseek(sh.heredocs,iop
[all...]
H A Ddeparse.c434 static void p_redirect(register const struct ionod *iop) argument
438 for(;iop;iop=iop->ionxt)
440 iof=iop->iofile;
442 if(iop->iovname)
445 sfputr(outfile,iop->iovname,')');
452 if(*cp == '1' && !iop->iovname)
458 if(*cp == '0' && !iop->iovname)
476 if(iop
586 here_body(register const struct ionod *iop) argument
[all...]
H A Dmain.c94 int sh_source(Shell_t *shp, Sfio_t *iop, const char *file) argument
109 exfile(shp, iop, fd);
125 register Sfio_t *iop; local
159 iop = (Sfio_t*)0;
202 sh_source(shp, iop, e_sysprofile);
206 while ((name = *files++) && !sh_source(shp, iop, sh_mactry(shp,name)));
219 sh_source(shp, iop, e_bash_sysrc);
221 sh_source(shp, iop, shp->gd->rcfile ? shp->gd->rcfile : sh_mactry(shp,(char*)e_bash_rc));
230 sh_source(shp, iop, e_sysrc);
234 sh_source(shp, iop, nam
364 exfile(register Shell_t *shp, register Sfio_t *iop,register int fno) argument
[all...]
H A Dtrestore.c235 register struct ionod *iop=0, *iopold, *ioptop=0; local
238 iop = (struct ionod*)getnode(shp->stk,ionod);
240 ioptop = iop;
242 iopold->ionxt = iop;
243 iop->iofile = l;
244 iop->ioname = r_string(shp->stk);
245 if(iop->iodelim = r_string(shp->stk))
247 iop->iosize = sfgetl(infile);
249 iop->iooffset = sfseek(shp->heredocs,(off_t)0,SEEK_END);
253 iop
[all...]
H A Dlex.c183 static void lex_advance(Sfio_t *iop, const char *buff, register int size, void *context) argument
191 if(iop && !sfstacked(iop))
207 if(sffileno(iop)>=0)
208 lp->lexd.docend = sfsetbuf(iop,(Void_t*)iop,0);
1697 register struct ionod *iop; local
1706 iop = newof(0,struct ionod,1,lp->lexd.docextra+n+ARGVAL);
1707 iop->iolst = lp->heredoc;
1717 iop
1790 here_copy(Lex_t *lp,register struct ionod *iop) argument
2448 alias_exceptf(Sfio_t *iop,int type,void *data, Sfdisc_t *handle) argument
2492 register Sfio_t *iop, *base; local
[all...]
H A Dio.c472 static int outexcept(register Sfio_t *iop,int type,void *data,Sfdisc_t *handle) argument
478 else if(type==SF_WRITE && (*(ssize_t*)data)<0 && sffileno(iop)!=2)
497 sfpurge(iop);
498 sfpool(iop,NIL(Sfio_t*),SF_WRITE);
500 errormsg(SH_DICT,ERROR_system(1),e_badwrite,sffileno(iop));
519 register Sfio_t *iop; local
549 if((iop = shp->sftable[fd]) && sffileno(iop)>=0)
552 sfset(iop,SF_LINE|SF_WCWIDTH,1);
553 sfsetbuf(iop, b
1134 sh_redirect(Shell_t *shp,struct ionod *iop, int flag) argument
1552 io_heredoc(Shell_t *shp,register struct ionod *iop, const char *name, int traceon) argument
1636 tee_write(Sfio_t *iop,const void *buff,size_t n,Sfdisc_t *unused) argument
1841 slowexcept(register Sfio_t *iop,int type,void *data,Sfdisc_t *handle) argument
1925 piperead(Sfio_t *iop,void *buff,register size_t size,Sfdisc_t *handle) argument
1953 slowread(Sfio_t *iop,void *buff,register size_t size,Sfdisc_t *handle) argument
2112 io_prompt(Shell_t *shp,Sfio_t *iop,register int flag) argument
2185 pipeexcept(Sfio_t* iop, int mode, void *data, Sfdisc_t* handle) argument
2301 register Sfio_t *iop; local
2326 eval_exceptf(Sfio_t *iop,int type, void *data, Sfdisc_t *handle) argument
2599 Sfio_t *iop=0; local
[all...]
H A Dsubshell.c478 Sfio_t *iop=0; local
605 if(!(iop = sftmp(PIPE_BUF)))
610 sfswap(iop,sfstdout);
660 iop = sh_iostream(shp,sp->pipefd);
665 /* move tmp file to iop and restore sfstdout */
666 iop = sfswap(sfstdout,NIL(Sfio_t*));
667 if(!iop)
671 iop = sfswap(sfstdout,NIL(Sfio_t*));
673 if(iop && sffileno(iop)
[all...]
H A Dbash.c313 Sfio_t *iop; local
417 iop = sfopen(NULL, bash_pre_rc, "s");
418 sh_eval(iop,0);
H A Dnvtree.c53 static int read_tree(Namval_t* np, Sfio_t *iop, int n, Namfun_t *dp) argument
60 while((c = sfgetc(iop)) && isblank(c));
61 sfungetc(iop,c);
65 sfstack(iop,sp);
66 c=sh_eval(iop,SH_READEVAL);
/macosx-10.10/Heimdal-398.1.2/appl/ftp/ftpd/
H A Dpopen.c104 FILE *iop; local
162 iop = NULL;
192 iop = fdopen(pdes[0], type);
195 iop = fdopen(pdes[1], type);
198 pids[fileno(iop)] = pid;
205 return (iop);
209 ftpd_pclose(FILE *iop) argument
219 if (pids == 0 || pids[fdes = fileno(iop)] == 0)
221 fclose(iop);
/macosx-10.10/Libc-1044.1.2/gen/FreeBSD/
H A Dpopen.c99 FILE *iop; local
127 iop = fdopen(pdes[0], type);
130 iop = fdopen(pdes[1], type);
133 if (iop == NULL) {
140 (void)fclose(iop);
146 (void)fclose(iop);
188 (void)fclose(iop);
206 cur->fp = iop;
211 fwide(iop, -1); /* byte stream */
212 return (iop);
[all...]
/macosx-10.10/ksh-23/ksh/src/lib/libast/comp/
H A Dwordexp.c67 register Sfio_t *iop; local
126 if(!(iop = sfpopen((Sfio_t*)0,stakptr(0),"r")))
133 while((c=sfgetc(iop)) != EOF)
144 if(c=sfclose(iop))
/macosx-10.10/cron-39/cron/
H A Dpopen.c63 FILE *iop; local
116 iop = NULL;
268 iop = fdopen(pdes[0], type);
271 iop = fdopen(pdes[1], type);
274 pids[fileno(iop)] = pid;
283 return(iop);
287 cron_pclose(iop)
288 FILE *iop;
299 if (pids == 0 || pids[fdes = fileno(iop)] == 0)
301 (void)fclose(iop);
[all...]
/macosx-10.10/ksh-23/ksh/src/lib/libcmd/
H A Djoin.c132 Sfio_t* iop; member in struct:File_s
169 if (jp->file[0].iop && jp->file[0].iop != sfstdin)
170 sfclose(jp->file[0].iop);
171 if (jp->file[1].iop && jp->file[1].iop != sfstdin)
172 sfclose(jp->file[1].iop);
308 sfraise(fp->iop, SFSK_DISCARD, NiL);
311 if (!(cp = sfgetr(fp->iop, '\n', 0)))
317 fp->reclen = sfvalue(fp->iop);
465 register Sfio_t* iop = jp->outfile; local
[all...]
/macosx-10.10/ksh-23/ksh/src/cmd/ksh93/bltins/
H A Dread.c210 register Sfio_t *iop; local
230 if(!(iop=shp->sftable[fd]) && !(iop=sh_iostream(shp,fd)))
316 sfclrerr(iop);
322 if((c=(*nfp->disc->readf)(mp,iop,delim,nfp))>=0)
331 was_write = (sfset(iop,SF_WRITE,0)&SF_WRITE)!=0;
333 was_share = (sfset(iop,SF_SHARE,shp->redir0!=2)&SF_SHARE)!=0;
341 timeslot = (void*)sh_timeradd(timeout,0,timedout,(void*)iop);
356 if((sfset(iop,SF_SHARE,1)&SF_SHARE) && fd!=0)
360 cp = sfreserve(iop,
[all...]
H A Dtypeset.c460 static void print_value(Sfio_t *iop, Namval_t *np, struct tdata *tp) argument
481 sfnputc(iop,'\t',tp->indent);
482 sfprintf(iop,"namespace %s\n", name);
484 sfnputc(iop,'\t',tp->indent);
485 sfprintf(iop,"{\n", name);
490 sh_outtype(tp->sh,iop);
495 print_scan(iop,NV_NOSCOPE,nv_dict(np),aflag=='+',tp);
499 print_scan(iop,NV_FUNCTION|NV_NOSCOPE,tp->sh->fun_tree,aflag=='+',tp);
503 sfnputc(iop,'\t',tp->indent);
504 sfwrite(iop,"}\
1316 Sfio_t *iop=0; local
[all...]
H A Dprint.c515 static ssize_t fmtbase64(Sfio_t *iop, char *string, int alt) argument
572 return(sfwrite(iop, (void*)&number, size));
589 return (*fp->disc->writef)(np, iop, 0, fp);
603 size = sfwrite(iop, cp, size);
609 nv_outnode(np,iop,(alt?-1:0),0);
610 sfputc(iop,')');
611 return(sftell(iop));
625 return(sfwrite(iop,cp,size));
H A Dhist.c267 Sfio_t *iop = sfnew(NIL(Sfio_t*),buff,IOBSIZE,fdo,SF_READ); local
271 sh_eval(iop,1);
/macosx-10.10/dtrace-147/libelf/
H A Dinput.c94 Elf_Void *iop; local
151 iop = (Elf_Void *)(elf->ed_image + off);
159 (read(elf->ed_fd, iop, sz) != sz)) {
183 iop = (Elf_Void *)(elf->ed_image + off);
190 (read(elf->ed_fd, iop, sz) != sz)) {
/macosx-10.10/ksh-23/ksh/src/cmd/ksh93/edit/
H A Dhistory.c558 static int hist_nearend(History_t *hp, Sfio_t *iop, register off_t size) argument
563 if(size <= 2L || sfseek(iop,size,SEEK_SET)<0)
567 while(cp=buff=(unsigned char*)sfreserve(iop,SF_UNBOUND,SF_LOCKR))
569 n = sfvalue(iop);
591 sfread(iop,(char*)buff,n);
594 if((n=sfread(iop,(char*)marker,4))==4)
610 sfseek(iop,(off_t)2,SEEK_SET);
797 static ssize_t hist_write(Sfio_t *iop,const void *buff,register size_t insize,Sfdisc_t* handle) argument
799 static int hist_write(Sfio_t *iop,const void *buff,register int insize,Sfdisc_t* handle)
809 return(write(sffileno(iop),(cha
[all...]

Completed in 191 milliseconds

12