Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 354) sorted by relevance

12345678910>>...15

/illumos-gate/usr/src/stand/lib/sa/
H A Dstdio.c61 fclose(FILE *stream) in fclose() argument
67 stream->_flag = 0; in fclose()
68 stream->_file = -1; in fclose()
74 feof(FILE *stream) in feof() argument
79 return (stream->_len == stream->_offset); in feof()
83 ferror(FILE *stream) in ferror() argument
98 fflush(FILE *stream) in fflush() argument
151 FILE *stream; in fopen() local
231 if (stream != stdout && stream != stderr) { in fprintf()
269 (void) lseek(stream->_file, stream->_offset, SEEK_SET); in fread()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dtokenize.c61 if (stream < 0 || stream > input_stream_nr) in stream_name()
70 pos.stream = stream->nr; in stream_pos()
331 return stream; in init_stream()
359 size = read(stream->fd, stream->buffer, BUFSIZE); in nextchar_slow()
379 stream->pos += tabstop - stream->pos % tabstop; in nextchar_slow()
481 stream->newline |= stream->token->pos.newline; in drop_token()
482 stream->whitespace |= stream->token->pos.whitespace; in drop_token()
905 token->pos.stream = stream; in built_in_token()
935 return eat_string(nextchar(stream), stream, in get_one_identifier()
938 return eat_string(nextchar(stream), stream, in get_one_identifier()
[all …]
H A Dpre-process.c79 if (stream->ifndef == stream->top_if) { \
90 stream->dirty = 1; \
99 token->pos.stream = pos->stream; in alloc_token()
269 struct stream *stream = input_streams + prev->pos.stream; in collect_arg() local
308 next->pos.stream = pos->stream; in collect_arg()
817 int stream, next; in already_tokenized() local
819 for (stream = *hash_stream(path); stream >= 0 ; stream = next) { in already_tokenized()
820 struct stream *s = input_streams + stream; in already_tokenized()
880 static void set_stream_include_path(struct stream *stream) in set_stream_include_path() argument
1696 if (!stream->dirty && !stream->ifndef) { in handle_ifndef()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dstk.c89 #define stream2stk(stream) ((stream)==stkstd? stkcur:\ argument
92 #define stkleft(stream) ((stream)->_endb-(stream)->_data) argument
178 stream->_data = stream->_next = 0; in stkexcept()
276 if(stream) in stkinstall()
406 stream->_data = stream->_next = old+n; in stkalloc()
418 if(stkleft(stream) <= n && !stkgrow(stream,n)) in _stkseek()
420 stream->_next = stream->_data+n; in _stkseek()
437 if(extra > (stream->_endb-stream->_next)) in stkfreeze()
477 if(stkleft(stream) <= n && !stkgrow(stream,n)) in stkcopy()
482 stream->_data = stream->_next = cp+n; in stkcopy()
[all …]
/illumos-gate/usr/src/lib/libc/port/stdio/
H A D__extensions.c42 __freading(FILE *stream) in __freading() argument
53 __fwriting(FILE *stream) in __fwriting() argument
80 __flbf(FILE *stream) in __flbf() argument
89 __fpurge(FILE *stream) in __fpurge() argument
93 FLOCKFILE(lk, stream); in __fpurge()
94 if ((stream->_ptr = stream->_base) != NULL) in __fpurge()
95 stream->_cnt = 0; in __fpurge()
108 FLOCKFILE(lk, stream); in __fpending()
109 amount = stream->_ptr - stream->_base; in __fpending()
123 FLOCKFILE(lk, stream); in __fbufsize()
[all …]
H A Dgetw.c48 getw(FILE *stream) in getw() argument
56 FLOCKFILE(lk, stream); in getw()
57 while (--i >= 0 && !(stream->_flag & (_IOERR | _IOEOF))) in getw()
58 *s++ = getc_unlocked(stream); in getw()
59 ret = ((stream->_flag & (_IOERR | _IOEOF)) ? EOF : w); in getw()
H A Dfpos.c38 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 Dputw.c47 putw(int w, FILE *stream) in putw() argument
54 FLOCKFILE(lk, stream); in putw()
55 while (--i >= 0 && putc_unlocked(*s++, stream) != EOF) in putw()
57 ret = stream->_flag & _IOERR; in putw()
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dexc.c54 sm_etype_printf(exc, stream) in sm_etype_printf() argument
56 SM_FILE_T *stream;
107 sm_io_fprintf(stream,
115 sm_io_fprintf(stream,
124 stream);
154 SM_FILE_T *stream));
159 SM_FILE_T *stream;
502 sm_exc_write(exc, stream) in sm_exc_write() argument
504 SM_FILE_T *stream;
522 sm_exc_print(exc, stream) in sm_exc_print() argument
[all …]
H A Dt-smstdio.c24 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");
/illumos-gate/usr/src/head/
H A Dstdio_ext.h64 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);
/illumos-gate/usr/src/lib/lib9p/common/
H A Dlog.c45 static FILE *stream = NULL; in l9p_logf() local
48 if (stream == NULL) { in l9p_logf()
53 stream = stderr; in l9p_logf()
55 stream = fopen(dest, "a"); in l9p_logf()
56 if (stream == NULL) in l9p_logf()
62 fprintf(stream, "[%s]\t %s: ", l9p_log_level_names[level], func); in l9p_logf()
63 vfprintf(stream, fmt, ap); in l9p_logf()
64 fprintf(stream, "\n"); in l9p_logf()
65 fflush(stream); in l9p_logf()
/illumos-gate/usr/src/cmd/sort/common/
H A Dtypes.h169 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 *);
179 int (*sop_prime)(struct stream *);
183 int (*sop_unlink)(struct stream *);
203 typedef struct stream { struct
205 struct stream *s_previous; argument
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dlogging.c81 FILE *stream; in log_open_stream() local
145 if (stream == NULL) { in log_open_stream()
152 chan->out.file.stream = stream; in log_open_stream()
153 return (stream); in log_open_stream()
158 FILE *stream; in log_close_stream() local
164 stream = chan->out.file.stream; in log_close_stream()
166 if (stream != NULL && fclose(stream) == EOF) in log_close_stream()
271 FILE *stream; in log_vwrite() local
381 stream = chan->out.file.stream; in log_vwrite()
414 fflush(stream); in log_vwrite()
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dtest-suite355 for stream in error output; do
356 eval ignore=\$check_${stream}_ignore
360 sed -n "/check-$stream-start/,/check-$stream-end/p" $file \
361 | grep -v check-$stream > "$file".$stream.expected
363 diff -u "$file".$stream.expected "$file".$stream.got > "$file".$stream.diff
365 error "actual $stream text does not match expected $stream text."
528 for stream in output error; do
529 if [ -s "$file.$stream.got" ]; then
531 echo " * check-$stream-start"
532 cat "$file.$stream.got"
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dpfmt_print.c61 __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()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/
H A Dsend-cpL_varied_recsize.ksh127 typeset stream=$BACKDIR/stream.out
130 [[ -f $stream ]] && log_must rm $stream
131 log_must eval "zfs send $flags $send_snap >$stream"
132 $verify eval "zfs recv $recv_ds <$stream"
133 typeset stream_size=$(cat $stream | zstreamdump | sed -n \
147 $do_size_test && verify_stream_size $stream $send_ds
155 $do_size_test && verify_stream_size $stream $recv_ds
H A Dsend-c_embedded_blocks.ksh40 typeset stream=$BACKDIR/stream
62 log_must eval "zfs send -c $sendfs@now >$stream"
63 log_must eval "zstreamdump -v <$stream >$dump"
64 log_must eval "zfs recv -d $recvfs <$stream"
66 verify_stream_size $stream $sendfs
67 log_mustnot stream_has_features $stream embed_data
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/
H A Dzfs_send_002_pos.ksh60 [[ -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.$$
/illumos-gate/usr/src/common/pnglite/
H A Dpnglite.c246 z_stream *stream; in png_init_inflate() local
249 stream = png->zs; in png_init_inflate()
251 if (!stream) in png_init_inflate()
269 z_stream *stream = png->zs; in png_end_inflate() local
272 if (!stream) in png_end_inflate()
290 z_stream *stream = png->zs; in png_inflate() local
292 if (!stream) in png_inflate()
295 stream->next_in = data; in png_inflate()
296 stream->avail_in = len; in png_inflate()
301 printf("%s\n", stream->msg); in png_inflate()
[all …]
/illumos-gate/usr/src/common/lzma/
H A DTypes.h125 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);
/illumos-gate/usr/src/lib/libmlrpc/common/
H A Dndr_process.c248 myref.stream = nds; in ndo_process()
262 myref.stream = nds; in ndo_operation()
305 nds = top_ref->stream; in ndr_topmost()
722 myref.stream = nds; in ndr_outer_fixed()
812 myref.stream = nds; in ndr_outer_fixed_array()
937 myref.stream = nds; in ndr_outer_conformant_array()
1067 myref.stream = nds; in ndr_outer_conformant_construct()
1352 myref.stream = nds; in ndr_outer_string()
1820 myref.stream = encl_ref->stream; in ndr_inner_array()
1934 myref.stream = encl_ref->stream; in ndr_string_basic_integer()
[all …]
/illumos-gate/usr/src/cmd/logadm/
H A Dopts.c439 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 …]
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/
H A Djob.c108 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()
/illumos-gate/usr/src/lib/print/libpapi-dynamic/common/
H A Djob.c198 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 …]

12345678910>>...15