github.com/rkt/rkt@v1.30.1-0.20200224141603-171c416fac02/pkg/fileutil/fileutil_unsupported.go (about)

     1  // Copyright 2014 Red Hat, Inc
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // +build !linux
    16  
    17  package fileutil
    18  
    19  import (
    20  	"os"
    21  	"syscall"
    22  )
    23  
    24  func hasHardLinks(fi os.FileInfo) bool {
    25  	return false
    26  }
    27  
    28  func getInode(fi os.FileInfo) uint64 {
    29  	return 0
    30  }
    31  
    32  // These functions are from github.com/docker/docker/pkg/system
    33  
    34  func LUtimesNano(path string, ts []syscall.Timespec) error {
    35  	return ErrNotSupportedPlatform
    36  }
    37  
    38  func Lgetxattr(path string, attr string) ([]byte, error) {
    39  	return nil, ErrNotSupportedPlatform
    40  }
    41  
    42  func Lsetxattr(path string, attr string, data []byte, flags int) error {
    43  	return ErrNotSupportedPlatform
    44  }