-
Notifications
You must be signed in to change notification settings - Fork 11
Implement fclonefileat syscall #12
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?
Conversation
zfrdcd
left a comment
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.
Nice, I like the idea of copy_file_range.
I used the spec from https://man.freebsd.org/cgi/man.cgi?query=clonefile&apropos=0&sektion=2&manpath=macOS+26.0&arch=default&format=html
I can be more picky if you want , just let me know 👅
darling/src/libsystem_kernel/emulation/src/xnu_syscall/bsd/impl/misc/clonefile.c
Outdated
Show resolved
Hide resolved
darling/src/libsystem_kernel/emulation/src/xnu_syscall/bsd/impl/misc/clonefile.c
Show resolved
Hide resolved
darling/src/libsystem_kernel/emulation/src/xnu_syscall/bsd/impl/unistd/fchown.c
Show resolved
Hide resolved
darling/src/libsystem_kernel/emulation/src/xnu_syscall/bsd/impl/misc/clonefile.c
Outdated
Show resolved
Hide resolved
|
Other than that, I tested it and works for me, Thanks! |
0b2843c to
994bcc5
Compare
|
I've made some substantial changes to make |
|
Mmm I wa
Gonna test it, but i wasn't expected such a big change 🙀 |
|
It worked! Give me a bit more time for reviewing it |
994bcc5 to
c425093
Compare
CuriousTommy
left a comment
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.
There are some additional issues I haven't commented on yet, but for now, let's focus on the ones I commented on.
darling/src/libsystem_kernel/emulation/include/linux_premigration/linux-syscalls/linux-x86.h
Outdated
Show resolved
Hide resolved
darling/src/libsystem_kernel/emulation/include/linux_premigration/linux-syscalls/linux-x86_64.h
Outdated
Show resolved
Hide resolved
darling/src/libsystem_kernel/emulation/src/xnu_syscall/bsd/impl/misc/clonefile.c
Outdated
Show resolved
Hide resolved
...ing/src/libsystem_kernel/emulation/include/linux_premigration/linux-syscalls/linux-generic.h
Outdated
Show resolved
Hide resolved
darling/src/libsystem_kernel/emulation/src/xnu_syscall/bsd/impl/misc/clonefile.c
Outdated
Show resolved
Hide resolved
darling/src/libsystem_kernel/emulation/src/xnu_syscall/bsd/impl/misc/clonefile.c
Outdated
Show resolved
Hide resolved
darling/src/libsystem_kernel/emulation/src/xnu_syscall/bsd/impl/misc/clonefile.c
Outdated
Show resolved
Hide resolved
darling/src/libsystem_kernel/emulation/src/xnu_syscall/bsd/impl/misc/clonefile.c
Outdated
Show resolved
Hide resolved
darling/src/libsystem_kernel/emulation/src/xnu_syscall/bsd/impl/misc/clonefile.c
Outdated
Show resolved
Hide resolved
darling/src/libsystem_kernel/emulation/src/xnu_syscall/bsd/impl/misc/clonefile.c
Outdated
Show resolved
Hide resolved
c425093 to
2244a32
Compare
|
@CuriousTommy I think I fixed all comments |
This PR is a first step to make rustup to work (current error can be seen in darling#1637)