pkg/syscall: add Mkfifo for linux platforms

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5131055
This commit is contained in:
Paul Borman 2011-10-04 13:58:31 -07:00 committed by Brad Fitzpatrick
parent c31f987bd6
commit 0b534bc9c3
1 changed files with 4 additions and 0 deletions

View File

@ -190,6 +190,10 @@ func Sleep(nsec int64) (errno int) {
return err
}
func Mkfifo(path string, mode uint32) (errno int) {
return Mknod(path, mode|S_IFIFO, 0)
}
// For testing: clients can set this flag to force
// creation of IPv6 sockets to return EAFNOSUPPORT.
var SocketDisableIPv6 bool