Skip to content

Commit

Permalink
epoll: make wait with var input a simple wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
alaviss committed Jan 18, 2024
1 parent ff363fd commit 59fdaf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sys/private/syscall/linux/epoll.nim
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ proc create*(flags: cint): FD {.cdecl, importc: "epoll_create1".}
proc ctl*(epfd: FD, op: CtlOp, fd: handles.FD, event: ptr Event): cint
{.cdecl, importc: "epoll_ctl".}
proc ctl*(epfd: FD, op: CtlOp, fd: handles.FD, event: var Event): cint
{.cdecl, importc: "epoll_ctl".}
{.inline.} =
ctl(epfd, op, fd, addr event)

proc wait*(epfd: FD, events: ptr UncheckedArray[Event], maxevents: cint,
timeout: cint): cint {.cdecl, importc: "epoll_wait".}
Expand Down

0 comments on commit 59fdaf2

Please sign in to comment.