github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/runtime/defs2_linux.go (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  //go:build ignore
     6  
     7  /*
     8   * Input to cgo -cdefs
     9  
    10  GOARCH=386 go tool cgo -cdefs defs2_linux.go >defs_linux_386.h
    11  
    12  The asm header tricks we have to use for Linux on amd64
    13  (see defs.c and defs1.c) don't work here, so this is yet another
    14  file.  Sigh.
    15  */
    16  
    17  package runtime
    18  
    19  import "C"
    20  
    21  const (
    22  	EINTR  = C.EINTR
    23  	EAGAIN = C.EAGAIN
    24  	ENOMEM = C.ENOMEM
    25  
    26  	PROT_NONE  = C.PROT_NONE
    27  	PROT_READ  = C.PROT_READ
    28  	PROT_WRITE = C.PROT_WRITE
    29  	PROT_EXEC  = C.PROT_EXEC
    30  
    31  	MAP_ANON    = C.MAP_ANONYMOUS
    32  	MAP_PRIVATE = C.MAP_PRIVATE
    33  	MAP_FIXED   = C.MAP_FIXED
    34  
    35  	MADV_DONTNEED   = C.MADV_DONTNEED
    36  	MADV_FREE       = C.MADV_FREE
    37  	MADV_HUGEPAGE   = C.MADV_HUGEPAGE
    38  	MADV_NOHUGEPAGE = C.MADV_NOHUGEPAGE
    39  
    40  	SA_RESTART  = C.SA_RESTART
    41  	SA_ONSTACK  = C.SA_ONSTACK
    42  	SA_RESTORER = C.SA_RESTORER
    43  	SA_SIGINFO  = C.SA_SIGINFO
    44  
    45  	SIGHUP    = C.SIGHUP
    46  	SIGINT    = C.SIGINT
    47  	SIGQUIT   = C.SIGQUIT
    48  	SIGILL    = C.SIGILL
    49  	SIGTRAP   = C.SIGTRAP
    50  	SIGABRT   = C.SIGABRT
    51  	SIGBUS    = C.SIGBUS
    52  	SIGFPE    = C.SIGFPE
    53  	SIGKILL   = C.SIGKILL
    54  	SIGUSR1   = C.SIGUSR1
    55  	SIGSEGV   = C.SIGSEGV
    56  	SIGUSR2   = C.SIGUSR2
    57  	SIGPIPE   = C.SIGPIPE
    58  	SIGALRM   = C.SIGALRM
    59  	SIGSTKFLT = C.SIGSTKFLT
    60  	SIGCHLD   = C.SIGCHLD
    61  	SIGCONT   = C.SIGCONT
    62  	SIGSTOP   = C.SIGSTOP
    63  	SIGTSTP   = C.SIGTSTP
    64  	SIGTTIN   = C.SIGTTIN
    65  	SIGTTOU   = C.SIGTTOU
    66  	SIGURG    = C.SIGURG
    67  	SIGXCPU   = C.SIGXCPU
    68  	SIGXFSZ   = C.SIGXFSZ
    69  	SIGVTALRM = C.SIGVTALRM
    70  	SIGPROF   = C.SIGPROF
    71  	SIGWINCH  = C.SIGWINCH
    72  	SIGIO     = C.SIGIO
    73  	SIGPWR    = C.SIGPWR
    74  	SIGSYS    = C.SIGSYS
    75  
    76  	FPE_INTDIV = C.FPE_INTDIV
    77  	FPE_INTOVF = C.FPE_INTOVF
    78  	FPE_FLTDIV = C.FPE_FLTDIV
    79  	FPE_FLTOVF = C.FPE_FLTOVF
    80  	FPE_FLTUND = C.FPE_FLTUND
    81  	FPE_FLTRES = C.FPE_FLTRES
    82  	FPE_FLTINV = C.FPE_FLTINV
    83  	FPE_FLTSUB = C.FPE_FLTSUB
    84  
    85  	BUS_ADRALN = C.BUS_ADRALN
    86  	BUS_ADRERR = C.BUS_ADRERR
    87  	BUS_OBJERR = C.BUS_OBJERR
    88  
    89  	SEGV_MAPERR = C.SEGV_MAPERR
    90  	SEGV_ACCERR = C.SEGV_ACCERR
    91  
    92  	ITIMER_REAL    = C.ITIMER_REAL
    93  	ITIMER_VIRTUAL = C.ITIMER_VIRTUAL
    94  	ITIMER_PROF    = C.ITIMER_PROF
    95  
    96  	O_RDONLY  = C.O_RDONLY
    97  	O_CLOEXEC = C.O_CLOEXEC
    98  )
    99  
   100  type Fpreg C.struct__fpreg
   101  type Fpxreg C.struct__fpxreg
   102  type Xmmreg C.struct__xmmreg
   103  type Fpstate C.struct__fpstate
   104  type Timespec C.struct_timespec
   105  type Timeval C.struct_timeval
   106  type Sigaction C.struct_kernel_sigaction
   107  type Siginfo C.siginfo_t
   108  type StackT C.stack_t
   109  type Sigcontext C.struct_sigcontext
   110  type Ucontext C.struct_ucontext
   111  type Itimerval C.struct_itimerval
   112  type EpollEvent C.struct_epoll_event