diff options
author | Araq <rumpf_a@web.de> | 2014-09-08 08:46:35 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-09-08 08:46:35 +0200 |
commit | 7333237be6abe3f170fe440e887ae83707fd748f (patch) | |
tree | 38f3205feaef054a302fb5fc0975b644619d505d /lib/posix | |
parent | a90f73ca4c61c7a74808aa805820db2a8b6deb00 (diff) | |
download | Nim-7333237be6abe3f170fe440e887ae83707fd748f.tar.gz |
'nimfix' improvements; FdSet is TFdSet again
Diffstat (limited to 'lib/posix')
-rw-r--r-- | lib/posix/posix.nim | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index e7d9b1cc8..c3085f0fb 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -388,7 +388,7 @@ type final, pure.} = object ## struct timeval tv_sec*: int ## Seconds. tv_usec*: int ## Microseconds. - FdSet* {.importc: "fd_set", header: "<sys/select.h>", + TFdSet* {.importc: "fd_set", header: "<sys/select.h>", final, pure.} = object Tmcontext* {.importc: "mcontext_t", header: "<ucontext.h>", final, pure.} = object @@ -563,7 +563,7 @@ type {.deprecated: [TSockaddr_in: Sockaddr_in, TAddrinfo: AddrInfo, TSockAddr: SockAddr, TSockLen: SockLen, TTimeval: Timeval, - TFdSet: FdSet, Thostent: Hostent, TServent: Servent, + Thostent: Hostent, TServent: Servent, TInAddr: InAddr].} var @@ -2379,16 +2379,16 @@ proc sched_yield*(): cint {.importc, header: "<sched.h>".} proc strerror*(errnum: cint): cstring {.importc, header: "<string.h>".} proc hstrerror*(herrnum: cint): cstring {.importc, header: "<netdb.h>".} -proc FD_CLR*(a1: cint, a2: var FdSet) {.importc, header: "<sys/select.h>".} -proc FD_ISSET*(a1: cint | SocketHandle, a2: var FdSet): cint {. +proc FD_CLR*(a1: cint, a2: var TFdSet) {.importc, header: "<sys/select.h>".} +proc FD_ISSET*(a1: cint | SocketHandle, a2: var TFdSet): cint {. importc, header: "<sys/select.h>".} -proc fdSet*(a1: cint | SocketHandle, a2: var FdSet) {. +proc fdSet*(a1: cint | SocketHandle, a2: var TFdSet) {. importc: "FD_SET", header: "<sys/select.h>".} -proc FD_ZERO*(a1: var FdSet) {.importc, header: "<sys/select.h>".} +proc FD_ZERO*(a1: var TFdSet) {.importc, header: "<sys/select.h>".} -proc pselect*(a1: cint, a2, a3, a4: ptr FdSet, a5: ptr Ttimespec, +proc pselect*(a1: cint, a2, a3, a4: ptr TFdSet, a5: ptr Ttimespec, a6: var Tsigset): cint {.importc, header: "<sys/select.h>".} -proc select*(a1: cint | SocketHandle, a2, a3, a4: ptr FdSet, a5: ptr Timeval): cint {. +proc select*(a1: cint | SocketHandle, a2, a3, a4: ptr TFdSet, a5: ptr Timeval): cint {. importc, header: "<sys/select.h>".} when hasSpawnH: |