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:
Derek
2023-11-18 23:21:01 +08:00
committed by narimiran
parent 47f1ab7b97
commit 5c4c8c44dc

View File

@@ -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.