diff options
| author | Bobby <[email protected]> | 2026-02-20 18:08:45 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-02-20 18:08:45 +0530 |
| commit | 78c3c538e754ea43d5b52db0f64894cce78545ac (patch) | |
| tree | 1782b4ee6816ea74f6cd6f86c46773a673170a90 /system/libraries/kata/kata.zig | |
| parent | 11529f20f7710771bd517648a71bc044ee37e825 (diff) | |
| download | akiba-78c3c538e754ea43d5b52db0f64894cce78545ac.tar.xz akiba-78c3c538e754ea43d5b52db0f64894cce78545ac.zip | |
feat: Refactor path handling to use location utilities and update related structures
- Replaced path references with location in various modules for consistency.
- Updated attachment management to use location instead of path.
- Enhanced I/O operations to handle location parameters.
- Removed deprecated path utilities and integrated location utilities.
- Adjusted limits and parameters for kata and attachment management.
Diffstat (limited to 'system/libraries/kata/kata.zig')
| -rw-r--r-- | system/libraries/kata/kata.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/libraries/kata/kata.zig b/system/libraries/kata/kata.zig index 951a742..39f4556 100644 --- a/system/libraries/kata/kata.zig +++ b/system/libraries/kata/kata.zig @@ -18,16 +18,16 @@ pub fn exit(code: u64) noreturn { unreachable; } -pub fn spawn(path: []const u8) Error!u32 { - const result = sys.syscall(.spawn, .{ @intFromPtr(path.ptr), path.len, @as(u64, 0), @as(u64, 0) }); +pub fn spawn(location: []const u8) Error!u32 { + const result = sys.syscall(.spawn, .{ @intFromPtr(location.ptr), location.len, @as(u64, 0), @as(u64, 0) }); if (result == ERROR_RESULT) { return Error.SpawnFailed; } return @truncate(result); } -pub fn spawnWithArgs(path: []const u8, argv: [][*:0]const u8) Error!u32 { - const result = sys.syscall(.spawn, .{ @intFromPtr(path.ptr), path.len, @intFromPtr(argv.ptr), argv.len }); +pub fn spawnWithParams(location: []const u8, params: [][*:0]const u8) Error!u32 { + const result = sys.syscall(.spawn, .{ @intFromPtr(location.ptr), location.len, @intFromPtr(params.ptr), params.len }); if (result == ERROR_RESULT) { return Error.SpawnFailed; } |
