libuproc
1.2.0
|
Module: General IO. More...
#include <stdio.h>
#include <stdarg.h>
Go to the source code of this file.
Macros | |
#define | uproc_stdin uproc_io_stdstream_gz(stdin) |
stdin, possibly gzip compressed More... | |
#define | uproc_stdout uproc_io_stdstream(stdout) |
stdout, uncompressed More... | |
#define | uproc_stderr uproc_io_stdstream(stderr) |
stderr, uncompressed More... | |
#define | uproc_stdout_gz uproc_io_stdstream_gz(stdout) |
stdout, gzip compressed More... | |
#define | uproc_stderr_gz uproc_io_stdstream_gz(stderr) |
stderr, gzip compressed More... | |
Enumerations | |
enum | uproc_io_type { UPROC_IO_STDIO, UPROC_IO_GZIP } |
Underlying stream type. More... | |
enum | uproc_io_seek_whence { UPROC_IO_SEEK_SET, UPROC_IO_SEEK_CUR } |
Third argument to uproc_io_seek() More... | |
Functions | |
uproc_io_stream * | uproc_io_open (const char *mode, enum uproc_io_type type, const char *pathfmt,...) |
Open a file. More... | |
uproc_io_stream * | uproc_io_openv (const char *mode, enum uproc_io_type type, const char *pathfmt, va_list ap) |
Open a file using a va_list. More... | |
int | uproc_io_close (uproc_io_stream *stream) |
Close a file stream. More... | |
int | uproc_io_printf (uproc_io_stream *stream, const char *fmt,...) |
Formatted output. More... | |
size_t | uproc_io_read (void *ptr, size_t size, size_t nmemb, uproc_io_stream *stream) |
Read binary data. More... | |
size_t | uproc_io_write (const void *ptr, size_t size, size_t nmemb, uproc_io_stream *stream) |
Write binary data. More... | |
char * | uproc_io_gets (char *s, int size, uproc_io_stream *stream) |
(Partially) read a line More... | |
long | uproc_io_getline (char **lineptr, size_t *n, uproc_io_stream *stream) |
Read an entire line. More... | |
int | uproc_io_putc (int c, uproc_io_stream *stream) |
Write a character. More... | |
int | uproc_io_puts (const char *s, uproc_io_stream *stream) |
Write a string and a trailing newline. More... | |
int | uproc_io_seek (uproc_io_stream *stream, long offset, enum uproc_io_seek_whence whence) |
Set the file position. More... | |
long | uproc_io_tell (uproc_io_stream *stream) |
Obtain current file position. More... | |
int | uproc_io_eof (uproc_io_stream *stream) |
Test end-of-file indicator. More... | |
uproc_io_stream * | uproc_io_stdstream (FILE *stream) |
Wrap standard input streams. More... | |
uproc_io_stream * | uproc_io_stdstream_gz (FILE *stream) |
Wraps gz input streams. More... | |
Module: General IO.