Merge branch 'cpp-extern' into 'master'

Disable symbol mangling for C++

See merge request redox-os/relibc!173
This commit is contained in:
Jeremy Soller
2018-10-28 13:13:51 +00:00
7 changed files with 56 additions and 0 deletions
+8
View File
@@ -1,7 +1,15 @@
#ifndef _BITS_ERRNO_H
#define _BITS_ERRNO_H
#ifdef __cplusplus
extern "C" {
#endif
//TODO extern __thread int errno;
extern int errno;
#ifdef __cplusplus
} // extern "C"
#endif
#endif /* _BITS_ERRNO_H */
+8
View File
@@ -1,7 +1,15 @@
#ifndef _BITS_FCNTL_H
#define _BITS_FCNTL_H
#ifdef __cplusplus
extern "C" {
#endif
int open(const char* filename, int flags, ...);
int fcntl(int fildes, int cmd, ...);
#ifdef __cplusplus
} // extern "C"
#endif
#endif
+8
View File
@@ -5,6 +5,10 @@
typedef struct FILE FILE;
#ifdef __cplusplus
extern "C" {
#endif
int fprintf(FILE * stream, const char * fmt, ...);
int printf(const char * fmt, ...);
int snprintf(char *s, size_t n, const char * fmt, ...);
@@ -13,4 +17,8 @@ int fscanf(FILE * stream, const char * fmt, ...);
int scanf(const char * fmt, ...);
int sscanf(const char * input, const char * fmt, ...);
#ifdef __cplusplus
} // extern "C"
#endif
#endif /* _BITS_STDIO_H */
+8
View File
@@ -3,7 +3,15 @@
#define _POSIX_VERSION 200809L
#ifdef __cplusplus
extern "C" {
#endif
int execl(const char *path, const char* argv0, ...);
int execle(const char *path, const char* argv0, ...);
#ifdef __cplusplus
} // extern "C"
#endif
#endif