/* Dissect the given mode string into an __io_mode. */
int
-__getmode (mode, mptr)
- const char *mode;
- __io_mode *mptr;
+__getmode (const char *mode, __io_mode *mptr)
{
register unsigned char i;
/* Make sure that FP has its functions set. */
void
-__stdio_check_funcs (fp)
- register FILE *fp;
+__stdio_check_funcs (register FILE *fp)
{
if (!fp->__seen)
{
/* Figure out what kind of buffering (none, line, or full)
and what buffer size to give FP. */
static void
-init_stream (fp)
- register FILE *fp;
+init_stream (register FILE *fp)
{
__stdio_check_funcs (fp);
seeking as necessary and updating its `offset' field.
Sets ferror(FP) (and possibly errno) for errors. */
static void
-seek_to_target (fp)
- FILE *fp;
+seek_to_target (FILE *fp)
{
int save = errno;
if (__stdio_check_offset (fp) == EOF)
flushed to avoid a system call for a single character.
This is the default `output room' function. */
static void
-flushbuf (fp, c)
- register FILE *fp;
- int c;
+flushbuf (register FILE *fp, int c)
{
int flush_only = c == EOF;
size_t buffer_written;
/* Fill the buffer for FP and return the first character read (or EOF).
This is the default `input_room' function. */
static int
-fillbuf (fp)
- register FILE *fp;
+fillbuf (register FILE *fp)
{
/* How far into the buffer we read we want to start bufp. */
size_t buffer_offset = 0;
/* Enlarge STREAM's buffer. */
static void
-enlarge_buffer (stream, c)
- register FILE *stream;
- int c;
+enlarge_buffer (register FILE *stream, int c)
{
struct memstream_info *info = (struct memstream_info *) stream->__cookie;
size_t need;
There is no external state to munge. */
static int
-seek (cookie, pos, whence)
- void *cookie;
- fpos_t *pos;
- int whence;
+seek (void *cookie, fpos_t *pos, int whence)
{
switch (whence)
{
}
static int
-free_info (cookie)
- void *cookie;
+free_info (void *cookie)
{
#if 0
struct memstream_info *info = (struct memstream_info *) cookie;
#endif
-#if def(__USE_SVID) || defined(__USE_XOPEN)
+#if defined(__USE_SVID) || defined(__USE_XOPEN)
/* Generate a unique temporary filename using up to five characters of PFX
if it is not NULL. The directory to put this file in is searched for
as follows: First the environment variable "TMPDIR" is checked.