Skip to content

Commit aa1c4c8

Browse files
committed
unix: provide Mount on openbsd
Note that Mount is already provided for both darwin and linux, with differing signatures. Change-Id: Iaddae1769e436aad5125b78e31b2d62d22e45b16 Reviewed-on: https://go-review.googlesource.com/c/sys/+/595735 Reviewed-by: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent cde4660 commit aa1c4c8

15 files changed

+205
-0
lines changed

unix/syscall_openbsd.go

+1
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ func Uname(uname *Utsname) error {
293293
//sys Mkfifoat(dirfd int, path string, mode uint32) (err error)
294294
//sys Mknod(path string, mode uint32, dev int) (err error)
295295
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
296+
//sys Mount(fsType string, dir string, flags int, data unsafe.Pointer) (err error)
296297
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
297298
//sys Open(path string, mode int, perm uint32) (fd int, err error)
298299
//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error)

unix/zsyscall_openbsd_386.go

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zsyscall_openbsd_386.s

+5
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,11 @@ TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0
463463
GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $4
464464
DATA ·libc_mknodat_trampoline_addr(SB)/4, $libc_mknodat_trampoline<>(SB)
465465

466+
TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0
467+
JMP libc_mount(SB)
468+
GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $4
469+
DATA ·libc_mount_trampoline_addr(SB)/4, $libc_mount_trampoline<>(SB)
470+
466471
TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0
467472
JMP libc_nanosleep(SB)
468473
GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $4

unix/zsyscall_openbsd_amd64.go

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zsyscall_openbsd_amd64.s

+5
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,11 @@ TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0
463463
GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $8
464464
DATA ·libc_mknodat_trampoline_addr(SB)/8, $libc_mknodat_trampoline<>(SB)
465465

466+
TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0
467+
JMP libc_mount(SB)
468+
GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $8
469+
DATA ·libc_mount_trampoline_addr(SB)/8, $libc_mount_trampoline<>(SB)
470+
466471
TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0
467472
JMP libc_nanosleep(SB)
468473
GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $8

unix/zsyscall_openbsd_arm.go

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zsyscall_openbsd_arm.s

+5
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,11 @@ TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0
463463
GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $4
464464
DATA ·libc_mknodat_trampoline_addr(SB)/4, $libc_mknodat_trampoline<>(SB)
465465

466+
TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0
467+
JMP libc_mount(SB)
468+
GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $4
469+
DATA ·libc_mount_trampoline_addr(SB)/4, $libc_mount_trampoline<>(SB)
470+
466471
TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0
467472
JMP libc_nanosleep(SB)
468473
GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $4

unix/zsyscall_openbsd_arm64.go

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zsyscall_openbsd_arm64.s

+5
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,11 @@ TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0
463463
GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $8
464464
DATA ·libc_mknodat_trampoline_addr(SB)/8, $libc_mknodat_trampoline<>(SB)
465465

466+
TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0
467+
JMP libc_mount(SB)
468+
GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $8
469+
DATA ·libc_mount_trampoline_addr(SB)/8, $libc_mount_trampoline<>(SB)
470+
466471
TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0
467472
JMP libc_nanosleep(SB)
468473
GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $8

unix/zsyscall_openbsd_mips64.go

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zsyscall_openbsd_mips64.s

+5
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,11 @@ TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0
463463
GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $8
464464
DATA ·libc_mknodat_trampoline_addr(SB)/8, $libc_mknodat_trampoline<>(SB)
465465

466+
TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0
467+
JMP libc_mount(SB)
468+
GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $8
469+
DATA ·libc_mount_trampoline_addr(SB)/8, $libc_mount_trampoline<>(SB)
470+
466471
TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0
467472
JMP libc_nanosleep(SB)
468473
GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $8

unix/zsyscall_openbsd_ppc64.go

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zsyscall_openbsd_ppc64.s

+6
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,12 @@ TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0
555555
GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $8
556556
DATA ·libc_mknodat_trampoline_addr(SB)/8, $libc_mknodat_trampoline<>(SB)
557557

558+
TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0
559+
CALL libc_mount(SB)
560+
RET
561+
GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $8
562+
DATA ·libc_mount_trampoline_addr(SB)/8, $libc_mount_trampoline<>(SB)
563+
558564
TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0
559565
CALL libc_nanosleep(SB)
560566
RET

unix/zsyscall_openbsd_riscv64.go

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zsyscall_openbsd_riscv64.s

+5
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,11 @@ TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0
463463
GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $8
464464
DATA ·libc_mknodat_trampoline_addr(SB)/8, $libc_mknodat_trampoline<>(SB)
465465

466+
TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0
467+
JMP libc_mount(SB)
468+
GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $8
469+
DATA ·libc_mount_trampoline_addr(SB)/8, $libc_mount_trampoline<>(SB)
470+
466471
TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0
467472
JMP libc_nanosleep(SB)
468473
GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $8

0 commit comments

Comments
 (0)