aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/syscall/proc_hosted.go
blob: 05c509e6ff49dc1e3e53457cb61d30911fe38acf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//go:build !baremetal && !tinygo.wasm

// This file assumes there is a libc available that runs on a real operating
// system.

package syscall

func Getuid() int  { return int(libc_getuid()) }
func Geteuid() int { return int(libc_geteuid()) }
func Getgid() int  { return int(libc_getgid()) }
func Getegid() int { return int(libc_getegid()) }
func Getpid() int  { return int(libc_getpid()) }
func Getppid() int { return int(libc_getppid()) }

// uid_t getuid(void)
//
//export getuid
func libc_getuid() int32

// gid_t getgid(void)
//
//export getgid
func libc_getgid() int32

// uid_t geteuid(void)
//
//export geteuid
func libc_geteuid() int32

// gid_t getegid(void)
//
//export getegid
func libc_getegid() int32

// gid_t getpid(void)
//
//export getpid
func libc_getpid() int32

// gid_t getppid(void)
//
//export getppid
func libc_getppid() int32