Source file src/cmd/internal/osinfo/os_syscall.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 || linux
     6  
     7  // Supporting definitions for os_uname.go on AIX and Linux.
     8  
     9  package osinfo
    10  
    11  import "syscall"
    12  
    13  type utsname = syscall.Utsname
    14  
    15  func uname(buf *utsname) error {
    16  	return syscall.Uname(buf)
    17  }
    18  

View as plain text