github.com/telepresenceio/telepresence/v2@v2.20.0-pro.6.0.20240517030216-236ea954e789/pkg/client/logging/stat_linux_test.go (about)

     1  package logging_test
     2  
     3  import (
     4  	"errors"
     5  
     6  	"golang.org/x/sys/unix"
     7  )
     8  
     9  func init() {
    10  	var stat unix.Statx_t
    11  	err := unix.Statx(-1, "/", 0, unix.STATX_BTIME, &stat)
    12  	if err != nil && errors.Is(err, unix.ENOSYS) {
    13  		osHasBTime = false
    14  	}
    15  }