mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
Added CMSG_SPACE and CMSG_LEN macros to posix.nim
This commit is contained in:
@@ -824,6 +824,12 @@ proc CMSG_NXTHDR*(mhdr: ptr Tmsghdr, cmsg: ptr Tcmsghdr): ptr Tcmsghdr {.
|
||||
proc CMSG_FIRSTHDR*(mhdr: ptr Tmsghdr): ptr Tcmsghdr {.
|
||||
importc, header: "<sys/socket.h>".}
|
||||
|
||||
proc CMSG_SPACE*(len: csize): csize {.
|
||||
importc, header: "<sys/socket.h>".}
|
||||
|
||||
proc CMSG_LEN*(len: csize): csize {.
|
||||
importc, header: "<sys/socket.h>".}
|
||||
|
||||
const
|
||||
INVALID_SOCKET* = SocketHandle(-1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user