-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make lib/wsyscall compile for Windoze.
- Loading branch information
Showing
4 changed files
with
78 additions
and
12 deletions.
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
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,40 @@ | ||
package wsyscall | ||
|
||
import "syscall" | ||
|
||
func fallocate(fd int, mode uint32, off int64, len int64) error { | ||
return syscall.ENOTSUP | ||
} | ||
|
||
func lstat(path string, statbuf *Stat_t) error { | ||
return syscall.ENOTSUP | ||
} | ||
|
||
func mount(source string, target string, fstype string, flags uintptr, | ||
data string) error { | ||
return syscall.ENOTSUP | ||
} | ||
|
||
func getrusage(who int, rusage *Rusage) error { | ||
return syscall.ENOTSUP | ||
} | ||
|
||
func setAllGid(gid int) error { | ||
return syscall.ENOTSUP | ||
} | ||
|
||
func setAllUid(uid int) error { | ||
return syscall.ENOTSUP | ||
} | ||
|
||
func setNetNamespace(namespaceFd int) error { | ||
return syscall.ENOTSUP | ||
} | ||
|
||
func unshareNetNamespace() (int, int, error) { | ||
return -1, -1, syscall.ENOTSUP | ||
} | ||
|
||
func unshareMountNamespace() error { | ||
return syscall.ENOTSUP | ||
} |