1
0
mirror of https://github.com/golang/go synced 2024-11-25 20:57:57 -07:00

fix build for Linux/ARM.

1, IMO, the fatal error "regfree: not a register" from 5g when
         compiling runtime/debug.go is due to gcc miscompile, it doesn't
         show up when compiled with -O0. But I still haven't thought of
         a way to fix this, should all ARM builds be built with -O0?
        2, fixed mksysnum_linux.pl, so zsysnum_linux_arm.go no longer
        needs to be hand-generated.
        3, regen all in pkg syscall for Linux/ARM on Debian 6.0
This CL is somewhat big, I'd like to split it if necessary.

R=rsc, dave
CC=golang-dev
https://golang.org/cl/5659044
This commit is contained in:
Shenghou Ma 2012-02-13 20:16:57 -05:00 committed by Russ Cox
parent 763716ae2a
commit 31ab16f98e
5 changed files with 431 additions and 378 deletions

View File

@ -45,6 +45,7 @@ runtime·sighandler(int32 sig, Siginfo *info, void *context, G *gp)
{ {
Ucontext *uc; Ucontext *uc;
Sigcontext *r; Sigcontext *r;
SigTab *t;
uc = context; uc = context;
r = &uc->uc_mcontext; r = &uc->uc_mcontext;
@ -54,7 +55,10 @@ runtime·sighandler(int32 sig, Siginfo *info, void *context, G *gp)
return; return;
} }
if(gp != nil && (runtime·sigtab[sig].flags & SigPanic)) { t = &runtime·sigtab[sig];
if(info->si_code != SI_USER && (t->flags & SigPanic)) {
if(gp == nil)
goto Throw;
// Make it look like a call to the signal func. // Make it look like a call to the signal func.
// Have to pass arguments out of band since // Have to pass arguments out of band since
// augmenting the stack frame would break // augmenting the stack frame would break
@ -75,12 +79,15 @@ runtime·sighandler(int32 sig, Siginfo *info, void *context, G *gp)
return; return;
} }
if(runtime·sigtab[sig].flags & SigQueue) { if(info->si_code == SI_USER || (t->flags & SigNotify))
if(runtime·sigsend(sig) || (runtime·sigtab[sig].flags & SigIgnore)) if(runtime·sigsend(sig))
return; return;
runtime·exit(2); // SIGINT, SIGTERM, etc if(t->flags & SigKill)
} runtime·exit(2);
if(!(t->flags & SigThrow))
return;
Throw:
if(runtime·panicking) // traceback already printed if(runtime·panicking) // traceback already printed
runtime·exit(2); runtime·exit(2);
runtime·panicking = 1; runtime·panicking = 1;

View File

@ -28,7 +28,7 @@ while(<>){
$prev = $2; $prev = $2;
fmt($1, $2); fmt($1, $2);
} }
elsif(/^#define __NR_(\w+)\s+\(\w+\+([0-9]+)\)/){ elsif(/^#define __NR_(\w+)\s+\(\w+\+\s*([0-9]+)\)/){
fmt($1, $prev+$2) fmt($1, $prev+$2)
} }
} }

View File

@ -7,6 +7,7 @@
package syscall package syscall
const ( const (
AF_ALG = 0x26
AF_APPLETALK = 0x5 AF_APPLETALK = 0x5
AF_ASH = 0x12 AF_ASH = 0x12
AF_ATMPVC = 0x8 AF_ATMPVC = 0x8
@ -14,6 +15,7 @@ const (
AF_AX25 = 0x3 AF_AX25 = 0x3
AF_BLUETOOTH = 0x1f AF_BLUETOOTH = 0x1f
AF_BRIDGE = 0x7 AF_BRIDGE = 0x7
AF_CAIF = 0x25
AF_CAN = 0x1d AF_CAN = 0x1d
AF_DECnet = 0xc AF_DECnet = 0xc
AF_ECONET = 0x13 AF_ECONET = 0x13
@ -28,7 +30,7 @@ const (
AF_KEY = 0xf AF_KEY = 0xf
AF_LLC = 0x1a AF_LLC = 0x1a
AF_LOCAL = 0x1 AF_LOCAL = 0x1
AF_MAX = 0x25 AF_MAX = 0x27
AF_NETBEUI = 0xd AF_NETBEUI = 0xd
AF_NETLINK = 0x10 AF_NETLINK = 0x10
AF_NETROM = 0x6 AF_NETROM = 0x6
@ -471,8 +473,10 @@ const (
MADV_DOFORK = 0xb MADV_DOFORK = 0xb
MADV_DONTFORK = 0xa MADV_DONTFORK = 0xa
MADV_DONTNEED = 0x4 MADV_DONTNEED = 0x4
MADV_HUGEPAGE = 0xe
MADV_HWPOISON = 0x64 MADV_HWPOISON = 0x64
MADV_MERGEABLE = 0xc MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0 MADV_NORMAL = 0x0
MADV_RANDOM = 0x1 MADV_RANDOM = 0x1
MADV_REMOVE = 0x9 MADV_REMOVE = 0x9
@ -876,41 +880,6 @@ const (
SHUT_RD = 0x0 SHUT_RD = 0x0
SHUT_RDWR = 0x2 SHUT_RDWR = 0x2
SHUT_WR = 0x1 SHUT_WR = 0x1
SIGABRT = 0x6
SIGALRM = 0xe
SIGBUS = 0x7
SIGCHLD = 0x11
SIGCLD = 0x11
SIGCONT = 0x12
SIGFPE = 0x8
SIGHUP = 0x1
SIGILL = 0x4
SIGINT = 0x2
SIGIO = 0x1d
SIGIOT = 0x6
SIGKILL = 0x9
SIGPIPE = 0xd
SIGPOLL = 0x1d
SIGPROF = 0x1b
SIGPWR = 0x1e
SIGQUIT = 0x3
SIGSEGV = 0xb
SIGSTKFLT = 0x10
SIGSTOP = 0x13
SIGSYS = 0x1f
SIGTERM = 0xf
SIGTRAP = 0x5
SIGTSTP = 0x14
SIGTTIN = 0x15
SIGTTOU = 0x16
SIGUNUSED = 0x1f
SIGURG = 0x17
SIGUSR1 = 0xa
SIGUSR2 = 0xc
SIGVTALRM = 0x1a
SIGWINCH = 0x1c
SIGXCPU = 0x18
SIGXFSZ = 0x19
SIOCADDDLCI = 0x8980 SIOCADDDLCI = 0x8980
SIOCADDMULTI = 0x8931 SIOCADDMULTI = 0x8931
SIOCADDRT = 0x890b SIOCADDRT = 0x890b
@ -1298,6 +1267,45 @@ const (
EXFULL = Errno(0x36) EXFULL = Errno(0x36)
) )
// Signals
const (
SIGABRT = Signal(0x6)
SIGALRM = Signal(0xe)
SIGBUS = Signal(0x7)
SIGCHLD = Signal(0x11)
SIGCLD = Signal(0x11)
SIGCONT = Signal(0x12)
SIGFPE = Signal(0x8)
SIGHUP = Signal(0x1)
SIGILL = Signal(0x4)
SIGINT = Signal(0x2)
SIGIO = Signal(0x1d)
SIGIOT = Signal(0x6)
SIGKILL = Signal(0x9)
SIGPIPE = Signal(0xd)
SIGPOLL = Signal(0x1d)
SIGPROF = Signal(0x1b)
SIGPWR = Signal(0x1e)
SIGQUIT = Signal(0x3)
SIGSEGV = Signal(0xb)
SIGSTKFLT = Signal(0x10)
SIGSTOP = Signal(0x13)
SIGSYS = Signal(0x1f)
SIGTERM = Signal(0xf)
SIGTRAP = Signal(0x5)
SIGTSTP = Signal(0x14)
SIGTTIN = Signal(0x15)
SIGTTOU = Signal(0x16)
SIGUNUSED = Signal(0x1f)
SIGURG = Signal(0x17)
SIGUSR1 = Signal(0xa)
SIGUSR2 = Signal(0xc)
SIGVTALRM = Signal(0x1a)
SIGWINCH = Signal(0x1c)
SIGXCPU = Signal(0x18)
SIGXFSZ = Signal(0x19)
)
// Error table // Error table
var errors = [...]string{ var errors = [...]string{
1: "operation not permitted", 1: "operation not permitted",
@ -1431,3 +1439,38 @@ var errors = [...]string{
131: "state not recoverable", 131: "state not recoverable",
132: "unknown error 132", 132: "unknown error 132",
} }
// Signal table
var signals = [...]string{
1: "hangup",
2: "interrupt",
3: "quit",
4: "illegal instruction",
5: "trace/breakpoint trap",
6: "aborted",
7: "bus error",
8: "floating point exception",
9: "killed",
10: "user defined signal 1",
11: "segmentation fault",
12: "user defined signal 2",
13: "broken pipe",
14: "alarm clock",
15: "terminated",
16: "stack fault",
17: "child exited",
18: "continued",
19: "stopped (signal)",
20: "stopped",
21: "stopped (tty input)",
22: "stopped (tty output)",
23: "urgent I/O condition",
24: "CPU time limit exceeded",
25: "file size limit exceeded",
26: "virtual timer expired",
27: "profiling timer expired",
28: "window changed",
29: "I/O possible",
30: "power failure",
31: "bad system call",
}

View File

@ -1,340 +1,342 @@
// Copyright 2009 The Go Authors. All rights reserved. // mksysnum_linux.pl /usr/include/asm/unistd.h
// Use of this source code is governed by a BSD-style // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
// license that can be found in the LICENSE file.
// hand generated
package syscall package syscall
const ( const (
SYS_SYSCALL_BASE = 0 SYS_OABI_SYSCALL_BASE = 0
SYS_SYSCALL_BASE = 0
SYS_RESTART_SYSCALL = (SYS_SYSCALL_BASE + 0) SYS_RESTART_SYSCALL = 0
SYS_EXIT = (SYS_SYSCALL_BASE + 1) SYS_EXIT = 1
SYS_FORK = (SYS_SYSCALL_BASE + 2) SYS_FORK = 2
SYS_READ = (SYS_SYSCALL_BASE + 3) SYS_READ = 3
SYS_WRITE = (SYS_SYSCALL_BASE + 4) SYS_WRITE = 4
SYS_OPEN = (SYS_SYSCALL_BASE + 5) SYS_OPEN = 5
SYS_CLOSE = (SYS_SYSCALL_BASE + 6) SYS_CLOSE = 6
SYS_CREAT = (SYS_SYSCALL_BASE + 8) SYS_CREAT = 8
SYS_LINK = (SYS_SYSCALL_BASE + 9) SYS_LINK = 9
SYS_UNLINK = (SYS_SYSCALL_BASE + 10) SYS_UNLINK = 10
SYS_EXECVE = (SYS_SYSCALL_BASE + 11) SYS_EXECVE = 11
SYS_CHDIR = (SYS_SYSCALL_BASE + 12) SYS_CHDIR = 12
SYS_TIME = (SYS_SYSCALL_BASE + 13) SYS_TIME = 13
SYS_MKNOD = (SYS_SYSCALL_BASE + 14) SYS_MKNOD = 14
SYS_CHMOD = (SYS_SYSCALL_BASE + 15) SYS_CHMOD = 15
SYS_LCHOWN = (SYS_SYSCALL_BASE + 16) SYS_LCHOWN = 16
SYS_LSEEK = (SYS_SYSCALL_BASE + 19) SYS_LSEEK = 19
SYS_GETPID = (SYS_SYSCALL_BASE + 20) SYS_GETPID = 20
SYS_MOUNT = (SYS_SYSCALL_BASE + 21) SYS_MOUNT = 21
SYS_UMOUNT = (SYS_SYSCALL_BASE + 22) SYS_UMOUNT = 22
SYS_SETUID = (SYS_SYSCALL_BASE + 23) SYS_SETUID = 23
SYS_GETUID = (SYS_SYSCALL_BASE + 24) SYS_GETUID = 24
SYS_STIME = (SYS_SYSCALL_BASE + 25) SYS_STIME = 25
SYS_PTRACE = (SYS_SYSCALL_BASE + 26) SYS_PTRACE = 26
SYS_ALARM = (SYS_SYSCALL_BASE + 27) SYS_ALARM = 27
SYS_PAUSE = (SYS_SYSCALL_BASE + 29) SYS_PAUSE = 29
SYS_UTIME = (SYS_SYSCALL_BASE + 30) SYS_UTIME = 30
SYS_ACCESS = (SYS_SYSCALL_BASE + 33) SYS_ACCESS = 33
SYS_NICE = (SYS_SYSCALL_BASE + 34) SYS_NICE = 34
SYS_SYNC = (SYS_SYSCALL_BASE + 36) SYS_SYNC = 36
SYS_KILL = (SYS_SYSCALL_BASE + 37) SYS_KILL = 37
SYS_RENAME = (SYS_SYSCALL_BASE + 38) SYS_RENAME = 38
SYS_MKDIR = (SYS_SYSCALL_BASE + 39) SYS_MKDIR = 39
SYS_RMDIR = (SYS_SYSCALL_BASE + 40) SYS_RMDIR = 40
SYS_DUP = (SYS_SYSCALL_BASE + 41) SYS_DUP = 41
SYS_PIPE = (SYS_SYSCALL_BASE + 42) SYS_PIPE = 42
SYS_TIMES = (SYS_SYSCALL_BASE + 43) SYS_TIMES = 43
SYS_BRK = (SYS_SYSCALL_BASE + 45) SYS_BRK = 45
SYS_SETGID = (SYS_SYSCALL_BASE + 46) SYS_SETGID = 46
SYS_GETGID = (SYS_SYSCALL_BASE + 47) SYS_GETGID = 47
SYS_GETEUID = (SYS_SYSCALL_BASE + 49) SYS_GETEUID = 49
SYS_GETEGID = (SYS_SYSCALL_BASE + 50) SYS_GETEGID = 50
SYS_ACCT = (SYS_SYSCALL_BASE + 51) SYS_ACCT = 51
SYS_UMOUNT2 = (SYS_SYSCALL_BASE + 52) SYS_UMOUNT2 = 52
SYS_IOCTL = (SYS_SYSCALL_BASE + 54) SYS_IOCTL = 54
SYS_FCNTL = (SYS_SYSCALL_BASE + 55) SYS_FCNTL = 55
SYS_SETPGID = (SYS_SYSCALL_BASE + 57) SYS_SETPGID = 57
SYS_UMASK = (SYS_SYSCALL_BASE + 60) SYS_UMASK = 60
SYS_CHROOT = (SYS_SYSCALL_BASE + 61) SYS_CHROOT = 61
SYS_USTAT = (SYS_SYSCALL_BASE + 62) SYS_USTAT = 62
SYS_DUP2 = (SYS_SYSCALL_BASE + 63) SYS_DUP2 = 63
SYS_GETPPID = (SYS_SYSCALL_BASE + 64) SYS_GETPPID = 64
SYS_GETPGRP = (SYS_SYSCALL_BASE + 65) SYS_GETPGRP = 65
SYS_SETSID = (SYS_SYSCALL_BASE + 66) SYS_SETSID = 66
SYS_SIGACTION = (SYS_SYSCALL_BASE + 67) SYS_SIGACTION = 67
SYS_SETREUID = (SYS_SYSCALL_BASE + 70) SYS_SETREUID = 70
SYS_SETREGID = (SYS_SYSCALL_BASE + 71) SYS_SETREGID = 71
SYS_SIGSUSPEND = (SYS_SYSCALL_BASE + 72) SYS_SIGSUSPEND = 72
SYS_SIGPENDING = (SYS_SYSCALL_BASE + 73) SYS_SIGPENDING = 73
SYS_SETHOSTNAME = (SYS_SYSCALL_BASE + 74) SYS_SETHOSTNAME = 74
SYS_SETRLIMIT = (SYS_SYSCALL_BASE + 75) SYS_SETRLIMIT = 75
SYS_GETRLIMIT = (SYS_SYSCALL_BASE + 76) SYS_GETRLIMIT = 76
SYS_GETRUSAGE = (SYS_SYSCALL_BASE + 77) SYS_GETRUSAGE = 77
SYS_GETTIMEOFDAY = (SYS_SYSCALL_BASE + 78) SYS_GETTIMEOFDAY = 78
SYS_SETTIMEOFDAY = (SYS_SYSCALL_BASE + 79) SYS_SETTIMEOFDAY = 79
SYS_GETGROUPS = (SYS_SYSCALL_BASE + 80) SYS_GETGROUPS = 80
SYS_SETGROUPS = (SYS_SYSCALL_BASE + 81) SYS_SETGROUPS = 81
SYS_SELECT = (SYS_SYSCALL_BASE + 82) SYS_SELECT = 82
SYS_SYMLINK = (SYS_SYSCALL_BASE + 83) SYS_SYMLINK = 83
SYS_READLINK = (SYS_SYSCALL_BASE + 85) SYS_READLINK = 85
SYS_USELIB = (SYS_SYSCALL_BASE + 86) SYS_USELIB = 86
SYS_SWAPON = (SYS_SYSCALL_BASE + 87) SYS_SWAPON = 87
SYS_REBOOT = (SYS_SYSCALL_BASE + 88) SYS_REBOOT = 88
SYS_READDIR = (SYS_SYSCALL_BASE + 89) SYS_READDIR = 89
SYS_MMAP = (SYS_SYSCALL_BASE + 90) SYS_MMAP = 90
SYS_MUNMAP = (SYS_SYSCALL_BASE + 91) SYS_MUNMAP = 91
SYS_TRUNCATE = (SYS_SYSCALL_BASE + 92) SYS_TRUNCATE = 92
SYS_FTRUNCATE = (SYS_SYSCALL_BASE + 93) SYS_FTRUNCATE = 93
SYS_FCHMOD = (SYS_SYSCALL_BASE + 94) SYS_FCHMOD = 94
SYS_FCHOWN = (SYS_SYSCALL_BASE + 95) SYS_FCHOWN = 95
SYS_GETPRIORITY = (SYS_SYSCALL_BASE + 96) SYS_GETPRIORITY = 96
SYS_SETPRIORITY = (SYS_SYSCALL_BASE + 97) SYS_SETPRIORITY = 97
SYS_STATFS = (SYS_SYSCALL_BASE + 99) SYS_STATFS = 99
SYS_FSTATFS = (SYS_SYSCALL_BASE + 100) SYS_FSTATFS = 100
SYS_SOCKETCALL = (SYS_SYSCALL_BASE + 102) SYS_SOCKETCALL = 102
SYS_SYSLOG = (SYS_SYSCALL_BASE + 103) SYS_SYSLOG = 103
SYS_SETITIMER = (SYS_SYSCALL_BASE + 104) SYS_SETITIMER = 104
SYS_GETITIMER = (SYS_SYSCALL_BASE + 105) SYS_GETITIMER = 105
SYS_STAT = (SYS_SYSCALL_BASE + 106) SYS_STAT = 106
SYS_LSTAT = (SYS_SYSCALL_BASE + 107) SYS_LSTAT = 107
SYS_FSTAT = (SYS_SYSCALL_BASE + 108) SYS_FSTAT = 108
SYS_VHANGUP = (SYS_SYSCALL_BASE + 111) SYS_VHANGUP = 111
SYS_SYSCALL = (SYS_SYSCALL_BASE + 113) SYS_SYSCALL = 113
SYS_WAIT4 = (SYS_SYSCALL_BASE + 114) SYS_WAIT4 = 114
SYS_SWAPOFF = (SYS_SYSCALL_BASE + 115) SYS_SWAPOFF = 115
SYS_SYSINFO = (SYS_SYSCALL_BASE + 116) SYS_SYSINFO = 116
SYS_IPC = (SYS_SYSCALL_BASE + 117) SYS_IPC = 117
SYS_FSYNC = (SYS_SYSCALL_BASE + 118) SYS_FSYNC = 118
SYS_SIGRETURN = (SYS_SYSCALL_BASE + 119) SYS_SIGRETURN = 119
SYS_CLONE = (SYS_SYSCALL_BASE + 120) SYS_CLONE = 120
SYS_SETDOMAINNAME = (SYS_SYSCALL_BASE + 121) SYS_SETDOMAINNAME = 121
SYS_UNAME = (SYS_SYSCALL_BASE + 122) SYS_UNAME = 122
SYS_ADJTIMEX = (SYS_SYSCALL_BASE + 124) SYS_ADJTIMEX = 124
SYS_MPROTECT = (SYS_SYSCALL_BASE + 125) SYS_MPROTECT = 125
SYS_SIGPROCMASK = (SYS_SYSCALL_BASE + 126) SYS_SIGPROCMASK = 126
SYS_INIT_MODULE = (SYS_SYSCALL_BASE + 128) SYS_INIT_MODULE = 128
SYS_DELETE_MODULE = (SYS_SYSCALL_BASE + 129) SYS_DELETE_MODULE = 129
SYS_QUOTACTL = (SYS_SYSCALL_BASE + 131) SYS_QUOTACTL = 131
SYS_GETPGID = (SYS_SYSCALL_BASE + 132) SYS_GETPGID = 132
SYS_FCHDIR = (SYS_SYSCALL_BASE + 133) SYS_FCHDIR = 133
SYS_BDFLUSH = (SYS_SYSCALL_BASE + 134) SYS_BDFLUSH = 134
SYS_SYSFS = (SYS_SYSCALL_BASE + 135) SYS_SYSFS = 135
SYS_PERSONALITY = (SYS_SYSCALL_BASE + 136) SYS_PERSONALITY = 136
SYS_SETFSUID = (SYS_SYSCALL_BASE + 138) SYS_SETFSUID = 138
SYS_SETFSGID = (SYS_SYSCALL_BASE + 139) SYS_SETFSGID = 139
SYS__LLSEEK = (SYS_SYSCALL_BASE + 140) SYS__LLSEEK = 140
SYS_GETDENTS = (SYS_SYSCALL_BASE + 141) SYS_GETDENTS = 141
SYS__NEWSELECT = (SYS_SYSCALL_BASE + 142) SYS__NEWSELECT = 142
SYS_FLOCK = (SYS_SYSCALL_BASE + 143) SYS_FLOCK = 143
SYS_MSYNC = (SYS_SYSCALL_BASE + 144) SYS_MSYNC = 144
SYS_READV = (SYS_SYSCALL_BASE + 145) SYS_READV = 145
SYS_WRITEV = (SYS_SYSCALL_BASE + 146) SYS_WRITEV = 146
SYS_GETSID = (SYS_SYSCALL_BASE + 147) SYS_GETSID = 147
SYS_FDATASYNC = (SYS_SYSCALL_BASE + 148) SYS_FDATASYNC = 148
SYS__SYSCTL = (SYS_SYSCALL_BASE + 149) SYS__SYSCTL = 149
SYS_MLOCK = (SYS_SYSCALL_BASE + 150) SYS_MLOCK = 150
SYS_MUNLOCK = (SYS_SYSCALL_BASE + 151) SYS_MUNLOCK = 151
SYS_MLOCKALL = (SYS_SYSCALL_BASE + 152) SYS_MLOCKALL = 152
SYS_MUNLOCKALL = (SYS_SYSCALL_BASE + 153) SYS_MUNLOCKALL = 153
SYS_SCHED_SETPARAM = (SYS_SYSCALL_BASE + 154) SYS_SCHED_SETPARAM = 154
SYS_SCHED_GETPARAM = (SYS_SYSCALL_BASE + 155) SYS_SCHED_GETPARAM = 155
SYS_SCHED_SETSCHEDULER = (SYS_SYSCALL_BASE + 156) SYS_SCHED_SETSCHEDULER = 156
SYS_SCHED_GETSCHEDULER = (SYS_SYSCALL_BASE + 157) SYS_SCHED_GETSCHEDULER = 157
SYS_SCHED_YIELD = (SYS_SYSCALL_BASE + 158) SYS_SCHED_YIELD = 158
SYS_SCHED_GET_PRIORITY_MAX = (SYS_SYSCALL_BASE + 159) SYS_SCHED_GET_PRIORITY_MAX = 159
SYS_SCHED_GET_PRIORITY_MIN = (SYS_SYSCALL_BASE + 160) SYS_SCHED_GET_PRIORITY_MIN = 160
SYS_SCHED_RR_GET_INTERVAL = (SYS_SYSCALL_BASE + 161) SYS_SCHED_RR_GET_INTERVAL = 161
SYS_NANOSLEEP = (SYS_SYSCALL_BASE + 162) SYS_NANOSLEEP = 162
SYS_MREMAP = (SYS_SYSCALL_BASE + 163) SYS_MREMAP = 163
SYS_SETRESUID = (SYS_SYSCALL_BASE + 164) SYS_SETRESUID = 164
SYS_GETRESUID = (SYS_SYSCALL_BASE + 165) SYS_GETRESUID = 165
SYS_POLL = (SYS_SYSCALL_BASE + 168) SYS_POLL = 168
SYS_NFSSERVCTL = (SYS_SYSCALL_BASE + 169) SYS_NFSSERVCTL = 169
SYS_SETRESGID = (SYS_SYSCALL_BASE + 170) SYS_SETRESGID = 170
SYS_GETRESGID = (SYS_SYSCALL_BASE + 171) SYS_GETRESGID = 171
SYS_PRCTL = (SYS_SYSCALL_BASE + 172) SYS_PRCTL = 172
SYS_RT_SIGRETURN = (SYS_SYSCALL_BASE + 173) SYS_RT_SIGRETURN = 173
SYS_RT_SIGACTION = (SYS_SYSCALL_BASE + 174) SYS_RT_SIGACTION = 174
SYS_RT_SIGPROCMASK = (SYS_SYSCALL_BASE + 175) SYS_RT_SIGPROCMASK = 175
SYS_RT_SIGPENDING = (SYS_SYSCALL_BASE + 176) SYS_RT_SIGPENDING = 176
SYS_RT_SIGTIMEDWAIT = (SYS_SYSCALL_BASE + 177) SYS_RT_SIGTIMEDWAIT = 177
SYS_RT_SIGQUEUEINFO = (SYS_SYSCALL_BASE + 178) SYS_RT_SIGQUEUEINFO = 178
SYS_RT_SIGSUSPEND = (SYS_SYSCALL_BASE + 179) SYS_RT_SIGSUSPEND = 179
SYS_PREAD64 = (SYS_SYSCALL_BASE + 180) SYS_PREAD64 = 180
SYS_PWRITE64 = (SYS_SYSCALL_BASE + 181) SYS_PWRITE64 = 181
SYS_CHOWN = (SYS_SYSCALL_BASE + 182) SYS_CHOWN = 182
SYS_GETCWD = (SYS_SYSCALL_BASE + 183) SYS_GETCWD = 183
SYS_CAPGET = (SYS_SYSCALL_BASE + 184) SYS_CAPGET = 184
SYS_CAPSET = (SYS_SYSCALL_BASE + 185) SYS_CAPSET = 185
SYS_SIGALTSTACK = (SYS_SYSCALL_BASE + 186) SYS_SIGALTSTACK = 186
SYS_SENDFILE = (SYS_SYSCALL_BASE + 187) SYS_SENDFILE = 187
SYS_VFORK = (SYS_SYSCALL_BASE + 190) SYS_VFORK = 190
SYS_UGETRLIMIT = (SYS_SYSCALL_BASE + 191) SYS_UGETRLIMIT = 191
SYS_MMAP2 = (SYS_SYSCALL_BASE + 192) SYS_MMAP2 = 192
SYS_TRUNCATE64 = (SYS_SYSCALL_BASE + 193) SYS_TRUNCATE64 = 193
SYS_FTRUNCATE64 = (SYS_SYSCALL_BASE + 194) SYS_FTRUNCATE64 = 194
SYS_STAT64 = (SYS_SYSCALL_BASE + 195) SYS_STAT64 = 195
SYS_LSTAT64 = (SYS_SYSCALL_BASE + 196) SYS_LSTAT64 = 196
SYS_FSTAT64 = (SYS_SYSCALL_BASE + 197) SYS_FSTAT64 = 197
SYS_LCHOWN32 = (SYS_SYSCALL_BASE + 198) SYS_LCHOWN32 = 198
SYS_GETUID32 = (SYS_SYSCALL_BASE + 199) SYS_GETUID32 = 199
SYS_GETGID32 = (SYS_SYSCALL_BASE + 200) SYS_GETGID32 = 200
SYS_GETEUID32 = (SYS_SYSCALL_BASE + 201) SYS_GETEUID32 = 201
SYS_GETEGID32 = (SYS_SYSCALL_BASE + 202) SYS_GETEGID32 = 202
SYS_SETREUID32 = (SYS_SYSCALL_BASE + 203) SYS_SETREUID32 = 203
SYS_SETREGID32 = (SYS_SYSCALL_BASE + 204) SYS_SETREGID32 = 204
SYS_GETGROUPS32 = (SYS_SYSCALL_BASE + 205) SYS_GETGROUPS32 = 205
SYS_SETGROUPS32 = (SYS_SYSCALL_BASE + 206) SYS_SETGROUPS32 = 206
SYS_FCHOWN32 = (SYS_SYSCALL_BASE + 207) SYS_FCHOWN32 = 207
SYS_SETRESUID32 = (SYS_SYSCALL_BASE + 208) SYS_SETRESUID32 = 208
SYS_GETRESUID32 = (SYS_SYSCALL_BASE + 209) SYS_GETRESUID32 = 209
SYS_SETRESGID32 = (SYS_SYSCALL_BASE + 210) SYS_SETRESGID32 = 210
SYS_GETRESGID32 = (SYS_SYSCALL_BASE + 211) SYS_GETRESGID32 = 211
SYS_CHOWN32 = (SYS_SYSCALL_BASE + 212) SYS_CHOWN32 = 212
SYS_SETUID32 = (SYS_SYSCALL_BASE + 213) SYS_SETUID32 = 213
SYS_SETGID32 = (SYS_SYSCALL_BASE + 214) SYS_SETGID32 = 214
SYS_SETFSUID32 = (SYS_SYSCALL_BASE + 215) SYS_SETFSUID32 = 215
SYS_SETFSGID32 = (SYS_SYSCALL_BASE + 216) SYS_SETFSGID32 = 216
SYS_GETDENTS64 = (SYS_SYSCALL_BASE + 217) SYS_GETDENTS64 = 217
SYS_PIVOT_ROOT = (SYS_SYSCALL_BASE + 218) SYS_PIVOT_ROOT = 218
SYS_MINCORE = (SYS_SYSCALL_BASE + 219) SYS_MINCORE = 219
SYS_MADVISE = (SYS_SYSCALL_BASE + 220) SYS_MADVISE = 220
SYS_FCNTL64 = (SYS_SYSCALL_BASE + 221) SYS_FCNTL64 = 221
SYS_GETTID = (SYS_SYSCALL_BASE + 224) SYS_GETTID = 224
SYS_READAHEAD = (SYS_SYSCALL_BASE + 225) SYS_READAHEAD = 225
SYS_SETXATTR = (SYS_SYSCALL_BASE + 226) SYS_SETXATTR = 226
SYS_LSETXATTR = (SYS_SYSCALL_BASE + 227) SYS_LSETXATTR = 227
SYS_FSETXATTR = (SYS_SYSCALL_BASE + 228) SYS_FSETXATTR = 228
SYS_GETXATTR = (SYS_SYSCALL_BASE + 229) SYS_GETXATTR = 229
SYS_LGETXATTR = (SYS_SYSCALL_BASE + 230) SYS_LGETXATTR = 230
SYS_FGETXATTR = (SYS_SYSCALL_BASE + 231) SYS_FGETXATTR = 231
SYS_LISTXATTR = (SYS_SYSCALL_BASE + 232) SYS_LISTXATTR = 232
SYS_LLISTXATTR = (SYS_SYSCALL_BASE + 233) SYS_LLISTXATTR = 233
SYS_FLISTXATTR = (SYS_SYSCALL_BASE + 234) SYS_FLISTXATTR = 234
SYS_REMOVEXATTR = (SYS_SYSCALL_BASE + 235) SYS_REMOVEXATTR = 235
SYS_LREMOVEXATTR = (SYS_SYSCALL_BASE + 236) SYS_LREMOVEXATTR = 236
SYS_FREMOVEXATTR = (SYS_SYSCALL_BASE + 237) SYS_FREMOVEXATTR = 237
SYS_TKILL = (SYS_SYSCALL_BASE + 238) SYS_TKILL = 238
SYS_SENDFILE64 = (SYS_SYSCALL_BASE + 239) SYS_SENDFILE64 = 239
SYS_FUTEX = (SYS_SYSCALL_BASE + 240) SYS_FUTEX = 240
SYS_SCHED_SETAFFINITY = (SYS_SYSCALL_BASE + 241) SYS_SCHED_SETAFFINITY = 241
SYS_SCHED_GETAFFINITY = (SYS_SYSCALL_BASE + 242) SYS_SCHED_GETAFFINITY = 242
SYS_IO_SETUP = (SYS_SYSCALL_BASE + 243) SYS_IO_SETUP = 243
SYS_IO_DESTROY = (SYS_SYSCALL_BASE + 244) SYS_IO_DESTROY = 244
SYS_IO_GETEVENTS = (SYS_SYSCALL_BASE + 245) SYS_IO_GETEVENTS = 245
SYS_IO_SUBMIT = (SYS_SYSCALL_BASE + 246) SYS_IO_SUBMIT = 246
SYS_IO_CANCEL = (SYS_SYSCALL_BASE + 247) SYS_IO_CANCEL = 247
SYS_EXIT_GROUP = (SYS_SYSCALL_BASE + 248) SYS_EXIT_GROUP = 248
SYS_LOOKUP_DCOOKIE = (SYS_SYSCALL_BASE + 249) SYS_LOOKUP_DCOOKIE = 249
SYS_EPOLL_CREATE = (SYS_SYSCALL_BASE + 250) SYS_EPOLL_CREATE = 250
SYS_EPOLL_CTL = (SYS_SYSCALL_BASE + 251) SYS_EPOLL_CTL = 251
SYS_EPOLL_WAIT = (SYS_SYSCALL_BASE + 252) SYS_EPOLL_WAIT = 252
SYS_REMAP_FILE_PAGES = (SYS_SYSCALL_BASE + 253) SYS_REMAP_FILE_PAGES = 253
SYS_SET_TID_ADDRESS = (SYS_SYSCALL_BASE + 256) SYS_SET_TID_ADDRESS = 256
SYS_TIMER_CREATE = (SYS_SYSCALL_BASE + 257) SYS_TIMER_CREATE = 257
SYS_TIMER_SETTIME = (SYS_SYSCALL_BASE + 258) SYS_TIMER_SETTIME = 258
SYS_TIMER_GETTIME = (SYS_SYSCALL_BASE + 259) SYS_TIMER_GETTIME = 259
SYS_TIMER_GETOVERRUN = (SYS_SYSCALL_BASE + 260) SYS_TIMER_GETOVERRUN = 260
SYS_TIMER_DELETE = (SYS_SYSCALL_BASE + 261) SYS_TIMER_DELETE = 261
SYS_CLOCK_SETTIME = (SYS_SYSCALL_BASE + 262) SYS_CLOCK_SETTIME = 262
SYS_CLOCK_GETTIME = (SYS_SYSCALL_BASE + 263) SYS_CLOCK_GETTIME = 263
SYS_CLOCK_GETRES = (SYS_SYSCALL_BASE + 264) SYS_CLOCK_GETRES = 264
SYS_CLOCK_NANOSLEEP = (SYS_SYSCALL_BASE + 265) SYS_CLOCK_NANOSLEEP = 265
SYS_STATFS64 = (SYS_SYSCALL_BASE + 266) SYS_STATFS64 = 266
SYS_FSTATFS64 = (SYS_SYSCALL_BASE + 267) SYS_FSTATFS64 = 267
SYS_TGKILL = (SYS_SYSCALL_BASE + 268) SYS_TGKILL = 268
SYS_UTIMES = (SYS_SYSCALL_BASE + 269) SYS_UTIMES = 269
SYS_ARM_FADVISE64_64 = (SYS_SYSCALL_BASE + 270) SYS_ARM_FADVISE64_64 = 270
SYS_PCICONFIG_IOBASE = (SYS_SYSCALL_BASE + 271) SYS_PCICONFIG_IOBASE = 271
SYS_PCICONFIG_READ = (SYS_SYSCALL_BASE + 272) SYS_PCICONFIG_READ = 272
SYS_PCICONFIG_WRITE = (SYS_SYSCALL_BASE + 273) SYS_PCICONFIG_WRITE = 273
SYS_MQ_OPEN = (SYS_SYSCALL_BASE + 274) SYS_MQ_OPEN = 274
SYS_MQ_UNLINK = (SYS_SYSCALL_BASE + 275) SYS_MQ_UNLINK = 275
SYS_MQ_TIMEDSEND = (SYS_SYSCALL_BASE + 276) SYS_MQ_TIMEDSEND = 276
SYS_MQ_TIMEDRECEIVE = (SYS_SYSCALL_BASE + 277) SYS_MQ_TIMEDRECEIVE = 277
SYS_MQ_NOTIFY = (SYS_SYSCALL_BASE + 278) SYS_MQ_NOTIFY = 278
SYS_MQ_GETSETATTR = (SYS_SYSCALL_BASE + 279) SYS_MQ_GETSETATTR = 279
SYS_WAITID = (SYS_SYSCALL_BASE + 280) SYS_WAITID = 280
SYS_SOCKET = (SYS_SYSCALL_BASE + 281) SYS_SOCKET = 281
SYS_BIND = (SYS_SYSCALL_BASE + 282) SYS_BIND = 282
SYS_CONNECT = (SYS_SYSCALL_BASE + 283) SYS_CONNECT = 283
SYS_LISTEN = (SYS_SYSCALL_BASE + 284) SYS_LISTEN = 284
SYS_ACCEPT = (SYS_SYSCALL_BASE + 285) SYS_ACCEPT = 285
SYS_GETSOCKNAME = (SYS_SYSCALL_BASE + 286) SYS_GETSOCKNAME = 286
SYS_GETPEERNAME = (SYS_SYSCALL_BASE + 287) SYS_GETPEERNAME = 287
SYS_SOCKETPAIR = (SYS_SYSCALL_BASE + 288) SYS_SOCKETPAIR = 288
SYS_SEND = (SYS_SYSCALL_BASE + 289) SYS_SEND = 289
SYS_SENDTO = (SYS_SYSCALL_BASE + 290) SYS_SENDTO = 290
SYS_RECV = (SYS_SYSCALL_BASE + 291) SYS_RECV = 291
SYS_RECVFROM = (SYS_SYSCALL_BASE + 292) SYS_RECVFROM = 292
SYS_SHUTDOWN = (SYS_SYSCALL_BASE + 293) SYS_SHUTDOWN = 293
SYS_SETSOCKOPT = (SYS_SYSCALL_BASE + 294) SYS_SETSOCKOPT = 294
SYS_GETSOCKOPT = (SYS_SYSCALL_BASE + 295) SYS_GETSOCKOPT = 295
SYS_SENDMSG = (SYS_SYSCALL_BASE + 296) SYS_SENDMSG = 296
SYS_RECVMSG = (SYS_SYSCALL_BASE + 297) SYS_RECVMSG = 297
SYS_SEMOP = (SYS_SYSCALL_BASE + 298) SYS_SEMOP = 298
SYS_SEMGET = (SYS_SYSCALL_BASE + 299) SYS_SEMGET = 299
SYS_SEMCTL = (SYS_SYSCALL_BASE + 300) SYS_SEMCTL = 300
SYS_MSGSND = (SYS_SYSCALL_BASE + 301) SYS_MSGSND = 301
SYS_MSGRCV = (SYS_SYSCALL_BASE + 302) SYS_MSGRCV = 302
SYS_MSGGET = (SYS_SYSCALL_BASE + 303) SYS_MSGGET = 303
SYS_MSGCTL = (SYS_SYSCALL_BASE + 304) SYS_MSGCTL = 304
SYS_SHMAT = (SYS_SYSCALL_BASE + 305) SYS_SHMAT = 305
SYS_SHMDT = (SYS_SYSCALL_BASE + 306) SYS_SHMDT = 306
SYS_SHMGET = (SYS_SYSCALL_BASE + 307) SYS_SHMGET = 307
SYS_SHMCTL = (SYS_SYSCALL_BASE + 308) SYS_SHMCTL = 308
SYS_ADD_KEY = (SYS_SYSCALL_BASE + 309) SYS_ADD_KEY = 309
SYS_REQUEST_KEY = (SYS_SYSCALL_BASE + 310) SYS_REQUEST_KEY = 310
SYS_KEYCTL = (SYS_SYSCALL_BASE + 311) SYS_KEYCTL = 311
SYS_SEMTIMEDOP = (SYS_SYSCALL_BASE + 312) SYS_SEMTIMEDOP = 312
SYS_VSERVER = (SYS_SYSCALL_BASE + 313) SYS_VSERVER = 313
SYS_IOPRIO_SET = (SYS_SYSCALL_BASE + 314) SYS_IOPRIO_SET = 314
SYS_IOPRIO_GET = (SYS_SYSCALL_BASE + 315) SYS_IOPRIO_GET = 315
SYS_INOTIFY_INIT = (SYS_SYSCALL_BASE + 316) SYS_INOTIFY_INIT = 316
SYS_INOTIFY_ADD_WATCH = (SYS_SYSCALL_BASE + 317) SYS_INOTIFY_ADD_WATCH = 317
SYS_INOTIFY_RM_WATCH = (SYS_SYSCALL_BASE + 318) SYS_INOTIFY_RM_WATCH = 318
SYS_MBIND = (SYS_SYSCALL_BASE + 319) SYS_MBIND = 319
SYS_GET_MEMPOLICY = (SYS_SYSCALL_BASE + 320) SYS_GET_MEMPOLICY = 320
SYS_SET_MEMPOLICY = (SYS_SYSCALL_BASE + 321) SYS_SET_MEMPOLICY = 321
SYS_OPENAT = (SYS_SYSCALL_BASE + 322) SYS_OPENAT = 322
SYS_MKDIRAT = (SYS_SYSCALL_BASE + 323) SYS_MKDIRAT = 323
SYS_MKNODAT = (SYS_SYSCALL_BASE + 324) SYS_MKNODAT = 324
SYS_FCHOWNAT = (SYS_SYSCALL_BASE + 325) SYS_FCHOWNAT = 325
SYS_FUTIMESAT = (SYS_SYSCALL_BASE + 326) SYS_FUTIMESAT = 326
SYS_FSTATAT64 = (SYS_SYSCALL_BASE + 327) SYS_FSTATAT64 = 327
SYS_UNLINKAT = (SYS_SYSCALL_BASE + 328) SYS_UNLINKAT = 328
SYS_RENAMEAT = (SYS_SYSCALL_BASE + 329) SYS_RENAMEAT = 329
SYS_LINKAT = (SYS_SYSCALL_BASE + 330) SYS_LINKAT = 330
SYS_SYMLINKAT = (SYS_SYSCALL_BASE + 331) SYS_SYMLINKAT = 331
SYS_READLINKAT = (SYS_SYSCALL_BASE + 332) SYS_READLINKAT = 332
SYS_FCHMODAT = (SYS_SYSCALL_BASE + 333) SYS_FCHMODAT = 333
SYS_FACCESSAT = (SYS_SYSCALL_BASE + 334) SYS_FACCESSAT = 334
SYS_UNSHARE = (SYS_SYSCALL_BASE + 337) SYS_PSELECT6 = 335
SYS_SET_ROBUST_LIST = (SYS_SYSCALL_BASE + 338) SYS_PPOLL = 336
SYS_GET_ROBUST_LIST = (SYS_SYSCALL_BASE + 339) SYS_UNSHARE = 337
SYS_SPLICE = (SYS_SYSCALL_BASE + 340) SYS_SET_ROBUST_LIST = 338
SYS_ARM_SYNC_FILE_RANGE = (SYS_SYSCALL_BASE + 341) SYS_GET_ROBUST_LIST = 339
SYS_SYNC_FILE_RANGE2 = SYS_ARM_SYNC_FILE_RANGE SYS_SPLICE = 340
SYS_TEE = (SYS_SYSCALL_BASE + 342) SYS_ARM_SYNC_FILE_RANGE = 341
SYS_VMSPLICE = (SYS_SYSCALL_BASE + 343) SYS_TEE = 342
SYS_MOVE_PAGES = (SYS_SYSCALL_BASE + 344) SYS_VMSPLICE = 343
SYS_GETCPU = (SYS_SYSCALL_BASE + 345) SYS_MOVE_PAGES = 344
SYS_KEXEC_LOAD = (SYS_SYSCALL_BASE + 347) SYS_GETCPU = 345
SYS_UTIMENSAT = (SYS_SYSCALL_BASE + 348) SYS_EPOLL_PWAIT = 346
SYS_SIGNALFD = (SYS_SYSCALL_BASE + 349) SYS_KEXEC_LOAD = 347
SYS_TIMERFD_CREATE = (SYS_SYSCALL_BASE + 350) SYS_UTIMENSAT = 348
SYS_EVENTFD = (SYS_SYSCALL_BASE + 351) SYS_SIGNALFD = 349
SYS_FALLOCATE = (SYS_SYSCALL_BASE + 352) SYS_TIMERFD_CREATE = 350
SYS_TIMERFD_SETTIME = (SYS_SYSCALL_BASE + 353) SYS_EVENTFD = 351
SYS_TIMERFD_GETTIME = (SYS_SYSCALL_BASE + 354) SYS_FALLOCATE = 352
SYS_SIGNALFD4 = (SYS_SYSCALL_BASE + 355) SYS_TIMERFD_SETTIME = 353
SYS_EVENTFD2 = (SYS_SYSCALL_BASE + 356) SYS_TIMERFD_GETTIME = 354
SYS_EPOLL_CREATE1 = (SYS_SYSCALL_BASE + 357) SYS_SIGNALFD4 = 355
SYS_DUP3 = (SYS_SYSCALL_BASE + 358) SYS_EVENTFD2 = 356
SYS_PIPE2 = (SYS_SYSCALL_BASE + 359) SYS_EPOLL_CREATE1 = 357
SYS_INOTIFY_INIT1 = (SYS_SYSCALL_BASE + 360) SYS_DUP3 = 358
SYS_PIPE2 = 359
SYS_INOTIFY_INIT1 = 360
SYS_PREADV = 361
SYS_PWRITEV = 362
SYS_RT_TGSIGQUEUEINFO = 363
SYS_PERF_EVENT_OPEN = 364
SYS_ACCEPT4 = 366
) )
func _darwin_system_call_conflict() {}

View File

@ -126,7 +126,8 @@ type Statfs_t struct {
Fsid Fsid Fsid Fsid
Namelen int32 Namelen int32
Frsize int32 Frsize int32
Spare [5]int32 Flags int32
Spare [4]int32
Pad_cgo_0 [4]byte Pad_cgo_0 [4]byte
} }