github.com/spotify/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/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 typedef byte* kevent_udata; 8 9 int32 runtime·thr_new(ThrParam*, int32); 10 void runtime·sigpanic(void); 11 void runtime·sigaltstack(Sigaltstack*, Sigaltstack*); 12 struct sigaction; 13 void runtime·sigaction(int32, struct sigaction*, struct sigaction*); 14 void runtime·sigprocmask(Sigset *, Sigset *); 15 void runtime·setitimer(int32, Itimerval*, Itimerval*); 16 int32 runtime·sysctl(uint32*, uint32, byte*, uintptr*, byte*, uintptr); 17 18 19 #define NSIG 33 20 #define SI_USER 0x10001 21 22 #define RLIMIT_AS 10 23 typedef struct Rlimit Rlimit; 24 struct Rlimit { 25 int64 rlim_cur; 26 int64 rlim_max; 27 }; 28 int32 runtime·getrlimit(int32, Rlimit*);