| /onnv-gate/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_OPEN)) in feof() [all …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/usr/src/lib/libc/port/stdio/ |
| H A D | __extensions.c | 42 __freading(FILE *stream) in __freading() argument 44 return (stream->_flag & _IOREAD); in __freading() 53 __fwriting(FILE *stream) in __fwriting() argument 55 return (stream->_flag & _IOWRT); in __fwriting() 62 __freadable(FILE *stream) in __freadable() argument 64 return (stream->_flag & (_IOREAD|_IORW)); in __freadable() 71 __fwritable(FILE *stream) in __fwritable() argument 73 return (stream->_flag & (_IOWRT|_IORW)); in __fwritable() 80 __flbf(FILE *stream) in __flbf() argument 82 return (stream->_flag & _IOLBF); in __flbf() [all …]
|
| H A D | getw.c | 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 | 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()
|
| /onnv-gate/usr/src/lib/libparted/common/lib/ |
| H A D | version-etc.c | 41 version_etc_va (FILE *stream, in version_etc_va() argument 59 fprintf (stream, "%s (%s) %s\n", command_name, package, version); in version_etc_va() 61 fprintf (stream, "%s %s\n", package, version); in version_etc_va() 66 fprintf (stream, version_etc_copyright, _("(C)"), COPYRIGHT_YEAR); in version_etc_va() 75 stream); in version_etc_va() 84 vfprintf (stream, _("Written by %s.\n"), authors); in version_etc_va() 88 vfprintf (stream, _("Written by %s and %s.\n"), authors); in version_etc_va() 92 vfprintf (stream, _("Written by %s, %s, and %s.\n"), authors); in version_etc_va() 98 vfprintf (stream, _("Written by %s, %s, %s,\nand %s.\n"), authors); in version_etc_va() 104 vfprintf (stream, _("Written by %s, %s, %s,\n%s, and %s.\n"), authors); in version_etc_va() [all …]
|
| H A D | close-stream.c | 54 close_stream (FILE *stream) in close_stream() argument 56 bool some_pending = (__fpending (stream) != 0); in close_stream() 57 bool prev_fail = (ferror (stream) != 0); in close_stream() 58 bool fclose_fail = (fclose (stream) != 0); in close_stream()
|
| /onnv-gate/usr/src/cmd/sendmail/libsm/ |
| H A D | exc.c | 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, 115 sm_io_fprintf(stream, [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"); 48 fprintf(stream, "oops! stream is still open!\n"); 49 fclose(stream); 52 stream = fopen("t-smstdio.1", "r"); 53 SM_TEST(stream != NULL); 55 fp = sm_io_stdioopen(stream, "r");
|
| /onnv-gate/usr/src/head/ |
| H A D | stdio_ext.h | 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, int type);
|
| /onnv-gate/usr/src/cmd/sort/common/ |
| H A D | types.h | 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 *); 180 void (*sop_put_line)(struct stream *, line_rec_t *); [all …]
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/ext/XS/Typemap/ |
| H A D | stdio.c | 15 FILE * stream; in xsfopen() local 16 stream = fopen( path, "w"); in xsfopen() 17 return stream; in xsfopen() 20 int xsfclose ( FILE * stream ) { in xsfclose() argument 21 return fclose( stream ); in xsfclose() 25 int xsfprintf ( FILE * stream, const char * text ) { in xsfprintf() argument 26 return fprintf( stream, text ); in xsfprintf()
|
| /onnv-gate/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 = chan->out.file.stream; in log_close_stream() 169 chan->out.file.stream = NULL; in log_close_stream() [all …]
|
| /onnv-gate/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()
|
| /onnv-gate/usr/src/lib/libbc/libc/stdio/common/ |
| H A D | getw.c | 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 | 36 putw(w, stream) in putw() argument 38 register FILE *stream; 44 (void) putc(*s++, stream); 45 return (ferror(stream));
|
| /onnv-gate/usr/src/lib/libntfs/common/libntfs/ |
| H A D | logging.c | 200 FILE *stream; in ntfs_log_get_stream() local 207 stream = stdout; in ntfs_log_get_stream() 217 stream = stderr; in ntfs_log_get_stream() 221 return stream; in ntfs_log_get_stream() 425 FILE *stream; in ntfs_log_handler_fprintf() local 431 stream = (FILE*)data; in ntfs_log_handler_fprintf() 461 ret += fprintf(stream, col_prefix); in ntfs_log_handler_fprintf() 468 ret += fprintf(stream, "%s", ntfs_log_get_prefix(level)); in ntfs_log_handler_fprintf() 471 ret += fprintf(stream, "%s ", file); in ntfs_log_handler_fprintf() 474 ret += fprintf(stream, "(%d) ", line); in ntfs_log_handler_fprintf() [all …]
|
| /onnv-gate/usr/src/cmd/lvm/metassist/controller/ |
| H A D | metassist.c | 85 static void print_help_create(FILE *stream); 86 static void print_help_main(FILE *stream); 87 static void print_manual_reference(FILE *stream); 88 static void print_usage(FILE *stream); 89 static void print_usage_create(FILE *stream); 90 static void print_usage_main(FILE *stream); 91 static int print_version(FILE *stream); 772 FILE *stream) in print_help_create() argument 774 print_usage_create(stream); in print_help_create() 777 fprintf(stream, gettext("\ in print_help_create() [all …]
|
| /onnv-gate/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);
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/pod/ |
| H A D | perlclib.pod | 58 freopen(fn, mode, stream) PerlIO_reopen(fn, mode, perlio) (Deprecated) 59 fflush(stream) PerlIO_flush(perlio) 60 fclose(stream) PerlIO_close(perlio) 66 fprintf(stream, fmt, ...) PerlIO_printf(perlio, fmt, ...) 68 [f]getc(stream) PerlIO_getc(perlio) 69 [f]putc(stream, n) PerlIO_putc(perlio, n) 70 ungetc(n, stream) PerlIO_ungetc(perlio, n) 75 fread(p, size, n, stream) PerlIO_read(perlio, buf, numbytes) 76 fwrite(p, size, n, stream) PerlIO_write(perlio, buf, numbytes) 78 fputs(s, stream) PerlIO_puts(perlio, s) [all …]
|
| /onnv-gate/usr/src/common/openssl/crypto/comp/ |
| H A D | c_zlib.c | 322 z_stream stream; 325 stream.next_in = (Bytef*)source; 326 stream.avail_in = (uInt)sourceLen; 328 if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR; 330 stream.next_out = dest; 331 stream.avail_out = (uInt)*destLen; 332 if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR; 334 stream.zalloc = (alloc_func)0; 335 stream.zfree = (free_func)0; 337 err = inflateInit_(&stream, [all …]
|
| /onnv-gate/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() 495 opts_print(struct opts *opts, FILE *stream, char *exclude) in opts_print() argument 500 pi.stream = stream; in opts_print() 508 (void) fprintf(stream, " "); in opts_print() [all …]
|
| /onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/in.ftpd/ |
| H A D | gssutil.h | 60 int sec_putc(int c, FILE *stream); 61 int sec_getc(FILE *stream); 62 int sec_fprintf(FILE *stream, char *fmt, ...); 63 int sec_fflush(FILE *stream);
|
| /onnv-gate/usr/src/lib/smbsrv/libmlrpc/common/ |
| H A D | ndr_process.c | 247 myref.stream = nds; in ndo_process() 261 myref.stream = nds; in ndo_operation() 301 assert(top_ref->stream); in ndr_topmost() 304 nds = top_ref->stream; in ndr_topmost() 405 ndr_stream_t *nds = arg_ref->stream; in ndr_enter_outer_queue() 589 ndr_stream_t *nds = outer_ref->stream; in ndr_outer() 655 ndr_stream_t *nds = outer_ref->stream; in ndr_outer_fixed() 723 myref.stream = nds; in ndr_outer_fixed() 745 ndr_stream_t *nds = outer_ref->stream; in ndr_outer_fixed_array() 813 myref.stream = nds; in ndr_outer_fixed_array() [all …]
|