Implement environment variables

This commit is contained in:
2026-03-16 21:20:00 +01:00
parent cba8122b07
commit 65a7511e36
15 changed files with 228 additions and 2 deletions

View File

@@ -86,3 +86,11 @@ int remove (const char* path) { return (int)do_syscall (SYS_REMOVE, path); }
int create_volume (const char* key, int fs_type, const char* device_key) {
return (int)do_syscall (SYS_CREATE_VOLUME, key, fs_type, device_key);
}
int env_set (const char* key, void* buffer, size_t len) {
return (int)do_syscall (SYS_ENV_SET, key, buffer, len);
}
int env_get (const char* key, void* buffer, size_t len) {
return (int)do_syscall (SYS_ENV_GET, key, buffer, len);
}