/illumos-gate/usr/src/cmd/bhyve/ |
H A D | qemu_fwcfg.c | 311 struct inout_port iop; in qemu_fwcfg_register_port() local 313 bzero(&iop, sizeof(iop)); in qemu_fwcfg_register_port() 314 iop.name = name; in qemu_fwcfg_register_port() 315 iop.port = port; in qemu_fwcfg_register_port() 316 iop.size = size; in qemu_fwcfg_register_port() 317 iop.flags = flags; in qemu_fwcfg_register_port() 318 iop.handler = handler; in qemu_fwcfg_register_port() 320 return (register_inout(&iop)); in qemu_fwcfg_register_port()
|
H A D | inout.h | 94 int register_inout(struct inout_port *iop); 95 int unregister_inout(struct inout_port *iop);
|
H A D | vga.c | 1294 struct inout_port iop; in vga_init() local 1300 bzero(&iop, sizeof(struct inout_port)); in vga_init() 1301 iop.name = "VGA"; in vga_init() 1303 iop.port = port; in vga_init() 1304 iop.size = 1; in vga_init() 1305 iop.flags = IOPORT_F_INOUT; in vga_init() 1306 iop.handler = vga_port_handler; in vga_init() 1307 iop.arg = sc; in vga_init() 1309 error = register_inout(&iop); in vga_init()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | subshell.c | 484 Sfio_t *iop=0; in sh_subshell() local 611 if(!(iop = sftmp(PIPE_BUF))) in sh_subshell() 616 sfswap(iop,sfstdout); in sh_subshell() 666 iop = sh_iostream(shp,sp->pipefd); in sh_subshell() 673 if(!iop) in sh_subshell() 679 if(iop && sffileno(iop)==1) in sh_subshell() 689 shp->sftable[fd] = iop; in sh_subshell() 694 sfset(iop,SF_READ,1); in sh_subshell() 815 if(comsub && iop && sp->pipefd<0) in sh_subshell() 816 sfseek(iop,(off_t)0,SEEK_SET); in sh_subshell() [all …]
|
H A D | parse.c | 355 if(fcfopen(iop) < 0) in sh_parse() 372 sfgetc(iop); in sh_parse() 398 if((sfset(iop,0,0)&SF_STRING) && !sfreserve(iop,0,-1)) in sh_parse() 756 Sfio_t *iop; in funct() local 779 fcfopen(iop); in funct() 1733 iop->iodelim = 0; in inout() 1783 iop->iolst = 0; in inout() 1787 iop->iofile=iof; in inout() 1815 iop->ionxt=ioq; in inout() 1820 iop->ionxt=0; in inout() [all …]
|
H A D | xec.c | 419 sfputc(iop,'\\'); in out_pattern() 422 sfputc(iop,c); in out_pattern() 439 sfputr(iop,cp,c); in out_string() 519 sfputc(iop,'['); in sh_debug() 539 sfputc(iop,')'); in sh_debug() 607 sfclose(iop); in sh_eval() 1848 for(;iop;iop=iop->ionxt) in sh_exec() 2389 Sfio_t *iop=0; in sh_exec() local 2443 if(iop) in sh_exec() 2479 if(iop) in sh_exec() [all …]
|
H A D | bash.c | 313 Sfio_t *iop; in bash_init() local 417 iop = sfopen(NULL, bash_pre_rc, "s"); in bash_init() 418 sh_eval(iop,0); in bash_init()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | wordexp.c | 67 register Sfio_t *iop; in wordexp() local 126 if(!(iop = sfpopen((Sfio_t*)0,stakptr(0),"r"))) in wordexp() 133 while((c=sfgetc(iop)) != EOF) in wordexp() 144 if(c=sfclose(iop)) in wordexp()
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | fgetc.c | 42 fgetc(FILE *iop) in fgetc() argument 44 return (getc(iop)); in fgetc()
|
H A D | fputc.c | 40 fputc(int ch, FILE *iop) in fputc() argument 42 return (putc(ch, iop)); in fputc()
|
H A D | fileno.c | 42 fileno(FILE *iop) in fileno() argument 44 return (_get_fd(iop)); in fileno()
|
H A D | feof.c | 42 feof(FILE *iop) in feof() argument 44 return (iop->_flag & _IOEOF); in feof()
|
H A D | ferror.c | 42 ferror(FILE *iop) in ferror() argument 44 return (iop->_flag & _IOERR); in ferror()
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | myfopen.c | 139 my_fclose(register FILE *iop) in my_fclose() argument 143 int ret = fclose(iop); in my_fclose() 145 cur = search(iop); in my_fclose()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | typeset.c | 486 sfprintf(iop,"{\n", name); in print_value() 491 sh_outtype(tp->sh,iop); in print_value() 505 sfwrite(iop,"}\n",2); in print_value() 513 nv_outnode(np,iop,-1,0); in print_value() 514 sfwrite(iop,")\n",2); in print_value() 524 sfputr(iop,name,'\n'); in print_value() 1318 Sfio_t *iop=0; in print_namval() local 1348 iop = tp->sh->heredocs; in print_namval() 1351 iop = sfopen(iop,fname,"r"); in print_namval() 1354 if(iop && sfseek(iop,(Sfoff_t)np->nvalue.rp->hoffset,SEEK_SET)>=0) in print_namval() [all …]
|
H A D | print.c | 525 static ssize_t fmtbase64(Sfio_t *iop, char *string, int alt) in fmtbase64() argument 582 return(sfwrite(iop, (void*)&number, size)); in fmtbase64() 599 return (*fp->disc->writef)(np, iop, 0, fp); in fmtbase64() 613 size = sfwrite(iop, cp, size); in fmtbase64() 619 nv_outnode(np,iop,(alt?-1:0),0); in fmtbase64() 620 sfputc(iop,')'); in fmtbase64() 621 return(sftell(iop)); in fmtbase64() 635 return(sfwrite(iop,cp,size)); in fmtbase64()
|
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | spppcomp.c | 712 struct iocblk *iop; in spppcomp_inner_ioctl() local 715 iop = (struct iocblk *)mp->b_rptr; in spppcomp_inner_ioctl() 718 switch (iop->ioc_cmd) { in spppcomp_inner_ioctl() 799 if (opt_len > iop->ioc_count) { in spppcomp_inner_ioctl() 800 opt_len = iop->ioc_count; in spppcomp_inner_ioctl() 812 if (iop->ioc_cmd == PPPIO_XCOMP) { in spppcomp_inner_ioctl() 981 struct iocblk *iop; in spppcomp_ioctl() local 986 iop = (struct iocblk *)mp->b_rptr; in spppcomp_ioctl() 987 switch (iop->ioc_cmd) { in spppcomp_ioctl() 1154 struct iocblk *iop; in spppcomp_rput() local [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/ |
H A D | history.c | 558 static int hist_nearend(History_t *hp, Sfio_t *iop, register off_t size) in hist_nearend() argument 563 if(size <= 2L || sfseek(iop,size,SEEK_SET)<0) in hist_nearend() 567 while(cp=buff=(unsigned char*)sfreserve(iop,SF_UNBOUND,SF_LOCKR)) in hist_nearend() 569 n = sfvalue(iop); in hist_nearend() 591 sfread(iop,(char*)buff,n); in hist_nearend() 594 if((n=sfread(iop,(char*)marker,4))==4) in hist_nearend() 610 sfseek(iop,(off_t)2,SEEK_SET); in hist_nearend() 799 static int hist_write(Sfio_t *iop,const void *buff,register int insize,Sfdisc_t* handle) in hist_write() 809 return(write(sffileno(iop),(char*)buff,size)); in hist_write() 810 if((cur = lseek(sffileno(iop),(off_t)0,SEEK_END)) <0) in hist_write() [all …]
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | service.c | 50 initio(struct ionod *iop, int save) in initio() argument 59 while (iop) { in initio() 60 iof = iop->iofile; in initio() 61 ion = mactrim(iop->ioname); in initio() 110 iop = iop->ionxt; in initio()
|
/illumos-gate/usr/src/cmd/sgs/m4/common/ |
H A D | m4.c | 608 lnsync(FILE *iop) in lnsync() argument 613 if (!sflag || iop != stdout) in lnsync() 619 (void) fprintf(iop, "#line %d \"", cline = fline[ifx]); in lnsync() 620 fpath(iop); in lnsync() 621 (void) fprintf(iop, "\"\n"); in lnsync() 623 (void) fprintf(iop, "#line %d\n", cline = fline[ifx]); in lnsync() 627 fpath(FILE *iop) in fpath() argument 634 (void) fprintf(iop, "%s", fname[0]); in fpath() 637 (void) fprintf(iop, ":%s", fname[i]); in fpath()
|
/illumos-gate/usr/src/uts/common/io/ppp/spppasyn/ |
H A D | spppasyn.c | 520 struct iocblk *iop; in spppasyn_inner_ioctl() local 530 iop = (struct iocblk *)mp->b_rptr; in spppasyn_inner_ioctl() 531 ASSERT(state != NULL && iop != NULL); in spppasyn_inner_ioctl() 536 switch (iop->ioc_cmd) { in spppasyn_inner_ioctl() 601 if (iop->ioc_count < sizeof (uint32_t) || in spppasyn_inner_ioctl() 602 iop->ioc_count > sizeof (ext_accm) || in spppasyn_inner_ioctl() 608 (caddr_t)state->sa_xaccm, iop->ioc_count); in spppasyn_inner_ioctl() 618 if (iop->ioc_count != sizeof (uint32_t) || in spppasyn_inner_ioctl() 774 struct iocblk *iop; in spppasyn_wput() local 802 iop = (struct iocblk *)mp->b_rptr; in spppasyn_wput() [all …]
|
/illumos-gate/usr/src/uts/common/sys/idm/ |
H A D | idm_so.h | 116 int idm_iov_sosend(ksocket_t so, iovec_t *iop, int iovlen, 119 int idm_iov_sorecv(ksocket_t so, iovec_t *iop, int iovlen,
|
/illumos-gate/usr/src/uts/common/io/ppp/sppptun/ |
H A D | sppptun.c | 1108 struct iocblk *iop; in sppptun_inner_ioctl() local 1122 iop = (struct iocblk *)mp->b_rptr; in sppptun_inner_ioctl() 1131 struct iocblk *, iop); in sppptun_inner_ioctl() 1133 switch (iop->ioc_cmd) { in sppptun_inner_ioctl() 1169 iop->ioc_count != sizeof (*ptn) || in sppptun_inner_ioctl() 1206 if (iop->ioc_cmd == PPPTUN_GINFO) { in sppptun_inner_ioctl() 1397 if (iop->ioc_cmd == PPPTUN_SDATA) { in sppptun_inner_ioctl() 1444 if (iop->ioc_cmd == PPPTUN_GDATA) in sppptun_inner_ioctl() 1510 struct iocblk *iop; in sppptun_ioctl() local 1516 iop = (struct iocblk *)mp->b_rptr; in sppptun_ioctl() [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | term_ascii.c | 163 ascii_setwidth(struct termp *p, int iop, int width) in ascii_setwidth() argument 168 if (iop > 0) in ascii_setwidth() 170 else if (iop == 0) in ascii_setwidth()
|
/illumos-gate/usr/src/cmd/bdiff/ |
H A D | bdiff.c | 440 FILE *iop; in maket() local 445 (iop = fdopen(fd, "w+")) == NULL) { in maket() 450 return (iop); in maket()
|