mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:07:36 +00:00
Tiny LibC things.
This commit is contained in:
parent
9e62eb4856
commit
8039a20611
11 changed files with 6 additions and 2 deletions
0
LibC/limits.h
Normal file
0
LibC/limits.h
Normal file
0
LibC/setjmp.h
Normal file
0
LibC/setjmp.h
Normal 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";
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
0
LibC/sys/file.h
Normal file
0
LibC/sys/param.h
Normal file
0
LibC/sys/param.h
Normal file
0
LibC/sys/time.h
Normal file
0
LibC/sys/time.h
Normal file
0
LibC/sys/wait.h
Normal file
0
LibC/sys/wait.h
Normal file
0
LibC/termios.h
Normal file
0
LibC/termios.h
Normal 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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue