about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-05-28 22:53:24 -0400
committerRich Felker <dalias@aerifal.cx>2012-05-28 22:53:24 -0400
commitb63cab76ec1cd91b518cd3bad72ee993c94d44a2 (patch)
tree1ff967de7a1c135b6b1671f48ef8b5debd5877fe /include
parent15c7af3e21e1e402067f9c2a7c8d3094ddc7f54f (diff)
downloadmusl-b63cab76ec1cd91b518cd3bad72ee993c94d44a2.tar.gz
musl-b63cab76ec1cd91b518cd3bad72ee993c94d44a2.tar.xz
musl-b63cab76ec1cd91b518cd3bad72ee993c94d44a2.zip
add prototype for BSD/GNU stdio *_unlocked extension functions
also fix up distinction of what is GNU-only and what's GNU+BSD
Diffstat (limited to 'include')
-rw-r--r--include/stdio.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/stdio.h b/include/stdio.h
index a44919a9..a2dc674b 100644
--- 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 *);
-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 *);
+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