-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Implementation of fcntl() to both Darwin and Glibc overlays. Ported … #413
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
Conversation
…pen(), openat() and sem_open() from Darwin to Glibc. Added tests for new fcntl functionality.
@@ -1,5 +1,6 @@ | |||
set(sources | |||
Glibc.swift | |||
Glibc.swift | |||
Misc.c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The indentation convention for cmake is 4 spaces for continuation lines.
LGTM with (mostly) formatting changes. It is unfortunate we don't have anything like |
This should be good to go now. Tested and working as expected. |
Tested on OS X and Ubuntu 14.04. |
Implementation of fcntl() to both Darwin and Glibc overlays. Ported …
public func open( | ||
path: UnsafePointer<CChar>, | ||
_ oflag: CInt | ||
) -> CInt { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering: why not use a default value of 0
for the mode: mode_t
parameter instead of duplicating those functions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because that's how the man page describes the function: there are three variants, one accepts void, another accepts a pointer, and another accepts int. It does not describe the void one as a variant of the int one.
SDK: guard BSD specific paths against windows
Update run_cperf with 3 extra options needed by the build-script preset code.
…open(), openat() and sem_open() from Darwin to Glibc. Added tests for new fcntl functionality.