Searched defs:iop (Results 101 - 119 of 119) sorted by relevance

12345

/illumos-gate/usr/src/cmd/mandoc/
H A Dterm_ps.c624 ps_setwidth(struct termp *p, int iop, int width) argument
629 if (iop > 0)
631 else if (iop == 0)
/illumos-gate/usr/src/lib/fm/libldom/sparc/
H A Dldmsvcs_utils.c1683 fma_io_resp_t *iop; local
1723 iop = (fma_io_resp_t *)resp;
1724 switch (iop->result) {
1728 *virt_addr = iop->virt_rsrc_address;
1729 *did = iop->domain_id;
/illumos-gate/usr/src/lib/libshell/common/edit/
H A Dhistory.c555 static int hist_nearend(History_t *hp, Sfio_t *iop, register off_t size) argument
560 if(size <= 2L || sfseek(iop,size,SEEK_SET)<0)
564 while(cp=buff=(unsigned char*)sfreserve(iop,SF_UNBOUND,SF_LOCKR))
566 n = sfvalue(iop);
588 sfread(iop,(char*)buff,n);
591 if((n=sfread(iop,(char*)marker,4))==4)
607 sfseek(iop,(off_t)2,SEEK_SET);
764 static ssize_t hist_write(Sfio_t *iop,const void *buff,register size_t insize,Sfdisc_t* handle) argument
766 static int hist_write(Sfio_t *iop,const void *buff,register int insize,Sfdisc_t* handle)
776 return(write(sffileno(iop),(cha
[all...]
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dlex.c181 static void lex_advance(Sfio_t *iop, const char *buff, register int size, void *context) argument
189 if(iop && !sfstacked(iop))
1604 register struct ionod *iop; local
1612 iop = newof(0,struct ionod,1,lp->lexd.docextra+n+ARGVAL);
1613 iop->iolst = lp->heredoc;
1622 iop->ioname = (char*)(iop+1);
1623 strcpy(iop->ioname,lp->arg->argval);
1624 iop
1695 here_copy(Lex_t *lp,register struct ionod *iop) argument
2321 alias_exceptf(Sfio_t *iop,int type,void *data, Sfdisc_t *handle) argument
2365 register Sfio_t *iop, *base; local
[all...]
H A Dparse.c321 void *sh_parse(Shell_t *shp, Sfio_t *iop, int flag) argument
328 if(shp->binscript && (sffileno(iop)==shp->infd || (flag&SH_FUNEVAL)))
329 return((void*)sh_trestore(shp,iop));
343 if(fcfopen(iop) < 0)
358 if(sffileno(iop)==shp->infd || (flag&SH_FUNEVAL))
360 sfgetc(iop);
361 return((void*)sh_trestore(shp,iop));
375 if((sfset(iop,0,0)&SF_STRING) && !sfreserve(iop,0,-1))
377 Sfio_t *sp = sfstack(iop,NUL
724 Sfio_t *iop; local
1545 register struct ionod *iop; local
1783 Sfio_t *base, *iop = sfopen((Sfio_t*)0," ~(E)","s"); local
[all...]
H A Dio.c422 static int outexcept(register Sfio_t *iop,int type,void *data,Sfdisc_t *handle) argument
429 else if(type==SF_WRITE && (*(ssize_t*)data)<0 && sffileno(iop)!=2)
448 sfpurge(iop);
449 sfpool(iop,NIL(Sfio_t*),SF_WRITE);
451 errormsg(SH_DICT,ERROR_system(1),e_badwrite,sffileno(iop));
470 register Sfio_t *iop; local
504 if((iop = shp->sftable[fd]) && sffileno(iop)>=0)
505 sfsetbuf(iop, bp, IOBSIZE);
506 else if(!(iop
960 sh_redirect(Shell_t *shp,struct ionod *iop, int flag) argument
1351 io_heredoc(Shell_t *shp,register struct ionod *iop, const char *name, int traceon) argument
1406 tee_write(Sfio_t *iop,const void *buff,size_t n,Sfdisc_t *unused) argument
1608 slowexcept(register Sfio_t *iop,int type,void *data,Sfdisc_t *handle) argument
1684 piperead(Sfio_t *iop,void *buff,register size_t size,Sfdisc_t *handle) argument
1712 slowread(Sfio_t *iop,void *buff,register size_t size,Sfdisc_t *handle) argument
1859 io_prompt(Sfio_t *iop,register int flag) argument
1933 pipeexcept(Sfio_t* iop, int mode, void *data, Sfdisc_t* handle) argument
2047 register Sfio_t *iop; local
2072 eval_exceptf(Sfio_t *iop,int type, void *data, Sfdisc_t *handle) argument
2331 Sfio_t *iop=0; local
[all...]
H A Dmacro.c2431 Sfio_t *iop, *save=sfstdout; local
2445 iop = sftmp(IOBSIZE+1);;
2446 sfset(iop,SF_READ,0);
2447 sfstdout = iop;
2454 sfseek(iop,(Sfoff_t)0,SEEK_SET);
2455 sfset(iop,SF_READ,1);
2456 if(ptr = sfreserve(iop, SF_UNBOUND, -1))
2458 Sfoff_t n = sfvalue(iop);
2468 sfclose(iop);
H A Dxec.c292 static void out_pattern(Sfio_t *iop, register const char *cp, int n) argument
305 sfputr(iop,"$'\\n",'\'');
314 sfputc(iop,'\\');
317 sfputc(iop,c);
322 static void out_string(Sfio_t *iop, register const char *cp, int c, int quoted) argument
328 if(iop==stkstd && cp==stkptr(stkstd,n))
334 sfputr(iop,cp,c);
403 Sfio_t *iop = stkstd; local
410 sfputr(iop,name,-1);
413 sfputc(iop,'[');
464 sh_eval(register Sfio_t *iop, int mode) argument
537 volatile Sfio_t *iop; local
1716 Sfio_t *iop=0; local
[all...]
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_bitmap.c714 bm_getiov(int bmd, bm_io_t *iop) argument
721 if (!iop)
725 else if (iop->bmio_iovcnt <= 0)
729 vp = iop->bmio_iov;
730 for (i = 0; i < iop->bmio_iovcnt; vp++, i++) {
747 bm_setiov(int bmd, bm_io_t *iop) argument
754 if (!iop)
758 else if (iop->bmio_iovcnt <= 0)
760 else if (!iop->bmio_iov)
764 vp = iop
1494 dbm_getiov(int bmd, bm_io_t *iop) argument
1527 dbm_setiov(int bmd, bm_io_t *iop) argument
[all...]
/illumos-gate/usr/src/cmd/sgs/prof/common/
H A Dprof.c172 static void eofon(FILE *iop, char *fn);
1214 eofon(FILE *iop, char *fn) argument
1216 if (ferror(iop)) /* Real error? */
/illumos-gate/usr/src/lib/libiscsit/common/
H A Dlibiscsit.c182 iscsit_ioc_set_config_t iop; local
215 iop.set_cfg_vers = ISCSIT_API_VERS0;
216 iop.set_cfg_pnvlist = packednv;
217 iop.set_cfg_pnvlist_len = pnv_size;
219 &iop)) != 0) {
/illumos-gate/usr/src/lib/libc/port/print/
H A Ddoprnt.c92 retp = put_wide(iop, &bufptr, bufferend, p, n, sflag); \
101 retp = pad_wide(iop, &bufptr, bufferend, s, n, sflag); \
134 if (!_dowrite(p, n, iop, &bufptr)) {\
170 if (!_dowrite(s, PAD_LEN, iop, &bufptr)) \
213 _dowrite(const char *p, ssize_t n, FILE *iop, unsigned char **ptrptr);
267 _dowrite(const char *p, ssize_t n, FILE *iop, unsigned char **ptrptr) argument
269 if (!(iop->_flag & _IOREAD)) {
270 iop->_cnt -= (*ptrptr - iop->_ptr);
271 iop
300 put_wide(FILE *iop, unsigned char **bufptr, unsigned char *bufferend, wchar_t *p, size_t n, int sflag) argument
359 pad_wide(FILE *iop, unsigned char **bufptr, unsigned char *bufferend, const char *s, size_t n, int sflag) argument
401 _wdoprnt(const wchar_t *format, va_list in_args, FILE *iop) argument
407 _doprnt(const char *format, va_list in_args, FILE *iop) argument
416 _wndoprnt(const wchar_t *format, va_list in_args, FILE *iop, int prflag) argument
[all...]
/illumos-gate/usr/src/cmd/diff/
H A Ddiff.c2061 FILE *iop; /* I/O stream */ member in struct:buff
2075 initbuf(FILE *iop, int filen, long offset) argument
2077 bufwchar[filen].iop = iop;
2091 rewind(bufwchar[filen].iop);
2147 ch = getc(bufwchar[filen].iop);
2172 sizeof (char), NW, bufwchar[filen].iop);
2173 if (ferror(bufwchar[filen].iop)) {
2193 sizeof (char), NW, bufwchar[filen].iop);
2194 if (ferror(bufwchar[filen].iop)) {
[all...]
/illumos-gate/usr/src/tools/codereview/
H A Dlwlp.c1452 fgetline(char *s, int n, FILE *iop) argument
1468 if ((ch = getc(iop)) == EOF)
1471 if ((ch = getc(iop)) != '\n') {
1476 if (ungetc(ch, iop) == EOF && !feof(iop)) {
1497 if ((ch = getc(iop)) == EOF)
1504 if (ungetc(ch, iop) == EOF)
/illumos-gate/usr/src/uts/common/io/idm/
H A Didm_so.c620 idm_iov_sosend(ksocket_t so, iovec_t *iop, int iovlen, size_t total_len) argument
626 ASSERT(iop != NULL);
630 msg.msg_iov = iop;
660 idm_iov_sorecv(ksocket_t so, iovec_t *iop, int iovlen, size_t total_len) argument
667 ASSERT(iop != NULL);
671 msg.msg_iov = iop;
/illumos-gate/usr/src/uts/common/io/ppp/sppptun/
H A Dsppptun.c1107 struct iocblk *iop; local
1121 iop = (struct iocblk *)mp->b_rptr;
1130 struct iocblk *, iop);
1132 switch (iop->ioc_cmd) {
1168 iop->ioc_count != sizeof (*ptn) ||
1189 if (mp->b_cont == NULL || iop->ioc_count != sizeof (*pti)) {
1205 if (iop->ioc_cmd == PPPTUN_GINFO) {
1241 if (mp->b_cont == NULL || iop->ioc_count < sizeof (uint32_t)) {
1272 if (len == 0 || len > iop->ioc_count) {
1283 iop
1509 struct iocblk *iop; local
[all...]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_fct.c160 emlxs_iotrace_t *iop = port->iotrace; local
165 if (!iop) {
181 if ((iop->fct_cmd == fct_cmd) &&
182 (iop->trc[0] != (uint8_t)(0)))
184 iop++;
194 iop = port->iotrace + iotrace_index;
196 if (iop->trc[0] == (uint8_t)(0))
199 iop++;
200 if (iop == (port->iotrace + iotrace_cnt))
201 iop
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dbridge.c3070 struct iocblk *iop; local
3077 iop = (struct iocblk *)mp->b_rptr;
3083 cr = iop->ioc_cr;
3089 switch (iop->ioc_cmd) {
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvdc.c7295 vdc_dk_ioctl_t *iop; local
7329 iop = &(dk_ioctl[idx]);
7341 len = iop->nbytes;
7588 ASSERT(iop->op != 0);
7591 if (VD_OP_SUPPORTED(vdc->operations, iop->op) == B_FALSE) {
7593 vdc->instance, iop->op);
7610 ASSERT(iop->convert != NULL);
7611 rv = (iop->convert)(vdc, arg, mem_p, mode, VD_COPYIN);
7623 rv = vdc_do_sync_op(vdc, iop->op, mem_p, alloc_len,
7646 rv = (iop
[all...]

Completed in 141 milliseconds

12345