Update libc

This commit is contained in:
Alex
2023-05-03 06:40:31 +03:00
parent f01eed8dd2
commit cf3a5599a4
18 changed files with 530 additions and 50 deletions

View File

@ -0,0 +1,6 @@
#ifndef _BITS_TYPES_SIGSET_T_H
#define _BITS_TYPES_SIGSET_T_H
typedef unsigned long sigset_t;
#endif // !_BITS_TYPES_SIGSET_T_H

View File

@ -0,0 +1,9 @@
#ifndef _BITS_TYPES_STRUCT_SCHED_PARAM_T_H
#define _BITS_TYPES_STRUCT_SCHED_PARAM_T_H
struct sched_param
{
int sched_priority;
};
#endif // !_BITS_TYPES_STRUCT_SCHED_PARAM_T_H

View File

@ -0,0 +1,14 @@
#ifndef _BITS_WAITSTATUS_H
#define _BITS_WAITSTATUS_H
#define __W_CONTINUED 0xFFFF
#define __WEXITSTATUS(status) (((status)&0xFF00) >> 8)
#define __WTERMSIG(status) ((status)&0x7F)
#define __WSTOPSIG(status) __WEXITSTATUS(status)
#define __WIFEXITED(status) (__WTERMSIG(status) == 0)
#define __WIFSIGNALED(status) (((signed char)(((status)&0x7F) + 1) >> 1) > 0)
#define __WIFSTOPPED(status) (((status)&0xFF) == 0x7F)
#define __WIFCONTINUED(status) ((status) == __W_CONTINUED)
#endif