github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/runtime/defs_aix.go (about)

     1  // Copyright 2018 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 -godefs
     9  GOARCH=ppc64 go tool cgo -godefs defs_aix.go > defs_aix_ppc64_tmp.go
    10  
    11  This is only a helper to create defs_aix_ppc64.go
    12  Go runtime functions require the "linux" name of fields (ss_sp, si_addr, etc)
    13  However, AIX structures don't provide such names and must be modified.
    14  
    15  TODO(aix): create a script to automatise defs_aix creation.
    16  
    17  Modifications made:
    18   - sigset replaced by a [4]uint64 array
    19   - add sigset_all variable
    20   - siginfo.si_addr uintptr instead of *byte
    21   - add (*timeval) set_usec
    22   - stackt.ss_sp uintptr instead of *byte
    23   - stackt.ss_size uintptr instead of uint64
    24   - sigcontext.sc_jmpbuf context64 instead of jumbuf
    25   - ucontext.__extctx is a uintptr because we don't need extctx struct
    26   - ucontext.uc_mcontext: replace jumbuf structure by context64 structure
    27   - sigaction.sa_handler represents union field as both are uintptr
    28   - tstate.* replace *byte by uintptr
    29  
    30  
    31  */
    32  
    33  package runtime