Source file src/syscall/badlinkname_unix.go

     1  // Copyright 2024 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 aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
     6  
     7  package syscall
     8  
     9  import _ "unsafe"
    10  
    11  // As of Go 1.22, the symbols below are found to be pulled via
    12  // linkname in the wild. We provide a push linkname here, to
    13  // keep them accessible with pull linknames.
    14  // This may change in the future. Please do not depend on them
    15  // in new code.
    16  
    17  // golang.org/x/sys linknames getsockopt.
    18  // Do not remove or change the type signature.
    19  //
    20  //go:linkname getsockopt
    21  
    22  //go:linkname setsockopt
    23  

View as plain text