add more declarations for libstdc++

follow-up to 8231557ff5
This commit is contained in:
Lephenixnoir 2024-07-05 22:28:52 +02:00
parent 6b0ea3f33e
commit 26cdf5f9d8
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
3 changed files with 12 additions and 4 deletions

View file

@ -29,6 +29,12 @@ extern int creat(char const *__path, mode_t __mode);
/* Open file and return a file descriptor, -1 on error. */
extern int open(char const *__path, int __flags, ... /* mode_t __mode */);
#define F_DUPFD 0
#define F_GETFD 1
#define F_SETFD 2
extern int fcntl(int fd, int op, ...);
#ifdef __cplusplus
}
#endif

View file

@ -77,6 +77,8 @@ extern int stat(char const * __restrict__ __pathname,
extern int chmod(char const *__pathname, mode_t mode);
extern int fstat(int __fd, struct stat *__buf);
#ifdef __cplusplus
}
#endif

View file

@ -45,6 +45,10 @@ extern char *getcwd(char *__buf, size_t __size);
extern int chdir(char const *__path);
extern int isatty(int __fd);
extern int dup(int __fd);
/* Exit immediately, bypassing exit handlers or signal handlers. */
__attribute__((noreturn))
extern void _exit(int __status);
@ -52,8 +56,6 @@ extern void _exit(int __status);
/* Kernel-style functions supported only by Vhex. */
#ifdef __SUPPORT_VHEX_KERNEL
//---
// Process part
///---
@ -86,8 +88,6 @@ extern int setpgid(pid_t __pid, pid_t __pgid);
/* Get the value of the system variable NAME. */
extern long int sysconf(int __name);
#endif /*__SUPPORT_VHEX_KERNEL*/
#ifdef __cplusplus
}
#endif