removes deprecated T/P types
This commit is contained in:
parent
4233046e3f
commit
3f6168b337
64 changed files with 43 additions and 276 deletions
|
|
@ -19,7 +19,6 @@ type
|
|||
cookie*{.importc: "cookie".}: uint32 # Cookie to synchronize two events.
|
||||
len*{.importc: "len".}: uint32 # Length (including NULs) of name.
|
||||
name*{.importc: "name".}: char # Name.
|
||||
{.deprecated: [Tinotify_event: InotifyEvent].}
|
||||
|
||||
# Supported events suitable for MASK parameter of INOTIFY_ADD_WATCH.
|
||||
const
|
||||
|
|
|
|||
|
|
@ -100,7 +100,6 @@ else:
|
|||
include posix_other
|
||||
|
||||
# There used to be this name in posix.nim a long time ago, not sure why!
|
||||
{.deprecated: [cSIG_HOLD: SIG_HOLD].}
|
||||
|
||||
when StatHasNanoseconds:
|
||||
proc st_atime*(s: Stat): Time {.inline.} =
|
||||
|
|
|
|||
|
|
@ -27,13 +27,10 @@ type
|
|||
DIR* {.importc: "DIR", header: "<dirent.h>",
|
||||
incompleteStruct.} = object
|
||||
## A type representing a directory stream.
|
||||
{.deprecated: [TDIR: DIR].}
|
||||
|
||||
type
|
||||
SocketHandle* = distinct cint # The type used to represent socket descriptors
|
||||
|
||||
{.deprecated: [TSocketHandle: SocketHandle].}
|
||||
|
||||
# not detected by detect.nim, guarded by #ifdef __USE_UNIX98 in glibc
|
||||
const SIG_HOLD* = cast[SigHandler](2)
|
||||
|
||||
|
|
@ -375,29 +372,6 @@ type
|
|||
## context is active.
|
||||
# todo fpregds_mem
|
||||
|
||||
{.deprecated: [TOff: Off, TPid: Pid, TGid: Gid, TMode: Mode, TDev: Dev,
|
||||
TNlink: Nlink, TStack: Stack, TGroup: Group, TMqd: Mqd,
|
||||
TPasswd: Passwd, TClock: Clock, TClockId: ClockId, TKey: Key,
|
||||
TSem: Sem, Tpthread_attr: PthreadAttr, Ttimespec: Timespec,
|
||||
Tdirent: Dirent, TGlob: Glob,
|
||||
# Tflock: Flock, # Naming conflict if we drop the `T`
|
||||
Ticonv: Iconv, Tlconv: Lconv, TMqAttr: MqAttr, Tblkcnt: Blkcnt,
|
||||
Tblksize: Blksize, Tfsblkcnt: Fsblkcnt, Tfsfilcnt: Fsfilcnt,
|
||||
Tid: Id, Tino: Ino, Tpthread_barrier: Pthread_barrier,
|
||||
Tpthread_barrierattr: Pthread_barrierattr, Tpthread_cond: Pthread_cond,
|
||||
TPthread_condattr: Pthread_condattr, Tpthread_key: Pthread_key,
|
||||
Tpthread_mutex: Pthread_mutex, Tpthread_mutexattr: Pthread_mutexattr,
|
||||
Tpthread_once: Pthread_once, Tpthread_rwlock: Pthread_rwlock,
|
||||
Tpthread_rwlockattr: Pthread_rwlockattr, Tpthread_spinlock: Pthread_spinlock,
|
||||
Tpthread: Pthread, Tsuseconds: Suseconds, Ttimer: Timer,
|
||||
Tuid: Uid, Tuseconds: Useconds, Tutsname: Utsname, Tipc_perm: Ipc_perm,
|
||||
TStat: Stat, TStatvfs: Statvfs,
|
||||
Ttm: Tm, titimerspec: Itimerspec, Tsig_atomic: Sig_atomic, Tsigset: Sigset,
|
||||
TsigEvent: SigEvent, TsigVal: SigVal, TSigaction: Sigaction,
|
||||
TSigStack: SigStack, TsigInfo: SigInfo, Tnl_item: Nl_item,
|
||||
Tnl_catd: Nl_catd, Tsched_param: Sched_param,
|
||||
# TFdSet: FdSet, # Naming conflict if we drop the `T`
|
||||
Tmcontext: Mcontext, Tucontext: Ucontext].}
|
||||
type
|
||||
Taiocb* {.importc: "struct aiocb", header: "<aio.h>",
|
||||
final, pure.} = object ## struct aiocb
|
||||
|
|
@ -587,13 +561,6 @@ type
|
|||
|
||||
Tnfds* {.importc: "nfds_t", header: "<poll.h>".} = culong
|
||||
|
||||
{.deprecated: [TSockaddr_in: Sockaddr_in, TAddrinfo: AddrInfo,
|
||||
TSockAddr: SockAddr, TSockLen: SockLen, TTimeval: Timeval,
|
||||
Tsockaddr_storage: Sockaddr_storage, Tsockaddr_in6: Sockaddr_in6,
|
||||
Thostent: Hostent, TServent: Servent,
|
||||
TInAddr: InAddr, TIOVec: IOVec, TInPort: InPort, TInAddrT: InAddrT,
|
||||
TIn6Addr: In6Addr, TInAddrScalar: InAddrScalar, TProtoent: Protoent].}
|
||||
|
||||
var
|
||||
errno* {.importc, header: "<errno.h>".}: cint ## error variable
|
||||
h_errno* {.importc, header: "<netdb.h>".}: cint
|
||||
|
|
|
|||
|
|
@ -26,13 +26,10 @@ type
|
|||
DIR* {.importc: "DIR", header: "<dirent.h>",
|
||||
incompleteStruct.} = object
|
||||
## A type representing a directory stream.
|
||||
{.deprecated: [TDIR: DIR].}
|
||||
|
||||
type
|
||||
SocketHandle* = distinct cint # The type used to represent socket descriptors
|
||||
|
||||
{.deprecated: [TSocketHandle: SocketHandle].}
|
||||
|
||||
type
|
||||
Time* {.importc: "time_t", header: "<time.h>".} = distinct clong
|
||||
|
||||
|
|
@ -356,31 +353,7 @@ type
|
|||
uc_stack*: Stack ## The stack used by this context.
|
||||
uc_mcontext*: Mcontext ## A machine-specific representation of the saved
|
||||
## context.
|
||||
{.deprecated: [TOff: Off, TPid: Pid, TGid: Gid, TMode: Mode, TDev: Dev,
|
||||
TNlink: Nlink, TStack: Stack, TGroup: Group, TMqd: Mqd,
|
||||
TPasswd: Passwd, TClock: Clock, TClockId: ClockId, TKey: Key,
|
||||
TSem: Sem, Tpthread_attr: PthreadAttr, Ttimespec: Timespec,
|
||||
Tdirent: Dirent, TFTW: FTW, TGlob: Glob,
|
||||
# Tflock: Flock, # Naming conflict if we drop the `T`
|
||||
Ticonv: Iconv, Tlconv: Lconv, TMqAttr: MqAttr, Tblkcnt: Blkcnt,
|
||||
Tblksize: Blksize, Tfsblkcnt: Fsblkcnt, Tfsfilcnt: Fsfilcnt,
|
||||
Tid: Id, Tino: Ino, Tpthread_barrier: Pthread_barrier,
|
||||
Tpthread_barrierattr: Pthread_barrierattr, Tpthread_cond: Pthread_cond,
|
||||
TPthread_condattr: Pthread_condattr, Tpthread_key: Pthread_key,
|
||||
Tpthread_mutex: Pthread_mutex, Tpthread_mutexattr: Pthread_mutexattr,
|
||||
Tpthread_once: Pthread_once, Tpthread_rwlock: Pthread_rwlock,
|
||||
Tpthread_rwlockattr: Pthread_rwlockattr, Tpthread_spinlock: Pthread_spinlock,
|
||||
Tpthread: Pthread, Tsuseconds: Suseconds, Ttimer: Timer,
|
||||
Ttrace_attr: Trace_attr, Ttrace_event_id: Trace_event_id,
|
||||
Ttrace_event_set: Trace_event_set, Ttrace_id: Trace_id,
|
||||
Tuid: Uid, Tuseconds: Useconds, Tutsname: Utsname, Tipc_perm: Ipc_perm,
|
||||
TStat: Stat, TStatvfs: Statvfs, Tposix_typed_mem_info: Posix_typed_mem_info,
|
||||
Ttm: Tm, titimerspec: Itimerspec, Tsig_atomic: Sig_atomic, Tsigset: Sigset,
|
||||
TsigEvent: SigEvent, TsigVal: SigVal, TSigaction: Sigaction,
|
||||
TSigStack: SigStack, TsigInfo: SigInfo, Tnl_item: Nl_item,
|
||||
Tnl_catd: Nl_catd, Tsched_param: Sched_param,
|
||||
# TFdSet: FdSet, # Naming conflict if we drop the `T`
|
||||
Tmcontext: Mcontext, Tucontext: Ucontext].}
|
||||
|
||||
when hasAioH:
|
||||
type
|
||||
Taiocb* {.importc: "struct aiocb", header: "<aio.h>",
|
||||
|
|
@ -553,13 +526,6 @@ type
|
|||
|
||||
Tnfds* {.importc: "nfds_t", header: "<poll.h>".} = cint
|
||||
|
||||
{.deprecated: [TSockaddr_in: Sockaddr_in, TAddrinfo: AddrInfo,
|
||||
TSockAddr: SockAddr, TSockLen: SockLen, TTimeval: Timeval,
|
||||
Tsockaddr_storage: Sockaddr_storage, Tsockaddr_in6: Sockaddr_in6,
|
||||
Thostent: Hostent, TServent: Servent,
|
||||
TInAddr: InAddr, TIOVec: IOVec, TInPort: InPort, TInAddrT: InAddrT,
|
||||
TIn6Addr: In6Addr, TInAddrScalar: InAddrScalar, TProtoent: Protoent].}
|
||||
|
||||
var
|
||||
errno* {.importc, header: "<errno.h>".}: cint ## error variable
|
||||
h_errno* {.importc, header: "<netdb.h>".}: cint
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ import posix
|
|||
type
|
||||
Speed* = cuint
|
||||
Cflag* = cuint
|
||||
{.deprecated: [Tcflag: Cflag].}
|
||||
|
||||
const
|
||||
NCCS* = when defined(macosx): 20 else: 32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue