authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-12-16 14:52:45+00:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-12-16 14:53:54+00:00
log512cb22d838adb7fc52c2b8b6c14d16a624d8605
tree936abf79b8deb54ff154f96144e846e086144503
parent3e9810266bf9ce8aa79cfa330efedb1c550ad721
signaturelock-open Commit is signed but in an unrecognized format.

std.c.darwin.posix_spawn: fix signature

And change corresponding signature in `DarwinPosixSpawn`.

2 files changed, 8 insertions(+), 8 deletions(-)

lib/std/c/darwin.zig+4-4
......@@ -1232,16 +1232,16 @@ pub extern "c" fn posix_spawn(
12321232 path: [*:0]const u8,
12331233 actions: ?*const posix_spawn_file_actions_t,
12341234 attr: ?*const posix_spawnattr_t,
1235 argv: [*:null]?[*:0]const u8,
1236 env: [*:null]?[*:0]const u8,
1235 argv: [*:null]const ?[*:0]const u8,
1236 env: [*:null]const ?[*:0]const u8,
12371237) c_int;
12381238pub extern "c" fn posix_spawnp(
12391239 pid: *pid_t,
12401240 path: [*:0]const u8,
12411241 actions: ?*const posix_spawn_file_actions_t,
12421242 attr: ?*const posix_spawnattr_t,
1243 argv: [*:null]?[*:0]const u8,
1244 env: [*:null]?[*:0]const u8,
1243 argv: [*:null]const ?[*:0]const u8,
1244 env: [*:null]const ?[*:0]const u8,
12451245) c_int;
12461246
12471247pub const E = enum(u16) {
src/DarwinPosixSpawn.zig+4-4
......@@ -161,8 +161,8 @@ pub fn spawn(
161161 path: []const u8,
162162 actions: ?Actions,
163163 attr: ?Attr,
164 argv: [*:null]?[*:0]const u8,
165 envp: [*:null]?[*:0]const u8,
164 argv: [*:null]const ?[*:0]const u8,
165 envp: [*:null]const ?[*:0]const u8,
166166) Error!std.c.pid_t {
167167 const posix_path = try std.posix.toPosixPath(path);
168168 return spawnZ(&posix_path, actions, attr, argv, envp);
......@@ -172,8 +172,8 @@ pub fn spawnZ(
172172 path: [*:0]const u8,
173173 actions: ?Actions,
174174 attr: ?Attr,
175 argv: [*:null]?[*:0]const u8,
176 envp: [*:null]?[*:0]const u8,
175 argv: [*:null]const ?[*:0]const u8,
176 envp: [*:null]const ?[*:0]const u8,
177177) Error!std.c.pid_t {
178178 var pid: std.c.pid_t = undefined;
179179 switch (errno(std.c.posix_spawn(