Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(769)

Delta Between Two Patch Sets: src/pkg/runtime/os_darwin.h

Issue 7565048: code review 7565048: runtime: refactor os-specific code (Closed)
Left Patch Set: Created 12 years ago
Right Patch Set: diff -r 74da57c3abfe https://go.googlecode.com/hg Created 12 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/cmd/dist/build.c ('k') | src/pkg/runtime/os_darwin.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 #define SIG_DFL ((void*)0)
6 #define SIG_IGN ((void*)1)
7 #define SIGHUP 1
8 #define SS_DISABLE 4 5 #define SS_DISABLE 4
9 6
10 int32 runtime·bsdthread_create(void*, M*, G*, void(*)(void)); 7 int32 runtime·bsdthread_create(void*, M*, G*, void(*)(void));
11 int32 runtime·bsdthread_register(void); 8 int32 runtime·bsdthread_register(void);
12 int32 runtime·mach_msg_trap(MachHeader*, int32, uint32, uint32, uint32, uint32 , uint32); 9 int32 runtime·mach_msg_trap(MachHeader*, int32, uint32, uint32, uint32, uint32 , uint32);
13 uint32 runtime·mach_reply_port(void); 10 uint32 runtime·mach_reply_port(void);
14 int32 runtime·mach_semacquire(uint32, int64); 11 int32 runtime·mach_semacquire(uint32, int64);
15 uint32 runtime·mach_semcreate(void); 12 uint32 runtime·mach_semcreate(void);
16 void runtime·mach_semdestroy(uint32); 13 void runtime·mach_semdestroy(uint32);
17 void runtime·mach_semrelease(uint32); 14 void runtime·mach_semrelease(uint32);
18 void runtime·mach_semreset(uint32); 15 void runtime·mach_semreset(uint32);
19 uint32 runtime·mach_task_self(void); 16 uint32 runtime·mach_task_self(void);
20 uint32 runtime·mach_task_self(void); 17 uint32 runtime·mach_task_self(void);
21 uint32 runtime·mach_thread_self(void); 18 uint32 runtime·mach_thread_self(void);
22 uint32 runtime·mach_thread_self(void); 19 uint32 runtime·mach_thread_self(void);
23 int32 runtime·sysctl(uint32*, uint32, byte*, uintptr*, byte*, uintptr); 20 int32 runtime·sysctl(uint32*, uint32, byte*, uintptr*, byte*, uintptr);
24 21
25 typedef uint32 Sigset; 22 typedef uint32 Sigset;
26 void runtime·sigprocmask(int32, Sigset*, Sigset*); 23 void runtime·sigprocmask(int32, Sigset*, Sigset*);
27 24
28 struct Sigaction; 25 struct Sigaction;
29 void runtime·sigaction(uintptr, struct Sigaction*, struct Sigaction*); 26 void runtime·sigaction(uintptr, struct Sigaction*, struct Sigaction*);
30 void runtime·setsig(int32, void(*)(int32, Siginfo*, void*, G*), bool);
31 void runtime·sighandler(int32 sig, Siginfo *info, void *context, G *gp);
32 27
33 struct StackT; 28 struct StackT;
34 void runtime·sigaltstack(struct StackT*, struct StackT*); 29 void runtime·sigaltstack(struct StackT*, struct StackT*);
35 void runtime·sigtramp(void); 30 void runtime·sigtramp(void);
36 void runtime·sigpanic(void); 31 void runtime·sigpanic(void);
37 void runtime·setitimer(int32, Itimerval*, Itimerval*); 32 void runtime·setitimer(int32, Itimerval*, Itimerval*);
38 33
39 void runtime·raisesigpipe(void);
40 34
41 #define NSIG 32 35 #define NSIG 32
42 #define SI_USER 0 /* empirically true, but not what headers say */ 36 #define SI_USER 0 /* empirically true, but not what headers say */
43 #define SIG_BLOCK 1 37 #define SIG_BLOCK 1
44 #define SIG_UNBLOCK 2 38 #define SIG_UNBLOCK 2
45 #define SIG_SETMASK 3 39 #define SIG_SETMASK 3
46 40
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b