#ifndef __LUNALIBC_STRING_H
#define __LUNALIBC_STRING_H
-#include <stddef.h>
+#include <sys/types.h>
extern size_t strlen(const char* str);
#define __LUNALIBC_SYS_LUNAIX_H
#include <sys/types.h>
-#include <stddef.h>
void
yield();
#ifndef __LUNALIBC_SYS_MANN_H
#define __LUNALIBC_SYS_MANN_H
-#include <stddef.h>
#include <lunaix/mman.h>
#include <sys/types.h>
typedef __lunaix_size_t off_t;
typedef __lunaix_ino_t ino_t;
-typedef __lunaix_dev_t dev_t;
+typedef __lunaix_dev_t dev_t;
+
+#undef NULL
+#define NULL ((void*)0)
+
#endif /* __LUNAIX_TYPES_H */
#define __LUNALIBC_SYS_UNISTD_H
#include <sys/types.h>
-#include <stddef.h>
extern const char** environ;
#define __LUNAIX__MYSTDIO_H
#include <stdarg.h>
-#include <stddef.h>
+#include <sys/types.h>
int
__vprintf_internal(char* buffer,
-#include <stddef.h>
#include <stdlib.h>
+#include <sys/types.h>
char base_char[] = "0123456789abcdefghijklmnopqrstuvwxyz";
itoa(int value, char* str, int base)
{
return __itoa_internal(value, str, base, NULL);
-}
\ No newline at end of file
+}
#include <string.h>
+#include <sys/types.h>
size_t
strlen(const char* str)
b++;
}
return *a - *b;
-}
\ No newline at end of file
+}