/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | main.c | 112 exfile(shp, iop, fd); in sh_source() 128 register Sfio_t *iop; in sh_main() local 162 iop = (Sfio_t*)0; in sh_main() 358 exfile(shp,iop,fdin); in sh_main() 379 if(!iop) in exfile() 397 iop = sfstdin; in exfile() 459 sfclrerr(iop); in exfile() 472 if(sfeof(iop)) in exfile() 546 sfclrerr(iop); in exfile() 555 sfclrlock(iop); in exfile() [all …]
|
H A D | trestore.c | 240 ioptop = iop; in r_redirect() 242 iopold->ionxt = iop; in r_redirect() 243 iop->iofile = l; in r_redirect() 247 iop->iosize = sfgetl(infile); in r_redirect() 253 iop->iooffset = 0; in r_redirect() 257 iopold = iop; in r_redirect() 258 if(iop->iofile&IOVNM) in r_redirect() 261 iop->iovname = 0; in r_redirect() 262 iop->iofile &= ~IOVNM; in r_redirect() 264 if(iop) in r_redirect() [all …]
|
H A D | io.c | 549 if((iop = shp->sftable[fd]) && sffileno(iop)>=0) in sh_iostream() 555 else if(!(iop=sfnew((fd<=2?iop:0),bp,IOBSIZE,fd,flags))) in sh_iostream() 587 return(iop); in sh_iostream() 1172 if(iop) in sh_redirect() 1174 for(;iop;iop=iop->ionxt) in sh_redirect() 1622 tmp = sftmp(iop->iosize<IOBSIZE?iop->iosize:0); in io_heredoc() 2359 return(iop); in sh_sfeval() 2654 return(iop); in sh_iogetiop() 2676 return(iop); in sh_iogetiop() 2681 return(iop); in sh_iogetiop() [all …]
|
H A D | lex.c | 194 if(iop && !sfstacked(iop)) in lex_advance() 210 if(sffileno(iop)>=0) in lex_advance() 211 lp->lexd.docend = sfsetbuf(iop,(Void_t*)iop,0); in lex_advance() 1755 iop->ioname = (char*)(iop+1); in nested_here() 1760 lp->heredoc = iop; in nested_here() 1841 if(iop->iolst) in here_copy() 1844 iop->iosize = 0; in here_copy() 1845 iop->iodelim=iop->ioname; in here_copy() 1850 iop->iodelim++; in here_copy() 1930 iop->iosize++; in here_copy() [all …]
|
/illumos-gate/usr/src/ucblib/libucb/port/stdio/ |
H A D | doprnt.c | 144 iop->_cnt -= (*ptrptr - iop->_ptr); in _dowrite() 145 iop->_ptr = *ptrptr; in _dowrite() 146 _bufsync(iop, _bufend(iop)); in _dowrite() 147 (void) fwrite(p, 1, n, iop); in _dowrite() 148 *ptrptr = iop->_ptr; in _dowrite() 263 if (iop->_base == 0 && _findbuf(iop) == 0) in _doprnt() 267 bufptr = iop->_ptr; in _doprnt() 270 : _bufend(iop); in _doprnt() 292 iop->_cnt -= d; in _doprnt() 293 iop->_ptr = bufptr; in _doprnt() [all …]
|
H A D | vfprintf.c | 49 vfprintf(FILE *iop, const char *format, va_list ap) in vfprintf() argument 53 if (!(iop->_flag & _IOWRT)) { in vfprintf() 55 if (iop->_flag & _IORW) { in vfprintf() 57 iop->_flag |= _IOWRT; in vfprintf() 63 count = _doprnt((char *) format, ap, iop); in vfprintf()
|
H A D | fprintf.c | 49 fprintf(FILE *iop, const char *format, ...) in fprintf() argument 56 if (!(iop->_flag & _IOWRT)) { in fprintf() 58 if (iop->_flag & _IORW) { in fprintf() 60 iop->_flag |= _IOWRT; in fprintf() 66 count = _doprnt((char *) format, ap, iop); in fprintf()
|
/illumos-gate/usr/src/lib/libc/inc/ |
H A D | mse.h | 57 #define _getmbstate(iop) (&(iop)->_state) argument 96 #define _SET_ORIENTATION_BYTE(iop) \ argument 98 if (GET_NO_MODE(iop)) \ 99 _setorientation(iop, _BYTE_MODE); \
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | vwscanf.c | 69 _vfwscanf_c89(FILE *iop, const wchar_t *fmt, va_list ap) in _vfwscanf_c89() argument 71 vfwscanf(FILE *iop, const wchar_t *fmt, va_list ap) in _vfwscanf_c89() 77 FLOCKFILE(lk, iop); in _vfwscanf_c89() 79 if (GET_NO_MODE(iop)) in _vfwscanf_c89() 80 _setorientation(iop, _WC_MODE); in _vfwscanf_c89() 84 ret = __wdoscan_u(iop, fmt, ap, _F_INTMAX32); in _vfwscanf_c89() 86 ret = __wdoscan_u(iop, fmt, ap, 0); in _vfwscanf_c89()
|
H A D | vscanf.c | 87 _vfscanf_c89(FILE *iop, const char *fmt, va_list ap) in _vfscanf_c89() argument 89 vfscanf(FILE *iop, const char *fmt, va_list ap) in _vfscanf_c89() 95 FLOCKFILE(lk, iop); in _vfscanf_c89() 97 _SET_ORIENTATION_BYTE(iop); in _vfscanf_c89() 100 ret = __doscan_u(iop, fmt, ap, _F_INTMAX32); in _vfscanf_c89() 102 ret = __doscan_u(iop, fmt, ap, 0); in _vfscanf_c89()
|
H A D | getchar.c | 49 FILE *iop = stdin; in getchar() local 51 return (getc(iop)); in getchar() 61 FILE *iop = stdin; in getchar_unlocked() local 63 return (GETC(iop)); in getchar_unlocked()
|
H A D | ftello.c | 59 ftello64(FILE *iop) in ftello64() argument 61 return (ftell_common(iop)); in ftello64() 67 ftello(FILE *iop) in ftello() argument 69 return ((off_t)ftell(iop)); in ftello()
|
H A D | putchar.c | 48 FILE *iop = stdout; local 50 return (putc(ch, iop)); 63 FILE *iop = stdout; local 65 return (PUTC(ch, iop));
|
H A D | popen.c | 94 FILE *iop; in popen() local 134 iop = fdopen(myfd, mode); in popen() 135 if (iop == NULL) { in popen() 176 (void) fclose(iop); in popen() 186 (void) fclose(iop); in popen() 201 _SET_ORIENTATION_BYTE(iop); in popen() 203 return (iop); in popen()
|
H A D | scanf.c | 59 fscanf(FILE *iop, const char *fmt, ...) in fscanf() argument 65 ret = vfscanf(iop, fmt, ap); in fscanf() 112 _fscanf_c89(FILE *iop, const char *fmt, ...) in _fscanf_c89() argument 118 ret = _vfscanf_c89(iop, fmt, ap); in _fscanf_c89()
|
H A D | clearerr.c | 42 clearerr(FILE *iop) in clearerr() argument 46 FLOCKFILE(lk, iop); in clearerr() 47 iop->_flag &= ~(_IOERR | _IOEOF); in clearerr()
|
H A D | wscanf.c | 57 fwscanf(FILE *iop, const wchar_t *fmt, ...) in fwscanf() argument 63 ret = vfwscanf(iop, fmt, ap); in fwscanf() 110 _fwscanf_c89(FILE *iop, const wchar_t *fmt, ...) in _fwscanf_c89() argument 116 ret = _vfwscanf_c89(iop, fmt, ap); in _fwscanf_c89()
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | atkbdc.c | 511 struct inout_port iop; in atkbdc_init() local 521 iop.name = "atkdbc"; in atkbdc_init() 522 iop.port = KBD_STS_CTL_PORT; in atkbdc_init() 523 iop.size = 1; in atkbdc_init() 524 iop.flags = IOPORT_F_INOUT; in atkbdc_init() 526 iop.arg = sc; in atkbdc_init() 532 iop.name = "atkdbc"; in atkbdc_init() 533 iop.port = KBD_DATA_PORT; in atkbdc_init() 534 iop.size = 1; in atkbdc_init() 535 iop.flags = IOPORT_F_INOUT; in atkbdc_init() [all …]
|
H A D | pci_lpc.c | 273 struct inout_port iop; in lpc_init() local 318 bzero(&iop, sizeof(struct inout_port)); in lpc_init() 319 iop.name = name; in lpc_init() 320 iop.port = sc->iobase; in lpc_init() 321 iop.size = UART_IO_BAR_SIZE; in lpc_init() 322 iop.flags = IOPORT_F_INOUT; in lpc_init() 323 iop.handler = lpc_uart_io_handler; in lpc_init() 324 iop.arg = sc; in lpc_init() 326 error = register_inout(&iop); in lpc_init()
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | io.c | 223 struct ionod *iop; in copy() local 233 if (iop = ioparg) { in copy() 235 copy(iop->iolst); in copy() 236 ends = mactrim(iop->ioname); in copy() 237 stripflg = iop->iofile & IOSTRIP; in copy() 239 iop->iofile &= ~IODOC_SUBST; in copy() 243 iop->ioname = (char *)make(tmpout); in copy() 245 iop->ioname = (char *)cpystak(tmpout); in copy() 247 iop->iolst = iotemp; in copy() 248 iotemp = iop; in copy() [all …]
|
H A D | cmd.c | 509 struct ionod *iop; local 544 iop = (struct ionod *)getstor(sizeof(struct ionod)); 547 iop->ioname = (char *) make(wdarg->argval); 549 iop->ioname = (char *) (wdarg->argval); 551 iop->iolink = 0; 552 iop->iofile = iof; 555 iop->iolst = iopend; 556 iopend = iop; 559 iop->ionxt = inout(lastio); 560 return(iop);
|
/illumos-gate/usr/src/uts/common/io/ppp/sppp/ |
H A D | sppp.c | 470 struct iocblk *iop; in sppp_ioctl() local 485 switch (iop->ioc_cmd) { in sppp_ioctl() 707 struct iocblk *iop; in sppp_uwput() local 753 switch (iop->ioc_cmd) { in sppp_uwput() 863 struct iocblk *iop; in sppp_uwsrv() local 981 struct iocblk *iop; in sppp_inner_ioctl() local 997 switch (iop->ioc_cmd) { in sppp_inner_ioctl() 1313 struct iocblk *iop; in sppp_outer_ioctl() local 1323 switch (iop->ioc_cmd) { in sppp_outer_ioctl() 1864 struct iocblk *iop; in sppp_recv_nondata() local [all …]
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_bitmap.c | 714 bm_getiov(int bmd, bm_io_t *iop) in bm_getiov() argument 721 if (!iop) in bm_getiov() 729 vp = iop->bmio_iov; in bm_getiov() 754 if (!iop) in bm_setiov() 760 else if (!iop->bmio_iov) in bm_setiov() 764 vp = iop->bmio_iov; in bm_setiov() 1501 if (!iop) in dbm_getiov() 1509 vp = iop->bmio_iov; in dbm_getiov() 1534 if (!iop) in dbm_setiov() 1540 else if (!iop->bmio_iov) in dbm_setiov() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | input.c | 89 Elf_Void *iop; in _elf_vm() local 146 iop = (Elf_Void *)(elf->ed_image + off); in _elf_vm() 154 (read(elf->ed_fd, iop, sz) != sz)) { in _elf_vm() 178 iop = (Elf_Void *)(elf->ed_image + off); in _elf_vm() 185 (read(elf->ed_fd, iop, sz) != sz)) { in _elf_vm()
|
/illumos-gate/usr/src/lib/libc/port/print/ |
H A D | print.h | 46 _doprnt(const char *format, va_list in_args, FILE *iop); 49 _ndoprnt(const char *format, va_list in_args, FILE *iop, int flag); 52 _wndoprnt(const wchar_t *format, va_list in_args, FILE *iop, int flag);
|