Searched defs:stream (Results 1 - 25 of 71) sorted by relevance

123

/illumos-gate/usr/src/lib/libc/port/stdio/
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;
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...]
/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/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 Dlfmt.c47 lfmt(FILE *stream, long flag, const char *format, ...) argument
54 if ((ret = __pfmt_print(stream, flag, format, &text, &sev, args)) < 0)
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)
/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...]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Diexpand.c109 * Print out a string onto a stream, changing unprintables into
113 tpr(FILE *stream, char *string) argument
116 (void) fprintf(stream, "%s", iexpand(string));
H A Dcexpand.c237 * Print out a string onto a stream, changing unprintables into
241 cpr(FILE *stream, char *string) argument
246 (void) fprintf(stream, "%s", ret);
/illumos-gate/usr/src/cmd/tnf/prex/
H A Dfcn.c55 static void fcn_print(FILE * stream, fcn_t * fcn_p);
161 fcn_print(FILE * stream, fcn_t * fcn_p) argument
166 (void) fprintf(stream, "&%-8s %-24s\n",
H A Dset.c54 static void set_print(FILE * stream, set_t * set_p);
135 set_print(FILE * stream, set_t * set_p) argument
140 expr_print(stream, set_p->exprlist_p);
H A Dexpr.c176 expr_print(FILE * stream, argument
182 spec_print(stream, expr_p->left_p);
183 (void) fprintf(stream, "=");
184 spec_print(stream, expr_p->right_p);
185 (void) fprintf(stream, " ");
H A Dspec.c152 spec_print(FILE * stream, argument
160 (void) fprintf(stream, "'%s'", spec_p->str);
163 (void) fprintf(stream, "/%s/", spec_p->str);
/illumos-gate/usr/src/cmd/lvm/metassist/common/
H A Dvolume_output.c54 * @param stream
55 * The stream to print all qualifying output to.
62 FILE *stream)
72 output = stream;
102 * Prints the given formatted string arguments to a predefined stream,
60 set_max_verbosity( int verbosity, FILE *stream) argument
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/
H A Dpapi_impl.h54 typedef struct stream { struct
58 char *dfname; /* the stream data (if we can't stream) */
H A Djob.c108 papi_job_ticket_t *job_ticket, papi_stream_t *stream)
115 if ((svc == NULL) || (name == NULL) || (stream == NULL))
124 /* create the stream container */
125 if ((*stream = s = calloc(1, sizeof (*s))) == NULL)
138 /* if we can stream, do it */
169 papiJobStreamWrite(papi_service_t handle, papi_stream_t stream, argument
173 stream_t *s = stream;
175 if ((svc == NULL) || (stream == NULL) || (buffer == NULL) ||
186 papiJobStreamClose(papi_service_t handle, papi_stream_t stream, papi_job_t *job) argument
191 stream_t *s = stream;
106 papiJobStreamOpen(papi_service_t handle, char *name, papi_attribute_t **attributes, papi_job_ticket_t *job_ticket, papi_stream_t *stream) argument
[all...]
/illumos-gate/usr/src/cmd/mandoc/
H A Dtag.c153 FILE *stream; local
159 stream = fdopen(tag_files.tfd, "w");
162 if (stream != NULL)
163 fprintf(stream, "%s %s %zu\n",
169 if (stream != NULL)
170 fclose(stream);
H A Dmanpath.c48 FILE *stream; local
68 stream = popen(cmd, "r");
69 if (NULL == stream)
79 sz = fread(buf + bsz, 1, 1024, stream);
83 if ( ! ferror(stream) && feof(stream) &&
90 pclose(stream);
214 FILE *stream; local
219 if ((stream = fopen(file, "r")) == NULL)
225 while ((linelen = getline(&line, &linesz, stream)) !
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dlogging_p.h24 FILE *stream; member in struct:log_file_desc
/illumos-gate/usr/src/lib/print/libpapi-dynamic/common/
H A Djob.c198 papi_job_ticket_t *job_ticket, papi_stream_t *stream)
204 if ((svc == NULL) || (printer == NULL) || (stream == NULL))
213 job_ticket, stream);
220 papi_stream_t stream, void *buffer, size_t buflen)
226 if ((svc == NULL) || (stream == NULL) || (buffer == NULL) ||
232 result = f(svc->svc_handle, stream, buffer, buflen);
238 papiJobStreamClose(papi_service_t handle, papi_stream_t stream, papi_job_t *job) argument
245 if ((svc == NULL) || (stream == NULL) || (job == NULL))
254 result = f(svc->svc_handle, stream, &j->job);
440 papi_stream_t *stream)
196 papiJobStreamOpen(papi_service_t handle, char *printer, papi_attribute_t **job_attributes, papi_job_ticket_t *job_ticket, papi_stream_t *stream) argument
219 papiJobStreamWrite(papi_service_t handle, papi_stream_t stream, void *buffer, size_t buflen) argument
439 papiJobStreamAdd(papi_service_t handle, char *printer, int32_t id, papi_stream_t *stream) argument
[all...]

Completed in 86 milliseconds

123