HomeSort by relevance Sort by last modified time
    Searched defs:iop (Results 1 - 25 of 44) sorted by null

1 2

  /onnv/onnv-gate/usr/src/lib/libbc/libc/stdio/common/
fdopen.c 52 register FILE *iop; local
62 if((iop = _findiop()) == NULL)
65 iop->_cnt = 0;
66 iop->_file = fd;
67 iop->_base = iop->_ptr = NULL;
68 iop->_bufsiz = 0;
72 iop->_flag = _IOREAD;
78 iop->_flag = _IOWRT;
86 iop->_flag = _IORW
    [all...]
findiop.c 38 #define active(iop) ((iop)->_flag & (_IOREAD|_IOWRT|_IORW))
57 FILE **iov, *iop; local
61 for(iop = _iob; iop < _iob + NSTATIC; iop++)
62 if(!active(iop))
63 return(iop);
  /onnv/onnv-gate/usr/src/lib/libc/port/stdio/
getchar.c 51 FILE *iop = stdin; local
53 return (getc(iop));
63 FILE *iop = stdin; local
65 return (GETC(iop));
putchar.c 50 FILE *iop = stdout; local
52 return (putc(ch, iop));
65 FILE *iop = stdout; local
67 return (PUTC(ch, iop));
fdopen.c 58 /* iop doesn't need locking since this function is creating it */
59 FILE *iop; local
67 if ((iop = _findiop()) == 0) {
74 iop->_flag = 0; /* release iop */
91 iop->_flag = flag;
94 iop->_file = fd;
97 SET_FILE(iop, fd);
98 } else if (_file_set(iop, fd, type) != 0) {
100 iop->_flag = 0; /* release iop *
    [all...]
fopen.c 63 FILE *iop; local
66 iop = _findiop();
68 * Note that iop is not locked here, since no other thread could
69 * possibly call _endopen with the same iop at this point.
71 rc = _endopen(name, type, iop, LARGE_OPEN);
73 if (rc == NULL && iop != NULL)
74 iop->_flag = 0; /* release iop */
80 _freopen_null(const char *type, FILE *iop)
86 if (iop == NULL || iop->_flag == 0)
    [all...]
popen.c 99 FILE *iop; local
144 if ((iop = fdopen(myside, mode)) == NULL) {
193 (void) fclose(iop);
210 (void) fclose(iop);
218 _SET_ORIENTATION_BYTE(iop);
220 return (iop);
  /onnv/onnv-gate/usr/src/ucblib/libucb/port/stdio/
fopen.c 55 _endopen(const char *file, const char *mode, FILE *iop, int largefile)
59 if (iop == NULL || file == NULL || file[0] == '\0')
83 iop->_cnt = 0;
85 iop->_file = fd;
88 SET_FILE(iop, fd);
89 } else if (_file_set(iop, fd, mode) != 0) {
95 iop->_flag = plus ? _IORW : (mode[0] == 'r') ? _IOREAD : _IOWRT;
102 iop->_base = iop->_ptr = NULL;
106 * iop->_bufsiz = 0
114 FILE *iop; local
133 FILE *iop; local
    [all...]
  /onnv/onnv-gate/usr/src/lib/libast/common/uwin/
getpass.c 53 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);
  /onnv/onnv-gate/usr/src/cmd/sgs/libelf/common/
input.c 94 Elf_Void *iop; local
151 iop = (Elf_Void *)(elf->ed_image + off);
159 (read(elf->ed_fd, iop, sz) != sz)) {
183 iop = (Elf_Void *)(elf->ed_image + off);
190 (read(elf->ed_fd, iop, sz) != sz)) {
  /onnv/onnv-gate/usr/src/lib/libast/common/comp/
wordexp.c 67 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))
  /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/in.ftpd/
popen.c 67 FILE *iop = NULL; local
210 iop = fdopen(pdes[0], type);
214 iop = fdopen(pdes[1], type);
217 popen_fd = fileno(iop);
223 return (iop);
226 int ftpd_pclose(FILE *iop)
246 if ((popen_fd == -1) || (popen_fd != fileno(iop)))
248 (void) fclose(iop);
  /onnv/onnv-gate/usr/src/cmd/fmli/sys/
io.c 46 io_size(iop, size)
47 IOSTRUCT *iop;
51 if (iop->mu.str.val)
52 free(iop->mu.str.val);
54 if ((iop->mu.str.val = malloc(size)) == NULL)
64 register IOSTRUCT *iop; local
66 iop = (IOSTRUCT *)new(IOSTRUCT);
67 iop->flags = flags;
68 iop->next = NULL;
69 iop->mu.str.val = NULL; /* ehr3 *
    [all...]
eval.c 346 register IOSTRUCT *iop; local
351 iop = io_open(EV_USE_STRING, NULL);
352 putac('$', iop);
366 putac(c, iop);
369 putac(c, iop);
373 putac(c, iop);
379 if (p = expand(io_ret_string(iop))) {
380 io_clear(iop);
386 putastr(p, iop);
389 io_seek(iop, 0)
    [all...]
  /onnv/onnv-gate/usr/src/cmd/sh/
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...]
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);
    [all...]
  /onnv/onnv-gate/usr/src/lib/libshell/common/bltins/
hist.c 263 Sfio_t *iop = sfnew(NIL(Sfio_t*),buff,IOBSIZE,fdo,SF_READ); local
267 sh_eval(iop,1);
misc.c 218 Sfio_t *iop=0; local
293 iop = sfnew(NIL(Sfio_t*),buff,IOBSIZE,fd,SF_READ);
294 sh_eval(iop,0);
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,0,0)
    [all...]
  /onnv/onnv-gate/usr/src/lib/libshell/common/sh/
bash.c 314 Sfio_t *iop; local
418 iop = sfopen(NULL, bash_pre_rc, "s");
419 sh_eval(iop,0);
trestore.c 231 register struct ionod *iop=0, *iopold, *ioptop=0; local
234 iop = (struct ionod*)getnode(shp->stk,ionod);
236 ioptop = iop;
238 iopold->ionxt = iop;
239 iop->iofile = l;
240 iop->ioname = r_string(shp->stk);
241 if(iop->iodelim = r_string(shp->stk))
243 iop->iosize = sfgetl(infile);
245 iop->iooffset = sfseek(shp->heredocs,(off_t)0,SEEK_END);
249 iop->iooffset = 0
    [all...]
main.c 111 int sh_source(Shell_t *shp, Sfio_t *iop, const char *file)
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, name)
    [all...]
  /onnv/onnv-gate/usr/src/cmd/bdiff/
bdiff.c 442 FILE *iop; local
447 (iop = fdopen(fd, "w+")) == NULL) {
452 return (iop);
  /onnv/onnv-gate/usr/src/lib/libbc/libc/sys/common/
_open.c 299 FILE *iop; local
303 iop = _findiop();
305 if (iop == NULL || file == NULL || file[0] == '\0')
323 iop->_cnt = 0;
324 iop->_file = fd;
325 iop->_flag = plus ? _IORW : (mode[0] == 'r') ? _IOREAD : _IOWRT;
332 iop->_base = iop->_ptr = NULL;
333 iop->_bufsiz = 0;
334 return (iop);
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/io/ppp/sppp/
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->ioc_cr == NULL |
859 struct iocblk *iop; local
976 struct iocblk *iop; local
1308 struct iocblk *iop; local
1856 struct iocblk *iop; local
    [all...]

Completed in 1020 milliseconds

1 2