main
parent
3aa2451baa
commit
c4505978ae
100 changed files with 4308 additions and 1538 deletions
@ -0,0 +1,22 @@ |
||||
// Copyright 2022 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build hurd
|
||||
// +build hurd
|
||||
|
||||
package unix |
||||
|
||||
/* |
||||
#include <stdint.h> |
||||
int ioctl(int, unsigned long int, uintptr_t); |
||||
*/ |
||||
import "C" |
||||
|
||||
func ioctl(fd int, req uint, arg uintptr) (err error) { |
||||
r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg)) |
||||
if r0 == -1 && er != nil { |
||||
err = er |
||||
} |
||||
return |
||||
} |
@ -0,0 +1,29 @@ |
||||
// Copyright 2022 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build 386 && hurd
|
||||
// +build 386,hurd
|
||||
|
||||
package unix |
||||
|
||||
const ( |
||||
TIOCGETA = 0x62251713 |
||||
) |
||||
|
||||
type Winsize struct { |
||||
Row uint16 |
||||
Col uint16 |
||||
Xpixel uint16 |
||||
Ypixel uint16 |
||||
} |
||||
|
||||
type Termios struct { |
||||
Iflag uint32 |
||||
Oflag uint32 |
||||
Cflag uint32 |
||||
Lflag uint32 |
||||
Cc [20]uint8 |
||||
Ispeed int32 |
||||
Ospeed int32 |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,669 @@ |
||||
// go run mkasm.go openbsd mips64 |
||||
// Code generated by the command above; DO NOT EDIT.
|
||||
|
||||
#include "textflag.h" |
||||
|
||||
TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getgroups(SB) |
||||
GLOBL ·libc_getgroups_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getgroups_trampoline_addr(SB)/8, $libc_getgroups_trampoline<>(SB) |
||||
|
||||
TEXT libc_setgroups_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_setgroups(SB) |
||||
GLOBL ·libc_setgroups_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_setgroups_trampoline_addr(SB)/8, $libc_setgroups_trampoline<>(SB) |
||||
|
||||
TEXT libc_wait4_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_wait4(SB) |
||||
GLOBL ·libc_wait4_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_wait4_trampoline_addr(SB)/8, $libc_wait4_trampoline<>(SB) |
||||
|
||||
TEXT libc_accept_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_accept(SB) |
||||
GLOBL ·libc_accept_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_accept_trampoline_addr(SB)/8, $libc_accept_trampoline<>(SB) |
||||
|
||||
TEXT libc_bind_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_bind(SB) |
||||
GLOBL ·libc_bind_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_bind_trampoline_addr(SB)/8, $libc_bind_trampoline<>(SB) |
||||
|
||||
TEXT libc_connect_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_connect(SB) |
||||
GLOBL ·libc_connect_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_connect_trampoline_addr(SB)/8, $libc_connect_trampoline<>(SB) |
||||
|
||||
TEXT libc_socket_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_socket(SB) |
||||
GLOBL ·libc_socket_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_socket_trampoline_addr(SB)/8, $libc_socket_trampoline<>(SB) |
||||
|
||||
TEXT libc_getsockopt_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getsockopt(SB) |
||||
GLOBL ·libc_getsockopt_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getsockopt_trampoline_addr(SB)/8, $libc_getsockopt_trampoline<>(SB) |
||||
|
||||
TEXT libc_setsockopt_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_setsockopt(SB) |
||||
GLOBL ·libc_setsockopt_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_setsockopt_trampoline_addr(SB)/8, $libc_setsockopt_trampoline<>(SB) |
||||
|
||||
TEXT libc_getpeername_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getpeername(SB) |
||||
GLOBL ·libc_getpeername_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getpeername_trampoline_addr(SB)/8, $libc_getpeername_trampoline<>(SB) |
||||
|
||||
TEXT libc_getsockname_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getsockname(SB) |
||||
GLOBL ·libc_getsockname_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getsockname_trampoline_addr(SB)/8, $libc_getsockname_trampoline<>(SB) |
||||
|
||||
TEXT libc_shutdown_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_shutdown(SB) |
||||
GLOBL ·libc_shutdown_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_shutdown_trampoline_addr(SB)/8, $libc_shutdown_trampoline<>(SB) |
||||
|
||||
TEXT libc_socketpair_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_socketpair(SB) |
||||
GLOBL ·libc_socketpair_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_socketpair_trampoline_addr(SB)/8, $libc_socketpair_trampoline<>(SB) |
||||
|
||||
TEXT libc_recvfrom_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_recvfrom(SB) |
||||
GLOBL ·libc_recvfrom_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_recvfrom_trampoline_addr(SB)/8, $libc_recvfrom_trampoline<>(SB) |
||||
|
||||
TEXT libc_sendto_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_sendto(SB) |
||||
GLOBL ·libc_sendto_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_sendto_trampoline_addr(SB)/8, $libc_sendto_trampoline<>(SB) |
||||
|
||||
TEXT libc_recvmsg_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_recvmsg(SB) |
||||
GLOBL ·libc_recvmsg_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_recvmsg_trampoline_addr(SB)/8, $libc_recvmsg_trampoline<>(SB) |
||||
|
||||
TEXT libc_sendmsg_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_sendmsg(SB) |
||||
GLOBL ·libc_sendmsg_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_sendmsg_trampoline_addr(SB)/8, $libc_sendmsg_trampoline<>(SB) |
||||
|
||||
TEXT libc_kevent_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_kevent(SB) |
||||
GLOBL ·libc_kevent_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_kevent_trampoline_addr(SB)/8, $libc_kevent_trampoline<>(SB) |
||||
|
||||
TEXT libc_utimes_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_utimes(SB) |
||||
GLOBL ·libc_utimes_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_utimes_trampoline_addr(SB)/8, $libc_utimes_trampoline<>(SB) |
||||
|
||||
TEXT libc_futimes_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_futimes(SB) |
||||
GLOBL ·libc_futimes_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_futimes_trampoline_addr(SB)/8, $libc_futimes_trampoline<>(SB) |
||||
|
||||
TEXT libc_poll_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_poll(SB) |
||||
GLOBL ·libc_poll_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_poll_trampoline_addr(SB)/8, $libc_poll_trampoline<>(SB) |
||||
|
||||
TEXT libc_madvise_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_madvise(SB) |
||||
GLOBL ·libc_madvise_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_madvise_trampoline_addr(SB)/8, $libc_madvise_trampoline<>(SB) |
||||
|
||||
TEXT libc_mlock_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_mlock(SB) |
||||
GLOBL ·libc_mlock_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_mlock_trampoline_addr(SB)/8, $libc_mlock_trampoline<>(SB) |
||||
|
||||
TEXT libc_mlockall_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_mlockall(SB) |
||||
GLOBL ·libc_mlockall_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_mlockall_trampoline_addr(SB)/8, $libc_mlockall_trampoline<>(SB) |
||||
|
||||
TEXT libc_mprotect_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_mprotect(SB) |
||||
GLOBL ·libc_mprotect_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_mprotect_trampoline_addr(SB)/8, $libc_mprotect_trampoline<>(SB) |
||||
|
||||
TEXT libc_msync_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_msync(SB) |
||||
GLOBL ·libc_msync_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_msync_trampoline_addr(SB)/8, $libc_msync_trampoline<>(SB) |
||||
|
||||
TEXT libc_munlock_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_munlock(SB) |
||||
GLOBL ·libc_munlock_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_munlock_trampoline_addr(SB)/8, $libc_munlock_trampoline<>(SB) |
||||
|
||||
TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_munlockall(SB) |
||||
GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB) |
||||
|
||||
TEXT libc_pipe2_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_pipe2(SB) |
||||
GLOBL ·libc_pipe2_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_pipe2_trampoline_addr(SB)/8, $libc_pipe2_trampoline<>(SB) |
||||
|
||||
TEXT libc_getdents_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getdents(SB) |
||||
GLOBL ·libc_getdents_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getdents_trampoline_addr(SB)/8, $libc_getdents_trampoline<>(SB) |
||||
|
||||
TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getcwd(SB) |
||||
GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB) |
||||
|
||||
TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_ioctl(SB) |
||||
GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_ioctl_trampoline_addr(SB)/8, $libc_ioctl_trampoline<>(SB) |
||||
|
||||
TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_sysctl(SB) |
||||
GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) |
||||
|
||||
TEXT libc_ppoll_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_ppoll(SB) |
||||
GLOBL ·libc_ppoll_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_ppoll_trampoline_addr(SB)/8, $libc_ppoll_trampoline<>(SB) |
||||
|
||||
TEXT libc_access_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_access(SB) |
||||
GLOBL ·libc_access_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_access_trampoline_addr(SB)/8, $libc_access_trampoline<>(SB) |
||||
|
||||
TEXT libc_adjtime_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_adjtime(SB) |
||||
GLOBL ·libc_adjtime_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_adjtime_trampoline_addr(SB)/8, $libc_adjtime_trampoline<>(SB) |
||||
|
||||
TEXT libc_chdir_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_chdir(SB) |
||||
GLOBL ·libc_chdir_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_chdir_trampoline_addr(SB)/8, $libc_chdir_trampoline<>(SB) |
||||
|
||||
TEXT libc_chflags_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_chflags(SB) |
||||
GLOBL ·libc_chflags_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_chflags_trampoline_addr(SB)/8, $libc_chflags_trampoline<>(SB) |
||||
|
||||
TEXT libc_chmod_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_chmod(SB) |
||||
GLOBL ·libc_chmod_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_chmod_trampoline_addr(SB)/8, $libc_chmod_trampoline<>(SB) |
||||
|
||||
TEXT libc_chown_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_chown(SB) |
||||
GLOBL ·libc_chown_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_chown_trampoline_addr(SB)/8, $libc_chown_trampoline<>(SB) |
||||
|
||||
TEXT libc_chroot_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_chroot(SB) |
||||
GLOBL ·libc_chroot_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_chroot_trampoline_addr(SB)/8, $libc_chroot_trampoline<>(SB) |
||||
|
||||
TEXT libc_clock_gettime_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_clock_gettime(SB) |
||||
GLOBL ·libc_clock_gettime_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_clock_gettime_trampoline_addr(SB)/8, $libc_clock_gettime_trampoline<>(SB) |
||||
|
||||
TEXT libc_close_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_close(SB) |
||||
GLOBL ·libc_close_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_close_trampoline_addr(SB)/8, $libc_close_trampoline<>(SB) |
||||
|
||||
TEXT libc_dup_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_dup(SB) |
||||
GLOBL ·libc_dup_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_dup_trampoline_addr(SB)/8, $libc_dup_trampoline<>(SB) |
||||
|
||||
TEXT libc_dup2_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_dup2(SB) |
||||
GLOBL ·libc_dup2_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_dup2_trampoline_addr(SB)/8, $libc_dup2_trampoline<>(SB) |
||||
|
||||
TEXT libc_dup3_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_dup3(SB) |
||||
GLOBL ·libc_dup3_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_dup3_trampoline_addr(SB)/8, $libc_dup3_trampoline<>(SB) |
||||
|
||||
TEXT libc_exit_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_exit(SB) |
||||
GLOBL ·libc_exit_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_exit_trampoline_addr(SB)/8, $libc_exit_trampoline<>(SB) |
||||
|
||||
TEXT libc_faccessat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_faccessat(SB) |
||||
GLOBL ·libc_faccessat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_faccessat_trampoline_addr(SB)/8, $libc_faccessat_trampoline<>(SB) |
||||
|
||||
TEXT libc_fchdir_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_fchdir(SB) |
||||
GLOBL ·libc_fchdir_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_fchdir_trampoline_addr(SB)/8, $libc_fchdir_trampoline<>(SB) |
||||
|
||||
TEXT libc_fchflags_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_fchflags(SB) |
||||
GLOBL ·libc_fchflags_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_fchflags_trampoline_addr(SB)/8, $libc_fchflags_trampoline<>(SB) |
||||
|
||||
TEXT libc_fchmod_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_fchmod(SB) |
||||
GLOBL ·libc_fchmod_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_fchmod_trampoline_addr(SB)/8, $libc_fchmod_trampoline<>(SB) |
||||
|
||||
TEXT libc_fchmodat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_fchmodat(SB) |
||||
GLOBL ·libc_fchmodat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_fchmodat_trampoline_addr(SB)/8, $libc_fchmodat_trampoline<>(SB) |
||||
|
||||
TEXT libc_fchown_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_fchown(SB) |
||||
GLOBL ·libc_fchown_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_fchown_trampoline_addr(SB)/8, $libc_fchown_trampoline<>(SB) |
||||
|
||||
TEXT libc_fchownat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_fchownat(SB) |
||||
GLOBL ·libc_fchownat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_fchownat_trampoline_addr(SB)/8, $libc_fchownat_trampoline<>(SB) |
||||
|
||||
TEXT libc_flock_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_flock(SB) |
||||
GLOBL ·libc_flock_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_flock_trampoline_addr(SB)/8, $libc_flock_trampoline<>(SB) |
||||
|
||||
TEXT libc_fpathconf_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_fpathconf(SB) |
||||
GLOBL ·libc_fpathconf_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_fpathconf_trampoline_addr(SB)/8, $libc_fpathconf_trampoline<>(SB) |
||||
|
||||
TEXT libc_fstat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_fstat(SB) |
||||
GLOBL ·libc_fstat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_fstat_trampoline_addr(SB)/8, $libc_fstat_trampoline<>(SB) |
||||
|
||||
TEXT libc_fstatat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_fstatat(SB) |
||||
GLOBL ·libc_fstatat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_fstatat_trampoline_addr(SB)/8, $libc_fstatat_trampoline<>(SB) |
||||
|
||||
TEXT libc_fstatfs_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_fstatfs(SB) |
||||
GLOBL ·libc_fstatfs_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_fstatfs_trampoline_addr(SB)/8, $libc_fstatfs_trampoline<>(SB) |
||||
|
||||
TEXT libc_fsync_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_fsync(SB) |
||||
GLOBL ·libc_fsync_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_fsync_trampoline_addr(SB)/8, $libc_fsync_trampoline<>(SB) |
||||
|
||||
TEXT libc_ftruncate_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_ftruncate(SB) |
||||
GLOBL ·libc_ftruncate_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_ftruncate_trampoline_addr(SB)/8, $libc_ftruncate_trampoline<>(SB) |
||||
|
||||
TEXT libc_getegid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getegid(SB) |
||||
GLOBL ·libc_getegid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getegid_trampoline_addr(SB)/8, $libc_getegid_trampoline<>(SB) |
||||
|
||||
TEXT libc_geteuid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_geteuid(SB) |
||||
GLOBL ·libc_geteuid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_geteuid_trampoline_addr(SB)/8, $libc_geteuid_trampoline<>(SB) |
||||
|
||||
TEXT libc_getgid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getgid(SB) |
||||
GLOBL ·libc_getgid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getgid_trampoline_addr(SB)/8, $libc_getgid_trampoline<>(SB) |
||||
|
||||
TEXT libc_getpgid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getpgid(SB) |
||||
GLOBL ·libc_getpgid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getpgid_trampoline_addr(SB)/8, $libc_getpgid_trampoline<>(SB) |
||||
|
||||
TEXT libc_getpgrp_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getpgrp(SB) |
||||
GLOBL ·libc_getpgrp_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getpgrp_trampoline_addr(SB)/8, $libc_getpgrp_trampoline<>(SB) |
||||
|
||||
TEXT libc_getpid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getpid(SB) |
||||
GLOBL ·libc_getpid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getpid_trampoline_addr(SB)/8, $libc_getpid_trampoline<>(SB) |
||||
|
||||
TEXT libc_getppid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getppid(SB) |
||||
GLOBL ·libc_getppid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getppid_trampoline_addr(SB)/8, $libc_getppid_trampoline<>(SB) |
||||
|
||||
TEXT libc_getpriority_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getpriority(SB) |
||||
GLOBL ·libc_getpriority_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getpriority_trampoline_addr(SB)/8, $libc_getpriority_trampoline<>(SB) |
||||
|
||||
TEXT libc_getrlimit_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getrlimit(SB) |
||||
GLOBL ·libc_getrlimit_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getrlimit_trampoline_addr(SB)/8, $libc_getrlimit_trampoline<>(SB) |
||||
|
||||
TEXT libc_getrtable_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getrtable(SB) |
||||
GLOBL ·libc_getrtable_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getrtable_trampoline_addr(SB)/8, $libc_getrtable_trampoline<>(SB) |
||||
|
||||
TEXT libc_getrusage_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getrusage(SB) |
||||
GLOBL ·libc_getrusage_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getrusage_trampoline_addr(SB)/8, $libc_getrusage_trampoline<>(SB) |
||||
|
||||
TEXT libc_getsid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getsid(SB) |
||||
GLOBL ·libc_getsid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getsid_trampoline_addr(SB)/8, $libc_getsid_trampoline<>(SB) |
||||
|
||||
TEXT libc_gettimeofday_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_gettimeofday(SB) |
||||
GLOBL ·libc_gettimeofday_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_gettimeofday_trampoline_addr(SB)/8, $libc_gettimeofday_trampoline<>(SB) |
||||
|
||||
TEXT libc_getuid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_getuid(SB) |
||||
GLOBL ·libc_getuid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_getuid_trampoline_addr(SB)/8, $libc_getuid_trampoline<>(SB) |
||||
|
||||
TEXT libc_issetugid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_issetugid(SB) |
||||
GLOBL ·libc_issetugid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_issetugid_trampoline_addr(SB)/8, $libc_issetugid_trampoline<>(SB) |
||||
|
||||
TEXT libc_kill_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_kill(SB) |
||||
GLOBL ·libc_kill_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_kill_trampoline_addr(SB)/8, $libc_kill_trampoline<>(SB) |
||||
|
||||
TEXT libc_kqueue_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_kqueue(SB) |
||||
GLOBL ·libc_kqueue_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_kqueue_trampoline_addr(SB)/8, $libc_kqueue_trampoline<>(SB) |
||||
|
||||
TEXT libc_lchown_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_lchown(SB) |
||||
GLOBL ·libc_lchown_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_lchown_trampoline_addr(SB)/8, $libc_lchown_trampoline<>(SB) |
||||
|
||||
TEXT libc_link_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_link(SB) |
||||
GLOBL ·libc_link_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_link_trampoline_addr(SB)/8, $libc_link_trampoline<>(SB) |
||||
|
||||
TEXT libc_linkat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_linkat(SB) |
||||
GLOBL ·libc_linkat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_linkat_trampoline_addr(SB)/8, $libc_linkat_trampoline<>(SB) |
||||
|
||||
TEXT libc_listen_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_listen(SB) |
||||
GLOBL ·libc_listen_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_listen_trampoline_addr(SB)/8, $libc_listen_trampoline<>(SB) |
||||
|
||||
TEXT libc_lstat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_lstat(SB) |
||||
GLOBL ·libc_lstat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_lstat_trampoline_addr(SB)/8, $libc_lstat_trampoline<>(SB) |
||||
|
||||
TEXT libc_mkdir_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_mkdir(SB) |
||||
GLOBL ·libc_mkdir_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_mkdir_trampoline_addr(SB)/8, $libc_mkdir_trampoline<>(SB) |
||||
|
||||
TEXT libc_mkdirat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_mkdirat(SB) |
||||
GLOBL ·libc_mkdirat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_mkdirat_trampoline_addr(SB)/8, $libc_mkdirat_trampoline<>(SB) |
||||
|
||||
TEXT libc_mkfifo_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_mkfifo(SB) |
||||
GLOBL ·libc_mkfifo_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_mkfifo_trampoline_addr(SB)/8, $libc_mkfifo_trampoline<>(SB) |
||||
|
||||
TEXT libc_mkfifoat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_mkfifoat(SB) |
||||
GLOBL ·libc_mkfifoat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_mkfifoat_trampoline_addr(SB)/8, $libc_mkfifoat_trampoline<>(SB) |
||||
|
||||
TEXT libc_mknod_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_mknod(SB) |
||||
GLOBL ·libc_mknod_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_mknod_trampoline_addr(SB)/8, $libc_mknod_trampoline<>(SB) |
||||
|
||||
TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_mknodat(SB) |
||||
GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_mknodat_trampoline_addr(SB)/8, $libc_mknodat_trampoline<>(SB) |
||||
|
||||
TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_nanosleep(SB) |
||||
GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_nanosleep_trampoline_addr(SB)/8, $libc_nanosleep_trampoline<>(SB) |
||||
|
||||
TEXT libc_open_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_open(SB) |
||||
GLOBL ·libc_open_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_open_trampoline_addr(SB)/8, $libc_open_trampoline<>(SB) |
||||
|
||||
TEXT libc_openat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_openat(SB) |
||||
GLOBL ·libc_openat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_openat_trampoline_addr(SB)/8, $libc_openat_trampoline<>(SB) |
||||
|
||||
TEXT libc_pathconf_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_pathconf(SB) |
||||
GLOBL ·libc_pathconf_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_pathconf_trampoline_addr(SB)/8, $libc_pathconf_trampoline<>(SB) |
||||
|
||||
TEXT libc_pread_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_pread(SB) |
||||
GLOBL ·libc_pread_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_pread_trampoline_addr(SB)/8, $libc_pread_trampoline<>(SB) |
||||
|
||||
TEXT libc_pwrite_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_pwrite(SB) |
||||
GLOBL ·libc_pwrite_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_pwrite_trampoline_addr(SB)/8, $libc_pwrite_trampoline<>(SB) |
||||
|
||||
TEXT libc_read_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_read(SB) |
||||
GLOBL ·libc_read_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_read_trampoline_addr(SB)/8, $libc_read_trampoline<>(SB) |
||||
|
||||
TEXT libc_readlink_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_readlink(SB) |
||||
GLOBL ·libc_readlink_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_readlink_trampoline_addr(SB)/8, $libc_readlink_trampoline<>(SB) |
||||
|
||||
TEXT libc_readlinkat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_readlinkat(SB) |
||||
GLOBL ·libc_readlinkat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_readlinkat_trampoline_addr(SB)/8, $libc_readlinkat_trampoline<>(SB) |
||||
|
||||
TEXT libc_rename_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_rename(SB) |
||||
GLOBL ·libc_rename_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_rename_trampoline_addr(SB)/8, $libc_rename_trampoline<>(SB) |
||||
|
||||
TEXT libc_renameat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_renameat(SB) |
||||
GLOBL ·libc_renameat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_renameat_trampoline_addr(SB)/8, $libc_renameat_trampoline<>(SB) |
||||
|
||||
TEXT libc_revoke_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_revoke(SB) |
||||
GLOBL ·libc_revoke_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_revoke_trampoline_addr(SB)/8, $libc_revoke_trampoline<>(SB) |
||||
|
||||
TEXT libc_rmdir_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_rmdir(SB) |
||||
GLOBL ·libc_rmdir_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_rmdir_trampoline_addr(SB)/8, $libc_rmdir_trampoline<>(SB) |
||||
|
||||
TEXT libc_lseek_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_lseek(SB) |
||||
GLOBL ·libc_lseek_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_lseek_trampoline_addr(SB)/8, $libc_lseek_trampoline<>(SB) |
||||
|
||||
TEXT libc_select_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_select(SB) |
||||
GLOBL ·libc_select_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_select_trampoline_addr(SB)/8, $libc_select_trampoline<>(SB) |
||||
|
||||
TEXT libc_setegid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_setegid(SB) |
||||
GLOBL ·libc_setegid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_setegid_trampoline_addr(SB)/8, $libc_setegid_trampoline<>(SB) |
||||
|
||||
TEXT libc_seteuid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_seteuid(SB) |
||||
GLOBL ·libc_seteuid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_seteuid_trampoline_addr(SB)/8, $libc_seteuid_trampoline<>(SB) |
||||
|
||||
TEXT libc_setgid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_setgid(SB) |
||||
GLOBL ·libc_setgid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_setgid_trampoline_addr(SB)/8, $libc_setgid_trampoline<>(SB) |
||||
|
||||
TEXT libc_setlogin_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_setlogin(SB) |
||||
GLOBL ·libc_setlogin_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_setlogin_trampoline_addr(SB)/8, $libc_setlogin_trampoline<>(SB) |
||||
|
||||
TEXT libc_setpgid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_setpgid(SB) |
||||
GLOBL ·libc_setpgid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_setpgid_trampoline_addr(SB)/8, $libc_setpgid_trampoline<>(SB) |
||||
|
||||
TEXT libc_setpriority_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_setpriority(SB) |
||||
GLOBL ·libc_setpriority_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_setpriority_trampoline_addr(SB)/8, $libc_setpriority_trampoline<>(SB) |
||||
|
||||
TEXT libc_setregid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_setregid(SB) |
||||
GLOBL ·libc_setregid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_setregid_trampoline_addr(SB)/8, $libc_setregid_trampoline<>(SB) |
||||
|
||||
TEXT libc_setreuid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_setreuid(SB) |
||||
GLOBL ·libc_setreuid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_setreuid_trampoline_addr(SB)/8, $libc_setreuid_trampoline<>(SB) |
||||
|
||||
TEXT libc_setresgid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_setresgid(SB) |
||||
GLOBL ·libc_setresgid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_setresgid_trampoline_addr(SB)/8, $libc_setresgid_trampoline<>(SB) |
||||
|
||||
TEXT libc_setresuid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_setresuid(SB) |
||||
GLOBL ·libc_setresuid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_setresuid_trampoline_addr(SB)/8, $libc_setresuid_trampoline<>(SB) |
||||
|
||||
TEXT libc_setrlimit_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_setrlimit(SB) |
||||
GLOBL ·libc_setrlimit_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_setrlimit_trampoline_addr(SB)/8, $libc_setrlimit_trampoline<>(SB) |
||||
|
||||
TEXT libc_setrtable_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_setrtable(SB) |
||||
GLOBL ·libc_setrtable_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_setrtable_trampoline_addr(SB)/8, $libc_setrtable_trampoline<>(SB) |
||||
|
||||
TEXT libc_setsid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_setsid(SB) |
||||
GLOBL ·libc_setsid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_setsid_trampoline_addr(SB)/8, $libc_setsid_trampoline<>(SB) |
||||
|
||||
TEXT libc_settimeofday_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_settimeofday(SB) |
||||
GLOBL ·libc_settimeofday_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_settimeofday_trampoline_addr(SB)/8, $libc_settimeofday_trampoline<>(SB) |
||||
|
||||
TEXT libc_setuid_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_setuid(SB) |
||||
GLOBL ·libc_setuid_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_setuid_trampoline_addr(SB)/8, $libc_setuid_trampoline<>(SB) |
||||
|
||||
TEXT libc_stat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_stat(SB) |
||||
GLOBL ·libc_stat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_stat_trampoline_addr(SB)/8, $libc_stat_trampoline<>(SB) |
||||
|
||||
TEXT libc_statfs_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_statfs(SB) |
||||
GLOBL ·libc_statfs_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_statfs_trampoline_addr(SB)/8, $libc_statfs_trampoline<>(SB) |
||||
|
||||
TEXT libc_symlink_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_symlink(SB) |
||||
GLOBL ·libc_symlink_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_symlink_trampoline_addr(SB)/8, $libc_symlink_trampoline<>(SB) |
||||
|
||||
TEXT libc_symlinkat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_symlinkat(SB) |
||||
GLOBL ·libc_symlinkat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_symlinkat_trampoline_addr(SB)/8, $libc_symlinkat_trampoline<>(SB) |
||||
|
||||
TEXT libc_sync_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_sync(SB) |
||||
GLOBL ·libc_sync_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_sync_trampoline_addr(SB)/8, $libc_sync_trampoline<>(SB) |
||||
|
||||
TEXT libc_truncate_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_truncate(SB) |
||||
GLOBL ·libc_truncate_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_truncate_trampoline_addr(SB)/8, $libc_truncate_trampoline<>(SB) |
||||
|
||||
TEXT libc_umask_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_umask(SB) |
||||
GLOBL ·libc_umask_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_umask_trampoline_addr(SB)/8, $libc_umask_trampoline<>(SB) |
||||
|
||||
TEXT libc_unlink_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_unlink(SB) |
||||
GLOBL ·libc_unlink_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_unlink_trampoline_addr(SB)/8, $libc_unlink_trampoline<>(SB) |
||||
|
||||
TEXT libc_unlinkat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_unlinkat(SB) |
||||
GLOBL ·libc_unlinkat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_unlinkat_trampoline_addr(SB)/8, $libc_unlinkat_trampoline<>(SB) |
||||
|
||||
TEXT libc_unmount_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_unmount(SB) |
||||
GLOBL ·libc_unmount_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_unmount_trampoline_addr(SB)/8, $libc_unmount_trampoline<>(SB) |
||||
|
||||
TEXT libc_write_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_write(SB) |
||||
GLOBL ·libc_write_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_write_trampoline_addr(SB)/8, $libc_write_trampoline<>(SB) |
||||
|
||||
TEXT libc_mmap_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_mmap(SB) |
||||
GLOBL ·libc_mmap_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_mmap_trampoline_addr(SB)/8, $libc_mmap_trampoline<>(SB) |
||||
|
||||
TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_munmap(SB) |
||||
GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_munmap_trampoline_addr(SB)/8, $libc_munmap_trampoline<>(SB) |
||||
|
||||
TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 |
||||
JMP libc_utimensat(SB) |
||||
GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $8 |
||||
DATA ·libc_utimensat_trampoline_addr(SB)/8, $libc_utimensat_trampoline<>(SB) |
@ -0,0 +1,308 @@ |
||||
// Copyright 2015 The gRPC Authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// The canonical version of this proto can be found at
|
||||
// https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.1
|
||||
// protoc v3.14.0
|
||||
// source: grpc/health/v1/health.proto
|
||||
|
||||
package grpc_health_v1 |
||||
|
||||
import ( |
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
||||
reflect "reflect" |
||||
sync "sync" |
||||
) |
||||
|
||||
const ( |
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
||||
) |
||||
|
||||
type HealthCheckResponse_ServingStatus int32 |
||||
|
||||
const ( |
||||
HealthCheckResponse_UNKNOWN HealthCheckResponse_ServingStatus = 0 |
||||
HealthCheckResponse_SERVING HealthCheckResponse_ServingStatus = 1 |
||||
HealthCheckResponse_NOT_SERVING HealthCheckResponse_ServingStatus = 2 |
||||
HealthCheckResponse_SERVICE_UNKNOWN HealthCheckResponse_ServingStatus = 3 // Used only by the Watch method.
|
||||
) |
||||
|
||||
// Enum value maps for HealthCheckResponse_ServingStatus.
|
||||
var ( |
||||
HealthCheckResponse_ServingStatus_name = map[int32]string{ |
||||
0: "UNKNOWN", |
||||
1: "SERVING", |
||||
2: "NOT_SERVING", |
||||
3: "SERVICE_UNKNOWN", |
||||
} |
||||
HealthCheckResponse_ServingStatus_value = map[string]int32{ |
||||
"UNKNOWN": 0, |
||||
"SERVING": 1, |
||||
"NOT_SERVING": 2, |
||||
"SERVICE_UNKNOWN": 3, |
||||
} |
||||
) |
||||
|
||||
func (x HealthCheckResponse_ServingStatus) Enum() *HealthCheckResponse_ServingStatus { |
||||
p := new(HealthCheckResponse_ServingStatus) |
||||
*p = x |
||||
return p |
||||
} |
||||
|
||||
func (x HealthCheckResponse_ServingStatus) String() string { |
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
||||
} |
||||
|
||||
func (HealthCheckResponse_ServingStatus) Descriptor() protoreflect.EnumDescriptor { |
||||
return file_grpc_health_v1_health_proto_enumTypes[0].Descriptor() |
||||
} |
||||
|
||||
func (HealthCheckResponse_ServingStatus) Type() protoreflect.EnumType { |
||||
return &file_grpc_health_v1_health_proto_enumTypes[0] |
||||
} |
||||
|
||||
func (x HealthCheckResponse_ServingStatus) Number() protoreflect.EnumNumber { |
||||
return protoreflect.EnumNumber(x) |
||||
} |
||||
|
||||
// Deprecated: Use HealthCheckResponse_ServingStatus.Descriptor instead.
|
||||
func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) { |
||||
return file_grpc_health_v1_health_proto_rawDescGZIP(), []int{1, 0} |
||||
} |
||||
|
||||
type HealthCheckRequest struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` |
||||
} |
||||
|
||||
func (x *HealthCheckRequest) Reset() { |
||||
*x = HealthCheckRequest{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_grpc_health_v1_health_proto_msgTypes[0] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *HealthCheckRequest) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*HealthCheckRequest) ProtoMessage() {} |
||||
|
||||
func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message { |
||||
mi := &file_grpc_health_v1_health_proto_msgTypes[0] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.
|
||||
func (*HealthCheckRequest) Descriptor() ([]byte, []int) { |
||||
return file_grpc_health_v1_health_proto_rawDescGZIP(), []int{0} |
||||
} |
||||
|
||||
func (x *HealthCheckRequest) GetService() string { |
||||
if x != nil { |
||||
return x.Service |
||||
} |
||||
return "" |
||||
} |
||||
|
||||
type HealthCheckResponse struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=grpc.health.v1.HealthCheckResponse_ServingStatus" json:"status,omitempty"` |
||||
} |
||||
|
||||
func (x *HealthCheckResponse) Reset() { |
||||
*x = HealthCheckResponse{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_grpc_health_v1_health_proto_msgTypes[1] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *HealthCheckResponse) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*HealthCheckResponse) ProtoMessage() {} |
||||
|
||||
func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message { |
||||
mi := &file_grpc_health_v1_health_proto_msgTypes[1] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.
|
||||
func (*HealthCheckResponse) Descriptor() ([]byte, []int) { |
||||
return file_grpc_health_v1_health_proto_rawDescGZIP(), []int{1} |
||||
} |
||||
|
||||
func (x *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus { |
||||
if x != nil { |
||||
return x.Status |
||||
} |
||||
return HealthCheckResponse_UNKNOWN |
||||
} |
||||
|
||||
var File_grpc_health_v1_health_proto protoreflect.FileDescriptor |
||||
|
||||
var file_grpc_health_v1_health_proto_rawDesc = []byte{ |
||||
0x0a, 0x1b, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2f, 0x76, 0x31, |
||||
0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x67, |
||||
0x72, 0x70, 0x63, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x22, 0x2e, 0x0a, |
||||
0x12, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, |
||||
0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, |
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0xb1, 0x01, |
||||
0x0a, 0x13, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, |
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, |
||||
0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, 0x65, 0x61, |
||||
0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, |
||||
0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, |
||||
0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, |
||||
0x22, 0x4f, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, |
||||
0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, |
||||
0x0a, 0x07, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, |
||||
0x4f, 0x54, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, |
||||
0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, |
||||
0x03, 0x32, 0xae, 0x01, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x50, 0x0a, 0x05, |
||||
0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, 0x65, 0x61, |
||||
0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, |
||||
0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x70, 0x63, |
||||
0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, |
||||
0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, |
||||
0x0a, 0x05, 0x57, 0x61, 0x74, 0x63, 0x68, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, |
||||
0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, |
||||
0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, |
||||
0x70, 0x63, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, |
||||
0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, |
||||
0x30, 0x01, 0x42, 0x61, 0x0a, 0x11, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, 0x65, |
||||
0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x50, |
||||
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, |
||||
0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x68, |
||||
0x65, 0x61, 0x6c, 0x74, 0x68, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x68, 0x65, 0x61, 0x6c, 0x74, |
||||
0x68, 0x5f, 0x76, 0x31, 0xaa, 0x02, 0x0e, 0x47, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x65, 0x61, 0x6c, |
||||
0x74, 0x68, 0x2e, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
||||
} |
||||
|
||||
var ( |
||||
file_grpc_health_v1_health_proto_rawDescOnce sync.Once |
||||
file_grpc_health_v1_health_proto_rawDescData = file_grpc_health_v1_health_proto_rawDesc |
||||
) |
||||
|
||||
func file_grpc_health_v1_health_proto_rawDescGZIP() []byte { |
||||
file_grpc_health_v1_health_proto_rawDescOnce.Do(func() { |
||||
file_grpc_health_v1_health_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_health_v1_health_proto_rawDescData) |
||||
}) |
||||
return file_grpc_health_v1_health_proto_rawDescData |
||||
} |
||||
|
||||
var file_grpc_health_v1_health_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
||||
var file_grpc_health_v1_health_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
||||
var file_grpc_health_v1_health_proto_goTypes = []interface{}{ |
||||
(HealthCheckResponse_ServingStatus)(0), // 0: grpc.health.v1.HealthCheckResponse.ServingStatus
|
||||
(*HealthCheckRequest)(nil), // 1: grpc.health.v1.HealthCheckRequest
|
||||
(*HealthCheckResponse)(nil), // 2: grpc.health.v1.HealthCheckResponse
|
||||
} |
||||
var file_grpc_health_v1_health_proto_depIdxs = []int32{ |
||||
0, // 0: grpc.health.v1.HealthCheckResponse.status:type_name -> grpc.health.v1.HealthCheckResponse.ServingStatus
|
||||
1, // 1: grpc.health.v1.Health.Check:input_type -> grpc.health.v1.HealthCheckRequest
|
||||
1, // 2: grpc.health.v1.Health.Watch:input_type -> grpc.health.v1.HealthCheckRequest
|
||||
2, // 3: grpc.health.v1.Health.Check:output_type -> grpc.health.v1.HealthCheckResponse
|
||||
2, // 4: grpc.health.v1.Health.Watch:output_type -> grpc.health.v1.HealthCheckResponse
|
||||
3, // [3:5] is the sub-list for method output_type
|
||||
1, // [1:3] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
1, // [1:1] is the sub-list for extension extendee
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
} |
||||
|
||||
func init() { file_grpc_health_v1_health_proto_init() } |
||||
func file_grpc_health_v1_health_proto_init() { |
||||
if File_grpc_health_v1_health_proto != nil { |
||||
return |
||||
} |
||||
if !protoimpl.UnsafeEnabled { |
||||
file_grpc_health_v1_health_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*HealthCheckRequest); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
file_grpc_health_v1_health_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*HealthCheckResponse); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
} |
||||
type x struct{} |
||||
out := protoimpl.TypeBuilder{ |
||||
File: protoimpl.DescBuilder{ |
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
||||
RawDescriptor: file_grpc_health_v1_health_proto_rawDesc, |
||||
NumEnums: 1, |
||||
NumMessages: 2, |
||||
NumExtensions: 0, |
||||
NumServices: 1, |
||||
}, |
||||
GoTypes: file_grpc_health_v1_health_proto_goTypes, |
||||
DependencyIndexes: file_grpc_health_v1_health_proto_depIdxs, |
||||
EnumInfos: file_grpc_health_v1_health_proto_enumTypes, |
||||
MessageInfos: file_grpc_health_v1_health_proto_msgTypes, |
||||
}.Build() |
||||
File_grpc_health_v1_health_proto = out.File |
||||
file_grpc_health_v1_health_proto_rawDesc = nil |
||||
file_grpc_health_v1_health_proto_goTypes = nil |
||||
file_grpc_health_v1_health_proto_depIdxs = nil |
||||
} |
@ -0,0 +1,218 @@ |
||||
// Copyright 2015 The gRPC Authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// The canonical version of this proto can be found at
|
||||
// https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto
|
||||
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc v3.14.0
|
||||
// source: grpc/health/v1/health.proto
|
||||
|
||||
package grpc_health_v1 |
||||
|
||||
import ( |
||||
context "context" |
||||
grpc "google.golang.org/grpc" |
||||
codes "google.golang.org/grpc/codes" |
||||
status "google.golang.org/grpc/status" |
||||
) |
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.32.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion7 |
||||
|
||||
// HealthClient is the client API for Health service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type HealthClient interface { |
||||
// If the requested service is unknown, the call will fail with status
|
||||
// NOT_FOUND.
|
||||
Check(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) |
||||
// Performs a watch for the serving status of the requested service.
|
||||
// The server will immediately send back a message indicating the current
|
||||
// serving status. It will then subsequently send a new message whenever
|
||||
// the service's serving status changes.
|
||||
//
|
||||
// If the requested service is unknown when the call is received, the
|
||||
// server will send a message setting the serving status to
|
||||
// SERVICE_UNKNOWN but will *not* terminate the call. If at some
|
||||
// future point, the serving status of the service becomes known, the
|
||||
// server will send a new message with the service's serving status.
|
||||
//
|
||||
// If the call terminates with status UNIMPLEMENTED, then clients
|
||||
// should assume this method is not supported and should not retry the
|
||||
// call. If the call terminates with any other status (including OK),
|
||||
// clients should retry the call with appropriate exponential backoff.
|
||||
Watch(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (Health_WatchClient, error) |
||||
} |
||||
|
||||
type healthClient struct { |
||||
cc grpc.ClientConnInterface |
||||
} |
||||
|
||||
func NewHealthClient(cc grpc.ClientConnInterface) HealthClient { |
||||
return &healthClient{cc} |
||||
} |
||||
|
||||
func (c *healthClient) Check(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) { |
||||
out := new(HealthCheckResponse) |
||||
err := c.cc.Invoke(ctx, "/grpc.health.v1.Health/Check", in, out, opts...) |
||||
if err != nil { |
||||
return nil, err |
||||
} |
||||
return out, nil |
||||
} |
||||
|
||||
func (c *healthClient) Watch(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (Health_WatchClient, error) { |
||||
stream, err := c.cc.NewStream(ctx, &Health_ServiceDesc.Streams[0], "/grpc.health.v1.Health/Watch", opts...) |
||||
if err != nil { |
||||
return nil, err |
||||
} |
||||
x := &healthWatchClient{stream} |
||||
if err := x.ClientStream.SendMsg(in); err != nil { |
||||
return nil, err |
||||
} |
||||
if err := x.ClientStream.CloseSend(); err != nil { |
||||
return nil, err |
||||
} |
||||
return x, nil |
||||
} |
||||
|
||||
type Health_WatchClient interface { |
||||
Recv() (*HealthCheckResponse, error) |
||||
grpc.ClientStream |
||||
} |
||||
|
||||
type healthWatchClient struct { |
||||
grpc.ClientStream |
||||
} |
||||
|
||||
func (x *healthWatchClient) Recv() (*HealthCheckResponse, error) { |
||||
m := new(HealthCheckResponse) |
||||
if err := x.ClientStream.RecvMsg(m); err != nil { |
||||
return nil, err |
||||
} |
||||
return m, nil |
||||
} |
||||
|
||||
// HealthServer is the server API for Health service.
|
||||
// All implementations should embed UnimplementedHealthServer
|
||||
// for forward compatibility
|
||||
type HealthServer interface { |
||||
// If the requested service is unknown, the call will fail with status
|
||||
// NOT_FOUND.
|
||||
Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) |
||||
// Performs a watch for the serving status of the requested service.
|
||||
// The server will immediately send back a message indicating the current
|
||||
// serving status. It will then subsequently send a new message whenever
|
||||
// the service's serving status changes.
|
||||
//
|
||||
// If the requested service is unknown when the call is received, the
|
||||
// server will send a message setting the serving status to
|
||||
// SERVICE_UNKNOWN but will *not* terminate the call. If at some
|
||||
// future point, the serving status of the service becomes known, the
|
||||
// server will send a new message with the service's serving status.
|
||||
//
|
||||
// If the call terminates with status UNIMPLEMENTED, then clients
|
||||
// should assume this method is not supported and should not retry the
|
||||
// call. If the call terminates with any other status (including OK),
|
||||
// clients should retry the call with appropriate exponential backoff.
|
||||
Watch(*HealthCheckRequest, Health_WatchServer) error |
||||
} |
||||
|
||||
// UnimplementedHealthServer should be embedded to have forward compatible implementations.
|
||||
type UnimplementedHealthServer struct { |
||||
} |
||||
|
||||
func (UnimplementedHealthServer) Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { |
||||
return nil, status.Errorf(codes.Unimplemented, "method Check not implemented") |
||||
} |
||||
func (UnimplementedHealthServer) Watch(*HealthCheckRequest, Health_WatchServer) error { |
||||
return status.Errorf(codes.Unimplemented, "method Watch not implemented") |
||||
} |
||||
|
||||
// UnsafeHealthServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to HealthServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeHealthServer interface { |
||||
mustEmbedUnimplementedHealthServer() |
||||
} |
||||
|
||||
func RegisterHealthServer(s grpc.ServiceRegistrar, srv HealthServer) { |
||||
s.RegisterService(&Health_ServiceDesc, srv) |
||||
} |
||||
|
||||
func _Health_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
||||
in := new(HealthCheckRequest) |
||||
if err := dec(in); err != nil { |
||||
return nil, err |
||||
} |
||||
if interceptor == nil { |
||||
return srv.(HealthServer).Check(ctx, in) |
||||
} |
||||
info := &grpc.UnaryServerInfo{ |
||||
Server: srv, |
||||
FullMethod: "/grpc.health.v1.Health/Check", |
||||
} |
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
||||
return srv.(HealthServer).Check(ctx, req.(*HealthCheckRequest)) |
||||
} |
||||
return interceptor(ctx, in, info, handler) |
||||
} |
||||
|
||||
func _Health_Watch_Handler(srv interface{}, stream grpc.ServerStream) error { |
||||
m := new(HealthCheckRequest) |
||||
if err := stream.RecvMsg(m); err != nil { |
||||
return err |
||||
} |
||||
return srv.(HealthServer).Watch(m, &healthWatchServer{stream}) |
||||
} |
||||
|
||||
type Health_WatchServer interface { |
||||
Send(*HealthCheckResponse) error |
||||
grpc.ServerStream |
||||
} |
||||
|
||||
type healthWatchServer struct { |
||||
grpc.ServerStream |
||||
} |
||||
|
||||
func (x *healthWatchServer) Send(m *HealthCheckResponse) error { |
||||
return x.ServerStream.SendMsg(m) |
||||
} |
||||
|
||||
// Health_ServiceDesc is the grpc.ServiceDesc for Health service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var Health_ServiceDesc = grpc.ServiceDesc{ |
||||
ServiceName: "grpc.health.v1.Health", |
||||
HandlerType: (*HealthServer)(nil), |
||||
Methods: []grpc.MethodDesc{ |
||||
{ |
||||
MethodName: "Check", |
||||
Handler: _Health_Check_Handler, |
||||
}, |
||||
}, |
||||
Streams: []grpc.StreamDesc{ |
||||
{ |
||||
StreamName: "Watch", |
||||
Handler: _Health_Watch_Handler, |
||||
ServerStreams: true, |
||||
}, |
||||
}, |
||||
Metadata: "grpc/health/v1/health.proto", |
||||
} |
Loading…
Reference in new issue