/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | deparse.c | 417 static void p_redirect(register const struct ionod *iop) argument 421 for(;iop;iop=iop->ionxt) 423 iof=iop->iofile; 425 if(iop->iovname) 428 sfputr(outfile,iop->iovname,')'); 435 if(*cp == '1' && !iop->iovname) 441 if(*cp == '0' && !iop->iovname) 459 if(iop 567 here_body(register const struct ionod *iop) argument [all...] |
H A D | main.c | 111 int sh_source(Shell_t *shp, Sfio_t *iop, const char *file) argument 126 exfile(shp, iop, fd); 142 register Sfio_t *iop; local 178 iop = (Sfio_t*)0; 221 sh_source(shp, iop, e_sysprofile); 225 while ((name = *files++) && !sh_source(shp, iop, sh_mactry(shp,name))); 238 sh_source(shp, iop, e_bash_sysrc); 240 sh_source(shp, iop, shp->rcfile ? shp->rcfile : sh_mactry(shp,(char*)e_bash_rc)); 249 sh_source(shp, iop, e_sysrc); 253 sh_source(shp, iop, nam 383 exfile(register Shell_t *shp, register Sfio_t *iop,register int fno) argument [all...] |
H A D | nvtree.c | 52 static int read_tree(Namval_t* np, Sfio_t *iop, int n, Namfun_t *dp) argument 59 while((c = sfgetc(iop)) && isblank(c)); 60 sfungetc(iop,c); 64 sfstack(iop,sp); 65 c=sh_eval(iop,SH_READEVAL);
|
H A D | subshell.c | 479 Sfio_t *iop=0; local 556 if(!(iop = sftmp(PIPE_BUF))) 561 sfswap(iop,sfstdout); 604 iop = sh_iostream(shp,sp->pipefd); 609 /* move tmp file to iop and restore sfstdout */ 610 iop = sfswap(sfstdout,NIL(Sfio_t*)); 611 if(!iop) 615 iop = sfswap(sfstdout,NIL(Sfio_t*)); 617 if(iop && sffileno(iop) [all...] |
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/ |
H A D | doscan.c | 42 #define locgetc() (chcount+=1,getc(iop)) 43 #define locungetc(x) (chcount-=1,ungetc(x,iop)) 83 _doscan(FILE *iop, unsigned char *fmt, va_list va_alist) argument 167 if ((size = string(stow,ch,len,tab,iop,&va_alist)) < 0) 181 if ((size = number(stow, ch, len, size, iop, &va_alist)) < 0) 202 number(int stow, int type, int len, int size, FILE *iop, va_list *listp) argument 254 file_to_decimal(&nb, len, 0, &dr, &form, &echar, iop, &nread); 309 if ( (iop->_flag & _IOSTRG) || (iop->_cnt != 0) ) 313 if ( read(fileno(iop),n 414 string(int stow, int type, int len, char *tab, FILE *iop, va_list *listp) argument [all...] |
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | _open.c | 300 FILE *iop; local 304 iop = _findiop(); 306 if (iop == NULL || file == NULL || file[0] == '\0') 324 iop->_cnt = 0; 325 iop->_file = fd; 326 iop->_flag = plus ? _IORW : (mode[0] == 'r') ? _IOREAD : _IOWRT; 333 iop->_base = iop->_ptr = NULL; 334 iop->_bufsiz = 0; 335 return (iop); [all...] |
/illumos-gate/usr/src/cmd/sh/ |
H A D | io.c | 223 struct ionod *iop; local 233 if (iop = ioparg) { 235 copy(iop->iolst); 236 ends = mactrim(iop->ioname); 237 stripflg = iop->iofile & IOSTRIP; 239 iop->iofile &= ~IODOC_SUBST; 243 iop->ioname = (char *)make(tmpout); 245 iop->ioname = (char *)cpystak(tmpout); 247 iop->iolst = iotemp; 248 iotemp = iop; [all...] |
H A D | service.c | 50 initio(struct ionod *iop, int save) argument 59 while (iop) { 60 iof = iop->iofile; 61 ion = mactrim(iop->ioname); 110 iop = iop->ionxt;
|
/illumos-gate/usr/src/lib/libast/common/disc/ |
H A D | sfdcdos.c | 109 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...] |
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | term.c | 616 int iop, width; local 618 iop = 0; 623 iop = 1; 627 iop = -1; 636 iop = 0; 638 (*p->setwidth)(p, iop, width);
|
/illumos-gate/usr/src/lib/libshell/common/bltins/ |
H A D | mkservice.c | 183 static void process_stream(Sfio_t* iop) argument 185 int r=0, fd = sffileno(iop);
|
H A D | read.c | 210 register Sfio_t *iop; local 227 if(!(iop=shp->sftable[fd]) && !(iop=sh_iostream(shp,fd))) 293 sfclrerr(iop); 298 if((c=(*nfp->disc->readf)(np,iop,delim,nfp))>=0) 307 was_write = (sfset(iop,SF_WRITE,0)&SF_WRITE)!=0; 309 was_share = (sfset(iop,SF_SHARE,1)&SF_SHARE)!=0; 317 timeslot = (void*)sh_timeradd(timeout,0,timedout,(void*)iop); 332 if((sfset(iop,SF_SHARE,1)&SF_SHARE) && fd!=0) 336 cp = sfreserve(iop, [all...] |
H A D | print.c | 453 static ssize_t fmtbase64(Sfio_t *iop, char *string, int alt) argument 509 return(sfwrite(iop, (void*)&number, size)); 526 return (*fp->disc->writef)(np, iop, 0, fp); 540 size = sfwrite(iop, cp, size); 546 nv_outnode(np,iop,(alt?-1:0),0); 547 sfputc(iop,')'); 548 return(sftell(iop)); 557 return(sfwrite(iop,cp,size));
|
H A D | typeset.c | 404 static void print_value(Sfio_t *iop, Namval_t *np, struct tdata *tp) argument 414 sfputr(iop,nv_name(np),aflag=='+'?'\n':'='); 419 nv_outnode(np,iop,-1,0); 420 sfwrite(iop,")\n",2); 430 sfputr(iop,name,'\n'); 1064 Sfio_t *iop=0; local 1089 iop = tp->sh->heredocs; 1092 iop = sfopen(iop,fname,"r"); 1094 iop [all...] |
/illumos-gate/usr/src/cmd/bdiff/ |
H A D | bdiff.c | 442 FILE *iop; local 447 (iop = fdopen(fd, "w+")) == NULL) { 452 return (iop);
|
/illumos-gate/usr/src/uts/common/io/ppp/sppp/ |
H A D | sppp.c | 467 struct iocblk *iop; local 481 iop = (struct iocblk *)mp->b_rptr; 482 switch (iop->ioc_cmd) { 486 } else if (iop->ioc_count != 2 * sizeof (uint32_t) || 598 sps->sps_ioc_id = iop->ioc_id; 653 sps->sps_ioc_id = iop->ioc_id; 704 struct iocblk *iop; local 749 iop = (struct iocblk *)mp->b_rptr; 750 switch (iop->ioc_cmd) { 784 if (iop 859 struct iocblk *iop; local 976 struct iocblk *iop; local 1308 struct iocblk *iop; local 1856 struct iocblk *iop; local [all...] |
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | doscan.c | 58 #define locgetc(cnt) (cnt += 1, (iop->_flag & _IOWRT) ? \ 59 ((*iop->_ptr == '\0') ? EOF : *iop->_ptr++) : \ 60 GETC(iop)) 62 ((iop->_flag & _IOWRT) ? *(--iop->_ptr) : \ 63 (++iop->_cnt, *(--iop->_ptr)))) 65 #define wlocgetc() ((iop->_flag & _IOWRT) ? \ 66 ((*iop 108 _doscan(FILE *iop, const char *fmt, va_list va_Alist) argument 127 __wdoscan_u(FILE *iop, const wchar_t *fmt, va_list va_Alist, int scflag) argument 600 number(int *chcount, int *flag_eof, int stow, int type, int len, int size, FILE *iop, va_list *listp) argument 828 readchar(FILE *iop, int *chcount) argument 845 string(int *chcount, int *flag_eof, int stow, int type, int len, char *tab, FILE *iop, va_list *listp) argument 976 wstring(int *chcount, int *flag_eof, int stow, int type, int len, FILE *iop, va_list *listp) argument 1012 wstring(int *chcount, int *flag_eof, int stow, int type, int len, FILE *iop, va_list *listp) argument 1049 _wd_getwc(int *chcount, FILE *iop) argument 1074 _wd_ungetwc(int *chcount, wchar_t wc, FILE *iop) argument 1122 wbrstring(int *chcount, int *flag_eof, int stow, int type, int len, FILE *iop, unsigned char *brstr, va_list *listp) argument 1186 brstring(int *chcount, int *flag_eof, int stow, int type, int len, FILE *iop, unsigned char *brstr, va_list *listp) argument 1245 _bi_getwc(FILE *iop) argument 1307 _bi_ungetwc(wint_t wc, FILE *iop) argument [all...] |
H A D | flush.c | 195 * We also automatically skip non allocated iop's. 267 * for finer granularity, use fp->_lock for allocating an iop 387 isseekable(FILE *iop) argument 394 if (fstat64(GET_FD(iop), &fstatbuf) != 0) { 400 SET_SEEKABLE(iop); 413 CLEAR_SEEKABLE(iop); 415 SET_SEEKABLE(iop); 423 _setbufend(FILE *iop, Uchar *end) /* set the end pointer for this iop */ argument 425 iop 433 _realbufend(FILE *iop) argument 452 getxfdat(FILE *iop) argument 463 _setbufend(FILE *iop, Uchar *end) argument 483 _realbufend(FILE *iop) argument 500 _reallock(FILE *iop) argument 512 _bufsync(FILE *iop, Uchar *bufend) argument 526 _xflsbuf(FILE *iop) argument 564 fflush(FILE *iop) argument 659 _fflush_u(FILE *iop) argument 686 fclose(FILE *iop) argument 774 close_fd(FILE *iop) argument 832 _getmbstate(FILE *iop) argument 854 _file_get(FILE *iop) argument 887 _file_set(FILE *iop, int fd, const char *type) argument [all...] |
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | join.c | 132 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...] |
/illumos-gate/usr/src/cmd/mail/ |
H A D | init.c | 173 time_t iop; variable
|
/illumos-gate/usr/src/cmd/sgs/m4/common/ |
H A D | m4.c | 604 lnsync(FILE *iop) argument 609 if (!sflag || iop != stdout) 615 (void) fprintf(iop, "#line %d \"", cline = fline[ifx]); 616 fpath(iop); 617 (void) fprintf(iop, "\"\n"); 619 (void) fprintf(iop, "#line %d\n", cline = fline[ifx]); 623 fpath(FILE *iop) argument 630 (void) fprintf(iop, "%s", fname[0]); 633 (void) fprintf(iop, ":%s", fname[i]);
|
/illumos-gate/usr/src/ucblib/libucb/port/stdio/ |
H A D | doprnt.c | 65 _dowrite((p), (n), iop, &bufptr); \ 73 _dowrite((s), 20, iop, &bufptr); \ 143 _dowrite(char *p, ssize_t n, FILE *iop, unsigned char **ptrptr) argument 145 if (!(iop->_flag & _IOREAD)) { 146 iop->_cnt -= (*ptrptr - iop->_ptr); 147 iop->_ptr = *ptrptr; 148 _bufsync(iop, _bufend(iop)); 149 (void) fwrite(p, 1, n, iop); 156 _doprnt(char *format, va_list in_args, FILE *iop) argument [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_dev.c | 195 nsc_io_t **iop; local 224 for (iop = &_nsc_io_top; *iop; iop = &(*iop)->next) 225 if (id >= (*iop)->id) 228 io->next = (*iop); 229 (*iop) = io; 606 nsc_iodev_t *iop; local 619 for (iop 2200 nsc_io_t **iop; local [all...] |
/illumos-gate/usr/src/uts/common/io/ppp/spppasyn/ |
H A D | spppasyn.c | 521 struct iocblk *iop; local 531 iop = (struct iocblk *)mp->b_rptr; 532 ASSERT(state != NULL && iop != NULL); 537 switch (iop->ioc_cmd) { 540 if (iop->ioc_count != sizeof (uint32_t) || mp->b_cont == NULL) 571 if (iop->ioc_count != sizeof (uint32_t) || mp->b_cont == NULL) 602 if (iop->ioc_count < sizeof (uint32_t) || 603 iop->ioc_count > sizeof (ext_accm) || 609 (caddr_t)state->sa_xaccm, iop->ioc_count); 619 if (iop 775 struct iocblk *iop; local [all...] |
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | spppcomp.c | 709 struct iocblk *iop; local 712 iop = (struct iocblk *)mp->b_rptr; 715 switch (iop->ioc_cmd) { 717 if (iop->ioc_count != 2 * sizeof (uint32_t) || 756 if (iop->ioc_count != 2 || mp->b_cont == NULL) 784 if (iop->ioc_count < 2 || mp->b_cont == NULL) 796 if (opt_len > iop->ioc_count) { 797 opt_len = iop->ioc_count; 809 if (iop->ioc_cmd == PPPIO_XCOMP) { 876 if (iop 978 struct iocblk *iop; local 1151 struct iocblk *iop; local [all...] |