Commit 82d06e8f authored by Robert Figueiredo's avatar Robert Figueiredo Committed by Russ Cox

syscall: add NOTE_* constants on OS X

R=rsc
CC=golang-dev
https://golang.org/cl/5570043
parent 9f16d7fb
...@@ -177,7 +177,7 @@ ccflags="$@" ...@@ -177,7 +177,7 @@ ccflags="$@"
$2 ~ /^SIG[^_]/ || $2 ~ /^SIG[^_]/ ||
$2 ~ /^IN_/ || $2 ~ /^IN_/ ||
$2 ~ /^LOCK_(SH|EX|NB|UN)$/ || $2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|TCP|EVFILT|EV|SHUT|PROT|MAP|PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ || $2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|TCP|EVFILT|NOTE|EV|SHUT|PROT|MAP|PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ ||
$2 == "SOMAXCONN" || $2 == "SOMAXCONN" ||
$2 == "NAME_MAX" || $2 == "NAME_MAX" ||
$2 == "IFNAMSIZ" || $2 == "IFNAMSIZ" ||
......
...@@ -50,18 +50,18 @@ const ( ...@@ -50,18 +50,18 @@ const (
BIOCGETIF = 0x4020426b BIOCGETIF = 0x4020426b
BIOCGHDRCMPLT = 0x40044274 BIOCGHDRCMPLT = 0x40044274
BIOCGRSIG = 0x40044272 BIOCGRSIG = 0x40044272
BIOCGRTIMEOUT = 0x4008426e BIOCGRTIMEOUT = 0x4010426e
BIOCGSEESENT = 0x40044276 BIOCGSEESENT = 0x40044276
BIOCGSTATS = 0x4008426f BIOCGSTATS = 0x4008426f
BIOCIMMEDIATE = 0x80044270 BIOCIMMEDIATE = 0x80044270
BIOCPROMISC = 0x20004269 BIOCPROMISC = 0x20004269
BIOCSBLEN = 0xc0044266 BIOCSBLEN = 0xc0044266
BIOCSDLT = 0x80044278 BIOCSDLT = 0x80044278
BIOCSETF = 0x80084267 BIOCSETF = 0x80104267
BIOCSETIF = 0x8020426c BIOCSETIF = 0x8020426c
BIOCSHDRCMPLT = 0x80044275 BIOCSHDRCMPLT = 0x80044275
BIOCSRSIG = 0x80044273 BIOCSRSIG = 0x80044273
BIOCSRTIMEOUT = 0x8008426d BIOCSRTIMEOUT = 0x8010426d
BIOCSSEESENT = 0x80044277 BIOCSSEESENT = 0x80044277
BIOCVERSION = 0x40044271 BIOCVERSION = 0x40044271
BPF_A = 0x10 BPF_A = 0x10
...@@ -619,6 +619,42 @@ const ( ...@@ -619,6 +619,42 @@ const (
NET_RT_MAXID = 0xa NET_RT_MAXID = 0xa
NET_RT_STAT = 0x4 NET_RT_STAT = 0x4
NET_RT_TRASH = 0x5 NET_RT_TRASH = 0x5
NOTE_ABSOLUTE = 0x8
NOTE_ATTRIB = 0x8
NOTE_CHILD = 0x4
NOTE_DELETE = 0x1
NOTE_EXEC = 0x20000000
NOTE_EXIT = 0x80000000
NOTE_EXITSTATUS = 0x4000000
NOTE_EXTEND = 0x4
NOTE_FFAND = 0x40000000
NOTE_FFCOPY = 0xc0000000
NOTE_FFCTRLMASK = 0xc0000000
NOTE_FFLAGSMASK = 0xffffff
NOTE_FFNOP = 0x0
NOTE_FFOR = 0x80000000
NOTE_FORK = 0x40000000
NOTE_LINK = 0x10
NOTE_LOWAT = 0x1
NOTE_NONE = 0x80
NOTE_NSECONDS = 0x4
NOTE_PCTRLMASK = -0x100000
NOTE_PDATAMASK = 0xfffff
NOTE_REAP = 0x10000000
NOTE_RENAME = 0x20
NOTE_RESOURCEEND = 0x2000000
NOTE_REVOKE = 0x40
NOTE_SECONDS = 0x1
NOTE_SIGNAL = 0x8000000
NOTE_TRACK = 0x1
NOTE_TRACKERR = 0x2
NOTE_TRIGGER = 0x1000000
NOTE_USECONDS = 0x2
NOTE_VM_ERROR = 0x10000000
NOTE_VM_PRESSURE = 0x80000000
NOTE_VM_PRESSURE_SUDDEN_TERMINATE = 0x20000000
NOTE_VM_PRESSURE_TERMINATE = 0x40000000
NOTE_WRITE = 0x2
O_ACCMODE = 0x3 O_ACCMODE = 0x3
O_ALERT = 0x20000000 O_ALERT = 0x20000000
O_APPEND = 0x8 O_APPEND = 0x8
...@@ -796,7 +832,7 @@ const ( ...@@ -796,7 +832,7 @@ const (
SIOCDIFADDR = 0x80206919 SIOCDIFADDR = 0x80206919
SIOCDIFPHYADDR = 0x80206941 SIOCDIFPHYADDR = 0x80206941
SIOCDLIFADDR = 0x8118691f SIOCDLIFADDR = 0x8118691f
SIOCGDRVSPEC = 0xc01c697b SIOCGDRVSPEC = 0xc028697b
SIOCGETSGCNT = 0xc014721c SIOCGETSGCNT = 0xc014721c
SIOCGETVIFCNT = 0xc014721b SIOCGETVIFCNT = 0xc014721b
SIOCGETVLAN = 0xc020697f SIOCGETVLAN = 0xc020697f
...@@ -807,14 +843,14 @@ const ( ...@@ -807,14 +843,14 @@ const (
SIOCGIFBOND = 0xc0206947 SIOCGIFBOND = 0xc0206947
SIOCGIFBRDADDR = 0xc0206923 SIOCGIFBRDADDR = 0xc0206923
SIOCGIFCAP = 0xc020695b SIOCGIFCAP = 0xc020695b
SIOCGIFCONF = 0xc0086924 SIOCGIFCONF = 0xc00c6924
SIOCGIFDEVMTU = 0xc0206944 SIOCGIFDEVMTU = 0xc0206944
SIOCGIFDSTADDR = 0xc0206922 SIOCGIFDSTADDR = 0xc0206922
SIOCGIFFLAGS = 0xc0206911 SIOCGIFFLAGS = 0xc0206911
SIOCGIFGENERIC = 0xc020693a SIOCGIFGENERIC = 0xc020693a
SIOCGIFKPI = 0xc0206987 SIOCGIFKPI = 0xc0206987
SIOCGIFMAC = 0xc0206982 SIOCGIFMAC = 0xc0206982
SIOCGIFMEDIA = 0xc0286938 SIOCGIFMEDIA = 0xc02c6938
SIOCGIFMETRIC = 0xc0206917 SIOCGIFMETRIC = 0xc0206917
SIOCGIFMTU = 0xc0206933 SIOCGIFMTU = 0xc0206933
SIOCGIFNETMASK = 0xc0206925 SIOCGIFNETMASK = 0xc0206925
...@@ -831,8 +867,8 @@ const ( ...@@ -831,8 +867,8 @@ const (
SIOCIFCREATE = 0xc0206978 SIOCIFCREATE = 0xc0206978
SIOCIFCREATE2 = 0xc020697a SIOCIFCREATE2 = 0xc020697a
SIOCIFDESTROY = 0x80206979 SIOCIFDESTROY = 0x80206979
SIOCRSLVMULTI = 0xc008693b SIOCRSLVMULTI = 0xc010693b
SIOCSDRVSPEC = 0x801c697b SIOCSDRVSPEC = 0x8028697b
SIOCSETVLAN = 0x8020697e SIOCSETVLAN = 0x8020697e
SIOCSHIWAT = 0x80047300 SIOCSHIWAT = 0x80047300
SIOCSIFADDR = 0x8020690c SIOCSIFADDR = 0x8020690c
...@@ -952,14 +988,14 @@ const ( ...@@ -952,14 +988,14 @@ const (
TIOCCBRK = 0x2000747a TIOCCBRK = 0x2000747a
TIOCCDTR = 0x20007478 TIOCCDTR = 0x20007478
TIOCCONS = 0x80047462 TIOCCONS = 0x80047462
TIOCDCDTIMESTAMP = 0x40087458 TIOCDCDTIMESTAMP = 0x40107458
TIOCDRAIN = 0x2000745e TIOCDRAIN = 0x2000745e
TIOCDSIMICROCODE = 0x20007455 TIOCDSIMICROCODE = 0x20007455
TIOCEXCL = 0x2000740d TIOCEXCL = 0x2000740d
TIOCEXT = 0x80047460 TIOCEXT = 0x80047460
TIOCFLUSH = 0x80047410 TIOCFLUSH = 0x80047410
TIOCGDRAINWAIT = 0x40047456 TIOCGDRAINWAIT = 0x40047456
TIOCGETA = 0x402c7413 TIOCGETA = 0x40487413
TIOCGETD = 0x4004741a TIOCGETD = 0x4004741a
TIOCGPGRP = 0x40047477 TIOCGPGRP = 0x40047477
TIOCGWINSZ = 0x40087468 TIOCGWINSZ = 0x40087468
...@@ -1005,9 +1041,9 @@ const ( ...@@ -1005,9 +1041,9 @@ const (
TIOCSCTTY = 0x20007461 TIOCSCTTY = 0x20007461
TIOCSDRAINWAIT = 0x80047457 TIOCSDRAINWAIT = 0x80047457
TIOCSDTR = 0x20007479 TIOCSDTR = 0x20007479
TIOCSETA = 0x802c7414 TIOCSETA = 0x80487414
TIOCSETAF = 0x802c7416 TIOCSETAF = 0x80487416
TIOCSETAW = 0x802c7415 TIOCSETAW = 0x80487415
TIOCSETD = 0x8004741b TIOCSETD = 0x8004741b
TIOCSIG = 0x2000745f TIOCSIG = 0x2000745f
TIOCSPGRP = 0x80047476 TIOCSPGRP = 0x80047476
...@@ -1016,7 +1052,7 @@ const ( ...@@ -1016,7 +1052,7 @@ const (
TIOCSTI = 0x80017472 TIOCSTI = 0x80017472
TIOCSTOP = 0x2000746f TIOCSTOP = 0x2000746f
TIOCSWINSZ = 0x80087467 TIOCSWINSZ = 0x80087467
TIOCTIMESTAMP = 0x40087459 TIOCTIMESTAMP = 0x40107459
TIOCUCNTL = 0x80047466 TIOCUCNTL = 0x80047466
WCONTINUED = 0x10 WCONTINUED = 0x10
WCOREFLAG = 0x80 WCOREFLAG = 0x80
......
...@@ -619,6 +619,42 @@ const ( ...@@ -619,6 +619,42 @@ const (
NET_RT_MAXID = 0xa NET_RT_MAXID = 0xa
NET_RT_STAT = 0x4 NET_RT_STAT = 0x4
NET_RT_TRASH = 0x5 NET_RT_TRASH = 0x5
NOTE_ABSOLUTE = 0x8
NOTE_ATTRIB = 0x8
NOTE_CHILD = 0x4
NOTE_DELETE = 0x1
NOTE_EXEC = 0x20000000
NOTE_EXIT = 0x80000000
NOTE_EXITSTATUS = 0x4000000
NOTE_EXTEND = 0x4
NOTE_FFAND = 0x40000000
NOTE_FFCOPY = 0xc0000000
NOTE_FFCTRLMASK = 0xc0000000
NOTE_FFLAGSMASK = 0xffffff
NOTE_FFNOP = 0x0
NOTE_FFOR = 0x80000000
NOTE_FORK = 0x40000000
NOTE_LINK = 0x10
NOTE_LOWAT = 0x1
NOTE_NONE = 0x80
NOTE_NSECONDS = 0x4
NOTE_PCTRLMASK = -0x100000
NOTE_PDATAMASK = 0xfffff
NOTE_REAP = 0x10000000
NOTE_RENAME = 0x20
NOTE_RESOURCEEND = 0x2000000
NOTE_REVOKE = 0x40
NOTE_SECONDS = 0x1
NOTE_SIGNAL = 0x8000000
NOTE_TRACK = 0x1
NOTE_TRACKERR = 0x2
NOTE_TRIGGER = 0x1000000
NOTE_USECONDS = 0x2
NOTE_VM_ERROR = 0x10000000
NOTE_VM_PRESSURE = 0x80000000
NOTE_VM_PRESSURE_SUDDEN_TERMINATE = 0x20000000
NOTE_VM_PRESSURE_TERMINATE = 0x40000000
NOTE_WRITE = 0x2
O_ACCMODE = 0x3 O_ACCMODE = 0x3
O_ALERT = 0x20000000 O_ALERT = 0x20000000
O_APPEND = 0x8 O_APPEND = 0x8
......
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