summaryrefslogtreecommitdiff
path: root/libgcompat/stdlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgcompat/stdlib.c')
-rw-r--r--libgcompat/stdlib.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libgcompat/stdlib.c b/libgcompat/stdlib.c
new file mode 100644
index 0000000..30c904e
--- /dev/null
+++ b/libgcompat/stdlib.c
@@ -0,0 +1,14 @@
+#include <assert.h> // assert
+#include <stdlib.h> // strtod
+
+char *__realpath_chk(const char *path, char *resolved_path)
+{
+ assert(path != NULL);
+ return realpath(path, resolved_path);
+}
+
+double __strtod_internal(const char *__nptr, char **__endptr, int __group)
+{
+ assert(__group == 0);
+ return strtod(__nptr, __endptr);
+}