Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

posix_spawnattr_destroy incorrect return type #12964

Closed
Jarred-Sumner opened this issue Sep 25, 2022 · 1 comment · Fixed by #12999
Closed

posix_spawnattr_destroy incorrect return type #12964

Jarred-Sumner opened this issue Sep 25, 2022 · 1 comment · Fixed by #12999
Labels
bug Observed behavior contradicts documented or intended behavior contributor friendly This issue is limited in scope and/or knowledge of Zig internals. standard library This issue involves writing Zig code for the standard library.
Milestone

Comments

@Jarred-Sumner
Copy link
Contributor

From spawn.h on macOS:

int     posix_spawnattr_destroy(posix_spawnattr_t *) __API_AVAILABLE(macos(10.5), ios(2.0)) __API_UNAVAILABLE(watchos, tvos);

It should be c_int

pub extern "c" fn posix_spawnattr_destroy(attr: *posix_spawnattr_t) void;

@Jarred-Sumner
Copy link
Contributor Author

Same for posix_spawn_file_actions_destroy

@Vexu Vexu added bug Observed behavior contradicts documented or intended behavior contributor friendly This issue is limited in scope and/or knowledge of Zig internals. standard library This issue involves writing Zig code for the standard library. labels Sep 26, 2022
@Vexu Vexu added this to the 0.11.0 milestone Sep 26, 2022
alichraghi added a commit to alichraghi/zig that referenced this issue Sep 28, 2022
alichraghi added a commit to alichraghi/zig that referenced this issue Sep 30, 2022
alichraghi added a commit to alichraghi/zig that referenced this issue Sep 30, 2022
alichraghi added a commit to alichraghi/zig that referenced this issue Sep 30, 2022
alichraghi added a commit to alichraghi/zig that referenced this issue Oct 3, 2022
alichraghi added a commit to alichraghi/zig that referenced this issue Oct 3, 2022
Vexu pushed a commit that referenced this issue Oct 13, 2022
@Vexu Vexu modified the milestones: 0.11.0, 0.10.0 Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior contributor friendly This issue is limited in scope and/or knowledge of Zig internals. standard library This issue involves writing Zig code for the standard library.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants