github.com/rohankumardubey/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/src/pkg/runtime/os_darwin.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 4
     6  
     7  typedef byte* kevent_udata;
     8  
     9  int32	runtime·bsdthread_create(void*, M*, G*, void(*)(void));
    10  int32	runtime·bsdthread_register(void);
    11  int32	runtime·mach_msg_trap(MachHeader*, int32, uint32, uint32, uint32, uint32, uint32);
    12  uint32	runtime·mach_reply_port(void);
    13  int32	runtime·mach_semacquire(uint32, int64);
    14  uint32	runtime·mach_semcreate(void);
    15  void	runtime·mach_semdestroy(uint32);
    16  void	runtime·mach_semrelease(uint32);
    17  void	runtime·mach_semreset(uint32);
    18  uint32	runtime·mach_task_self(void);
    19  uint32	runtime·mach_task_self(void);
    20  uint32	runtime·mach_thread_self(void);
    21  uint32	runtime·mach_thread_self(void);
    22  int32	runtime·sysctl(uint32*, uint32, byte*, uintptr*, byte*, uintptr);
    23  
    24  typedef uint32 Sigset;
    25  void	runtime·sigprocmask(int32, Sigset*, Sigset*);
    26  
    27  struct Sigaction;
    28  void	runtime·sigaction(uintptr, struct Sigaction*, struct Sigaction*);
    29  
    30  struct StackT;
    31  void	runtime·sigaltstack(struct StackT*, struct StackT*);
    32  void	runtime·sigtramp(void);
    33  void	runtime·sigpanic(void);
    34  void	runtime·setitimer(int32, Itimerval*, Itimerval*);
    35  
    36  
    37  #define	NSIG 32
    38  #define	SI_USER	0  /* empirically true, but not what headers say */
    39  #define	SIG_BLOCK 1
    40  #define	SIG_UNBLOCK 2
    41  #define	SIG_SETMASK 3
    42