From 47f8a3d89ad0d1478246bf62140eb4fbfe83ac72 Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Thu, 20 Jul 2017 15:06:24 +0200 Subject: Moved remaining platform dependent UAPI code --- src/uapi_linux.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/uapi_linux.go') diff --git a/src/uapi_linux.go b/src/uapi_linux.go index ee6ee0b..1055dca 100644 --- a/src/uapi_linux.go +++ b/src/uapi_linux.go @@ -2,11 +2,20 @@ package main import ( "fmt" + "golang.org/x/sys/unix" "net" "os" "time" ) +const ( + ipcErrorIO = int64(unix.EIO) + ipcErrorNoPeer = int64(unix.EPROTO) + ipcErrorNoKeyValue = int64(unix.EPROTO) + ipcErrorInvalidKey = int64(unix.EPROTO) + ipcErrorInvalidValue = int64(unix.EPROTO) +) + /* TODO: * This code can be improved by using fsnotify once: * https://github.com/fsnotify/fsnotify/pull/205 -- cgit v1.2.3