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
x/sys/unix: missing Fgetxattr and Fsetxattr #26832
Comments
@masiulaniec Which operating system? |
FWIW, it seems to be missing on all operating systems except FreeBSD. |
Change https://golang.org/cl/128176 mentions this issue: |
Add Fgetxattr, Flistxattr, Fremovexattr and Fsetxattr on Linux. Updates golang/go#26832 Change-Id: Ia79915e91a928188c6c985ef301d5445f630b19c Reviewed-on: https://go-review.googlesource.com/128176 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
I need it on Linux and Darwin. It might be applicable to other systems. |
Change https://golang.org/cl/128495 mentions this issue: |
Fsetxattr should just return an error (like Setxattr and like Fsetxattr is already doing on FreeBSD). Fix for CL 128176 Updates golang/go#26832 Change-Id: Id1c1315d9eb6952128e0c0ce44b19060e0403cc0 Reviewed-on: https://go-review.googlesource.com/128495 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Change https://golang.org/cl/128537 mentions this issue: |
Add Fgetxattr, Flistxattr, Fremovexattr and Fsetxattr on Darwin. Also add a corresponding test. Updates golang/go#26832 Change-Id: Id75bfce90ccc024b567a7b066a9188a615b9eec4 Reviewed-on: https://go-review.googlesource.com/128537 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Added on Linux (https://golang.org/cl/128176) and Darwin (https://golang.org/cl/128537). FreeBSD already supports them and NetBSD support (using the same implementation as FreeBSD) was added through (https://golang.org/cl/128256). As for the remaining OSes: DragonflyBSD only provides syscalls for |
The system calls fgetxattr(2) and fsetxattr(2) are not exposed. These variants are required to avoid some path-based race conditions caused by concurrent rename(2) calls.
The text was updated successfully, but these errors were encountered: