/titanic_41/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 …]
|
/titanic_41/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_41/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()
|
/titanic_41/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");
|
/titanic_41/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);
|
/titanic_41/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 …]
|
/titanic_41/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 …]
|
/titanic_41/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_41/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));
|
/titanic_41/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 …]
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/ |
H A D | zfs_send_002_pos.ksh | 60 [[ -e $stream ]] && \ 61 log_must $RM -f $stream 72 $ZFS send $snap > $stream 75 $ZFS receive -d $ctr <$stream 98 log_must $RM -f $stream 119 stream=/var/tmp/streamfile.$$
|
/titanic_41/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_41/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 …]
|
/titanic_41/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() 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() 812 myref.stream = nds; in ndr_outer_fixed_array() [all …]
|
/titanic_41/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() 125 if ((*stream = s = calloc(1, sizeof (*s))) == NULL) 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() 194 if ((svc == NULL) || (stream == NULL) || (job == NULL)) in papiJobStreamClose()
|
/titanic_41/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_41/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()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | tftpsubs.c | 349 print_options(FILE *stream, char *opts, int len) in print_options() argument 368 (void) putc('?', stream); in print_options() 374 (void) putc(' ', stream); in print_options() 375 (void) fputs(optname, stream); in print_options() 377 (void) putc('?', stream); in print_options() 380 (void) fprintf(stream, "=%s", optval); in print_options()
|
/titanic_41/usr/src/uts/common/smbsrv/ |
H A D | ndr.h | 173 struct ndr_stream *stream; /* root of NDR */ member 320 ((REF)->stream->error = (ERROR), \ 321 (REF)->stream->error_ref = __LINE__, \ 322 NDS_TATTLE_ERROR((REF)->stream, 0, REF)) 325 (*(REF)->stream->ndo->ndo_tattle)((REF)->stream, WHAT, REF) 329 #define NDR_DIR_IS_IN (encl_ref->stream->dir == NDR_DIR_IN) 330 #define NDR_DIR_IS_OUT (encl_ref->stream->dir == NDR_DIR_OUT)
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | secure.c | 196 secure_putc(int c, FILE *stream) in secure_putc() argument 199 return (putc(c, stream)); in secure_putc() 200 return (secure_putbyte(fileno(stream), (uchar_t)c)); in secure_putc() 352 secure_getc(FILE *stream) in secure_getc() argument 355 return (getc(stream)); in secure_getc() 356 return (secure_getbyte(fileno(stream))); in secure_getc()
|