Remove deprecated posix proc (#19774)

* Remove deprecated posix proc that takes wrong argument types

* Remove deprecated posix proc that takes wrong argument types
This commit is contained in:
Juan Carlos
2022-05-08 06:56:46 -03:00
committed by GitHub
parent 61c1142667
commit b2b878f4d6
2 changed files with 1 additions and 11 deletions

View File

@@ -47,7 +47,7 @@ becomes an alias for `addr`.
- Removed deprecated `math.c_frexp`.
- Removed deprecated ``` httpcore.`==` ```.
- Removed deprecated `std/dom_extensions`.
- Removed deprecated `std/posix.CMSG_SPACE` and `std/posix.CMSG_LEN` that takes wrong argument types.
- Remove deprecated `osproc.poDemon`, symbol with typo.
- Deprecated `selfExe` for Nimscript.

View File

@@ -894,19 +894,9 @@ proc CMSG_NXTHDR*(mhdr: ptr Tmsghdr, cmsg: ptr Tcmsghdr): ptr Tcmsghdr {.
proc CMSG_FIRSTHDR*(mhdr: ptr Tmsghdr): ptr Tcmsghdr {.
importc, header: "<sys/socket.h>".}
{.push warning[deprecated]: off.}
proc CMSG_SPACE*(len: csize): csize {.
importc, header: "<sys/socket.h>", deprecated: "argument `len` should be of type `csize_t`".}
{.pop.}
proc CMSG_SPACE*(len: csize_t): csize_t {.
importc, header: "<sys/socket.h>".}
{.push warning[deprecated]: off.}
proc CMSG_LEN*(len: csize): csize {.
importc, header: "<sys/socket.h>", deprecated: "argument `len` should be of type `csize_t`".}
{.pop.}
proc CMSG_LEN*(len: csize_t): csize_t {.
importc, header: "<sys/socket.h>".}