unix: add mount(2) for macOS

The 'data' argument of this method needs to point to a file system type
specific data structure. In the case of NFS (which I'm interested in
using), this needs to point to an XDR encoded message. The schema for
this message can be found here:

https://github.com/apple-oss-distributions/NFS/blob/main/mount_nfs/nfs_sys_prot.x

Change-Id: Ia49562ba6e8ab5d4c00eb961db6862fb1310b74e
GitHub-Last-Rev: 62c32df776263b4efb315077536740ae8fe7e53f
GitHub-Pull-Request: golang/sys#125
Reviewed-on: https://go-review.googlesource.com/c/sys/+/405494
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
Ed Schouten
2022-05-13 21:02:49 +00:00
committed by Ian Lance Taylor
parent 988cb79eb6
commit 45d2b4557a
7 changed files with 63 additions and 1 deletions
+1
View File
@@ -90,6 +90,7 @@ var darwinTests = [...]darwinTest{
{"mlock", libc_mlock_trampoline_addr},
{"mlockall", libc_mlockall_trampoline_addr},
{"mmap", libc_mmap_trampoline_addr},
{"mount", libc_mount_trampoline_addr},
{"mprotect", libc_mprotect_trampoline_addr},
{"msync", libc_msync_trampoline_addr},
{"munlock", libc_munlock_trampoline_addr},