summaryrefslogtreecommitdiff
path: root/include/sys/param.h
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
commitfc00c656c96528112d05cf0edf8631bd5eaea446 (patch)
treea6e0e6c588191a8bd1c64afc3b7a258e3e66c236 /include/sys/param.h
Add build system scaffolding and libc headers
Diffstat (limited to 'include/sys/param.h')
-rw-r--r--include/sys/param.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sys/param.h b/include/sys/param.h
new file mode 100644
index 00000000..bd5bc0a1
--- /dev/null
+++ b/include/sys/param.h
@@ -0,0 +1,11 @@
+#ifndef __SYS_PARAM_H
+#define __SYS_PARAM_H
+
+#define MIN(a, b) (((a) < (b)) ? (a) : (b))
+#define MAX(a, b) (((a) > (b)) ? (a) : (b))
+
+#define offsetof(s, e) __builtin_offsetof(s, e)
+
+#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
+
+#endif