github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/engine/pkg/system/xattrs_unsupported.go (about)

     1  //go:build !linux
     2  // +build !linux
     3  
     4  package system // import "github.com/docker/docker/pkg/system"
     5  
     6  // Lgetxattr is not supported on platforms other than linux.
     7  func Lgetxattr(path string, attr string) ([]byte, error) {
     8  	return nil, ErrNotSupportedPlatform
     9  }
    10  
    11  // Lsetxattr is not supported on platforms other than linux.
    12  func Lsetxattr(path string, attr string, data []byte, flags int) error {
    13  	return ErrNotSupportedPlatform
    14  }