aboutsummaryrefslogtreecommitdiff
path: root/src/libc.hff
diff options
context:
space:
mode:
Diffstat (limited to 'src/libc.hff')
-rw-r--r--src/libc.hff8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libc.hff b/src/libc.hff
index 6446a33..6fb32f7 100644
--- a/src/libc.hff
+++ b/src/libc.hff
@@ -23,6 +23,8 @@ extern fn malloc(n usize) *void;
extern fn calloc(n usize, m usize) *void;
extern fn realloc(p *void, n usize) *void;
extern fn free(p *void) void;
+extern fn realpath(path *const u8, resolved *u8) *u8;
+def PATH_MAX = 4096;
// string.h
extern fn strlen(s *const u8) usize;
@@ -30,6 +32,10 @@ extern fn strcmp(a *const u8, b *const u8) int;
extern fn strcasecmp(a *const u8, b *const u8) int;
extern fn memcpy(*void, *const void, usize) *void;
extern fn strcpy(*u8, *const u8) *u8;
+extern fn strerror(int) *const u8;
-//ctype.h
+// ctype.h
extern fn tolower(int) int;
+
+// errno.h
+extern fn c_errno() int;