diff options
author | Reimer Behrends <behrends@gmail.com> | 2015-07-01 02:39:45 +0200 |
---|---|---|
committer | Reimer Behrends <behrends@gmail.com> | 2015-07-01 02:39:45 +0200 |
commit | b3455d281b360926ad18fbbe1f54608835be79d2 (patch) | |
tree | b9003bec7e65ac1aba0303df88f56c5b365a1d85 /lib/posix | |
parent | 8e0f9bacb75504c3d223f8365b889e62846f9563 (diff) | |
download | Nim-b3455d281b360926ad18fbbe1f54608835be79d2.tar.gz |
Add popen()/pclose() support to posix.nim
Diffstat (limited to 'lib/posix')
-rw-r--r-- | lib/posix/posix.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index 9b9bf390a..d264dc02a 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -2156,7 +2156,9 @@ proc nice*(a1: cint): cint {.importc, header: "<unistd.h>".} proc pathconf*(a1: cstring, a2: cint): int {.importc, header: "<unistd.h>".} proc pause*(): cint {.importc, header: "<unistd.h>".} +proc pclose*(a: File): cint {.importc, header: "<stdio.h>".} proc pipe*(a: array[0..1, cint]): cint {.importc, header: "<unistd.h>".} +proc popen*(a1, a2: cstring): File {.importc, header: "<stdio.h>".} proc pread*(a1: cint, a2: pointer, a3: int, a4: Off): int {. importc, header: "<unistd.h>".} proc pwrite*(a1: cint, a2: pointer, a3: int, a4: Off): int {. |