AquilaOS documentation
How it works, and its code
Toggle main menu visibility
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
7
typedef
__SIZE_TYPE__
size_t
;
8
typedef
__PTRDIFF_TYPE__
ssize_t
;
9
typedef
__WCHAR_TYPE__
wchar_t
;
10
typedef
__PTRDIFF_TYPE__
ptrdiff_t
;
11
typedef
__PTRDIFF_TYPE__
intptr_t
;
12
typedef
__SIZE_TYPE__
uintptr_t
;
13
14
#ifndef __int8_t_defined
15
#define __int8_t_defined
16
typedef
signed
char
int8_t
;
17
typedef
signed
short
int
int16_t
;
18
typedef
signed
int
int32_t
;
19
typedef
signed
long
long
int
int64_t
;
20
typedef
unsigned
char
uint8_t
;
21
typedef
unsigned
short
int
uint16_t
;
22
typedef
unsigned
int
uint32_t
;
23
typedef
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
34
void
*
alloca
(
size_t
size);
35
36
#endif
uintptr_t
__SIZE_TYPE__ uintptr_t
Definition
stddef.h:12
uint32_t
unsigned int uint32_t
Definition
stddef.h:22
wchar_t
__WCHAR_TYPE__ wchar_t
Definition
stddef.h:9
ptrdiff_t
__PTRDIFF_TYPE__ ptrdiff_t
Definition
stddef.h:10
int64_t
signed long long int int64_t
Definition
stddef.h:19
int16_t
signed short int int16_t
Definition
stddef.h:17
size_t
__SIZE_TYPE__ size_t
Definition
stddef.h:7
int32_t
signed int int32_t
Definition
stddef.h:18
uint8_t
unsigned char uint8_t
Definition
stddef.h:20
intptr_t
__PTRDIFF_TYPE__ intptr_t
Definition
stddef.h:11
uint64_t
unsigned long long int uint64_t
Definition
stddef.h:23
uint16_t
unsigned short int uint16_t
Definition
stddef.h:21
alloca
void * alloca(size_t size)
int8_t
signed char int8_t
Definition
stddef.h:16
ssize_t
long int ssize_t
Definition
types.h:12
kernel
include
stddef.h
Generated by
1.18.0