github.com/zhouyu0/docker-note@v0.0.0-20190722021225-b8d3825084db/pkg/system/xattrs_unsupported.go (about)

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