diff options
| author | 2021-06-04 02:47:07 -0700 | |
|---|---|---|
| committer | 2021-06-04 02:47:07 -0700 | |
| commit | fa2f60cdd529c589505f2ec5fa2eb21c5abf8aaa (patch) | |
| tree | fe268bc7851f7c8d8bb1c63934dcb8a7ed708a06 /src/darwin_c.zig | |
| parent | 21a1134de36e25b3559fac88243d1a9e1c7ca273 (diff) | |
| download | bun-fa2f60cdd529c589505f2ec5fa2eb21c5abf8aaa.tar.gz bun-fa2f60cdd529c589505f2ec5fa2eb21c5abf8aaa.tar.zst bun-fa2f60cdd529c589505f2ec5fa2eb21c5abf8aaa.zip | |
fix the leaks
Former-commit-id: 58d77ab82795266ecee5f437f324db81f5706682
Diffstat (limited to '')
| -rw-r--r-- | src/darwin_c.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/darwin_c.zig b/src/darwin_c.zig new file mode 100644 index 000000000..21080ea85 --- /dev/null +++ b/src/darwin_c.zig @@ -0,0 +1,8 @@ +pub usingnamespace @import("std").c.builtins; + +// int clonefileat(int src_dirfd, const char * src, int dst_dirfd, const char * dst, int flags); +pub extern "c" fn clonefileat(c_int, [*c]const u8, c_int, [*c]const u8, uint32_t: c_int) c_int; +// int fclonefileat(int srcfd, int dst_dirfd, const char * dst, int flags); +pub extern "c" fn fclonefileat(c_int, c_int, [*c]const u8, uint32_t: c_int) c_int; +// int clonefile(const char * src, const char * dst, int flags); +pub extern "c" fn clonefile([*c]const u8, [*c]const u8, uint32_t: c_int) c_int; |
