OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 100... | Line 100... | |||
100 | +#endif |
100 | +#endif |
|
101 | + |
101 | + |
|
102 | #ifdef __cplusplus |
102 | #ifdef __cplusplus |
|
103 | #define NULL 0L |
103 | #define NULL 0L |
|
104 | #else |
104 | #else |
|
105 | @@ -103,19 +111,19 @@ int puts(const char *); |
105 | @@ -102,19 +110,19 @@ int puts(const char *); |
|
106 | int printf(const char *__restrict, ...); |
106 | int printf(const char *__restrict, ...); |
|
107 | int fprintf(FILE *__restrict, const char *__restrict, ...); |
107 | int fprintf(FILE *__restrict, const char *__restrict, ...); |
|
108 | int sprintf(char *__restrict, const char *__restrict, ...); |
108 | int sprintf(char *__restrict, const char *__restrict, ...); |
|
109 | -int snprintf(char *__restrict, size_t, const char *__restrict, ...); |
109 | -int snprintf(char *__restrict, size_t, const char *__restrict, ...); |
|
110 | +int snprintf(char *__restrict, size_t, const char *__restrict, ...) __fp(3, 4); |
110 | +int snprintf(char *__restrict, size_t, const char *__restrict, ...) __fp(3, 4); |
|
Line 125... | Line 125... | |||
125 | +int vfscanf(FILE *__restrict, const char *__restrict, __isoc_va_list) __fs(2, 0); |
125 | +int vfscanf(FILE *__restrict, const char *__restrict, __isoc_va_list) __fs(2, 0); |
|
126 | +int vsscanf(const char *__restrict, const char *__restrict, __isoc_va_list) __fs(2, 0); |
126 | +int vsscanf(const char *__restrict, const char *__restrict, __isoc_va_list) __fs(2, 0); |
|
Line 127... | Line 127... | |||
127 | |
127 | |
|
Line 128... | Line 128... | |||
128 | void perror(const char *); |
128 | void perror(const char *); |
|
129 | |
129 | |
|
130 | @@ -136,8 +144,8 @@ int pclose(FILE *); |
130 | @@ -135,8 +143,8 @@ int pclose(FILE *); |
|
131 | int fileno(FILE *); |
131 | int fileno(FILE *); |
|
132 | int fseeko(FILE *, off_t, int); |
132 | int fseeko(FILE *, off_t, int); |
|
133 | off_t ftello(FILE *); |
133 | off_t ftello(FILE *); |
|
134 | -int dprintf(int, const char *__restrict, ...); |
134 | -int dprintf(int, const char *__restrict, ...); |
|
135 | -int vdprintf(int, const char *__restrict, __isoc_va_list); |
135 | -int vdprintf(int, const char *__restrict, __isoc_va_list); |
|
136 | +int dprintf(int, const char *__restrict, ...) __fp(2, 3); |
136 | +int dprintf(int, const char *__restrict, ...) __fp(2, 3); |
|
137 | +int vdprintf(int, const char *__restrict, __isoc_va_list) __fp(2, 0); |
137 | +int vdprintf(int, const char *__restrict, __isoc_va_list) __fp(2, 0); |
|
138 | void flockfile(FILE *); |
138 | void flockfile(FILE *); |
|
139 | int ftrylockfile(FILE *); |
139 | int ftrylockfile(FILE *); |
|
140 | void funlockfile(FILE *); |
140 | void funlockfile(FILE *); |
|
141 | @@ -176,8 +184,8 @@ int fileno_unlocked(FILE *); |
141 | @@ -175,8 +183,8 @@ int fileno_unlocked(FILE *); |
|
142 | int getw(FILE *); |
142 | int getw(FILE *); |
|
143 | int putw(int, FILE *); |
143 | int putw(int, FILE *); |
|
144 | char *fgetln(FILE *, size_t *); |
144 | char *fgetln(FILE *, size_t *); |
|
145 | -int asprintf(char **, const char *, ...); |
145 | -int asprintf(char **, const char *, ...); |
|
146 | -int vasprintf(char **, const char *, __isoc_va_list); |
146 | -int vasprintf(char **, const char *, __isoc_va_list); |
|
147 | +int asprintf(char **, const char *, ...) __fp(2, 3); |
147 | +int asprintf(char **, const char *, ...) __fp(2, 3); |
|
Line 148... | Line 148... | |||
148 | +int vasprintf(char **, const char *, __isoc_va_list) __fp(2, 0); |
148 | +int vasprintf(char **, const char *, __isoc_va_list) __fp(2, 0); |
|
149 | #endif |
149 | #endif |
|
150 | |
150 | |
|
151 | #ifdef _GNU_SOURCE |
151 | #ifdef _GNU_SOURCE |
|
Line 152... | Line 152... | |||
152 | @@ -199,6 +207,9 @@ typedef struct _IO_cookie_io_functions_t |
152 | @@ -198,6 +206,9 @@ typedef struct _IO_cookie_io_functions_t |
|
153 | FILE *fopencookie(void *, const char *, cookie_io_functions_t); |
153 | FILE *fopencookie(void *, const char *, cookie_io_functions_t); |