]> Cypherpunks repositories - gostls13.git/commitdiff
pkg/syscall: add Mkfifo for linux platforms
authorPaul Borman <borman@google.com>
Tue, 4 Oct 2011 20:58:31 +0000 (13:58 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 4 Oct 2011 20:58:31 +0000 (13:58 -0700)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5131055

src/pkg/syscall/syscall_linux.go

index d4eb1bf9231cc13ac9f9794d960fc34633888ec6..715561fd7a1c375cea428a606f8da93a0fde9d5a 100644 (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