mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
Initial commit: SUB-OS 64-Bit Production Monolithic Operating System with LazyBox userland suite
This commit is contained in:
commit
cd9c786d14
88 files changed
+7132
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#ifndef _USERLAND_LAZYBOX_H
|
||||
#define _USERLAND_LAZYBOX_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define LAZYBOX_VERSION "2.0.0-pro"
|
||||
|
||||
typedef int (*applet_fn_t)(int argc, char** argv);
|
||||
|
||||
typedef struct {
|
||||
const char* name;
|
||||
applet_fn_t func;
|
||||
const char* usage;
|
||||
const char* desc;
|
||||
const char* category;
|
||||
} lazybox_applet_t;
|
||||
|
||||
void lazybox_init(void);
|
||||
int lazybox_main(int argc, char** argv);
|
||||
bool lazybox_has_applet(const char* name);
|
||||
int lazybox_run_applet(const char* name, int argc, char** argv);
|
||||
const lazybox_applet_t* lazybox_get_applets(int* count_out);
|
||||
|
||||
#endif // _USERLAND_LAZYBOX_H
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef _USERLAND_SHELL_H
|
||||
#define _USERLAND_SHELL_H
|
||||
|
||||
#define MAX_COMMAND_LENGTH 256
|
||||
|
||||
void shell_init(void);
|
||||
void shell_run(void);
|
||||
|
||||
#endif // _USERLAND_SHELL_H
|
||||
Reference in new issue
Block a user