diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-01-19 20:00:08 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-01-19 20:00:31 +0100 |
commit | ecf180256827df4bbe5e28297c7f1ccb064a5e2e (patch) | |
tree | 45ba90a8e9244c027539c06ea9872d4fd2b317fb /lib/posix | |
parent | 130f30ddb2ff6b2f203b2832ed9a7dda9dc853cb (diff) | |
download | Nim-ecf180256827df4bbe5e28297c7f1ccb064a5e2e.tar.gz |
posix.nim add 'sigaction' with 3rd nil parameter
Diffstat (limited to 'lib/posix')
-rw-r--r-- | lib/posix/posix.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index b96e88b6c..3059f88dc 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -2374,6 +2374,10 @@ proc pthread_sigmask*(a1: cint, a2, a3: var Sigset): cint {. proc `raise`*(a1: cint): cint {.importc, header: "<signal.h>".} proc sigaction*(a1: cint, a2, a3: var Sigaction): cint {. importc, header: "<signal.h>".} + +proc sigaction*(a1: cint, a2: var Sigaction; a3: pointer = nil): cint {. + importc, header: "<signal.h>".} + proc sigaddset*(a1: var Sigset, a2: cint): cint {.importc, header: "<signal.h>".} proc sigaltstack*(a1, a2: var Stack): cint {.importc, header: "<signal.h>".} proc sigdelset*(a1: var Sigset, a2: cint): cint {.importc, header: "<signal.h>".} |