Merge pull request #9862 from zevv/posix-cmsg
Added CMSG_SPACE and CMSG_LEN macros to posix.nim
This commit is contained in:
commit
88dcad7c01
1 changed files with 6 additions and 0 deletions
|
|
@ -823,6 +823,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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue