Skip to content
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: add *at (POSIX.1-2008 conformed) functions on darwin. #14458

Closed
hirochachacha opened this issue Feb 22, 2016 · 5 comments
Closed

Comments

@hirochachacha
Copy link
Contributor

OS X 10.10 (IOS 8.0) add list of *at syscalls.

  • openat
  • renameat
  • fchmodat
  • fstatat
  • mkdirat
  • faccessat
  • fchownat
  • linkat
  • readlinkat
  • symlinkat
  • unlinkat

Currently, only fchmodat is exposed.

@ianlancetaylor ianlancetaylor added this to the Unreleased milestone Feb 22, 2016
@perillo
Copy link
Contributor

perillo commented Apr 7, 2016

These syscalls are also supported on FreeBSD, and I need them for a project that currently only supports Linux.

@avg-I
Copy link

avg-I commented Jun 21, 2016

I would like to second both requests (darwin / FreeBSD) in this issue.
Other popular BSDs (Net, Open)most likely support the requested system calls as well.

@calmh
Copy link
Contributor

calmh commented Dec 6, 2016

Yes. Openat is required, as I understand it, to be able to reliably open a path without following symlinks. Currently this is only possible on Linux, with Go...

@ianlancetaylor
Copy link
Contributor

I encourage anyone who wants to fix this to write a patch and submit it following the guidelines at https://golang.org/doc/contribute.html.

tklauser added a commit to tklauser/sys that referenced this issue Jul 20, 2017
Add the Faccessat, Fchownat, Linkat, Mkdirat, Openat, Readlinkat,
Renameat, Symlinkat and Unlinkat functions (to conform to POSIX.1-2008)
and make Fchmodat available on all architectures, not just amd64.

Generated on Mac OS 10.11 (Darwin 15.6.0)

Fixes golang/go#14458

Change-Id: I6d9258864383ea77f9cad058ee8ba2c728213b40
@gopherbot
Copy link

CL https://golang.org/cl/50450 mentions this issue.

tklauser added a commit to tklauser/sys that referenced this issue Jul 20, 2017
Add the Faccessat, Fchownat, Linkat, Mkdirat, Openat, Readlinkat,
Renameat, Symlinkat and Unlinkat functions (to conform to POSIX.1-2008)
and make Fchmodat available on all architectures, not just amd64. Also
add the missing AT_* constants.

Generated on Mac OS 10.11 (Darwin 15.6.0) for darwin/amd64 only.

Fixes golang/go#14458

Change-Id: I6d9258864383ea77f9cad058ee8ba2c728213b40
tklauser added a commit to tklauser/sys that referenced this issue Jul 21, 2017
Add the Faccessat, Fchownat, Linkat, Mkdirat, Openat, Readlinkat,
Renameat, Symlinkat and Unlinkat functions (to conform to POSIX.1-2008)
and make Fchmodat available on all architectures, not just amd64. Also
add the missing AT_* constants.

Generated on Mac OS 10.11 (Darwin 15.6.0) for darwin/amd64 only.

Fixes golang/go#14458

Change-Id: I6d9258864383ea77f9cad058ee8ba2c728213b40
micanzhang pushed a commit to micanzhang/sys that referenced this issue Sep 12, 2017
Add the Faccessat, Fchownat, Linkat, Mkdirat, Openat, Readlinkat,
Renameat, Symlinkat and Unlinkat functions (to conform to POSIX.1-2008)
and make Fchmodat available on all architectures, not just amd64. Also
add the missing AT_* constants.

Generated on Mac OS 10.11 (Darwin 15.6.0) for darwin/amd64 and
darwin/386 only.

Fixes golang/go#14458

Change-Id: I6d9258864383ea77f9cad058ee8ba2c728213b40
Reviewed-on: https://go-review.googlesource.com/50450
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
@golang golang locked and limited conversation to collaborators Jul 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants