projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
15c7af3
)
add prototype for BSD/GNU stdio *_unlocked extension functions
author
Rich Felker
<dalias@aerifal.cx>
Tue, 29 May 2012 02:53:24 +0000
(22:53 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 29 May 2012 02:53:24 +0000
(22:53 -0400)
also fix up distinction of what is GNU-only and what's GNU+BSD
include/stdio.h
patch
|
blob
|
history
diff --git
a/include/stdio.h
b/include/stdio.h
index
a44919a
..
a2dc674
100644
(file)
--- a/
include/stdio.h
+++ b/
include/stdio.h
@@
-157,13
+157,23
@@
char *tempnam(const char *, const char *);
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
#define L_cuserid 20
char *cuserid(char *);
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
#define L_cuserid 20
char *cuserid(char *);
-int asprintf(char **, const char *, ...);
-int vasprintf(char **, const char *, va_list);
void setlinebuf(FILE *);
void setbuffer(FILE *, char *, size_t);
int fpurge(FILE *);
int fgetc_unlocked(FILE *);
int fputc_unlocked(int, FILE *);
void setlinebuf(FILE *);
void setbuffer(FILE *, char *, size_t);
int fpurge(FILE *);
int fgetc_unlocked(FILE *);
int fputc_unlocked(int, FILE *);
+int fflush_unlocked(FILE *);
+size_t fread_unlocked(void *, size_t, size_t, FILE *);
+size_t fwrite_unlocked(const void *, size_t, size_t, FILE *);
+void clearerr_unlocked(FILE *);
+int feof_unlocked(FILE *);
+int ferror_unlocked(FILE *);
+int fileno_unlocked(FILE *);
+#endif
+
+#ifdef _GNU_SOURCE
+int asprintf(char **, const char *, ...);
+int vasprintf(char **, const char *, va_list);
char *fgets_unlocked(char *, int, FILE *);
int fputs_unlocked(const char *, FILE *);
#endif
char *fgets_unlocked(char *, int, FILE *);
int fputs_unlocked(const char *, FILE *);
#endif