github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/src/pkg/runtime/os_freebsd.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 #define SS_DISABLE 4 6 7 int32 runtime·thr_new(ThrParam*, int32); 8 void runtime·sigpanic(void); 9 void runtime·sigaltstack(Sigaltstack*, Sigaltstack*); 10 struct sigaction; 11 void runtime·sigaction(int32, struct sigaction*, struct sigaction*); 12 void runtime·sigprocmask(Sigset *, Sigset *); 13 void runtime·setitimer(int32, Itimerval*, Itimerval*); 14 int32 runtime·sysctl(uint32*, uint32, byte*, uintptr*, byte*, uintptr); 15 16 17 #define NSIG 33 18 #define SI_USER 0x10001 19 20 #define RLIMIT_AS 10 21 typedef struct Rlimit Rlimit; 22 struct Rlimit { 23 int64 rlim_cur; 24 int64 rlim_max; 25 }; 26 int32 runtime·getrlimit(int32, Rlimit*);