Rob Pike | 80055c6 | 2011-01-07 17:17:42 -0800 | [diff] [blame] | 1 | // mksyscall.sh -b32 syscall_linux.go syscall_linux_arm.go |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 2 | // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT |
| 3 | |
| 4 | package syscall |
| 5 | |
| 6 | import "unsafe" |
| 7 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 8 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 9 | |
Rob Pike | e45b58f | 2010-08-04 08:34:52 +1000 | [diff] [blame] | 10 | func open(path string, mode int, perm uint32) (fd int, errno int) { |
Russ Cox | 23bf408 | 2010-05-03 11:11:01 -0700 | [diff] [blame] | 11 | r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), uintptr(perm)) |
| 12 | fd = int(r0) |
| 13 | errno = int(e1) |
| 14 | return |
| 15 | } |
| 16 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 17 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 18 | |
Rob Pike | e45b58f | 2010-08-04 08:34:52 +1000 | [diff] [blame] | 19 | func openat(dirfd int, path string, flags int, mode uint32) (fd int, errno int) { |
Russ Cox | 23bf408 | 2010-05-03 11:11:01 -0700 | [diff] [blame] | 20 | r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(flags), uintptr(mode), 0, 0) |
| 21 | fd = int(r0) |
| 22 | errno = int(e1) |
| 23 | return |
| 24 | } |
| 25 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 26 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 27 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 28 | func pipe(p *[2]_C_int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 29 | _, _, e1 := Syscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) |
| 30 | errno = int(e1) |
| 31 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 32 | } |
| 33 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 34 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 35 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 36 | func utimes(path string, times *[2]Timeval) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 37 | _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(unsafe.Pointer(times)), 0) |
| 38 | errno = int(e1) |
| 39 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 40 | } |
| 41 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 42 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 43 | |
Russ Cox | 1d076a6 | 2010-05-21 14:33:17 -0700 | [diff] [blame] | 44 | func futimesat(dirfd int, path *byte, times *[2]Timeval) (errno int) { |
| 45 | _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times))) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 46 | errno = int(e1) |
| 47 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 48 | } |
| 49 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 50 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 51 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 52 | func Getcwd(buf []byte) (n int, errno int) { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 53 | var _p0 unsafe.Pointer |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 54 | if len(buf) > 0 { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 55 | _p0 = unsafe.Pointer(&buf[0]) |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 56 | } |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 57 | r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 58 | n = int(r0) |
| 59 | errno = int(e1) |
| 60 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 61 | } |
| 62 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 63 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 64 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 65 | func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 66 | r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) |
| 67 | wpid = int(r0) |
| 68 | errno = int(e1) |
| 69 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 70 | } |
| 71 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 72 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 73 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 74 | func ptrace(request int, pid int, addr uintptr, data uintptr) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 75 | _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) |
| 76 | errno = int(e1) |
| 77 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 78 | } |
| 79 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 80 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 81 | |
Rob Pike | e45b58f | 2010-08-04 08:34:52 +1000 | [diff] [blame] | 82 | func Access(path string, mode uint32) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 83 | _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), 0) |
| 84 | errno = int(e1) |
| 85 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 86 | } |
| 87 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 88 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 89 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 90 | func Acct(path string) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 91 | _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(StringBytePtr(path))), 0, 0) |
| 92 | errno = int(e1) |
| 93 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 94 | } |
| 95 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 96 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 97 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 98 | func Adjtimex(buf *Timex) (state int, errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 99 | r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) |
| 100 | state = int(r0) |
| 101 | errno = int(e1) |
| 102 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 103 | } |
| 104 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 105 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 106 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 107 | func Chdir(path string) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 108 | _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(StringBytePtr(path))), 0, 0) |
| 109 | errno = int(e1) |
| 110 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 111 | } |
| 112 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 113 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 114 | |
Rob Pike | e45b58f | 2010-08-04 08:34:52 +1000 | [diff] [blame] | 115 | func Chmod(path string, mode uint32) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 116 | _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), 0) |
| 117 | errno = int(e1) |
| 118 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 119 | } |
| 120 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 121 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 122 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 123 | func Chroot(path string) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 124 | _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(StringBytePtr(path))), 0, 0) |
| 125 | errno = int(e1) |
| 126 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 127 | } |
| 128 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 129 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 130 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 131 | func Close(fd int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 132 | _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) |
| 133 | errno = int(e1) |
| 134 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 135 | } |
| 136 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 137 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 138 | |
Rob Pike | e45b58f | 2010-08-04 08:34:52 +1000 | [diff] [blame] | 139 | func Creat(path string, mode uint32) (fd int, errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 140 | r0, _, e1 := Syscall(SYS_CREAT, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), 0) |
| 141 | fd = int(r0) |
| 142 | errno = int(e1) |
| 143 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 144 | } |
| 145 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 146 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 147 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 148 | func Dup(oldfd int) (fd int, errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 149 | r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) |
| 150 | fd = int(r0) |
| 151 | errno = int(e1) |
| 152 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 153 | } |
| 154 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 155 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 156 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 157 | func Dup2(oldfd int, newfd int) (fd int, errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 158 | r0, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) |
| 159 | fd = int(r0) |
| 160 | errno = int(e1) |
| 161 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 162 | } |
| 163 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 164 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 165 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 166 | func EpollCreate(size int) (fd int, errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 167 | r0, _, e1 := Syscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) |
| 168 | fd = int(r0) |
| 169 | errno = int(e1) |
| 170 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 171 | } |
| 172 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 173 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 174 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 175 | func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 176 | _, _, e1 := Syscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) |
| 177 | errno = int(e1) |
| 178 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 179 | } |
| 180 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 181 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 182 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 183 | func EpollWait(epfd int, events []EpollEvent, msec int) (n int, errno int) { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 184 | var _p0 unsafe.Pointer |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 185 | if len(events) > 0 { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 186 | _p0 = unsafe.Pointer(&events[0]) |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 187 | } |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 188 | r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 189 | n = int(r0) |
| 190 | errno = int(e1) |
| 191 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 192 | } |
| 193 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 194 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 195 | |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 196 | func Exit(code int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 197 | Syscall(SYS_EXIT_GROUP, uintptr(code), 0, 0) |
| 198 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 199 | } |
| 200 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 201 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 202 | |
Rob Pike | e45b58f | 2010-08-04 08:34:52 +1000 | [diff] [blame] | 203 | func Faccessat(dirfd int, path string, mode uint32, flags int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 204 | _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), uintptr(flags), 0, 0) |
| 205 | errno = int(e1) |
| 206 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 207 | } |
| 208 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 209 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 210 | |
Rob Pike | e45b58f | 2010-08-04 08:34:52 +1000 | [diff] [blame] | 211 | func Fallocate(fd int, mode uint32, off int64, len int64) (errno int) { |
Rob Pike | 80055c6 | 2011-01-07 17:17:42 -0800 | [diff] [blame] | 212 | _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off>>32), uintptr(off), uintptr(len>>32), uintptr(len)) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 213 | errno = int(e1) |
| 214 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 215 | } |
| 216 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 217 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 218 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 219 | func Fchdir(fd int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 220 | _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) |
| 221 | errno = int(e1) |
| 222 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 223 | } |
| 224 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 225 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 226 | |
Rob Pike | e45b58f | 2010-08-04 08:34:52 +1000 | [diff] [blame] | 227 | func Fchmod(fd int, mode uint32) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 228 | _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) |
| 229 | errno = int(e1) |
| 230 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 231 | } |
| 232 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 233 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 234 | |
Rob Pike | e45b58f | 2010-08-04 08:34:52 +1000 | [diff] [blame] | 235 | func Fchmodat(dirfd int, path string, mode uint32, flags int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 236 | _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), uintptr(flags), 0, 0) |
| 237 | errno = int(e1) |
| 238 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 239 | } |
| 240 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 241 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 242 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 243 | func Fchownat(dirfd int, path string, uid int, gid int, flags int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 244 | _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(uid), uintptr(gid), uintptr(flags), 0) |
| 245 | errno = int(e1) |
| 246 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 247 | } |
| 248 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 249 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 250 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 251 | func fcntl(fd int, cmd int, arg int) (val int, errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 252 | r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) |
| 253 | val = int(r0) |
| 254 | errno = int(e1) |
| 255 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 256 | } |
| 257 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 258 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 259 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 260 | func Fdatasync(fd int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 261 | _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) |
| 262 | errno = int(e1) |
| 263 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 264 | } |
| 265 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 266 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 267 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 268 | func Fsync(fd int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 269 | _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) |
| 270 | errno = int(e1) |
| 271 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 272 | } |
| 273 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 274 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 275 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 276 | func Getdents(fd int, buf []byte) (n int, errno int) { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 277 | var _p0 unsafe.Pointer |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 278 | if len(buf) > 0 { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 279 | _p0 = unsafe.Pointer(&buf[0]) |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 280 | } |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 281 | r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 282 | n = int(r0) |
| 283 | errno = int(e1) |
| 284 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 285 | } |
| 286 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 287 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 288 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 289 | func Getpgid(pid int) (pgid int, errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 290 | r0, _, e1 := Syscall(SYS_GETPGID, uintptr(pid), 0, 0) |
| 291 | pgid = int(r0) |
| 292 | errno = int(e1) |
| 293 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 294 | } |
| 295 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 296 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 297 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 298 | func Getpgrp() (pid int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 299 | r0, _, _ := Syscall(SYS_GETPGRP, 0, 0, 0) |
| 300 | pid = int(r0) |
| 301 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 302 | } |
| 303 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 304 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 305 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 306 | func Getpid() (pid int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 307 | r0, _, _ := Syscall(SYS_GETPID, 0, 0, 0) |
| 308 | pid = int(r0) |
| 309 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 310 | } |
| 311 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 312 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 313 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 314 | func Getppid() (ppid int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 315 | r0, _, _ := Syscall(SYS_GETPPID, 0, 0, 0) |
| 316 | ppid = int(r0) |
| 317 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 318 | } |
| 319 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 320 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 321 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 322 | func Getrlimit(resource int, rlim *Rlimit) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 323 | _, _, e1 := Syscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) |
| 324 | errno = int(e1) |
| 325 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 326 | } |
| 327 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 328 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 329 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 330 | func Getrusage(who int, rusage *Rusage) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 331 | _, _, e1 := Syscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) |
| 332 | errno = int(e1) |
| 333 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 334 | } |
| 335 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 336 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 337 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 338 | func Gettid() (tid int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 339 | r0, _, _ := Syscall(SYS_GETTID, 0, 0, 0) |
| 340 | tid = int(r0) |
| 341 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 342 | } |
| 343 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 344 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 345 | |
Balazs Lecz | 4bfcfcf | 2010-09-27 11:44:26 -0400 | [diff] [blame] | 346 | func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, errno int) { |
| 347 | r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(StringBytePtr(pathname))), uintptr(mask)) |
| 348 | watchdesc = int(r0) |
| 349 | errno = int(e1) |
| 350 | return |
| 351 | } |
| 352 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 353 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 354 | |
Balazs Lecz | 4bfcfcf | 2010-09-27 11:44:26 -0400 | [diff] [blame] | 355 | func InotifyInit() (fd int, errno int) { |
| 356 | r0, _, e1 := Syscall(SYS_INOTIFY_INIT, 0, 0, 0) |
| 357 | fd = int(r0) |
| 358 | errno = int(e1) |
| 359 | return |
| 360 | } |
| 361 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 362 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 363 | |
Balazs Lecz | 4bfcfcf | 2010-09-27 11:44:26 -0400 | [diff] [blame] | 364 | func InotifyInit1(flags int) (fd int, errno int) { |
| 365 | r0, _, e1 := Syscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) |
| 366 | fd = int(r0) |
| 367 | errno = int(e1) |
| 368 | return |
| 369 | } |
| 370 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 371 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 372 | |
Balazs Lecz | 4bfcfcf | 2010-09-27 11:44:26 -0400 | [diff] [blame] | 373 | func InotifyRmWatch(fd int, watchdesc uint32) (success int, errno int) { |
| 374 | r0, _, e1 := Syscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) |
| 375 | success = int(r0) |
| 376 | errno = int(e1) |
| 377 | return |
| 378 | } |
| 379 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 380 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 381 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 382 | func Kill(pid int, sig int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 383 | _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) |
| 384 | errno = int(e1) |
| 385 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 386 | } |
| 387 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 388 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 389 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 390 | func Klogctl(typ int, buf []byte) (n int, errno int) { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 391 | var _p0 unsafe.Pointer |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 392 | if len(buf) > 0 { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 393 | _p0 = unsafe.Pointer(&buf[0]) |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 394 | } |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 395 | r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 396 | n = int(r0) |
| 397 | errno = int(e1) |
| 398 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 399 | } |
| 400 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 401 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 402 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 403 | func Link(oldpath string, newpath string) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 404 | _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(StringBytePtr(oldpath))), uintptr(unsafe.Pointer(StringBytePtr(newpath))), 0) |
| 405 | errno = int(e1) |
| 406 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 407 | } |
| 408 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 409 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 410 | |
Rob Pike | e45b58f | 2010-08-04 08:34:52 +1000 | [diff] [blame] | 411 | func Mkdir(path string, mode uint32) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 412 | _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), 0) |
| 413 | errno = int(e1) |
| 414 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 415 | } |
| 416 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 417 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 418 | |
Rob Pike | e45b58f | 2010-08-04 08:34:52 +1000 | [diff] [blame] | 419 | func Mkdirat(dirfd int, path string, mode uint32) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 420 | _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode)) |
| 421 | errno = int(e1) |
| 422 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 423 | } |
| 424 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 425 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 426 | |
Rob Pike | e45b58f | 2010-08-04 08:34:52 +1000 | [diff] [blame] | 427 | func Mknod(path string, mode uint32, dev int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 428 | _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), uintptr(dev)) |
| 429 | errno = int(e1) |
| 430 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 431 | } |
| 432 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 433 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 434 | |
Rob Pike | e45b58f | 2010-08-04 08:34:52 +1000 | [diff] [blame] | 435 | func Mknodat(dirfd int, path string, mode uint32, dev int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 436 | _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), uintptr(dev), 0, 0) |
| 437 | errno = int(e1) |
| 438 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 439 | } |
| 440 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 441 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 442 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 443 | func Nanosleep(time *Timespec, leftover *Timespec) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 444 | _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) |
| 445 | errno = int(e1) |
| 446 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 447 | } |
| 448 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 449 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 450 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 451 | func Pause() (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 452 | _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) |
| 453 | errno = int(e1) |
| 454 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 455 | } |
| 456 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 457 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 458 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 459 | func PivotRoot(newroot string, putold string) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 460 | _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(StringBytePtr(newroot))), uintptr(unsafe.Pointer(StringBytePtr(putold))), 0) |
| 461 | errno = int(e1) |
| 462 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 463 | } |
| 464 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 465 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 466 | |
| 467 | func Read(fd int, p []byte) (n int, errno int) { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 468 | var _p0 unsafe.Pointer |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 469 | if len(p) > 0 { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 470 | _p0 = unsafe.Pointer(&p[0]) |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 471 | } |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 472 | r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 473 | n = int(r0) |
| 474 | errno = int(e1) |
| 475 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 476 | } |
| 477 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 478 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 479 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 480 | func Readlink(path string, buf []byte) (n int, errno int) { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 481 | var _p0 unsafe.Pointer |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 482 | if len(buf) > 0 { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 483 | _p0 = unsafe.Pointer(&buf[0]) |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 484 | } |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 485 | r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(_p0), uintptr(len(buf))) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 486 | n = int(r0) |
| 487 | errno = int(e1) |
| 488 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 489 | } |
| 490 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 491 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 492 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 493 | func Rename(oldpath string, newpath string) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 494 | _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(StringBytePtr(oldpath))), uintptr(unsafe.Pointer(StringBytePtr(newpath))), 0) |
| 495 | errno = int(e1) |
| 496 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 497 | } |
| 498 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 499 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 500 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 501 | func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 502 | _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(StringBytePtr(oldpath))), uintptr(newdirfd), uintptr(unsafe.Pointer(StringBytePtr(newpath))), 0, 0) |
| 503 | errno = int(e1) |
| 504 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 505 | } |
| 506 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 507 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 508 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 509 | func Rmdir(path string) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 510 | _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(StringBytePtr(path))), 0, 0) |
| 511 | errno = int(e1) |
| 512 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 513 | } |
| 514 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 515 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 516 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 517 | func Setdomainname(p []byte) (errno int) { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 518 | var _p0 unsafe.Pointer |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 519 | if len(p) > 0 { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 520 | _p0 = unsafe.Pointer(&p[0]) |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 521 | } |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 522 | _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 523 | errno = int(e1) |
| 524 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 525 | } |
| 526 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 527 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 528 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 529 | func Sethostname(p []byte) (errno int) { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 530 | var _p0 unsafe.Pointer |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 531 | if len(p) > 0 { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 532 | _p0 = unsafe.Pointer(&p[0]) |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 533 | } |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 534 | _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 535 | errno = int(e1) |
| 536 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 537 | } |
| 538 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 539 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 540 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 541 | func Setpgid(pid int, pgid int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 542 | _, _, e1 := Syscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) |
| 543 | errno = int(e1) |
| 544 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 545 | } |
| 546 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 547 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 548 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 549 | func Setrlimit(resource int, rlim *Rlimit) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 550 | _, _, e1 := Syscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) |
| 551 | errno = int(e1) |
| 552 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 553 | } |
| 554 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 555 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 556 | |
Andrew Gerrand | 3ffbd57 | 2010-04-19 13:12:11 +1000 | [diff] [blame] | 557 | func Setsid() (pid int, errno int) { |
| 558 | r0, _, e1 := Syscall(SYS_SETSID, 0, 0, 0) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 559 | pid = int(r0) |
Andrew Gerrand | 3ffbd57 | 2010-04-19 13:12:11 +1000 | [diff] [blame] | 560 | errno = int(e1) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 561 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 562 | } |
| 563 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 564 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 565 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 566 | func Settimeofday(tv *Timeval) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 567 | _, _, e1 := Syscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) |
| 568 | errno = int(e1) |
| 569 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 570 | } |
| 571 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 572 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 573 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 574 | func Setuid(uid int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 575 | _, _, e1 := Syscall(SYS_SETUID, uintptr(uid), 0, 0) |
| 576 | errno = int(e1) |
| 577 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 578 | } |
| 579 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 580 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 581 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 582 | func Symlink(oldpath string, newpath string) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 583 | _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(StringBytePtr(oldpath))), uintptr(unsafe.Pointer(StringBytePtr(newpath))), 0) |
| 584 | errno = int(e1) |
| 585 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 586 | } |
| 587 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 588 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 589 | |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 590 | func Sync() { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 591 | Syscall(SYS_SYNC, 0, 0, 0) |
| 592 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 593 | } |
| 594 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 595 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 596 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 597 | func Sysinfo(info *Sysinfo_t) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 598 | _, _, e1 := Syscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) |
| 599 | errno = int(e1) |
| 600 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 601 | } |
| 602 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 603 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 604 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 605 | func Tee(rfd int, wfd int, len int, flags int) (n int64, errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 606 | r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) |
Rob Pike | 80055c6 | 2011-01-07 17:17:42 -0800 | [diff] [blame] | 607 | n = int64(int64(r0)<<32 | int64(r1)) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 608 | errno = int(e1) |
| 609 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 610 | } |
| 611 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 612 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 613 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 614 | func Tgkill(tgid int, tid int, sig int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 615 | _, _, e1 := Syscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) |
| 616 | errno = int(e1) |
| 617 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 618 | } |
| 619 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 620 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 621 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 622 | func Times(tms *Tms) (ticks uintptr, errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 623 | r0, _, e1 := Syscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) |
| 624 | ticks = uintptr(r0) |
| 625 | errno = int(e1) |
| 626 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 627 | } |
| 628 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 629 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 630 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 631 | func Umask(mask int) (oldmask int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 632 | r0, _, _ := Syscall(SYS_UMASK, uintptr(mask), 0, 0) |
| 633 | oldmask = int(r0) |
| 634 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 635 | } |
| 636 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 637 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 638 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 639 | func Uname(buf *Utsname) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 640 | _, _, e1 := Syscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) |
| 641 | errno = int(e1) |
| 642 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 643 | } |
| 644 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 645 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 646 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 647 | func Unlink(path string) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 648 | _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(StringBytePtr(path))), 0, 0) |
| 649 | errno = int(e1) |
| 650 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 651 | } |
| 652 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 653 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 654 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 655 | func Unlinkat(dirfd int, path string) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 656 | _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(StringBytePtr(path))), 0) |
| 657 | errno = int(e1) |
| 658 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 659 | } |
| 660 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 661 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 662 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 663 | func Unshare(flags int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 664 | _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) |
| 665 | errno = int(e1) |
| 666 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 667 | } |
| 668 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 669 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 670 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 671 | func Ustat(dev int, ubuf *Ustat_t) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 672 | _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) |
| 673 | errno = int(e1) |
| 674 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 675 | } |
| 676 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 677 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 678 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 679 | func Utime(path string, buf *Utimbuf) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 680 | _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(unsafe.Pointer(buf)), 0) |
| 681 | errno = int(e1) |
| 682 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 683 | } |
| 684 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 685 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 686 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 687 | func Write(fd int, p []byte) (n int, errno int) { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 688 | var _p0 unsafe.Pointer |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 689 | if len(p) > 0 { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 690 | _p0 = unsafe.Pointer(&p[0]) |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 691 | } |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 692 | r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 693 | n = int(r0) |
| 694 | errno = int(e1) |
| 695 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 696 | } |
| 697 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 698 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 699 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 700 | func exitThread(code int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 701 | _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) |
| 702 | errno = int(e1) |
| 703 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 704 | } |
| 705 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 706 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 707 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 708 | func read(fd int, p *byte, np int) (n int, errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 709 | r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) |
| 710 | n = int(r0) |
| 711 | errno = int(e1) |
| 712 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 713 | } |
| 714 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 715 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 716 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 717 | func write(fd int, p *byte, np int) (n int, errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 718 | r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) |
| 719 | n = int(r0) |
| 720 | errno = int(e1) |
| 721 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 722 | } |
| 723 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 724 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 725 | |
Kai Backman | e5c884f | 2009-10-01 06:55:01 -0700 | [diff] [blame] | 726 | func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 727 | r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) |
| 728 | fd = int(r0) |
| 729 | errno = int(e1) |
| 730 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 731 | } |
| 732 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 733 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 734 | |
Kai Backman | e5c884f | 2009-10-01 06:55:01 -0700 | [diff] [blame] | 735 | func bind(s int, addr uintptr, addrlen _Socklen) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 736 | _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) |
| 737 | errno = int(e1) |
| 738 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 739 | } |
| 740 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 741 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 742 | |
Kai Backman | e5c884f | 2009-10-01 06:55:01 -0700 | [diff] [blame] | 743 | func connect(s int, addr uintptr, addrlen _Socklen) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 744 | _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) |
| 745 | errno = int(e1) |
| 746 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 747 | } |
| 748 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 749 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 750 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 751 | func getgroups(n int, list *_Gid_t) (nn int, errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 752 | r0, _, e1 := Syscall(SYS_GETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0) |
| 753 | nn = int(r0) |
| 754 | errno = int(e1) |
| 755 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 756 | } |
| 757 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 758 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 759 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 760 | func setgroups(n int, list *_Gid_t) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 761 | _, _, e1 := Syscall(SYS_SETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0) |
| 762 | errno = int(e1) |
| 763 | return |
Kai Backman | e5c884f | 2009-10-01 06:55:01 -0700 | [diff] [blame] | 764 | } |
| 765 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 766 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 767 | |
Kai Backman | e5c884f | 2009-10-01 06:55:01 -0700 | [diff] [blame] | 768 | func setsockopt(s int, level int, name int, val uintptr, vallen int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 769 | _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) |
| 770 | errno = int(e1) |
| 771 | return |
Kai Backman | e5c884f | 2009-10-01 06:55:01 -0700 | [diff] [blame] | 772 | } |
| 773 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 774 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 775 | |
Kai Backman | e5c884f | 2009-10-01 06:55:01 -0700 | [diff] [blame] | 776 | func socket(domain int, typ int, proto int) (fd int, errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 777 | r0, _, e1 := Syscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) |
| 778 | fd = int(r0) |
| 779 | errno = int(e1) |
| 780 | return |
Kai Backman | e5c884f | 2009-10-01 06:55:01 -0700 | [diff] [blame] | 781 | } |
| 782 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 783 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 784 | |
Kai Backman | e5c884f | 2009-10-01 06:55:01 -0700 | [diff] [blame] | 785 | func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 786 | _, _, e1 := Syscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) |
| 787 | errno = int(e1) |
| 788 | return |
Kai Backman | e5c884f | 2009-10-01 06:55:01 -0700 | [diff] [blame] | 789 | } |
| 790 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 791 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 792 | |
Kai Backman | e5c884f | 2009-10-01 06:55:01 -0700 | [diff] [blame] | 793 | func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 794 | _, _, e1 := Syscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) |
| 795 | errno = int(e1) |
| 796 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 797 | } |
| 798 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 799 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 800 | |
Christopher Wedgwood | 5857890 | 2009-12-13 13:05:49 -0800 | [diff] [blame] | 801 | func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, errno int) { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 802 | var _p0 unsafe.Pointer |
Christopher Wedgwood | 5857890 | 2009-12-13 13:05:49 -0800 | [diff] [blame] | 803 | if len(p) > 0 { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 804 | _p0 = unsafe.Pointer(&p[0]) |
Christopher Wedgwood | 5857890 | 2009-12-13 13:05:49 -0800 | [diff] [blame] | 805 | } |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 806 | r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 807 | n = int(r0) |
| 808 | errno = int(e1) |
| 809 | return |
Christopher Wedgwood | 5857890 | 2009-12-13 13:05:49 -0800 | [diff] [blame] | 810 | } |
| 811 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 812 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 813 | |
Christopher Wedgwood | 5857890 | 2009-12-13 13:05:49 -0800 | [diff] [blame] | 814 | func sendto(s int, buf []byte, flags int, to uintptr, addrlen _Socklen) (errno int) { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 815 | var _p0 unsafe.Pointer |
Christopher Wedgwood | 5857890 | 2009-12-13 13:05:49 -0800 | [diff] [blame] | 816 | if len(buf) > 0 { |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 817 | _p0 = unsafe.Pointer(&buf[0]) |
Christopher Wedgwood | 5857890 | 2009-12-13 13:05:49 -0800 | [diff] [blame] | 818 | } |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 819 | _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 820 | errno = int(e1) |
| 821 | return |
Christopher Wedgwood | 5857890 | 2009-12-13 13:05:49 -0800 | [diff] [blame] | 822 | } |
| 823 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 824 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 825 | |
Kai Backman | 534dbc7 | 2010-08-23 13:25:14 +0300 | [diff] [blame] | 826 | func socketpair(domain int, typ int, flags int, fd *[2]int) (errno int) { |
| 827 | _, _, e1 := Syscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(flags), uintptr(unsafe.Pointer(fd)), 0, 0) |
| 828 | errno = int(e1) |
| 829 | return |
| 830 | } |
| 831 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 832 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 833 | |
Russ Cox | 85d9ab6 | 2010-12-08 16:49:49 -0500 | [diff] [blame] | 834 | func recvmsg(s int, msg *Msghdr, flags int) (n int, errno int) { |
| 835 | r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) |
| 836 | n = int(r0) |
| 837 | errno = int(e1) |
| 838 | return |
| 839 | } |
| 840 | |
| 841 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 842 | |
| 843 | func sendmsg(s int, msg *Msghdr, flags int) (errno int) { |
| 844 | _, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) |
| 845 | errno = int(e1) |
| 846 | return |
| 847 | } |
| 848 | |
| 849 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 850 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 851 | func Chown(path string, uid int, gid int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 852 | _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(uid), uintptr(gid)) |
| 853 | errno = int(e1) |
| 854 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 855 | } |
| 856 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 857 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 858 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 859 | func Fchown(fd int, uid int, gid int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 860 | _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) |
| 861 | errno = int(e1) |
| 862 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 863 | } |
| 864 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 865 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 866 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 867 | func Fstat(fd int, stat *Stat_t) (errno int) { |
Brad Fitzpatrick | 34c312e | 2010-09-07 09:23:49 -0400 | [diff] [blame] | 868 | _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 869 | errno = int(e1) |
| 870 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 871 | } |
| 872 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 873 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 874 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 875 | func Fstatfs(fd int, buf *Statfs_t) (errno int) { |
Brad Fitzpatrick | 34c312e | 2010-09-07 09:23:49 -0400 | [diff] [blame] | 876 | _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 877 | errno = int(e1) |
| 878 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 879 | } |
| 880 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 881 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 882 | |
Peter Mundy | fa7341a | 2010-11-05 16:41:23 -0400 | [diff] [blame] | 883 | func Ftruncate(fd int, length int64) (errno int) { |
Rob Pike | 80055c6 | 2011-01-07 17:17:42 -0800 | [diff] [blame] | 884 | _, _, e1 := Syscall(SYS_FTRUNCATE64, uintptr(fd), uintptr(length>>32), uintptr(length)) |
Peter Mundy | fa7341a | 2010-11-05 16:41:23 -0400 | [diff] [blame] | 885 | errno = int(e1) |
| 886 | return |
| 887 | } |
| 888 | |
| 889 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 890 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 891 | func Getegid() (egid int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 892 | r0, _, _ := Syscall(SYS_GETEGID, 0, 0, 0) |
| 893 | egid = int(r0) |
| 894 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 895 | } |
| 896 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 897 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 898 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 899 | func Geteuid() (euid int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 900 | r0, _, _ := Syscall(SYS_GETEUID, 0, 0, 0) |
| 901 | euid = int(r0) |
| 902 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 903 | } |
| 904 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 905 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 906 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 907 | func Getgid() (gid int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 908 | r0, _, _ := Syscall(SYS_GETGID, 0, 0, 0) |
| 909 | gid = int(r0) |
| 910 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 911 | } |
| 912 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 913 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 914 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 915 | func Getuid() (uid int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 916 | r0, _, _ := Syscall(SYS_GETUID, 0, 0, 0) |
| 917 | uid = int(r0) |
| 918 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 919 | } |
| 920 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 921 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 922 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 923 | func Lchown(path string, uid int, gid int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 924 | _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(uid), uintptr(gid)) |
| 925 | errno = int(e1) |
| 926 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 927 | } |
| 928 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 929 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 930 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 931 | func Listen(s int, n int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 932 | _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) |
| 933 | errno = int(e1) |
| 934 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 935 | } |
| 936 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 937 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 938 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 939 | func Lstat(path string, stat *Stat_t) (errno int) { |
Brad Fitzpatrick | 34c312e | 2010-09-07 09:23:49 -0400 | [diff] [blame] | 940 | _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(unsafe.Pointer(stat)), 0) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 941 | errno = int(e1) |
| 942 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 943 | } |
| 944 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 945 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 946 | |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 947 | func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 948 | r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) |
| 949 | n = int(r0) |
| 950 | errno = int(e1) |
| 951 | return |
Kai Backman | 382a19c | 2009-08-18 19:20:33 -0700 | [diff] [blame] | 952 | } |
| 953 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 954 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 955 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 956 | func Setfsgid(gid int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 957 | _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) |
| 958 | errno = int(e1) |
| 959 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 960 | } |
| 961 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 962 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 963 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 964 | func Setfsuid(uid int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 965 | _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) |
| 966 | errno = int(e1) |
| 967 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 968 | } |
| 969 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 970 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 971 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 972 | func Setgid(gid int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 973 | _, _, e1 := Syscall(SYS_SETGID, uintptr(gid), 0, 0) |
| 974 | errno = int(e1) |
| 975 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 976 | } |
| 977 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 978 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 979 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 980 | func Setregid(rgid int, egid int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 981 | _, _, e1 := Syscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) |
| 982 | errno = int(e1) |
| 983 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 984 | } |
| 985 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 986 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 987 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 988 | func Setresgid(rgid int, egid int, sgid int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 989 | _, _, e1 := Syscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) |
| 990 | errno = int(e1) |
| 991 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 992 | } |
| 993 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 994 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 995 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 996 | func Setresuid(ruid int, euid int, suid int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 997 | _, _, e1 := Syscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) |
| 998 | errno = int(e1) |
| 999 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 1000 | } |
| 1001 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 1002 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 1003 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 1004 | func Setreuid(ruid int, euid int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 1005 | _, _, e1 := Syscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) |
| 1006 | errno = int(e1) |
| 1007 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 1008 | } |
| 1009 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 1010 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 1011 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 1012 | func Shutdown(fd int, how int) (errno int) { |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 1013 | _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) |
| 1014 | errno = int(e1) |
| 1015 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 1016 | } |
| 1017 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 1018 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 1019 | |
Russ Cox | 189d4ff | 2011-01-05 14:35:07 -0500 | [diff] [blame] | 1020 | func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, errno int) { |
| 1021 | r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) |
| 1022 | n = int(r0) |
| 1023 | errno = int(e1) |
| 1024 | return |
| 1025 | } |
| 1026 | |
| 1027 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 1028 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 1029 | func Stat(path string, stat *Stat_t) (errno int) { |
Brad Fitzpatrick | 34c312e | 2010-09-07 09:23:49 -0400 | [diff] [blame] | 1030 | _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(unsafe.Pointer(stat)), 0) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 1031 | errno = int(e1) |
| 1032 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 1033 | } |
| 1034 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 1035 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 1036 | |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 1037 | func Statfs(path string, buf *Statfs_t) (errno int) { |
Brad Fitzpatrick | 34c312e | 2010-09-07 09:23:49 -0400 | [diff] [blame] | 1038 | _, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(unsafe.Pointer(buf)), 0) |
Robert Griesemer | d65a5cc | 2009-12-15 15:40:16 -0800 | [diff] [blame] | 1039 | errno = int(e1) |
| 1040 | return |
Kai Backman | 116beb2 | 2009-10-06 16:39:38 -0700 | [diff] [blame] | 1041 | } |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 1042 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 1043 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 1044 | |
Peter Mundy | fa7341a | 2010-11-05 16:41:23 -0400 | [diff] [blame] | 1045 | func Truncate(path string, length int64) (errno int) { |
Rob Pike | 80055c6 | 2011-01-07 17:17:42 -0800 | [diff] [blame] | 1046 | _, _, e1 := Syscall(SYS_TRUNCATE64, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(length>>32), uintptr(length)) |
Peter Mundy | fa7341a | 2010-11-05 16:41:23 -0400 | [diff] [blame] | 1047 | errno = int(e1) |
| 1048 | return |
| 1049 | } |
| 1050 | |
| 1051 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 1052 | |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 1053 | func Gettimeofday(tv *Timeval) (errno int) { |
| 1054 | _, _, e1 := Syscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) |
| 1055 | errno = int(e1) |
| 1056 | return |
| 1057 | } |
| 1058 | |
Russ Cox | 1142b60 | 2010-10-20 10:39:46 -0400 | [diff] [blame] | 1059 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
| 1060 | |
Ian Lance Taylor | 7d03d0e | 2010-09-21 06:49:56 -0700 | [diff] [blame] | 1061 | func Time(t *Time_t) (tt Time_t, errno int) { |
| 1062 | r0, _, e1 := Syscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0) |
| 1063 | tt = Time_t(r0) |
| 1064 | errno = int(e1) |
| 1065 | return |
| 1066 | } |