-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix windows and unsupported platform builds with dummy values (#40)
- Loading branch information
1 parent
7782c2d
commit dd870b5
Showing
3 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// +build !linux,!freebsd,!netbsd,!darwin | ||
|
||
package xattr | ||
|
||
import ( | ||
"os" | ||
) | ||
|
||
func getxattr(path string, name string, data []byte) (int, error) { | ||
return 0, nil | ||
} | ||
|
||
func lgetxattr(path string, name string, data []byte) (int, error) { | ||
return 0, nil | ||
} | ||
|
||
func fgetxattr(f *os.File, name string, data []byte) (int, error) { | ||
return 0, nil | ||
} | ||
|
||
func setxattr(path string, name string, data []byte, flags int) error { | ||
return nil | ||
} | ||
|
||
func lsetxattr(path string, name string, data []byte, flags int) error { | ||
return nil | ||
} | ||
|
||
func fsetxattr(f *os.File, name string, data []byte, flags int) error { | ||
return nil | ||
} | ||
|
||
func removexattr(path string, name string) error { | ||
return nil | ||
} | ||
|
||
func lremovexattr(path string, name string) error { | ||
return nil | ||
} | ||
|
||
func fremovexattr(f *os.File, name string) error { | ||
return nil | ||
} | ||
|
||
func listxattr(path string, data []byte) (int, error) { | ||
return 0, nil | ||
} | ||
|
||
func llistxattr(path string, data []byte) (int, error) { | ||
return 0, nil | ||
} | ||
|
||
func flistxattr(f *os.File, data []byte) (int, error) { | ||
return 0, nil | ||
} | ||
|
||
// dummy | ||
func stringsFromByteSlice(buf []byte) (result []string) { | ||
return []string{} | ||
} |