Skip to content

Tiny std fixes #3588

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

Merged
merged 2 commits into from
Nov 4, 2019
Merged

Tiny std fixes #3588

merged 2 commits into from
Nov 4, 2019

Conversation

daurnimator
Copy link
Contributor

Definition fixups found while debugging old OSX

@daurnimator daurnimator added the standard library This issue involves writing Zig code for the standard library. label Nov 4, 2019
// Deprecated
pub extern "c" fn futimes(fd: fd_t, times: *[2]timeval) c_int;
pub extern "c" fn utimes(path: [*]const u8, times: *[2]timeval) c_int;

pub extern "c" fn utimensat(dirfd: fd_t, pathname: [*]const u8, times: *[2]timespec, flags: u32) c_int;
Copy link
Contributor Author

@daurnimator daurnimator Nov 4, 2019

Choose a reason for hiding this comment

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

I'm curious how we want to handle the lack of certain APIs on various platforms.
e.g. windows and old OSX are missing utimensat: should we not define it for those targets?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this question is #1907

@andrewrk andrewrk merged commit 5db77e3 into ziglang:master Nov 4, 2019
@daurnimator daurnimator deleted the tiny-std-fixes branch November 4, 2019 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
standard library This issue involves writing Zig code for the standard library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants