stat_other.mx raw

   1  //go:build baremetal || (moxie.wasm && !wasip1 && !wasip2) || nintendoswitch
   2  
   3  // Copyright 2016 The Go Authors. All rights reserved.
   4  // Use of this source code is governed by a BSD-style
   5  // license that can be found in the LICENSE file.
   6  
   7  package os
   8  
   9  // Stat is a stub, not yet implemented
  10  func (f *File) Stat() (FileInfo, error) {
  11  	return nil, ErrNotImplemented
  12  }
  13  
  14  // statNolog stats a file with no test logging.
  15  func statNolog(name string) (FileInfo, error) {
  16  	return nil, &PathError{Op: "stat", Path: name, Err: ErrNotImplemented}
  17  }
  18  
  19  // lstatNolog lstats a file with no test logging.
  20  func lstatNolog(name string) (FileInfo, error) {
  21  	return nil, &PathError{Op: "lstat", Path: name, Err: ErrNotImplemented}
  22  }
  23