mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-28 02:03:59 +00:00
let InotifyEvent type sizeof-able (#22958)
Since the `InotifyEvent`s are receive through `read()`, user need the
size of the type.
(cherry picked from commit 0f7488e20f)
This commit is contained in:
@@ -14,7 +14,8 @@ when defined(nimPreviewSlimSystem):
|
||||
# Structure describing an inotify event.
|
||||
type
|
||||
InotifyEvent* {.pure, final, importc: "struct inotify_event",
|
||||
header: "<sys/inotify.h>".} = object ## An Inotify event.
|
||||
header: "<sys/inotify.h>",
|
||||
completeStruct.} = object ## An Inotify event.
|
||||
wd* {.importc: "wd".}: FileHandle ## Watch descriptor.
|
||||
mask* {.importc: "mask".}: uint32 ## Watch mask.
|
||||
cookie* {.importc: "cookie".}: uint32 ## Cookie to synchronize two events.
|
||||
|
||||
Reference in New Issue
Block a user