Home | History | Annotate | Download | only in runtime
      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_dlclose dlclose "libc.so"
     13 //go:cgo_import_dynamic libc_dlopen dlopen "libc.so"
     14 //go:cgo_import_dynamic libc_dlsym dlsym "libc.so"
     15 //go:cgo_import_dynamic libc_execve execve "libc.so"
     16 //go:cgo_import_dynamic libc_fcntl fcntl "libc.so"
     17 //go:cgo_import_dynamic libc_gethostname gethostname "libc.so"
     18 //go:cgo_import_dynamic libc_getpid getpid "libc.so"
     19 //go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
     20 //go:cgo_import_dynamic libc_pipe pipe "libc.so"
     21 //go:cgo_import_dynamic libc_setgid setgid "libc.so"
     22 //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
     23 //go:cgo_import_dynamic libc_setsid setsid "libc.so"
     24 //go:cgo_import_dynamic libc_setuid setuid "libc.so"
     25 //go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
     26 //go:cgo_import_dynamic libc_syscall syscall "libc.so"
     27 //go:cgo_import_dynamic libc_forkx forkx "libc.so"
     28 //go:cgo_import_dynamic libc_wait4 wait4 "libc.so"
     29 
     30 //go:linkname libc_chdir libc_chdir
     31 //go:linkname libc_chroot libc_chroot
     32 //go:linkname libc_close libc_close
     33 //go:linkname libc_dlclose libc_dlclose
     34 //go:linkname libc_dlopen libc_dlopen
     35 //go:linkname libc_dlsym libc_dlsym
     36 //go:linkname libc_execve libc_execve
     37 //go:linkname libc_fcntl libc_fcntl
     38 //go:linkname libc_gethostname libc_gethostname
     39 //go:linkname libc_getpid libc_getpid
     40 //go:linkname libc_ioctl libc_ioctl
     41 //go:linkname libc_pipe libc_pipe
     42 //go:linkname libc_setgid libc_setgid
     43 //go:linkname libc_setgroups libc_setgroups
     44 //go:linkname libc_setsid libc_setsid
     45 //go:linkname libc_setuid libc_setuid
     46 //go:linkname libc_setpgid libc_setpgid
     47 //go:linkname libc_syscall libc_syscall
     48 //go:linkname libc_forkx libc_forkx
     49 //go:linkname libc_wait4 libc_wait4
     50