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
commit b2b878f4d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 `math.c_frexp`.
- Removed deprecated ``` httpcore.`==` ```. - Removed deprecated ``` httpcore.`==` ```.
- Removed deprecated `std/dom_extensions`. - 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. - Remove deprecated `osproc.poDemon`, symbol with typo.
- Deprecated `selfExe` for Nimscript. - 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 {. proc CMSG_FIRSTHDR*(mhdr: ptr Tmsghdr): ptr Tcmsghdr {.
importc, header: "<sys/socket.h>".} 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 {. proc CMSG_SPACE*(len: csize_t): csize_t {.
importc, header: "<sys/socket.h>".} 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 {. proc CMSG_LEN*(len: csize_t): csize_t {.
importc, header: "<sys/socket.h>".} importc, header: "<sys/socket.h>".}