Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
82d06e8f
Commit
82d06e8f
authored
Jan 25, 2012
by
Robert Figueiredo
Committed by
Russ Cox
Jan 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syscall: add NOTE_* constants on OS X
R=rsc CC=golang-dev
https://golang.org/cl/5570043
parent
9f16d7fb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
87 additions
and
15 deletions
+87
-15
mkerrors.sh
src/pkg/syscall/mkerrors.sh
+1
-1
zerrors_darwin_386.go
src/pkg/syscall/zerrors_darwin_386.go
+50
-14
zerrors_darwin_amd64.go
src/pkg/syscall/zerrors_darwin_amd64.go
+36
-0
No files found.
src/pkg/syscall/mkerrors.sh
View file @
82d06e8f
...
...
@@ -177,7 +177,7 @@ ccflags="$@"
$2 ~ /^SIG[^_]/ ||
$2 ~ /^IN_/ ||
$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 == "NAME_MAX" ||
$2 == "IFNAMSIZ" ||
...
...
src/pkg/syscall/zerrors_darwin_386.go
View file @
82d06e8f
...
...
@@ -50,18 +50,18 @@ const (
BIOCGETIF
=
0x4020426b
BIOCGHDRCMPLT
=
0x40044274
BIOCGRSIG
=
0x40044272
BIOCGRTIMEOUT
=
0x4008
426e
BIOCGRTIMEOUT
=
0x4010
426e
BIOCGSEESENT
=
0x40044276
BIOCGSTATS
=
0x4008426f
BIOCIMMEDIATE
=
0x80044270
BIOCPROMISC
=
0x20004269
BIOCSBLEN
=
0xc0044266
BIOCSDLT
=
0x80044278
BIOCSETF
=
0x8008
4267
BIOCSETF
=
0x8010
4267
BIOCSETIF
=
0x8020426c
BIOCSHDRCMPLT
=
0x80044275
BIOCSRSIG
=
0x80044273
BIOCSRTIMEOUT
=
0x8008
426d
BIOCSRTIMEOUT
=
0x8010
426d
BIOCSSEESENT
=
0x80044277
BIOCVERSION
=
0x40044271
BPF_A
=
0x10
...
...
@@ -619,6 +619,42 @@ const (
NET_RT_MAXID
=
0xa
NET_RT_STAT
=
0x4
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_ALERT
=
0x20000000
O_APPEND
=
0x8
...
...
@@ -796,7 +832,7 @@ const (
SIOCDIFADDR
=
0x80206919
SIOCDIFPHYADDR
=
0x80206941
SIOCDLIFADDR
=
0x8118691f
SIOCGDRVSPEC
=
0xc01c
697b
SIOCGDRVSPEC
=
0xc028
697b
SIOCGETSGCNT
=
0xc014721c
SIOCGETVIFCNT
=
0xc014721b
SIOCGETVLAN
=
0xc020697f
...
...
@@ -807,14 +843,14 @@ const (
SIOCGIFBOND
=
0xc0206947
SIOCGIFBRDADDR
=
0xc0206923
SIOCGIFCAP
=
0xc020695b
SIOCGIFCONF
=
0xc008
6924
SIOCGIFCONF
=
0xc00c
6924
SIOCGIFDEVMTU
=
0xc0206944
SIOCGIFDSTADDR
=
0xc0206922
SIOCGIFFLAGS
=
0xc0206911
SIOCGIFGENERIC
=
0xc020693a
SIOCGIFKPI
=
0xc0206987
SIOCGIFMAC
=
0xc0206982
SIOCGIFMEDIA
=
0xc028
6938
SIOCGIFMEDIA
=
0xc02c
6938
SIOCGIFMETRIC
=
0xc0206917
SIOCGIFMTU
=
0xc0206933
SIOCGIFNETMASK
=
0xc0206925
...
...
@@ -831,8 +867,8 @@ const (
SIOCIFCREATE
=
0xc0206978
SIOCIFCREATE2
=
0xc020697a
SIOCIFDESTROY
=
0x80206979
SIOCRSLVMULTI
=
0xc008
693b
SIOCSDRVSPEC
=
0x801c
697b
SIOCRSLVMULTI
=
0xc010
693b
SIOCSDRVSPEC
=
0x8028
697b
SIOCSETVLAN
=
0x8020697e
SIOCSHIWAT
=
0x80047300
SIOCSIFADDR
=
0x8020690c
...
...
@@ -952,14 +988,14 @@ const (
TIOCCBRK
=
0x2000747a
TIOCCDTR
=
0x20007478
TIOCCONS
=
0x80047462
TIOCDCDTIMESTAMP
=
0x4008
7458
TIOCDCDTIMESTAMP
=
0x4010
7458
TIOCDRAIN
=
0x2000745e
TIOCDSIMICROCODE
=
0x20007455
TIOCEXCL
=
0x2000740d
TIOCEXT
=
0x80047460
TIOCFLUSH
=
0x80047410
TIOCGDRAINWAIT
=
0x40047456
TIOCGETA
=
0x402c
7413
TIOCGETA
=
0x4048
7413
TIOCGETD
=
0x4004741a
TIOCGPGRP
=
0x40047477
TIOCGWINSZ
=
0x40087468
...
...
@@ -1005,9 +1041,9 @@ const (
TIOCSCTTY
=
0x20007461
TIOCSDRAINWAIT
=
0x80047457
TIOCSDTR
=
0x20007479
TIOCSETA
=
0x802c
7414
TIOCSETAF
=
0x802c
7416
TIOCSETAW
=
0x802c
7415
TIOCSETA
=
0x8048
7414
TIOCSETAF
=
0x8048
7416
TIOCSETAW
=
0x8048
7415
TIOCSETD
=
0x8004741b
TIOCSIG
=
0x2000745f
TIOCSPGRP
=
0x80047476
...
...
@@ -1016,7 +1052,7 @@ const (
TIOCSTI
=
0x80017472
TIOCSTOP
=
0x2000746f
TIOCSWINSZ
=
0x80087467
TIOCTIMESTAMP
=
0x4008
7459
TIOCTIMESTAMP
=
0x4010
7459
TIOCUCNTL
=
0x80047466
WCONTINUED
=
0x10
WCOREFLAG
=
0x80
...
...
src/pkg/syscall/zerrors_darwin_amd64.go
View file @
82d06e8f
...
...
@@ -619,6 +619,42 @@ const (
NET_RT_MAXID
=
0xa
NET_RT_STAT
=
0x4
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_ALERT
=
0x20000000
O_APPEND
=
0x8
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment