AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
stddef.h
Go to the documentation of this file.
1#ifndef _STDDEF_H
2#define _STDDEF_H
3
4/* The standard types and macros, for compilers that have no stddef.h of
5 * their own (the kernel has no C library). */
6
7typedef __SIZE_TYPE__ size_t;
8typedef __PTRDIFF_TYPE__ ssize_t;
9typedef __WCHAR_TYPE__ wchar_t;
10typedef __PTRDIFF_TYPE__ ptrdiff_t;
11typedef __PTRDIFF_TYPE__ intptr_t;
12typedef __SIZE_TYPE__ uintptr_t;
13
14#ifndef __int8_t_defined
15#define __int8_t_defined
16typedef signed char int8_t;
17typedef signed short int int16_t;
18typedef signed int int32_t;
19typedef signed long long int int64_t;
20typedef unsigned char uint8_t;
21typedef unsigned short int uint16_t;
22typedef unsigned int uint32_t;
23typedef unsigned long long int uint64_t;
24#endif
25
26#ifndef NULL
27#define NULL ((void*)0)
28#endif
29
30#ifndef offsetof
31#define offsetof(type, field) ((size_t)&((type *)0)->field)
32#endif
33
34void *alloca(size_t size);
35
36#endif
__SIZE_TYPE__ uintptr_t
Definition stddef.h:12
unsigned int uint32_t
Definition stddef.h:22
__WCHAR_TYPE__ wchar_t
Definition stddef.h:9
__PTRDIFF_TYPE__ ptrdiff_t
Definition stddef.h:10
signed long long int int64_t
Definition stddef.h:19
signed short int int16_t
Definition stddef.h:17
__SIZE_TYPE__ size_t
Definition stddef.h:7
signed int int32_t
Definition stddef.h:18
unsigned char uint8_t
Definition stddef.h:20
__PTRDIFF_TYPE__ intptr_t
Definition stddef.h:11
unsigned long long int uint64_t
Definition stddef.h:23
unsigned short int uint16_t
Definition stddef.h:21
void * alloca(size_t size)
signed char int8_t
Definition stddef.h:16
long int ssize_t
Definition types.h:12