1 // Copyright 2014 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package runtime 6 7 import _ "unsafe" // for go:linkname 8 9 //go:cgo_import_dynamic libc_chdir chdir "libc.so" 10 //go:cgo_import_dynamic libc_chroot chroot "libc.so" 11 //go:cgo_import_dynamic libc_close close "libc.so" 12 //go:cgo_import_dynamic libc_execve execve "libc.so" 13 //go:cgo_import_dynamic libc_fcntl fcntl "libc.so" 14 //go:cgo_import_dynamic libc_forkx forkx "libc.so" 15 //go:cgo_import_dynamic libc_gethostname gethostname "libc.so" 16 //go:cgo_import_dynamic libc_getpid getpid "libc.so" 17 //go:cgo_import_dynamic libc_ioctl ioctl "libc.so" 18 //go:cgo_import_dynamic libc_setgid setgid "libc.so" 19 //go:cgo_import_dynamic libc_setgroups setgroups "libc.so" 20 //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so" 21 //go:cgo_import_dynamic libc_setsid setsid "libc.so" 22 //go:cgo_import_dynamic libc_setuid setuid "libc.so" 23 //go:cgo_import_dynamic libc_setpgid setpgid "libc.so" 24 //go:cgo_import_dynamic libc_syscall syscall "libc.so" 25 //go:cgo_import_dynamic libc_wait4 wait4 "libc.so" 26 //go:cgo_import_dynamic libc_issetugid issetugid "libc.so" 27 28 //go:linkname libc_chdir libc_chdir 29 //go:linkname libc_chroot libc_chroot 30 //go:linkname libc_close libc_close 31 //go:linkname libc_execve libc_execve 32 //go:linkname libc_fcntl libc_fcntl 33 //go:linkname libc_forkx libc_forkx 34 //go:linkname libc_gethostname libc_gethostname 35 //go:linkname libc_getpid libc_getpid 36 //go:linkname libc_ioctl libc_ioctl 37 //go:linkname libc_setgid libc_setgid 38 //go:linkname libc_setgroups libc_setgroups 39 //go:linkname libc_setrlimit libc_setrlimit 40 //go:linkname libc_setsid libc_setsid 41 //go:linkname libc_setuid libc_setuid 42 //go:linkname libc_setpgid libc_setpgid 43 //go:linkname libc_syscall libc_syscall 44 //go:linkname libc_wait4 libc_wait4 45 //go:linkname libc_issetugid libc_issetugid 46