github.com/razvanm/vanadium-go-1.3@v0.0.0-20160721203343-4a65068e5915/src/runtime/os_dragonfly.h (about) 1 // Copyright 2011 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 6 typedef byte* kevent_udata; 7 8 int32 runtime·lwp_create(Lwpparams*); 9 void runtime·sigpanic(void); 10 void runtime·sigaltstack(SigaltstackT*, SigaltstackT*); 11 struct sigaction; 12 void runtime·sigaction(int32, struct sigaction*, struct sigaction*); 13 void runtime·sigprocmask(Sigset *, Sigset *); 14 void runtime·unblocksignals(void); 15 void runtime·setitimer(int32, Itimerval*, Itimerval*); 16 int32 runtime·sysctl(uint32*, uint32, byte*, uintptr*, byte*, uintptr); 17 18 enum { 19 NSIG = 33, 20 SI_USER = 0x10001, 21 SS_DISABLE = 4, 22 RLIMIT_AS = 10, 23 }; 24 25 typedef struct Rlimit Rlimit; 26 struct Rlimit { 27 int64 rlim_cur; 28 int64 rlim_max; 29 }; 30 int32 runtime·getrlimit(int32, Rlimit*);