github.com/spotify/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/src/pkg/runtime/os_linux.h (about)

     1  // Copyright 2009 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 2
     6  
     7  // Linux-specific system calls
     8  int32	runtime·futex(uint32*, int32, uint32, Timespec*, uint32*, uint32);
     9  int32	runtime·clone(int32, void*, M*, G*, void(*)(void));
    10  
    11  struct Sigaction;
    12  int32	runtime·rt_sigaction(uintptr, struct Sigaction*, void*, uintptr);
    13  
    14  void	runtime·sigaltstack(Sigaltstack*, Sigaltstack*);
    15  void	runtime·sigpanic(void);
    16  void runtime·setitimer(int32, Itimerval*, Itimerval*);
    17  
    18  
    19  #define	NSIG	65
    20  #define	SI_USER 0
    21  
    22  // It's hard to tease out exactly how big a Sigset is, but
    23  // rt_sigprocmask crashes if we get it wrong, so if binaries
    24  // are running, this is right.
    25  typedef struct Sigset Sigset;
    26  struct Sigset
    27  {
    28  	uint32 mask[2];
    29  };
    30  void	runtime·rtsigprocmask(int32, Sigset*, Sigset*, int32);
    31  #define SIG_SETMASK 2
    32  
    33  #define RLIMIT_AS 9
    34  typedef struct Rlimit Rlimit;
    35  struct Rlimit {
    36  	uintptr	rlim_cur;
    37  	uintptr	rlim_max;
    38  };
    39  int32	runtime·getrlimit(int32, Rlimit*);