Skip to content

Commit d24b17a

Browse files
Merge pull request #499 from oholiab/mktmpdir
Added mkdtmp to stdlib
2 parents 9543c07 + 8bed3a8 commit d24b17a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pixie/stdlib.pxi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
(def srand (ffi-fn libc "srand" [CInt] CInt))
1818
(def fopen (ffi-fn libc "fopen" [CCharP CCharP] CVoidP))
1919
(def fread (ffi-fn libc "fread" [CVoidP CInt CInt CVoidP] CInt))
20+
(def mkdtemp (ffi-fn libc "mkdtemp" [CCharP] CCharP))
21+
(def mkdir (ffi-fn libc "mkdir" [CCharP] CCharP))
22+
(def rmdir (ffi-fn libc "rmdir" [CCharP] CCharP))
23+
(def rm (ffi-fn libc "remove" [CCharP] CCharP))
2024

2125
(def libm (ffi-library (str "libm." pixie.platform/so-ext)))
2226
(def atan2 (ffi-fn libm "atan2" [CDouble CDouble] CDouble))

0 commit comments

Comments
 (0)