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

Add getppid to std.c and std.os.linux. #20866

Merged
merged 1 commit into from
Aug 7, 2024
Merged

Conversation

jcollie
Copy link
Contributor

@jcollie jcollie commented Jul 29, 2024

The std lib is missing getppid, this patch adds it.

The std lib is missing getppid, this patch adds it.
@@ -9351,6 +9351,7 @@ pub extern "c" fn setlogmask(maskpri: c_int) c_int;
pub extern "c" fn if_nametoindex([*:0]const u8) c_int;

pub extern "c" fn getpid() pid_t;
pub extern "c" fn getppid() pid_t;
Copy link
Member

@alexrp alexrp Jul 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this doesn't exist on Windows.

I think it's "fine" in that it's no worse than many of the other declarations immediately surrounding it. Just noting that at some point we need to go through and change these declarations to be in line with the principles laid out in #20679. I don't think this necessarily has to block merging this PR, since that conversion work will likely be done in a batched fashion anyway.

@andrewrk andrewrk merged commit 979fd12 into ziglang:master Aug 7, 2024
10 checks passed
@andrewrk
Copy link
Member

andrewrk commented Aug 7, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants