Change type of Timeval.tv_sec to posix.Time (#7646)
This commit is contained in:
parent
b9cafe5752
commit
fdf1d12380
9 changed files with 28 additions and 15 deletions
|
|
@ -351,8 +351,8 @@ type
|
|||
|
||||
Timeval* {.importc: "struct timeval", header: "<sys/select.h>",
|
||||
final, pure.} = object ## struct timeval
|
||||
tv_sec*: clong ## Seconds.
|
||||
tv_usec*: clong ## Microseconds.
|
||||
tv_sec*: Time ## Seconds.
|
||||
tv_usec*: Suseconds ## Microseconds.
|
||||
TFdSet* {.importc: "fd_set", header: "<sys/select.h>",
|
||||
final, pure.} = object
|
||||
abi: array[1024 div (8 * sizeof(clong)), clong]
|
||||
|
|
|
|||
|
|
@ -335,8 +335,8 @@ type
|
|||
|
||||
Timeval* {.importc: "struct timeval", header: "<sys/select.h>",
|
||||
final, pure.} = object ## struct timeval
|
||||
tv_sec*: int ## Seconds.
|
||||
tv_usec*: int ## Microseconds.
|
||||
tv_sec*: Time ## Seconds.
|
||||
tv_usec*: Suseconds ## Microseconds.
|
||||
TFdSet* {.importc: "fd_set", header: "<sys/select.h>",
|
||||
final, pure.} = object
|
||||
Mcontext* {.importc: "mcontext_t", header: "<ucontext.h>",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue