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
f752e909
Commit
f752e909
authored
Jul 14, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
darwin ptrace constants
R=austin DELTA=42 (37 added, 5 deleted, 0 changed) OCL=31618 CL=31633
parent
c105de74
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
5 deletions
+37
-5
types_darwin.c
src/pkg/syscall/types_darwin.c
+15
-1
ztypes_darwin_386.go
src/pkg/syscall/ztypes_darwin_386.go
+11
-2
ztypes_darwin_amd64.go
src/pkg/syscall/ztypes_darwin_amd64.go
+11
-2
No files found.
src/pkg/syscall/types_darwin.c
View file @
f752e909
...
@@ -45,6 +45,13 @@ enum
...
@@ -45,6 +45,13 @@ enum
};
};
// Basic types
typedef
short
$
_C_short
;
typedef
int
$
_C_int
;
typedef
long
$
_C_long
;
typedef
long
long
$
_C_long_long
;
// Time
// Time
typedef
struct
timespec
$
Timespec
;
typedef
struct
timespec
$
Timespec
;
...
@@ -55,7 +62,6 @@ typedef struct timeval $Timeval;
...
@@ -55,7 +62,6 @@ typedef struct timeval $Timeval;
typedef
struct
rusage
$
Rusage
;
typedef
struct
rusage
$
Rusage
;
typedef
struct
rlimit
$
Rlimit
;
typedef
struct
rlimit
$
Rlimit
;
typedef
int
$
_C_int
;
typedef
gid_t
$
_Gid_t
;
typedef
gid_t
$
_Gid_t
;
// Files
// Files
...
@@ -185,6 +191,14 @@ typedef struct sockaddr_any $RawSockaddrAny;
...
@@ -185,6 +191,14 @@ typedef struct sockaddr_any $RawSockaddrAny;
typedef
socklen_t
$
_Socklen
;
typedef
socklen_t
$
_Socklen
;
typedef
struct
linger
$
Linger
;
typedef
struct
linger
$
Linger
;
// Ptrace requests
enum
{
$
_PTRACE_TRACEME
=
PT_TRACE_ME
,
$
_PTRACE_CONT
=
PT_CONTINUE
,
$
_PTRACE_KILL
=
PT_KILL
,
};
// Events (kqueue, kevent)
// Events (kqueue, kevent)
enum
{
enum
{
...
...
src/pkg/syscall/ztypes_darwin_386.go
View file @
f752e909
...
@@ -78,6 +78,9 @@ const (
...
@@ -78,6 +78,9 @@ const (
SizeofSockaddrInet6
=
0x1c
;
SizeofSockaddrInet6
=
0x1c
;
SizeofSockaddrAny
=
0x1c
;
SizeofSockaddrAny
=
0x1c
;
SizeofSockaddrUnix
=
0x6a
;
SizeofSockaddrUnix
=
0x6a
;
_PTRACE_TRACEME
=
0
;
_PTRACE_CONT
=
0x7
;
_PTRACE_KILL
=
0x8
;
EVFILT_READ
=
-
0x1
;
EVFILT_READ
=
-
0x1
;
EVFILT_WRITE
=
-
0x2
;
EVFILT_WRITE
=
-
0x2
;
EVFILT_AIO
=
-
0x3
;
EVFILT_AIO
=
-
0x3
;
...
@@ -103,6 +106,14 @@ const (
...
@@ -103,6 +106,14 @@ const (
// Types
// Types
type
_C_short
int16
type
_C_int
int32
type
_C_long
int32
type
_C_long_long
int64
type
Timespec
struct
{
type
Timespec
struct
{
Sec
int32
;
Sec
int32
;
Nsec
int32
;
Nsec
int32
;
...
@@ -137,8 +148,6 @@ type Rlimit struct {
...
@@ -137,8 +148,6 @@ type Rlimit struct {
Max
uint64
;
Max
uint64
;
}
}
type
_C_int
int32
type
_Gid_t
uint32
type
_Gid_t
uint32
type
Stat_t
struct
{
type
Stat_t
struct
{
...
...
src/pkg/syscall/ztypes_darwin_amd64.go
View file @
f752e909
...
@@ -78,6 +78,9 @@ const (
...
@@ -78,6 +78,9 @@ const (
SizeofSockaddrInet6
=
0x1c
;
SizeofSockaddrInet6
=
0x1c
;
SizeofSockaddrAny
=
0x1c
;
SizeofSockaddrAny
=
0x1c
;
SizeofSockaddrUnix
=
0x6a
;
SizeofSockaddrUnix
=
0x6a
;
_PTRACE_TRACEME
=
0
;
_PTRACE_CONT
=
0x7
;
_PTRACE_KILL
=
0x8
;
EVFILT_READ
=
-
0x1
;
EVFILT_READ
=
-
0x1
;
EVFILT_WRITE
=
-
0x2
;
EVFILT_WRITE
=
-
0x2
;
EVFILT_AIO
=
-
0x3
;
EVFILT_AIO
=
-
0x3
;
...
@@ -103,6 +106,14 @@ const (
...
@@ -103,6 +106,14 @@ const (
// Types
// Types
type
_C_short
int16
type
_C_int
int32
type
_C_long
int64
type
_C_long_long
int64
type
Timespec
struct
{
type
Timespec
struct
{
Sec
int64
;
Sec
int64
;
Nsec
int64
;
Nsec
int64
;
...
@@ -138,8 +149,6 @@ type Rlimit struct {
...
@@ -138,8 +149,6 @@ type Rlimit struct {
Max
uint64
;
Max
uint64
;
}
}
type
_C_int
int32
type
_Gid_t
uint32
type
_Gid_t
uint32
type
Stat_t
struct
{
type
Stat_t
struct
{
...
...
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