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: No MNT_FORCE constant on darwin #9891

Closed
jacobsa opened this issue Feb 16, 2015 · 1 comment
Closed

x/sys/unix: No MNT_FORCE constant on darwin #9891

jacobsa opened this issue Feb 16, 2015 · 1 comment

Comments

@jacobsa
Copy link
Contributor

jacobsa commented Feb 16, 2015

On OS X, man 2 unmount shows a flag for unmount called MNT_FORCE. However, on my system, neither syscall nor golang.org/x/sys/unix contain a constant with that name:

% go version
go version go1.4.1 darwin/amd64

% godoc syscall | grep -i force
    PT_FORCEQUOTA                     = 0x1e
    For testing: clients can set this flag to force creation of IPv6 sockets

% godoc golang.org/x/sys/unix | grep -i force 
    PT_FORCEQUOTA                     = 0x1e
    For testing: clients can set this flag to force creation of IPv6 sockets

For what it's worth, my Linux machine does have that constant in golang.org/x/sys/unix (but not in syscall).

@minux minux added the repo-sys label Feb 16, 2015
@rsc rsc added this to the Unplanned milestone Apr 10, 2015
@rsc rsc changed the title unix: No MNT_FORCE constant on darwin x/sys/unix: No MNT_FORCE constant on darwin Apr 14, 2015
@rsc rsc modified the milestones: Unreleased, Unplanned Apr 14, 2015
@rsc rsc removed the repo-sys label Apr 14, 2015
tklauser pushed a commit to tklauser/sys that referenced this issue Aug 9, 2017
Add the MNT_* constants used for the Mount and Umount functions on
darwin.

Generated on Mac OS 10.11 (Darwin 15.6.0). This also brings
zerrors_darwin_{arm,arm64} up to date with all constants which are
already present for 386 and amd64.

Fixes golang/go#9891
@gopherbot
Copy link

Change https://golang.org/cl/54210 mentions this issue: unix: add MNT_* constants on Darwin

micanzhang pushed a commit to micanzhang/sys that referenced this issue Sep 12, 2017
Add the MNT_* constants used for the Mount and Umount functions on
Darwin.

Generated on Mac OS 10.11 (Darwin 15.6.0). This also brings
zerrors_darwin_{arm,arm64} up to date with constants which are already
present for 386 and amd64.

Fixes golang/go#9891

Change-Id: Id77847a2fb805a759aa0f5b36e8954b764e699a5
Reviewed-on: https://go-review.googlesource.com/54210
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 Aug 9, 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

4 participants