mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-26 00:52:50 +00:00
feat: Add certs, init, io_uring, security, usr, virt subsystems, Nano editor & full LazyBox suite
This commit is contained in:
1 parent
ae5f4a96c4
commit
5662be29f5
27 files changed
+1870
-333
No files matched your search
@@ -0,0 +1,32 @@
|
||||
#ifndef _INIT_INIT_H
|
||||
#define _INIT_INIT_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define MAX_CMDLINE_LEN 256
|
||||
#define MAX_BOOT_ARGS 16
|
||||
|
||||
typedef enum {
|
||||
RUNLEVEL_HALT = 0,
|
||||
RUNLEVEL_SINGLE = 1,
|
||||
RUNLEVEL_MULTIUSER = 3,
|
||||
RUNLEVEL_GRAPHICAL = 5,
|
||||
RUNLEVEL_REBOOT = 6
|
||||
} runlevel_t;
|
||||
|
||||
typedef struct {
|
||||
char key[32];
|
||||
char value[64];
|
||||
} boot_param_t;
|
||||
|
||||
void init_early(const char* boot_args);
|
||||
void init_parse_cmdline(const char* cmdline);
|
||||
const char* init_get_param(const char* key);
|
||||
bool init_has_param(const char* key);
|
||||
runlevel_t init_get_runlevel(void);
|
||||
void init_set_runlevel(runlevel_t rl);
|
||||
void init_system_banner(void);
|
||||
|
||||
#endif // _INIT_INIT_H
|
||||
@@ -0,0 +1,15 @@
|
||||
#ifndef _INIT_VERSION_H
|
||||
#define _INIT_VERSION_H
|
||||
|
||||
#define SUBOS_VERSION_MAJOR 0
|
||||
#define SUBOS_VERSION_MINOR 2
|
||||
#define SUBOS_VERSION_PATCH 0
|
||||
#define SUBOS_VERSION_CODENAME "Titan"
|
||||
#define SUBOS_VERSION_STRING "0.2.0-lts (x86_64)"
|
||||
#define SUBOS_BUILD_TARGET "x86_64-elf-baremetal"
|
||||
#define SUBOS_COMPILER "x86_64-elf-gcc (Modular Monolithic)"
|
||||
|
||||
const char* kernel_get_version(void);
|
||||
const char* kernel_get_build_banner(void);
|
||||
|
||||
#endif // _INIT_VERSION_H
|
||||
Reference in new issue
Block a user