github.com/go-darwin/sys@v0.0.0-20220510002607-68fd01f054ca/testdata/testprog/syscalls_none.go (about)

     1  // Copyright 2017 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 !linux
     6  // +build !linux
     7  
     8  package main
     9  
    10  func gettid() int {
    11  	return 0
    12  }
    13  
    14  func tidExists(tid int) (exists, supported bool) {
    15  	return false, false
    16  }
    17  
    18  func getcwd() (string, error) {
    19  	return "", nil
    20  }
    21  
    22  func unshareFs() error {
    23  	return nil
    24  }
    25  
    26  func chdir(path string) error {
    27  	return nil
    28  }