-
Notifications
You must be signed in to change notification settings - Fork 77
Support chown
in eio_posix and eio_linux
#781
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
base: main
Are you sure you want to change the base?
Changes from all commits
9f83a87
2c64c01
961f377
85ffd3d
9808d13
4dd2863
510c2a6
04364c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,6 +138,12 @@ let read_link ?dirfd path = | |
in_worker_thread @@ fun () -> | ||
Eio_unix.Private.read_link dirfd path | ||
|
||
let chown ?dirfd ~follow:_ ~uid ~gid path = | ||
in_worker_thread @@ fun () -> | ||
match dirfd with | ||
| None -> failwith "Chown is unsupported on Windows" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could just use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm I'm wondering whether
Do we have a rule for what makes it into the cross-platform API and what doesn't ? I mean we already have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's OK to keep it. We might want a proper operation-not-supported error at some point. |
||
| Some dirfd -> Eio_unix.Private.chown ~flags:0 ~uid ~gid dirfd path | ||
|
||
external eio_readv : Unix.file_descr -> Cstruct.t array -> int = "caml_eio_windows_readv" | ||
|
||
external eio_preadv : Unix.file_descr -> Cstruct.t array -> Optint.Int63.t -> int = "caml_eio_windows_preadv" | ||
|
Uh oh!
There was an error while loading. Please reload this page.