/titanic_51/usr/src/stand/lib/sa/ |
H A D | stdio.c | 50 fcheck(FILE *stream, int flags) in fcheck() argument 53 if ((stream->_flag & flags) != flags) { in fcheck() 61 fclose(FILE *stream) in fclose() argument 63 if (!fcheck(stream, F_OPEN)) in fclose() 66 (void) close(stream->_file); in fclose() 67 stream->_flag = 0; in fclose() 68 stream->_file = -1; in fclose() 69 stream->_name[0] = '\0'; in fclose() 74 feof(FILE *stream) in feof() argument 76 if (!fcheck(stream, F_OPE in feof() 83 ferror(FILE * stream) ferror() argument 92 clearerr(FILE * stream) clearerr() argument 98 fflush(FILE * stream) fflush() argument 108 fgets(char * s,int n,FILE * stream) fgets() argument 151 FILE *stream; fopen() local 219 fprintf(FILE * stream,const char * format,...) fprintf() argument 248 fread(void * ptr,size_t size,size_t nitems,FILE * stream) fread() argument 281 fseek(FILE * stream,long offset,int whence) fseek() argument 321 ftell(FILE * stream) ftell() argument 330 fwrite(const void * ptr,size_t size,size_t nitems,FILE * stream) fwrite() argument 350 setvbuf(FILE * stream,char * buf,int type,size_t size) setvbuf() argument [all...] |
/titanic_51/usr/src/lib/libast/common/misc/ |
H A D | stk.c | 89 #define stream2stk(stream) ((stream)==stkstd? stkcur:\ argument 90 ((struct stk*)(((char*)(stream))+STK_HDRSIZE))) 92 #define stkleft(stream) ((stream)->_endb-(stream)->_data) argument 144 static int stkexcept(register Sfio_t *stream, int type, void* val, Sfdisc_t* dp) in stkexcept() argument 152 register struct stk *sp = stream2stk(stream); in stkexcept() 158 if(stream==stkstd) in stkexcept() 159 stkset(stream,(char*)0,0); in stkexcept() 178 stream->_data = stream->_next = 0; in stkexcept() 182 free(stream); in stkexcept() 189 long size = sfvalue(stream); in stkexcept() [all …]
|
/titanic_51/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | stk.c | 89 #define stream2stk(stream) ((stream)==stkstd? stkcur:\ argument 90 ((struct stk*)(((char*)(stream))+STK_HDRSIZE))) 92 #define stkleft(stream) ((stream)->_endb-(stream)->_data) argument 144 static int stkexcept(register Sfio_t *stream, int type, void* val, Sfdisc_t* dp) in stkexcept() argument 152 register struct stk *sp = stream2stk(stream); in stkexcept() 158 if(stream==stkstd) in stkexcept() 159 stkset(stream,(cha in stkexcept() 216 register Sfio_t *stream; stkopen() local 263 stkinstall(Sfio_t * stream,_stk_overflow_ oflow) stkinstall() argument 297 stklink(register Sfio_t * stream) stklink() argument 309 stkclose(Sfio_t * stream) stkclose() argument 323 stkon(register Sfio_t * stream,register char * loc) stkon() argument 338 stkset(register Sfio_t * stream,register char * loc,size_t offset) stkset() argument 393 stkalloc(register Sfio_t * stream,register size_t n) stkalloc() argument 410 _stkseek(register Sfio_t * stream,register ssize_t n) _stkseek() argument 425 stkfreeze(register Sfio_t * stream,register size_t extra) stkfreeze() argument 450 stkcopy(Sfio_t * stream,const char * str) stkcopy() argument 498 stkgrow(register Sfio_t * stream,size_t size) stkgrow() argument [all...] |
/titanic_51/usr/src/lib/libc/port/stdio/ |
H A D | __extensions.c | 39 * on the stream was a read e.g. fread() or fgetc(). Otherwise returns 0. 42 __freading(FILE *stream) in __freading() argument 44 return (stream->_flag & _IOREAD); in __freading() 49 * the last operation on the stream was a write e.g. fwrite() or fputc(). 53 __fwriting(FILE *stream) in __fwriting() argument 55 return (stream->_flag & _IOWRT); in __fwriting() 59 * Returns non-zero if it is possible to read from a stream. 62 __freadable(FILE *stream) in __freadable() argument 64 return (stream->_flag & (_IOREAD|_IORW)); in __freadable() 68 * Returns non-zero if it is possible to write on a stream 71 __fwritable(FILE * stream) __fwritable() argument 80 __flbf(FILE * stream) __flbf() argument 89 __fpurge(FILE * stream) __fpurge() argument 103 __fpending(FILE * stream) __fpending() argument 118 __fbufsize(FILE * stream) __fbufsize() argument [all...] |
H A D | getw.c | 34 * bytes in an io-stream correspond to the order of the bytes 48 /* Read sizeof(int) characters from stream and return these in an int */ 50 getw(FILE *stream) in getw() argument 58 FLOCKFILE(lk, stream); in getw() 59 while (--i >= 0 && !(stream->_flag & (_IOERR | _IOEOF))) in getw() 60 *s++ = GETC(stream); in getw() 61 ret = ((stream->_flag & (_IOERR | _IOEOF)) ? EOF : w); in getw()
|
H A D | fpos.c | 38 fgetpos(FILE *stream, fpos_t *pos) in fgetpos() argument 40 if ((*pos = (fpos_t)ftello(stream)) == (fpos_t)-1) in fgetpos() 46 fsetpos(FILE *stream, const fpos_t *pos) in fsetpos() argument 48 if (fseeko(stream, (off_t)*pos, SEEK_SET) != 0) in fsetpos()
|
H A D | putw.c | 34 * bytes in an io-stream correspond to the order of the bytes 49 putw(int w, FILE *stream) in putw() argument 56 FLOCKFILE(lk, stream); in putw() 57 while (--i >= 0 && PUTC(*s++, stream) != EOF) in putw() 59 ret = stream->_flag & _IOERR; in putw()
|
/titanic_51/usr/src/boot/lib/libz/ |
H A D | uncompr.c | 30 z_stream stream; local 33 stream.next_in = (z_const Bytef *)source; 34 stream.avail_in = (uInt)sourceLen; 36 if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR; 38 stream.next_out = dest; 39 stream.avail_out = (uInt)*destLen; 40 if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR; 42 stream.zalloc = (alloc_func)0; 43 stream.zfree = (free_func)0; 45 err = inflateInit(&stream); [all...] |
H A D | compress.c | 29 z_stream stream; local 32 stream.next_in = (z_const Bytef *)source; 33 stream.avail_in = (uInt)sourceLen; 36 if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR; 38 stream.next_out = dest; 39 stream.avail_out = (uInt)*destLen; 40 if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR; 42 stream.zalloc = (alloc_func)0; 43 stream.zfree = (free_func)0; 44 stream [all...] |
/titanic_51/usr/src/cmd/sendmail/libsm/ |
H A D | exc.c | 39 ** stream -- file for output. 54 sm_etype_printf(exc, stream) in sm_etype_printf() argument 56 SM_FILE_T *stream; 66 (void) sm_io_putc(stream, SM_TIME_DEFAULT, *p); 72 (void) sm_io_putc(stream, SM_TIME_DEFAULT, '%'); 77 (void) sm_io_putc(stream, SM_TIME_DEFAULT, '%'); 86 (void) sm_io_putc(stream, SM_TIME_DEFAULT, '%'); 87 (void) sm_io_putc(stream, SM_TIME_DEFAULT, 104 sm_io_fputs(stream, SM_TIME_DEFAULT, s); 107 sm_io_fprintf(stream, 157 sm_etype_os_print(exc,stream) sm_etype_os_print() argument 502 sm_exc_write(exc,stream) sm_exc_write() argument 522 sm_exc_print(exc,stream) sm_exc_print() argument [all...] |
H A D | t-smstdio.c | 24 FILE *stream; variable 33 stream = fopen("t-smstdio.1", "w"); 34 SM_TEST(stream != NULL); 36 fp = sm_io_stdioopen(stream, "w"); 44 ** stream should now be closed. This is a tricky way to test 48 fprintf(stream, "oops! stream is still open!\n"); 49 fclose(stream); 52 stream = fopen("t-smstdio.1", "r"); 53 SM_TEST(stream ! [all...] |
/titanic_51/usr/src/head/ |
H A D | stdio_ext.h | 45 * needed to get information about a stdio stream that was not accessible 64 extern size_t __fbufsize(FILE *stream); 65 extern int __freading(FILE *stream); 66 extern int __fwriting(FILE *stream); 67 extern int __freadable(FILE *stream); 68 extern int __fwritable(FILE *stream); 69 extern int __flbf(FILE *stream); 70 extern void __fpurge(FILE *stream); 71 extern size_t __fpending(FILE *stream); 73 extern int __fsetlocking(FILE *stream, in [all...] |
/titanic_51/usr/src/cmd/sort/common/ |
H A D | types.h | 158 FILE *s_fp; /* file stream */ 169 struct stream; 172 int (*sop_is_closable)(struct stream *); 173 int (*sop_close)(struct stream *); 174 int (*sop_eos)(struct stream *); 175 ssize_t (*sop_fetch)(struct stream *); 176 void (*sop_flush)(struct stream *); 177 int (*sop_free)(struct stream *); 178 int (*sop_open_for_write)(struct stream *); 179 int (*sop_prime)(struct stream *); 203 typedef struct stream { global() struct 204 s_consumerstream global() argument 205 s_previousstream global() argument 206 s_nextstream global() argument 211 s_opsstream global() argument 212 s_typestream global() argument 221 s_devstream global() argument [all...] |
/titanic_51/usr/src/lib/libresolv2/common/isc/ |
H A D | logging.c | 85 FILE *stream; in log_open_stream() local 98 if (chan->out.file.stream != NULL) in log_open_stream() 99 return (chan->out.file.stream); in log_open_stream() 148 stream = fdopen(fd, "a"); in log_open_stream() 149 if (stream == NULL) { in log_open_stream() 156 chan->out.file.stream = stream; in log_open_stream() 157 return (stream); in log_open_stream() 162 FILE *stream; in log_close_stream() local 168 stream in log_close_stream() 275 FILE *stream; log_vwrite() local 598 log_new_file_channel(unsigned int flags,int level,const char * name,FILE * stream,unsigned int versions,unsigned long max_size) log_new_file_channel() argument [all...] |
/titanic_51/usr/src/lib/libc/port/gen/ |
H A D | pfmt_print.c | 61 __pfmt_print(FILE *stream, long flag, const char *format, in __pfmt_print() argument 107 if (label[0] != '\0' && stream) { in __pfmt_print() 108 if ((status = fputs(label, stream)) < 0) in __pfmt_print() 111 if ((status = fputs(colon, stream)) < 0) in __pfmt_print() 145 if (stream) { in __pfmt_print() 146 if ((status = fprintf(stream, psev, severity)) < 0) in __pfmt_print() 149 if ((status = fputs(colon, stream)) < 0) in __pfmt_print() 157 if (stream) { in __pfmt_print() 158 if ((status = vfprintf(stream, format, args)) < 0) in __pfmt_print()
|
/titanic_51/usr/src/cmd/mandoc/ |
H A D | manpath.c | 45 FILE *stream; in manpath_parse() local 65 stream = popen(cmd, "r"); in manpath_parse() 66 if (NULL == stream) in manpath_parse() 76 sz = fread(buf + bsz, 1, 1024, stream); in manpath_parse() 80 if ( ! ferror(stream) && feof(stream) && in manpath_parse() 87 pclose(stream); in manpath_parse() 207 FILE *stream; in manpath_manconf() local 214 if (NULL == (stream = fopen(file, "r"))) in manpath_manconf() 217 while (NULL != (p = fgetln(stream, in manpath_manconf() [all...] |
/titanic_51/usr/src/lib/libbc/libc/stdio/common/ |
H A D | getw.c | 30 * bytes in an io-stream correspond to the order of the bytes 36 getw(stream) in getw() argument 37 register FILE *stream; in getw() 44 *s++ = getc(stream); 45 return (feof(stream) || ferror(stream) ? EOF : w);
|
H A D | putw.c | 30 * bytes in an io-stream correspond to the order of the bytes 36 putw(w, stream) in putw() argument 38 register FILE *stream; 44 (void) putc(*s++, stream); 45 return (ferror(stream));
|
/titanic_51/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/ |
H A D | zfs_send_002_pos.ksh | 43 # 4. Receive the send stream 60 [[ -e $stream ]] && \ 61 log_must $RM -f $stream 72 $ZFS send $snap > $stream 75 $ZFS receive -d $ctr <$stream 85 log_fail " Data lost after receiving stream" 91 #Destroy datasets and stream for next testing 98 log_must $RM -f $stream 119 stream=/var/tmp/streamfile.$$ 125 #Create a dataset to receive the send stream [all...] |
/titanic_51/usr/src/common/lzma/ |
H A D | Types.h | 125 SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size); 126 SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType); 127 SRes SeqInStream_ReadByte(ISeqInStream *stream, Byte *buf); 163 SRes LookInStream_LookRead(ILookInStream *stream, void *buf, size_t *size); 164 SRes LookInStream_SeekTo(ILookInStream *stream, UInt64 offset); 167 SRes LookInStream_Read2(ILookInStream *stream, void *buf, size_t size, SRes errorType); 168 SRes LookInStream_Read(ILookInStream *stream, void *buf, size_t size);
|
/titanic_51/usr/src/cmd/logadm/ |
H A D | opts.c | 439 FILE *stream; member 458 (void) fprintf(pip->stream, " %s%s", (pip->isswitch) ? "-" : "", lhs); in printer() 460 (void) fprintf(pip->stream, " "); in printer() 461 opts_printword(s, pip->stream); in printer() 469 opts_printword(const char *word, FILE *stream) in opts_printword() argument 485 (void) fprintf(stream, "%s%s%s", q, word, q); in opts_printword() 487 (void) fprintf(stream, "%s", word); in opts_printword() 492 * opts_print -- print options to stream, leaving out those in "exclude" 495 opts_print(struct opts *opts, FILE *stream, char *exclude) in opts_print() argument 500 pi.stream in opts_print() [all...] |
/titanic_51/usr/src/lib/smbsrv/libmlrpc/common/ |
H A D | ndr_process.c | 248 myref.stream = nds; in ndo_process() 262 myref.stream = nds; in ndo_operation() 302 assert(top_ref->stream); in ndr_topmost() 305 nds = top_ref->stream; in ndr_topmost() 406 ndr_stream_t *nds = arg_ref->stream; in ndr_enter_outer_queue() 461 * tries to keep the constructs contiguous in the data stream, the sizing 590 ndr_stream_t *nds = outer_ref->stream; in ndr_outer() 654 ndr_stream_t *nds = outer_ref->stream; in ndr_outer_fixed() 722 myref.stream = nds; in ndr_outer_fixed() 744 ndr_stream_t *nds = outer_ref->stream; in ndr_outer_fixed_array() [all...] |
/titanic_51/usr/src/lib/print/libpapi-lpd/common/ |
H A D | job.c | 108 papi_job_ticket_t *job_ticket, papi_stream_t *stream) in papiJobStreamOpen() argument 115 if ((svc == NULL) || (name == NULL) || (stream == NULL)) in papiJobStreamOpen() 124 /* create the stream container */ in papiJobStreamOpen() 125 if ((*stream = s = calloc(1, sizeof (*s))) == NULL) in papiJobStreamOpen() 138 /* if we can stream, do it */ in papiJobStreamOpen() 169 papiJobStreamWrite(papi_service_t handle, papi_stream_t stream, in papiJobStreamWrite() argument 173 stream_t *s = stream; in papiJobStreamWrite() 175 if ((svc == NULL) || (stream == NULL) || (buffer == NULL) || in papiJobStreamWrite() 186 papiJobStreamClose(papi_service_t handle, papi_stream_t stream, papi_job_t *job) in papiJobStreamClose() argument 191 stream_t *s = stream; in papiJobStreamClose() [all...] |
/titanic_51/usr/src/lib/print/libpapi-dynamic/common/ |
H A D | job.c | 198 papi_job_ticket_t *job_ticket, papi_stream_t *stream) in papiJobStreamOpen() argument 204 if ((svc == NULL) || (printer == NULL) || (stream == NULL)) in papiJobStreamOpen() 213 job_ticket, stream); in papiJobStreamOpen() 220 papi_stream_t stream, void *buffer, size_t buflen) in papiJobStreamWrite() argument 226 if ((svc == NULL) || (stream == NULL) || (buffer == NULL) || in papiJobStreamWrite() 232 result = f(svc->svc_handle, stream, buffer, buflen); in papiJobStreamWrite() 238 papiJobStreamClose(papi_service_t handle, papi_stream_t stream, papi_job_t *job) in papiJobStreamClose() argument 245 if ((svc == NULL) || (stream == NULL) || (job == NULL)) in papiJobStreamClose() 254 result = f(svc->svc_handle, stream, &j->job); in papiJobStreamClose() 440 papi_stream_t *stream) in papiJobStreamAdd() argument [all...] |
/titanic_51/usr/src/cmd/tnf/prex/ |
H A D | expr.c | 176 expr_print(FILE * stream, in expr_print() argument 182 spec_print(stream, expr_p->left_p); in expr_print() 183 (void) fprintf(stream, "="); in expr_print() 184 spec_print(stream, expr_p->right_p); in expr_print() 185 (void) fprintf(stream, " "); in expr_print()
|