2011-12-12 16:10:11 -07:00
|
|
|
// Copyright 2010 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2012-04-10 05:57:05 -06:00
|
|
|
|
2013-08-16 21:11:29 -06:00
|
|
|
typedef byte* kevent_udata;
|
|
|
|
|
2011-12-12 16:10:11 -07:00
|
|
|
struct sigaction;
|
|
|
|
|
|
|
|
void runtime·sigpanic(void);
|
2012-04-10 05:57:05 -06:00
|
|
|
|
|
|
|
void runtime·setitimer(int32, Itimerval*, Itimerval*);
|
2011-12-12 16:10:11 -07:00
|
|
|
void runtime·sigaction(int32, struct sigaction*, struct sigaction*);
|
2014-08-29 17:11:05 -06:00
|
|
|
void runtime·sigaltstack(SigaltstackT*, SigaltstackT*);
|
2012-04-10 05:57:05 -06:00
|
|
|
Sigset runtime·sigprocmask(int32, Sigset);
|
2013-12-19 18:45:05 -07:00
|
|
|
void runtime·unblocksignals(void);
|
2011-12-12 16:10:11 -07:00
|
|
|
int32 runtime·sysctl(uint32*, uint32, byte*, uintptr*, byte*, uintptr);
|
|
|
|
|
2014-09-04 11:51:12 -06:00
|
|
|
enum {
|
|
|
|
SS_DISABLE = 4,
|
|
|
|
SIG_BLOCK = 1,
|
|
|
|
SIG_UNBLOCK = 2,
|
|
|
|
SIG_SETMASK = 3,
|
|
|
|
NSIG = 33,
|
|
|
|
SI_USER = 0,
|
|
|
|
};
|