/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | 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) argument 86 if (iop 197 freopen(const char *name, const char *type, FILE *iop) argument [all...] |
H A D | fputs.c | 51 fputs(const char *ptr, FILE *iop) argument 60 FLOCKFILE(lk, iop); 62 _SET_ORIENTATION_BYTE(iop); 64 if (_WRTCHK(iop)) { 68 bufend = _bufend(iop); 71 if ((iop->_flag & _IONBF) == 0) { 73 while ((n = bufend - (cptr = iop->_ptr)) <= 0) { 75 if (_xflsbuf(iop) == EOF) { 81 * n: number of available bytes in the buffer of 'iop' 85 * the buffer of 'iop' (ptrle [all...] |
H A D | getline.c | 43 int delimiter, FILE *_RESTRICT_KYWD iop) 68 FLOCKFILE(lk, iop); 70 _SET_ORIENTATION_BYTE(iop); 73 c = (--iop->_cnt < 0) ? __filbuf(iop) : *iop->_ptr++; 103 FILE *_RESTRICT_KYWD iop) 105 return (getdelim(lineptr, n, '\n', iop)); 42 getdelim(char **_RESTRICT_KYWD lineptr, size_t *_RESTRICT_KYWD n, int delimiter, FILE *_RESTRICT_KYWD iop) argument 102 getline(char **_RESTRICT_KYWD lineptr, size_t *_RESTRICT_KYWD n, FILE *_RESTRICT_KYWD iop) argument
|
H A D | scanf.c | 61 fscanf(FILE *iop, const char *fmt, ...) argument 67 ret = vfscanf(iop, fmt, ap); 114 _fscanf_c89(FILE *iop, const char *fmt, ...) argument 120 ret = _vfscanf_c89(iop, fmt, ap);
|
H A D | vscanf.c | 89 _vfscanf_c89(FILE *iop, const char *fmt, va_list ap) argument 91 vfscanf(FILE *iop, const char *fmt, va_list ap) 97 FLOCKFILE(lk, iop); 99 _SET_ORIENTATION_BYTE(iop); 102 ret = __doscan_u(iop, fmt, ap, _F_INTMAX32); 104 ret = __doscan_u(iop, fmt, ap, 0);
|
H A D | vwscanf.c | 71 _vfwscanf_c89(FILE *iop, const wchar_t *fmt, va_list ap) argument 73 vfwscanf(FILE *iop, const wchar_t *fmt, va_list ap) 79 FLOCKFILE(lk, iop); 81 if (GET_NO_MODE(iop)) 82 _setorientation(iop, _WC_MODE); 86 ret = __wdoscan_u(iop, fmt, ap, _F_INTMAX32); 88 ret = __wdoscan_u(iop, fmt, ap, 0);
|
H A D | wscanf.c | 59 fwscanf(FILE *iop, const wchar_t *fmt, ...) argument 65 ret = vfwscanf(iop, fmt, ap); 112 _fwscanf_c89(FILE *iop, const wchar_t *fmt, ...) argument 118 ret = _vfwscanf_c89(iop, fmt, ap);
|
H A D | fwrite.c | 46 _fwrite_unlocked(const void *ptr, size_t size, size_t count, FILE *iop); 49 fwrite(const void *ptr, size_t size, size_t count, FILE *iop) argument 54 FLOCKFILE(lk, iop); 56 _SET_ORIENTATION_BYTE(iop); 58 retval = _fwrite_unlocked(ptr, size, count, iop); 65 _fwrite_unlocked(const void *ptr, size_t size, size_t count, FILE *iop) argument 71 if (_WRTCHK(iop)) 84 if (iop->_flag & _IOLBF) { 85 bufend = _bufend(iop); 86 iop [all...] |
H A D | popen.c | 94 FILE *iop; local 134 iop = fdopen(myfd, mode); 135 if (iop == NULL) { 176 (void) fclose(iop); 186 (void) fclose(iop); 201 _SET_ORIENTATION_BYTE(iop); 203 return (iop);
|
/illumos-gate/usr/src/ucblib/libucb/port/stdio/ |
H A D | fopen.c | 55 _endopen(const char *file, const char *mode, FILE *iop, int largefile) argument 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 114 FILE *iop; local 133 FILE *iop; local 145 freopen(const char *file, const char *mode, FILE *iop) argument 153 freopen64(const char *file, const char *mode, FILE *iop) argument [all...] |
/illumos-gate/usr/src/lib/libast/common/uwin/ |
H A D | 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);
|
/illumos-gate/usr/src/lib/libbc/libc/stdio/4.2/ |
H A D | flsbuf.c | 69 fclose(FILE *iop) argument 73 if(iop == NULL) 75 if(iop->_flag & (_IOREAD | _IOWRT | _IORW) 76 && (iop->_flag & _IOSTRG) == 0) { 77 rtn = (iop->_flag & _IONBF)? 0: fflush(iop); 78 if(close(fileno(iop)) < 0) 81 if(iop->_flag & _IOMYBUF) { 82 free((char*)iop->_base); 83 iop 100 fflush(FILE *iop) argument 124 _flsbuf(unsigned char c, FILE *iop) argument 179 _xflsbuf(FILE *iop) argument 202 _wrtchk(FILE *iop) argument 227 _findbuf(FILE *iop) argument 277 _bufsync(FILE *iop) argument [all...] |
/illumos-gate/usr/src/lib/libbc/libc/stdio/sys5/ |
H A D | flsbuf.c | 67 fclose(FILE *iop) argument 71 if(iop == NULL) 73 if(iop->_flag & (_IOREAD | _IOWRT | _IORW) 74 && (iop->_flag & _IOSTRG) == 0) { 75 rtn = (iop->_flag & _IONBF)? 0: fflush(iop); 76 if(close(fileno(iop)) < 0) 79 if(iop->_flag & _IOMYBUF) { 80 free((char*)iop->_base); 81 iop 98 fflush(FILE *iop) argument 127 _flsbuf(unsigned char c, FILE *iop) argument 183 _xflsbuf(FILE *iop) argument 207 _wrtchk(FILE *iop) argument 232 _findbuf(FILE *iop) argument 282 _bufsync(FILE *iop) argument [all...] |
/illumos-gate/usr/src/cmd/mailx/ |
H A D | myfopen.c | 141 my_fclose(register FILE *iop) argument 145 int ret = fclose(iop); 147 cur = search(iop);
|
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | tdump.c | 189 static int p_redirect(register const struct ionod *iop) argument 191 while(iop) 193 if(iop->iovname) 194 sfputl(outfile,iop->iofile|IOVNM); 196 sfputl(outfile,iop->iofile); 197 p_string(iop->ioname); 198 if(iop->iodelim) 200 p_string(iop->iodelim); 201 sfputl(outfile,iop->iosize); 202 sfseek(sh.heredocs,iop [all...] |
H A D | 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 [all...] |
H A D | bash.c | 314 Sfio_t *iop; local 418 iop = sfopen(NULL, bash_pre_rc, "s"); 419 sh_eval(iop,0);
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | 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)) {
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | func.c | 40 static void prio(struct ionod *iop); 145 freeio(struct ionod *iop) argument 149 while (iop) 151 if (iop->iofile & IODOC) 156 prs(iop->ioname); 160 unlink(iop->ioname); 162 if (fiotemp == iop) 163 fiotemp = iop->iolst; 168 while (fiop->iolst != iop) 171 fiop->iolst = iop 420 prio(struct ionod *iop) argument [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); [all...] |
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | 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))
|
/illumos-gate/usr/src/lib/libshell/common/bltins/ |
H A D | hist.c | 263 Sfio_t *iop = sfnew(NIL(Sfio_t*),buff,IOBSIZE,fdo,SF_READ); local 267 sh_eval(iop,1);
|
H A D | misc.c | 218 Sfio_t *iop=0; local 293 iop = sfnew(NIL(Sfio_t*),buff,IOBSIZE,fd,SF_READ); 294 sh_eval(iop,0);
|
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/ |
H A D | scanf.c | 81 fscanf(FILE *iop, char *fmt, ...) argument 88 if ( !(iop->_flag & (_IOREAD|_IORW)) ) { 89 iop->_flag |= _IOERR; 108 return(_doscan(iop, newform, newap)); 110 ret_val = _doscan(iop, fmt, ap);
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | term_ascii.c | 148 ascii_setwidth(struct termp *p, int iop, int width) argument 153 if (iop > 0) 155 else if (iop == 0)
|