tools/include/nolibc/stddef.h

Source file repositories/reference/linux-study-clean/tools/include/nolibc/stddef.h

File Facts

System
Linux kernel
Corpus path
tools/include/nolibc/stddef.h
Extension
.h
Size
477 bytes
Lines
25
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: implementation source
Status
source implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#include "nolibc.h"

#ifndef _NOLIBC_STDDEF_H
#define _NOLIBC_STDDEF_H

#include "stdint.h"

/* note: may already be defined */
#ifndef NULL
#define NULL ((void *)0)
#endif

#ifndef offsetof
#define offsetof(TYPE, FIELD) __builtin_offsetof(TYPE, FIELD)
#endif

#endif /* _NOLIBC_STDDEF_H */

Annotation

Implementation Notes