Commit ed963c90 authored by Mikio Hara's avatar Mikio Hara

undo CL 102610045 / 7244ce3ae9db

preparing for the syscall package freeze.

««« original CL description
syscall: regenerate z-files for darwin

Updates z-files from 10.7 kernel-based to 10.9 kernel-based.

LGTM=iant
R=golang-codereviews, bradfitz, iant
CC=golang-codereviews
https://golang.org/cl/102610045
»»»

LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/114530044
parent d7566da1
...@@ -327,27 +327,3 @@ pkg syscall (netbsd-arm), const SizeofIfData = 132 ...@@ -327,27 +327,3 @@ pkg syscall (netbsd-arm), const SizeofIfData = 132
pkg syscall (netbsd-arm), type IfMsghdr struct, Pad_cgo_1 [4]uint8 pkg syscall (netbsd-arm), type IfMsghdr struct, Pad_cgo_1 [4]uint8
pkg syscall (netbsd-arm-cgo), const SizeofIfData = 132 pkg syscall (netbsd-arm-cgo), const SizeofIfData = 132
pkg syscall (netbsd-arm-cgo), type IfMsghdr struct, Pad_cgo_1 [4]uint8 pkg syscall (netbsd-arm-cgo), type IfMsghdr struct, Pad_cgo_1 [4]uint8
pkg syscall (darwin-386), const AF_MAX = 38
pkg syscall (darwin-386), const ELAST = 105
pkg syscall (darwin-386), const EVFILT_SYSCOUNT = 12
pkg syscall (darwin-386), const EVFILT_THREADMARKER = 12
pkg syscall (darwin-386), const IPV6_FRAGTTL = 120
pkg syscall (darwin-386), const SYS_MAXSYSCALL = 439
pkg syscall (darwin-386-cgo), const AF_MAX = 38
pkg syscall (darwin-386-cgo), const ELAST = 105
pkg syscall (darwin-386-cgo), const EVFILT_SYSCOUNT = 12
pkg syscall (darwin-386-cgo), const EVFILT_THREADMARKER = 12
pkg syscall (darwin-386-cgo), const IPV6_FRAGTTL = 120
pkg syscall (darwin-386-cgo), const SYS_MAXSYSCALL = 439
pkg syscall (darwin-amd64), const AF_MAX = 38
pkg syscall (darwin-amd64), const ELAST = 105
pkg syscall (darwin-amd64), const EVFILT_SYSCOUNT = 12
pkg syscall (darwin-amd64), const EVFILT_THREADMARKER = 12
pkg syscall (darwin-amd64), const IPV6_FRAGTTL = 120
pkg syscall (darwin-amd64), const SYS_MAXSYSCALL = 439
pkg syscall (darwin-amd64-cgo), const AF_MAX = 38
pkg syscall (darwin-amd64-cgo), const ELAST = 105
pkg syscall (darwin-amd64-cgo), const EVFILT_SYSCOUNT = 12
pkg syscall (darwin-amd64-cgo), const EVFILT_THREADMARKER = 12
pkg syscall (darwin-amd64-cgo), const IPV6_FRAGTTL = 120
pkg syscall (darwin-amd64-cgo), const SYS_MAXSYSCALL = 439
...@@ -35,36 +35,6 @@ includes_Darwin=' ...@@ -35,36 +35,6 @@ includes_Darwin='
#include <netinet/ip.h> #include <netinet/ip.h>
#include <netinet/ip_mroute.h> #include <netinet/ip_mroute.h>
#include <termios.h> #include <termios.h>
// We keep some constants not supported in OS X Mavericks and beyond
// for the promise of compatibility.
#ifndef F_MARKDEPENDENCY
#define F_MARKDEPENDENCY 0x3c
#endif
#ifndef F_READBOOTSTRAP
#define F_READBOOTSTRAP 0x2e
#endif
#ifndef F_WRITEBOOTSTRAP
#define F_WRITEBOOTSTRAP 0x2f
#endif
#ifndef NOTE_RESOURCEEND
#define NOTE_RESOURCEEND 0x2000000
#endif
#ifndef SO_RESTRICTIONS
#define SO_RESTRICTIONS 0x1081
#endif
#ifndef SO_RESTRICT_DENYIN
#define SO_RESTRICT_DENYIN 0x1
#endif
#ifndef SO_RESTRICT_DENYOUT
#define SO_RESTRICT_DENYOUT 0x2
#endif
#ifndef SO_RESTRICT_DENYSET
#define SO_RESTRICT_DENYSET 0x80000000
#endif
#ifndef TCP_MINMSSOVERLOAD
#define TCP_MINMSSOVERLOAD 0x3e8
#endif
' '
includes_DragonFly=' includes_DragonFly='
......
...@@ -18,41 +18,15 @@ package syscall ...@@ -18,41 +18,15 @@ package syscall
const ( const (
EOF EOF
my %syscalls;
while(<>){ while(<>){
if(/^#define\s+SYS_(\w+)\s+([0-9]+)/){ if(/^#define\s+SYS_(\w+)\s+([0-9]+)/){
my $name = $1; my $name = $1;
my $num = $2; my $num = $2;
$name =~ y/a-z/A-Z/; $name =~ y/a-z/A-Z/;
$syscalls{"SYS_$name"} = "$num"; print " SYS_$name = $num;"
} }
} }
# We keep some constants not supported in OS X Mavericks and beyond
# for the promise of compatibility.
$syscalls{"SYS_PROFIL"} = 44;
$syscalls{"SYS_ADD_PROFIL"} = 176;
$syscalls{"SYS_ATSOCKET"} = 206;
$syscalls{"SYS_ATGETMSG"} = 207;
$syscalls{"SYS_ATPUTMSG"} = 208;
$syscalls{"SYS_ATPSNDREQ"} = 209;
$syscalls{"SYS_ATPSNDRSP"} = 210;
$syscalls{"SYS_ATPGETREQ"} = 211;
$syscalls{"SYS_ATPGETRSP"} = 212;
$syscalls{"SYS_MKCOMPLEX"} = 216;
$syscalls{"SYS_STATV"} = 217;
$syscalls{"SYS_LSTATV"} = 218;
$syscalls{"SYS_FSTATV"} = 219;
$syscalls{"SYS_GETAUDIT"} = 355;
$syscalls{"SYS_SETAUDIT"} = 356;
$syscalls{"SYS_PID_HIBERNATE"} = 435;
$syscalls{"SYS_PID_SHUTDOWN_SOCKETS"} = 436;
for my $key (sort {$syscalls{$a} <=> $syscalls{$b} || $a cmp $b} keys %syscalls){
print "$key = $syscalls{$key};\n";
}
print <<EOF; print <<EOF;
) )
EOF EOF
...@@ -64,6 +64,7 @@ struct sockaddr_any { ...@@ -64,6 +64,7 @@ struct sockaddr_any {
struct sockaddr addr; struct sockaddr addr;
char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)]; char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)];
}; };
*/ */
import "C" import "C"
...@@ -116,13 +117,7 @@ type Radvisory_t C.struct_radvisory ...@@ -116,13 +117,7 @@ type Radvisory_t C.struct_radvisory
type Fbootstraptransfer_t C.struct_fbootstraptransfer type Fbootstraptransfer_t C.struct_fbootstraptransfer
// See golang.org/issue/8267. type Log2phys_t C.struct_log2phys
//type Log2phys_t C.struct_packed_log2phys
type Log2phys_t struct {
Flags uint32
Contigbytes int64
Devoffset int64
}
type Fsid C.struct_fsid type Fsid C.struct_fsid
......
This diff is collapsed.
This diff is collapsed.
...@@ -118,7 +118,6 @@ const ( ...@@ -118,7 +118,6 @@ const (
SYS_QUOTACTL = 165 SYS_QUOTACTL = 165
SYS_MOUNT = 167 SYS_MOUNT = 167
SYS_CSOPS = 169 SYS_CSOPS = 169
SYS_CSOPS_AUDITTOKEN = 170
SYS_WAITID = 173 SYS_WAITID = 173
SYS_ADD_PROFIL = 176 SYS_ADD_PROFIL = 176
SYS_KDEBUG_TRACE = 180 SYS_KDEBUG_TRACE = 180
...@@ -152,7 +151,6 @@ const ( ...@@ -152,7 +151,6 @@ const (
SYS_ATPGETREQ = 211 SYS_ATPGETREQ = 211
SYS_ATPGETRSP = 212 SYS_ATPGETRSP = 212
SYS_MKCOMPLEX = 216 SYS_MKCOMPLEX = 216
SYS_OPEN_DPROTECTED_NP = 216
SYS_STATV = 217 SYS_STATV = 217
SYS_LSTATV = 218 SYS_LSTATV = 218
SYS_FSTATV = 219 SYS_FSTATV = 219
...@@ -300,7 +298,6 @@ const ( ...@@ -300,7 +298,6 @@ const (
SYS___OLD_SEMWAIT_SIGNAL = 370 SYS___OLD_SEMWAIT_SIGNAL = 370
SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371 SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371
SYS_THREAD_SELFID = 372 SYS_THREAD_SELFID = 372
SYS_LEDGER = 373
SYS___MAC_EXECVE = 380 SYS___MAC_EXECVE = 380
SYS___MAC_SYSCALL = 381 SYS___MAC_SYSCALL = 381
SYS___MAC_GET_FILE = 382 SYS___MAC_GET_FILE = 382
...@@ -359,21 +356,5 @@ const ( ...@@ -359,21 +356,5 @@ const (
SYS_PID_HIBERNATE = 435 SYS_PID_HIBERNATE = 435
SYS_PID_SHUTDOWN_SOCKETS = 436 SYS_PID_SHUTDOWN_SOCKETS = 436
SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438 SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
SYS_KAS_INFO = 439 SYS_MAXSYSCALL = 439
SYS_MEMORYSTATUS_CONTROL = 440
SYS_GUARDED_OPEN_NP = 441
SYS_GUARDED_CLOSE_NP = 442
SYS_GUARDED_KQUEUE_NP = 443
SYS_CHANGE_FDGUARD_NP = 444
SYS_PROC_RLIMIT_CONTROL = 446
SYS_CONNECTX = 447
SYS_DISCONNECTX = 448
SYS_PEELOFF = 449
SYS_SOCKET_DELEGATE = 450
SYS_TELEMETRY = 451
SYS_PROC_UUID_POLICY = 452
SYS_MEMORYSTATUS_GET_LEVEL = 453
SYS_SYSTEM_OVERRIDE = 454
SYS_VFS_PURGE = 455
SYS_MAXSYSCALL = 456
) )
...@@ -118,7 +118,6 @@ const ( ...@@ -118,7 +118,6 @@ const (
SYS_QUOTACTL = 165 SYS_QUOTACTL = 165
SYS_MOUNT = 167 SYS_MOUNT = 167
SYS_CSOPS = 169 SYS_CSOPS = 169
SYS_CSOPS_AUDITTOKEN = 170
SYS_WAITID = 173 SYS_WAITID = 173
SYS_ADD_PROFIL = 176 SYS_ADD_PROFIL = 176
SYS_KDEBUG_TRACE = 180 SYS_KDEBUG_TRACE = 180
...@@ -152,7 +151,6 @@ const ( ...@@ -152,7 +151,6 @@ const (
SYS_ATPGETREQ = 211 SYS_ATPGETREQ = 211
SYS_ATPGETRSP = 212 SYS_ATPGETRSP = 212
SYS_MKCOMPLEX = 216 SYS_MKCOMPLEX = 216
SYS_OPEN_DPROTECTED_NP = 216
SYS_STATV = 217 SYS_STATV = 217
SYS_LSTATV = 218 SYS_LSTATV = 218
SYS_FSTATV = 219 SYS_FSTATV = 219
...@@ -300,7 +298,6 @@ const ( ...@@ -300,7 +298,6 @@ const (
SYS___OLD_SEMWAIT_SIGNAL = 370 SYS___OLD_SEMWAIT_SIGNAL = 370
SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371 SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371
SYS_THREAD_SELFID = 372 SYS_THREAD_SELFID = 372
SYS_LEDGER = 373
SYS___MAC_EXECVE = 380 SYS___MAC_EXECVE = 380
SYS___MAC_SYSCALL = 381 SYS___MAC_SYSCALL = 381
SYS___MAC_GET_FILE = 382 SYS___MAC_GET_FILE = 382
...@@ -359,21 +356,5 @@ const ( ...@@ -359,21 +356,5 @@ const (
SYS_PID_HIBERNATE = 435 SYS_PID_HIBERNATE = 435
SYS_PID_SHUTDOWN_SOCKETS = 436 SYS_PID_SHUTDOWN_SOCKETS = 436
SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438 SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
SYS_KAS_INFO = 439 SYS_MAXSYSCALL = 439
SYS_MEMORYSTATUS_CONTROL = 440
SYS_GUARDED_OPEN_NP = 441
SYS_GUARDED_CLOSE_NP = 442
SYS_GUARDED_KQUEUE_NP = 443
SYS_CHANGE_FDGUARD_NP = 444
SYS_PROC_RLIMIT_CONTROL = 446
SYS_CONNECTX = 447
SYS_DISCONNECTX = 448
SYS_PEELOFF = 449
SYS_SOCKET_DELEGATE = 450
SYS_TELEMETRY = 451
SYS_PROC_UUID_POLICY = 452
SYS_MEMORYSTATUS_GET_LEVEL = 453
SYS_SYSTEM_OVERRIDE = 454
SYS_VFS_PURGE = 455
SYS_MAXSYSCALL = 456
) )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment