BuildSystem: Move all userpace libraries under the userspace directory
As the number of libraries is increasing, root directory starts to expand. This adds better organization for libraries
This commit is contained in:
15
userspace/libraries/LibC/include/bits/printf.h
Normal file
15
userspace/libraries/LibC/include/bits/printf.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef _BITS_PRINTF_H
|
||||
#define _BITS_PRINTF_H 1
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
|
||||
int printf_impl(const char* format, va_list arguments, int (*putc_fun)(int, void*), void* data);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
85
userspace/libraries/LibC/include/bits/pthread_types.h
Normal file
85
userspace/libraries/LibC/include/bits/pthread_types.h
Normal file
@@ -0,0 +1,85 @@
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#if !defined(__pthread_attr_t_defined) && (defined(__need_all_types) || defined(__need_pthread_attr_t))
|
||||
#define __pthread_attr_t_defined 1
|
||||
typedef int pthread_attr_t;
|
||||
#endif
|
||||
#undef __need_pthread_attr_t
|
||||
|
||||
#if !defined(__pthread_barrier_t_defined) && (defined(__need_all_types) || defined(__need_pthread_barrier_t))
|
||||
#define __pthread_barrier_t_defined 1
|
||||
typedef int pthread_barrier_t;
|
||||
#endif
|
||||
#undef __need_pthread_barrier_t
|
||||
|
||||
#if !defined(__pthread_barrierattr_t_defined) && (defined(__need_all_types) || defined(__need_pthread_barrierattr_t))
|
||||
#define __pthread_barrierattr_t_defined 1
|
||||
typedef int pthread_barrierattr_t;
|
||||
#endif
|
||||
#undef __need_pthread_barrierattr_t
|
||||
|
||||
#if !defined(__pthread_cond_t_defined) && (defined(__need_all_types) || defined(__need_pthread_cond_t))
|
||||
#define __pthread_cond_t_defined 1
|
||||
typedef int pthread_cond_t;
|
||||
#endif
|
||||
#undef __need_pthread_cond_t
|
||||
|
||||
#if !defined(__pthread_condattr_t_defined) && (defined(__need_all_types) || defined(__need_pthread_condattr_t))
|
||||
#define __pthread_condattr_t_defined 1
|
||||
typedef int pthread_condattr_t;
|
||||
#endif
|
||||
#undef __need_pthread_condattr_t
|
||||
|
||||
#if !defined(__pthread_key_t_defined) && (defined(__need_all_types) || defined(__need_pthread_key_t))
|
||||
#define __pthread_key_t_defined 1
|
||||
typedef int pthread_key_t;
|
||||
#endif
|
||||
#undef __need_pthread_key_t
|
||||
|
||||
#if !defined(__pthread_mutex_t_defined) && (defined(__need_all_types) || defined(__need_pthread_mutex_t))
|
||||
#define __pthread_mutex_t_defined 1
|
||||
typedef int pthread_mutex_t;
|
||||
#endif
|
||||
#undef __need_pthread_mutex_t
|
||||
|
||||
#if !defined(__pthread_mutexattr_t_defined) && (defined(__need_all_types) || defined(__need_pthread_mutexattr_t))
|
||||
#define __pthread_mutexattr_t_defined 1
|
||||
typedef int pthread_mutexattr_t;
|
||||
#endif
|
||||
#undef __need_pthread_mutexattr_t
|
||||
|
||||
#if !defined(__pthread_once_t_defined) && (defined(__need_all_types) || defined(__need_pthread_once_t))
|
||||
#define __pthread_once_t_defined 1
|
||||
typedef int pthread_once_t;
|
||||
#endif
|
||||
#undef __need_pthread_once_t
|
||||
|
||||
#if !defined(__pthread_rwlock_t_defined) && (defined(__need_all_types) || defined(__need_pthread_rwlock_t))
|
||||
#define __pthread_rwlock_t_defined 1
|
||||
typedef int pthread_rwlock_t;
|
||||
#endif
|
||||
#undef __need_pthread_rwlock_t
|
||||
|
||||
#if !defined(__pthread_rwlockattr_t_defined) && (defined(__need_all_types) || defined(__need_pthread_rwlockattr_t))
|
||||
#define __pthread_rwlockattr_t_defined 1
|
||||
typedef int pthread_rwlockattr_t;
|
||||
#endif
|
||||
#undef __need_pthread_rwlockattr_t
|
||||
|
||||
#if !defined(__pthread_spinlock_t_defined) && (defined(__need_all_types) || defined(__need_pthread_spinlock_t))
|
||||
#define __pthread_spinlock_t_defined 1
|
||||
typedef int pthread_spinlock_t;
|
||||
#endif
|
||||
#undef __need_pthread_spinlock_t
|
||||
|
||||
#if !defined(__pthread_t_defined) && (defined(__need_all_types) || defined(__need_pthread_t))
|
||||
#define __pthread_t_defined 1
|
||||
typedef int pthread_t;
|
||||
#endif
|
||||
#undef __need_pthread_t
|
||||
|
||||
__END_DECLS
|
||||
18
userspace/libraries/LibC/include/bits/types/FILE.h
Normal file
18
userspace/libraries/LibC/include/bits/types/FILE.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef _BITS_TYPES_FILE_H
|
||||
#define _BITS_TYPES_FILE_H 1
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdio.h.html
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#ifndef __FILE_defined
|
||||
#define __FILE_defined 1
|
||||
struct FILE;
|
||||
typedef struct FILE FILE;
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
17
userspace/libraries/LibC/include/bits/types/locale_t.h
Normal file
17
userspace/libraries/LibC/include/bits/types/locale_t.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef _BITS_LOCALE_T_H
|
||||
#define _BITS_LOCALE_T_H 1
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/locale.h.html
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#ifndef __locale_t_defined
|
||||
#define __locale_t_defined 1
|
||||
typedef int locale_t;
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
17
userspace/libraries/LibC/include/bits/types/sa_family_t.h
Normal file
17
userspace/libraries/LibC/include/bits/types/sa_family_t.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef _BITS_TYPES_SA_FAMILY_T_H
|
||||
#define _BITS_TYPES_SA_FAMILY_T_H 1
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_select.h.html
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#ifndef __sa_family_t_defined
|
||||
#define __sa_family_t_defined 1
|
||||
typedef unsigned int sa_family_t;
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
20
userspace/libraries/LibC/include/bits/types/timeval.h
Normal file
20
userspace/libraries/LibC/include/bits/types/timeval.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef _BITS_TIMEVAL_H
|
||||
#define _BITS_TIMEVAL_H 1
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#define __need_time_t
|
||||
#define __need_suseconds_t
|
||||
#include <sys/types.h>
|
||||
|
||||
struct timeval
|
||||
{
|
||||
time_t tv_sec; /* Seconds. */
|
||||
suseconds_t tv_usec; /* Microseconds. */
|
||||
};
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user