From 7269d255ce7206376b328caaf376d4f875acfd1b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 8 Sep 2015 20:40:10 -0600 Subject: I am dumb, fix inotify bindings --- inotify/bits.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'inotify/bits.go') diff --git a/inotify/bits.go b/inotify/bits.go index 9162435..432933c 100644 --- a/inotify/bits.go +++ b/inotify/bits.go @@ -1,7 +1,5 @@ package inotify -import "sync/atomic" - const ( // Flags for the parameter of InotifyInit1(). // These, oddly, appear to be 24-bit numbers. @@ -11,15 +9,8 @@ const ( // Logically, Fd and Wd should be 'int', not 'int64', to match the OS. // But, because there's no 'sync/atomic.SwapInt', we cast up to int64. -type Wd int64 type Fd int64 - -func swapFd(addr *Fd, new Fd) (old Fd) { - return Fd(atomic.SwapInt64((*int64)(addr), int64(new))) -} -func loadFd(addr *Fd) Fd { - return Fd(atomic.LoadInt64((*int64)(addr))) -} +type Wd int64 type Mask uint32 const ( -- cgit v1.2.3