Tiny LibC things.

This commit is contained in:
Andreas Kling 2018-11-05 14:50:41 +01:00
parent 9e62eb4856
commit 8039a20611
Notes: sideshowbarker 2024-07-19 18:33:33 +09:00
11 changed files with 6 additions and 2 deletions

0
LibC/limits.h Normal file
View File

0
LibC/setjmp.h Normal file
View File

View File

@ -132,7 +132,7 @@ char* strncat(char *dest, const char *src, size_t n)
return dest; return dest;
} }
const char* strerror(int errnum) char* strerror(int errnum)
{ {
switch (errnum) { switch (errnum) {
case 0: return "No error"; case 0: return "No error";

View File

@ -18,7 +18,7 @@ char* strcat(char *dest, const char *src);
char* strncat(char *dest, const char *src, size_t); char* strncat(char *dest, const char *src, size_t);
size_t strspn(const char*, const char* accept); size_t strspn(const char*, const char* accept);
size_t strcspn(const char*, const char* reject); size_t strcspn(const char*, const char* reject);
const char* strerror(int errnum); char* strerror(int errnum);
__END_DECLS __END_DECLS

View File

@ -10,3 +10,6 @@
#define __BEGIN_DECLS #define __BEGIN_DECLS
#define __END_DECLS #define __END_DECLS
#endif #endif
#undef __P
#define __P(a) a

0
LibC/sys/file.h Normal file
View File

0
LibC/sys/param.h Normal file
View File

0
LibC/sys/time.h Normal file
View File

0
LibC/sys/wait.h Normal file
View File

0
LibC/termios.h Normal file
View File

View File

@ -45,6 +45,7 @@ off_t lseek(int fd, off_t, int whence);
#define SIGKILL 9 #define SIGKILL 9
#define SIGSEGV 11 #define SIGSEGV 11
#define SIGTERM 15 #define SIGTERM 15
#define SIGCHLD 17
#define HOST_NAME_MAX 64 #define HOST_NAME_MAX 64