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