Searched refs:stream (Results 1 - 25 of 662) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Dgetw.c30 * bytes in an io-stream correspond to the order of the bytes
36 getw(stream)
37 register FILE *stream;
44 *s++ = getc(stream);
45 return (feof(stream) || ferror(stream) ? EOF : w);
H A Dputw.c30 * bytes in an io-stream correspond to the order of the bytes
36 putw(w, stream)
38 register FILE *stream;
44 (void) putc(*s++, stream);
45 return (ferror(stream));
/illumos-gate/usr/src/boot/lib/libz/
H A Duncompr.c30 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 Dcompress.c29 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...]
/illumos-gate/usr/src/lib/libc/port/stdio/
H A D__extensions.c39 * on the stream was a read e.g. fread() or fgetc(). Otherwise returns 0.
42 __freading(FILE *stream) argument
44 return (stream->_flag & _IOREAD);
49 * the last operation on the stream was a write e.g. fwrite() or fputc().
53 __fwriting(FILE *stream) argument
55 return (stream->_flag & _IOWRT);
59 * Returns non-zero if it is possible to read from a stream.
62 __freadable(FILE *stream) argument
64 return (stream->_flag & (_IOREAD|_IORW));
68 * Returns non-zero if it is possible to write on a stream
71 __fwritable(FILE *stream) argument
80 __flbf(FILE *stream) argument
89 __fpurge(FILE *stream) argument
103 __fpending(FILE *stream) argument
118 __fbufsize(FILE *stream) argument
[all...]
H A Dfpos.c38 fgetpos(FILE *stream, fpos_t *pos) argument
40 if ((*pos = (fpos_t)ftello(stream)) == (fpos_t)-1)
46 fsetpos(FILE *stream, const fpos_t *pos) argument
48 if (fseeko(stream, (off_t)*pos, SEEK_SET) != 0)
H A Dgetw.c34 * 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) argument
58 FLOCKFILE(lk, stream);
59 while (--i >= 0 && !(stream->_flag & (_IOERR | _IOEOF)))
60 *s++ = GETC(stream);
61 ret = ((stream->_flag & (_IOERR | _IOEOF)) ? EOF : w);
H A Dputw.c34 * bytes in an io-stream correspond to the order of the bytes
49 putw(int w, FILE *stream) argument
56 FLOCKFILE(lk, stream);
57 while (--i >= 0 && PUTC(*s++, stream) != EOF)
59 ret = stream->_flag & _IOERR;
/illumos-gate/usr/src/head/
H A Dstdio_ext.h45 * 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...]
/illumos-gate/usr/src/stand/lib/sa/
H A Dstdio.c50 fcheck(FILE *stream, int flags) argument
53 if ((stream->_flag & flags) != flags) {
61 fclose(FILE *stream) argument
63 if (!fcheck(stream, F_OPEN))
66 (void) close(stream->_file);
67 stream->_flag = 0;
68 stream->_file = -1;
69 stream->_name[0] = '\0';
74 feof(FILE *stream) argument
76 if (!fcheck(stream, F_OPE
83 ferror(FILE *stream) argument
92 clearerr(FILE *stream) argument
98 fflush(FILE *stream) argument
108 fgets(char *s, int n, FILE *stream) argument
151 FILE *stream; local
219 fprintf(FILE *stream, const char *format, ...) argument
248 fread(void *ptr, size_t size, size_t nitems, FILE *stream) argument
281 fseek(FILE *stream, long offset, int whence) argument
321 ftell(FILE *stream) argument
330 fwrite(const void *ptr, size_t size, size_t nitems, FILE *stream) argument
350 setvbuf(FILE *stream, char *buf, int type, size_t size) argument
[all...]
/illumos-gate/usr/src/lib/libast/common/misc/
H A Dstk.c89 #define stream2stk(stream) ((stream)==stkstd? stkcur:\
90 ((struct stk*)(((char*)(stream))+STK_HDRSIZE)))
92 #define stkleft(stream) ((stream)->_endb-(stream)->_data)
144 static int stkexcept(register Sfio_t *stream, int type, void* val, Sfdisc_t* dp) argument
152 register struct stk *sp = stream2stk(stream);
158 if(stream==stkstd)
159 stkset(stream,(cha
216 register Sfio_t *stream; local
263 stkinstall(Sfio_t *stream, _stk_overflow_ oflow) argument
297 stklink(register Sfio_t* stream) argument
309 stkclose(Sfio_t* stream) argument
323 stkon(register Sfio_t * stream, register char* loc) argument
338 stkset(register Sfio_t * stream, register char* loc, unsigned offset) argument
393 stkalloc(register Sfio_t *stream, register unsigned int n) argument
410 _stkseek(register Sfio_t *stream, register unsigned n) argument
425 stkfreeze(register Sfio_t *stream, register unsigned extra) argument
450 stkcopy(Sfio_t *stream, const char* str) argument
495 stkgrow(register Sfio_t *stream, unsigned size) argument
[all...]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dt-smstdio.c24 FILE *stream; local
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...]
H A Dexc.c39 ** stream -- file for output.
54 sm_etype_printf(exc, stream)
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,
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dpfmt.c44 pfmt(FILE *stream, long flag, const char *format, ...) argument
49 return (__pfmt_print(stream, flag, format, NULL, NULL, args));
H A Dvpfmt.c49 vpfmt(FILE *stream, long flag, const char *format, va_list args) argument
51 return (__pfmt_print(stream, flag, format, NULL, NULL, args));
H A Dvlfmt.c47 vlfmt(FILE *stream, long flag, const char *format, va_list args) argument
52 if ((ret = __pfmt_print(stream, flag, format, &text, &sev, args)) < 0)
H A Dpfmt_print.c61 __pfmt_print(FILE *stream, long flag, const char *format, argument
107 if (label[0] != '\0' && stream) {
108 if ((status = fputs(label, stream)) < 0)
111 if ((status = fputs(colon, stream)) < 0)
145 if (stream) {
146 if ((status = fprintf(stream, psev, severity)) < 0)
149 if ((status = fputs(colon, stream)) < 0)
157 if (stream) {
158 if ((status = vfprintf(stream, format, args)) < 0)
H A Dlfmt.c47 lfmt(FILE *stream, long flag, const char *format, ...) argument
54 if ((ret = __pfmt_print(stream, flag, format, &text, &sev, args)) < 0)
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/
H A Dsend-c_recv_dedup.ksh22 # Verify that we can receive a compressed stream into a deduped filesystem.
26 # full stream.
27 # 2. Verify that the stream can be received correctly into a dedup=verify
33 log_pass "Verify a compressed stream can be received into a deduped filesystem"
38 typeset stream0=$BACKDIR/stream.0
39 typeset stream1=$BACKDIR/stream.1
40 typeset inc=$BACKDIR/stream.inc
55 log_pass "The compressed stream could be received into a deduped filesystem"
H A Dsend-cpL_varied_recsize.ksh26 # of all combinations of -c -p and -L. Verify the stream is compressed,
32 # | stream | stream | file bs | prop | file bs | props |
64 # For a received stream, verify the recsize (prop and file) match expectations.
127 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"
[all...]
/illumos-gate/usr/src/cmd/sort/common/
H A Dtypes.h158 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 { struct
[all...]
/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dt_sysconf.c34 #include <sys/stream.h>
/illumos-gate/usr/src/uts/common/sys/
H A Dserializer.h44 #include <sys/stream.h>
/illumos-gate/usr/src/cmd/logadm/
H A Dkw.h40 void kw_print(FILE *stream);
/illumos-gate/usr/src/cmd/lvm/metassist/common/
H A Dvolume_output.h65 * @param stream
66 * The stream to print all qualifying output to.
70 extern int set_max_verbosity(int verbosity, FILE *stream);
86 * Prints the given formatted string arguments to a predefined stream,

Completed in 100 milliseconds

1234567891011>>