export fswatcher to a separate library

This commit is contained in:
Aine
2023-04-09 22:19:52 +03:00
parent 321060d2d6
commit e8ade4173f
135 changed files with 1212 additions and 877 deletions

View File

@@ -20,3 +20,11 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
}
return
}
func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(uintptr(arg)))
if r0 == -1 && er != nil {
err = er
}
return
}