Changeset 390 for azure_iot_hub/trunk/musl-1.1.18/src/stdio
- Timestamp:
- May 23, 2019, 12:45:39 AM (5 years ago)
- Location:
- azure_iot_hub/trunk/musl-1.1.18/src/stdio
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
azure_iot_hub/trunk/musl-1.1.18/src/stdio/__fdopen.c
r389 r390 58 58 } 59 59 60 #ifndef __c2__61 60 weak_alias(__fdopen, fdopen); 62 #else63 FILE *fdopen(int fd, const char *mode)64 {65 return __fdopen(fd, mode);66 }67 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/stdio/__stdio_close.c
r389 r390 1 1 #include "stdio_impl.h" 2 2 3 #ifndef __c2__4 3 static int dummy(int fd) 5 4 { … … 8 7 9 8 weak_alias(dummy, __aio_close); 10 #else11 extern int __aio_close(int fd);12 #endif13 9 14 10 int __stdio_close(FILE *f) -
azure_iot_hub/trunk/musl-1.1.18/src/stdio/__stdio_exit.c
r389 r390 1 1 #include "stdio_impl.h" 2 2 3 #ifndef __c2__4 3 static FILE *volatile dummy_file = 0; 5 4 weak_alias(dummy_file, __stdin_used); 6 5 weak_alias(dummy_file, __stdout_used); 7 6 weak_alias(dummy_file, __stderr_used); 8 #else9 extern FILE *volatile __stdin_used;10 extern FILE *volatile __stdout_used;11 #endif12 7 13 8 static void close_file(FILE *f) … … 27 22 } 28 23 29 #ifndef __c2__30 24 weak_alias(__stdio_exit, __stdio_exit_needed); 31 #else32 void __stdio_exit_needed(void)33 {34 __stdio_exit();35 }36 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/stdio/fflush.c
r389 r390 2 2 3 3 /* stdout.c will override this if linked */ 4 #ifndef __c2__5 4 static FILE *volatile dummy = 0; 6 5 weak_alias(dummy, __stdout_used); 7 #else8 extern FILE *volatile __stdout_used;9 #endif10 6 11 7 int fflush(FILE *f) … … 46 42 } 47 43 48 #ifndef __c2__49 44 weak_alias(fflush, fflush_unlocked); 50 #else51 int fflush_unlocked(FILE *f)52 {53 return fflush_unlocked(f);54 }55 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/stdio/fwrite.c
r389 r390 36 36 } 37 37 38 #ifndef __c2__39 38 weak_alias(fwrite, fwrite_unlocked); 40 #else41 size_t fwrite_unlocked(const void *restrict src, size_t size, size_t nmemb, FILE *restrict f)42 {43 return fwrite(src, size, nmemb, f);44 }45 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/stdio/vsnprintf.c
r389 r390 54 54 return vfprintf(&f, fmt, ap); 55 55 } 56 57 #ifdef __c2__58 int _vsnprintf(char *restrict s, size_t n, const char *restrict fmt, va_list ap)59 {60 return vsnprintf(s, n, fmt, ap);61 }62 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/stdio/vsscanf.c
r389 r390 17 17 18 18 weak_alias(vsscanf,__isoc99_vsscanf); 19 20 #ifdef __c2__21 void _vacopy(va_list a, va_list b)22 {23 void *c;24 c = *(void **)b;25 *(void **)a = &c;26 }27 #endif
Note:
See TracChangeset
for help on using the changeset viewer.