diff options
author | Ico Doornekamp <ico@pruts.nl> | 2018-12-04 21:16:15 +0100 |
---|---|---|
committer | Ico Doornekamp <ico@pruts.nl> | 2018-12-04 21:17:22 +0100 |
commit | c37fdbf843124406ad70185105ab0396867a06d2 (patch) | |
tree | 97fe8e750a44988ed893572d21ab81a50584ccc3 /lib/posix | |
parent | f6c5c636bb1a1f4e1301ae0ba5a8afecef439132 (diff) | |
download | Nim-c37fdbf843124406ad70185105ab0396867a06d2.tar.gz |
Added CMSG_SPACE and CMSG_LEN macros to posix.nim
Diffstat (limited to 'lib/posix')
-rw-r--r-- | lib/posix/posix.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index fa589e905..3e2e29e74 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -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) |