Changeset 777832e in mainline for uspace/lib/c/include/stdio.h


Ignore:
Timestamp:
2018-06-21T12:27:09Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
296890f3
Parents:
7d7bc09
git-author:
Jiri Svoboda <jiri@…> (2018-06-20 19:26:46)
git-committer:
Jiri Svoboda <jiri@…> (2018-06-21 12:27:09)
Message:

fgetpos, fsetpos, perror.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/stdio.h

    r7d7bc09 r777832e  
    11/*
    22 * Copyright (c) 2005 Martin Decky
     3 * Copyright (c) 2018 Jiri Svoboda
    34 * All rights reserved.
    45 *
     
    3637#define LIBC_STDIO_H_
    3738
     39#include <offset.h>
    3840#include <stdarg.h>
    3941#include <io/verify.h>
     
    5961#define BUFSIZ  4096
    6062
     63/** Max number of files that is guaranteed to be able to open at the same time */
     64#define FOPEN_MAX VFS_MAX_OPEN_FILES
     65
    6166/** Recommended size of fixed-size array for holding file names. */
    6267#define FILENAME_MAX 4096
     
    6570struct _IO_FILE;
    6671typedef struct _IO_FILE FILE;
     72
     73/** File position */
     74typedef struct {
     75        off64_t pos;
     76} fpos_t;
    6777
    6878extern FILE *stdin;
     
    124134extern size_t fwrite(const void *, size_t, size_t, FILE *);
    125135
     136extern int fgetpos(FILE *, fpos_t *);
     137extern int fsetpos(FILE *, const fpos_t *);
     138
    126139extern int fseek(FILE *, long, int);
    127140extern void rewind(FILE *);
     
    132145extern int ferror(FILE *);
    133146extern void clearerr(FILE *);
     147
     148extern void perror(const char *);
    134149
    135150extern void setvbuf(FILE *, void *, int, size_t);
Note: See TracChangeset for help on using the changeset viewer.