Changes in uspace/lib/c/include/stdio.h [4e6a610:55092672] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/stdio.h
r4e6a610 r55092672 1 1 /* 2 2 * Copyright (c) 2005 Martin Decky 3 * Copyright (c) 2018 Jiri Svoboda4 3 * All rights reserved. 5 4 * … … 37 36 #define LIBC_STDIO_H_ 38 37 39 #include <offset.h>40 38 #include <stdarg.h> 41 39 #include <io/verify.h> 42 #include <_bits/NULL.h>43 40 #include <_bits/size_t.h> 44 41 #include <_bits/wchar_t.h> 45 42 #include <_bits/wint_t.h> 46 43 47 /** Forward declaration */48 struct _IO_FILE;49 typedef struct _IO_FILE FILE;50 51 /** File position */52 typedef struct {53 off64_t pos;54 } fpos_t;55 56 #ifndef _HELENOS_SOURCE57 #define _IONBF 058 #define _IOLBF 159 #define _IOFBF 260 #endif61 62 /** Default size for stream I/O buffers */63 #define BUFSIZ 409664 65 44 #define EOF (-1) 66 67 /** Max number of files that is guaranteed to be able to open at the same time */68 #define FOPEN_MAX VFS_MAX_OPEN_FILES69 70 /** Recommended size of fixed-size array for holding file names. */71 #define FILENAME_MAX 409672 73 /** Length of "/tmp/tmp.XXXXXX" + 1 */74 #define L_tmpnam 1675 45 76 46 #ifndef SEEK_SET … … 86 56 #endif 87 57 88 /** Minimum number of unique temporary file names */ 89 #define TMP_MAX 1000000 58 /** Default size for stream I/O buffers */ 59 #define BUFSIZ 4096 60 61 /** Recommended size of fixed-size array for holding file names. */ 62 #define FILENAME_MAX 4096 63 64 /** Forward declaration */ 65 struct _IO_FILE; 66 typedef struct _IO_FILE FILE; 90 67 91 68 extern FILE *stdin; … … 97 74 extern int fgetc(FILE *); 98 75 extern char *fgets(char *, int, FILE *); 99 extern char *gets(char *, size_t) __attribute__((deprecated));100 76 101 77 extern int getchar(void); … … 128 104 extern int vasprintf(char **, const char *, va_list); 129 105 extern int asprintf(char **, const char *, ...) 106 #endif 130 107 _HELENOS_PRINTF_ATTRIBUTE(2, 3); 131 #endif132 108 extern int vsnprintf(char *, size_t, const char *, va_list); 133 134 extern int sprintf(char *, const char *, ...)135 __attribute__((deprecated)) _HELENOS_PRINTF_ATTRIBUTE(2, 3);136 extern int vsprintf(char *, const char *, va_list) __attribute__((deprecated));137 109 138 110 /* Formatted input */ … … 152 124 extern size_t fwrite(const void *, size_t, size_t, FILE *); 153 125 154 extern int fgetpos(FILE *, fpos_t *);155 extern int fsetpos(FILE *, const fpos_t *);156 157 126 extern int fseek(FILE *, long, int); 158 127 extern void rewind(FILE *); … … 164 133 extern void clearerr(FILE *); 165 134 166 extern void perror(const char *);167 168 135 extern void setvbuf(FILE *, void *, int, size_t); 169 136 extern void setbuf(FILE *, void *); 170 137 171 138 /* Misc file functions */ 139 extern int rename(const char *, const char *); 172 140 extern int remove(const char *); 173 extern int rename(const char *, const char *);174 141 175 extern FILE *tmpfile(void); 176 extern char *tmpnam(char *s) __attribute__((deprecated)); 142 #ifndef _HELENOS_SOURCE 143 #define _IONBF 0 144 #define _IOLBF 1 145 #define _IOFBF 2 146 147 extern char *gets(char *, size_t); 148 149 #endif 177 150 178 151 #ifdef _HELENOS_SOURCE
Note:
See TracChangeset
for help on using the changeset viewer.