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

12

/macosx-10.9.5/bash-92/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.9.5/Libc-997.90.3/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.9.5/ksh-20/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.9.5/ksh-20/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.9.5/ksh-20/ksh/src/cmd/ksh93/sh/
H A Dtdump.c189 static int p_redirect(register const struct ionod *iop) argument
191 while(iop)
193 if(iop->iovname)
194 sfputl(outfile,iop->iofile|IOVNM);
196 sfputl(outfile,iop->iofile);
197 p_string(iop->ioname);
198 if(iop->iodelim)
200 p_string(iop->iodelim);
201 sfputl(outfile,iop->iosize);
202 sfseek(sh.heredocs,iop
[all...]
H A Ddeparse.c426 static void p_redirect(register const struct ionod *iop) argument
430 for(;iop;iop=iop->ionxt)
432 iof=iop->iofile;
434 if(iop->iovname)
437 sfputr(outfile,iop->iovname,')');
444 if(*cp == '1' && !iop->iovname)
450 if(*cp == '0' && !iop->iovname)
468 if(iop
578 here_body(register const struct ionod *iop) argument
[all...]
H A Dmain.c111 int sh_source(Shell_t *shp, Sfio_t *iop, const char *file) argument
126 exfile(shp, iop, fd);
142 register Sfio_t *iop; local
179 iop = (Sfio_t*)0;
222 sh_source(shp, iop, e_sysprofile);
226 while ((name = *files++) && !sh_source(shp, iop, sh_mactry(shp,name)));
239 sh_source(shp, iop, e_bash_sysrc);
241 sh_source(shp, iop, shp->gd->rcfile ? shp->gd->rcfile : sh_mactry(shp,(char*)e_bash_rc));
250 sh_source(shp, iop, e_sysrc);
254 sh_source(shp, iop, nam
384 exfile(register Shell_t *shp, register Sfio_t *iop,register int fno) argument
[all...]
H A Dtrestore.c233 register struct ionod *iop=0, *iopold, *ioptop=0; local
236 iop = (struct ionod*)getnode(shp->stk,ionod);
238 ioptop = iop;
240 iopold->ionxt = iop;
241 iop->iofile = l;
242 iop->ioname = r_string(shp->stk);
243 if(iop->iodelim = r_string(shp->stk))
245 iop->iosize = sfgetl(infile);
247 iop->iooffset = sfseek(shp->heredocs,(off_t)0,SEEK_END);
251 iop
[all...]
H A Dio.c463 static int outexcept(register Sfio_t *iop,int type,void *data,Sfdisc_t *handle) argument
469 else if(type==SF_WRITE && (*(ssize_t*)data)<0 && sffileno(iop)!=2)
488 sfpurge(iop);
489 sfpool(iop,NIL(Sfio_t*),SF_WRITE);
491 errormsg(SH_DICT,ERROR_system(1),e_badwrite,sffileno(iop));
510 register Sfio_t *iop; local
540 if((iop = shp->sftable[fd]) && sffileno(iop)>=0)
543 sfset(iop,SF_LINE|SF_WCWIDTH,1);
544 sfsetbuf(iop, b
1089 sh_redirect(Shell_t *shp,struct ionod *iop, int flag) argument
1502 io_heredoc(Shell_t *shp,register struct ionod *iop, const char *name, int traceon) argument
1560 tee_write(Sfio_t *iop,const void *buff,size_t n,Sfdisc_t *unused) argument
1762 slowexcept(register Sfio_t *iop,int type,void *data,Sfdisc_t *handle) argument
1844 piperead(Sfio_t *iop,void *buff,register size_t size,Sfdisc_t *handle) argument
1872 slowread(Sfio_t *iop,void *buff,register size_t size,Sfdisc_t *handle) argument
2031 io_prompt(Shell_t *shp,Sfio_t *iop,register int flag) argument
2104 pipeexcept(Sfio_t* iop, int mode, void *data, Sfdisc_t* handle) argument
2220 register Sfio_t *iop; local
2245 eval_exceptf(Sfio_t *iop,int type, void *data, Sfdisc_t *handle) argument
2517 Sfio_t *iop=0; local
[all...]
H A Dlex.c182 static void lex_advance(Sfio_t *iop, const char *buff, register int size, void *context) argument
190 if(iop && !sfstacked(iop))
206 if(sffileno(iop)>=0)
207 lp->lexd.docend = sfsetbuf(iop,(Void_t*)iop,0);
1656 register struct ionod *iop; local
1665 iop = newof(0,struct ionod,1,lp->lexd.docextra+n+ARGVAL);
1666 iop->iolst = lp->heredoc;
1676 iop
1749 here_copy(Lex_t *lp,register struct ionod *iop) argument
2379 alias_exceptf(Sfio_t *iop,int type,void *data, Sfdisc_t *handle) argument
2423 register Sfio_t *iop, *base; local
[all...]
H A Dsubshell.c467 Sfio_t *iop=0; local
557 if(!(iop = sftmp(PIPE_BUF)))
562 sfswap(iop,sfstdout);
611 iop = sh_iostream(shp,sp->pipefd);
616 /* move tmp file to iop and restore sfstdout */
617 iop = sfswap(sfstdout,NIL(Sfio_t*));
618 if(!iop)
622 iop = sfswap(sfstdout,NIL(Sfio_t*));
624 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.9.5/Heimdal-323.92.1/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.9.5/Libc-997.90.3/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.9.5/ksh-20/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.9.5/ksh-20/ksh/src/cmd/ksh93/bltins/
H A Dread.c210 register Sfio_t *iop; local
228 if(!(iop=shp->sftable[fd]) && !(iop=sh_iostream(shp,fd)))
300 sfclrerr(iop);
305 if((c=(*nfp->disc->readf)(np,iop,delim,nfp))>=0)
314 was_write = (sfset(iop,SF_WRITE,0)&SF_WRITE)!=0;
316 was_share = (sfset(iop,SF_SHARE,1)&SF_SHARE)!=0;
324 timeslot = (void*)sh_timeradd(timeout,0,timedout,(void*)iop);
339 if((sfset(iop,SF_SHARE,1)&SF_SHARE) && fd!=0)
343 cp = sfreserve(iop,
[all...]
H A Dtypeset.c436 static void print_value(Sfio_t *iop, Namval_t *np, struct tdata *tp) argument
453 sfnputc(iop,'\t',tp->indent);
454 sfprintf(iop,"namespace %s\n", name);
456 sfnputc(iop,'\t',tp->indent);
457 sfprintf(iop,"{\n", name);
459 print_scan(iop,NV_NOSCOPE,root,aflag=='+',tp);
462 sfnputc(iop,'\t',tp->indent);
463 sfwrite(iop,"}\n",2);
466 sfputr(iop,nv_name(np),aflag=='+'?'\n':'=');
471 nv_outnode(np,iop,
1232 Sfio_t *iop=0; local
[all...]
H A Dhist.c263 Sfio_t *iop = sfnew(NIL(Sfio_t*),buff,IOBSIZE,fdo,SF_READ); local
267 sh_eval(iop,1);
/macosx-10.9.5/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.9.5/ksh-20/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);
475 register Sfio_t* iop = jp->outfile; local
[all...]
/macosx-10.9.5/dtrace-118.1/libelf/
H A Dinput.c97 Elf_Void *iop; local
154 iop = (Elf_Void *)(elf->ed_image + off);
162 (read(elf->ed_fd, iop, sz) != sz)) {
186 iop = (Elf_Void *)(elf->ed_image + off);
193 (read(elf->ed_fd, iop, sz) != sz)) {
/macosx-10.9.5/ksh-20/ksh/src/cmd/ksh93/edit/
H A Dhistory.c554 static int hist_nearend(History_t *hp, Sfio_t *iop, register off_t size) argument
559 if(size <= 2L || sfseek(iop,size,SEEK_SET)<0)
563 while(cp=buff=(unsigned char*)sfreserve(iop,SF_UNBOUND,SF_LOCKR))
565 n = sfvalue(iop);
587 sfread(iop,(char*)buff,n);
590 if((n=sfread(iop,(char*)marker,4))==4)
606 sfseek(iop,(off_t)2,SEEK_SET);
793 static ssize_t hist_write(Sfio_t *iop,const void *buff,register size_t insize,Sfdisc_t* handle) argument
795 static int hist_write(Sfio_t *iop,const void *buff,register int insize,Sfdisc_t* handle)
805 return(write(sffileno(iop),(cha
[all...]
/macosx-10.9.5/xnu-2422.115.4/bsd/kern/
H A Dkdebug.c360 kdbg_iop_list_is_valid(kd_iop_t* iop) argument
362 if (iop) {
364 kd_iop_t* temp = iop;
371 temp = iop;
418 kdbg_iop_list_callback(kd_iop_t* iop, kd_callback_type type, void* arg) argument
420 while (iop) {
421 iop->callback.func(iop->callback.context, type, arg);
422 iop = iop
814 kd_iop_t* iop; local
[all...]

Completed in 384 milliseconds

12