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(...@@ -1232,16 +1232,16 @@ pub extern "c" fn posix_spawn(
1232 path: [*:0]const u8,1232 path: [*:0]const u8,
1233 actions: ?*const posix_spawn_file_actions_t,1233 actions: ?*const posix_spawn_file_actions_t,
1234 attr: ?*const posix_spawnattr_t,1234 attr: ?*const posix_spawnattr_t,
1235 argv: [*:null]?[*:0]const u8,1235 argv: [*:null]const ?[*:0]const u8,
1236 env: [*:null]?[*:0]const u8,1236 env: [*:null]const ?[*:0]const u8,
1237) c_int;1237) c_int;
1238pub extern "c" fn posix_spawnp(1238pub extern "c" fn posix_spawnp(
1239 pid: *pid_t,1239 pid: *pid_t,
1240 path: [*:0]const u8,1240 path: [*:0]const u8,
1241 actions: ?*const posix_spawn_file_actions_t,1241 actions: ?*const posix_spawn_file_actions_t,
1242 attr: ?*const posix_spawnattr_t,1242 attr: ?*const posix_spawnattr_t,
1243 argv: [*:null]?[*:0]const u8,1243 argv: [*:null]const ?[*:0]const u8,
1244 env: [*:null]?[*:0]const u8,1244 env: [*:null]const ?[*:0]const u8,
1245) c_int;1245) c_int;
12461246
1247pub const E = enum(u16) {1247pub const E = enum(u16) {
src/DarwinPosixSpawn.zig+4-4
...@@ -161,8 +161,8 @@ pub fn spawn(...@@ -161,8 +161,8 @@ pub fn spawn(
161 path: []const u8,161 path: []const u8,
162 actions: ?Actions,162 actions: ?Actions,
163 attr: ?Attr,163 attr: ?Attr,
164 argv: [*:null]?[*:0]const u8,164 argv: [*:null]const ?[*:0]const u8,
165 envp: [*:null]?[*:0]const u8,165 envp: [*:null]const ?[*:0]const u8,
166) Error!std.c.pid_t {166) Error!std.c.pid_t {
167 const posix_path = try std.posix.toPosixPath(path);167 const posix_path = try std.posix.toPosixPath(path);
168 return spawnZ(&posix_path, actions, attr, argv, envp);168 return spawnZ(&posix_path, actions, attr, argv, envp);
...@@ -172,8 +172,8 @@ pub fn spawnZ(...@@ -172,8 +172,8 @@ pub fn spawnZ(
172 path: [*:0]const u8,172 path: [*:0]const u8,
173 actions: ?Actions,173 actions: ?Actions,
174 attr: ?Attr,174 attr: ?Attr,
175 argv: [*:null]?[*:0]const u8,175 argv: [*:null]const ?[*:0]const u8,
176 envp: [*:null]?[*:0]const u8,176 envp: [*:null]const ?[*:0]const u8,
177) Error!std.c.pid_t {177) Error!std.c.pid_t {
178 var pid: std.c.pid_t = undefined;178 var pid: std.c.pid_t = undefined;
179 switch (errno(std.c.posix_spawn(179 switch (errno(std.c.posix_spawn(