3 * stdio.h compatibility shim
6 #ifndef LIBCRYPTOCOMPAT_STDIO_H
7 #define LIBCRYPTOCOMPAT_STDIO_H
11 #include <../ucrt/stdlib.h>
12 #include <../ucrt/corecrt_io.h>
13 #include <../ucrt/stdio.h>
15 #include <../include/stdio.h>
18 #include_next <stdio.h>
23 int vasprintf(char **str
, const char *fmt
, va_list ap
);
24 int asprintf(char **str
, const char *fmt
, ...);
29 void posix_perror(const char *s
);
30 FILE * posix_fopen(const char *path
, const char *mode
);
31 char * posix_fgets(char *s
, int size
, FILE *stream
);
32 int posix_rename(const char *oldpath
, const char *newpath
);
34 #ifndef NO_REDEF_POSIX_FUNCTIONS
35 #define perror(errnum) posix_perror(errnum)
36 #define fopen(path, mode) posix_fopen(path, mode)
37 #define fgets(s, size, stream) posix_fgets(s, size, stream)
38 #define rename(oldpath, newpath) posix_rename(oldpath, newpath)
42 #define snprintf _snprintf