remove the includes that obsoleted since last refactoring
authorLunaixsky <lunaixsky@qq.com>
Sat, 31 May 2025 12:32:37 +0000 (13:32 +0100)
committerLunaixsky <lunaixsky@qq.com>
Sat, 31 May 2025 12:32:37 +0000 (13:32 +0100)
lunaix-os/usr/libc/includes/string.h
lunaix-os/usr/libc/includes/sys/lunaix.h
lunaix-os/usr/libc/includes/sys/mman.h
lunaix-os/usr/libc/includes/sys/types.h
lunaix-os/usr/libc/includes/unistd.h
lunaix-os/usr/libc/src/_mystdio.h
lunaix-os/usr/libc/src/itoa.c
lunaix-os/usr/libc/src/string.c

index 333667173484e1a046fedf836deff2d61c357e1c..11569678c0adc22c676a762e6ebddd8afec615ae 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __LUNALIBC_STRING_H
 #define __LUNALIBC_STRING_H
 
-#include <stddef.h>
+#include <sys/types.h>
 
 extern size_t strlen(const char* str);
 
index 65004361cfb9ccfc7f3cdb0d49c32bee3f65ebc6..edd3db6770bdcdeba2f14a311ec9daca214cd786 100644 (file)
@@ -2,7 +2,6 @@
 #define __LUNALIBC_SYS_LUNAIX_H
 
 #include <sys/types.h>
-#include <stddef.h>
 
 void
 yield();
index 0ddf7652d87a30eae6588e2641009da02f385655..08b520a6eae44669808dcdaacb9177948ea943e1 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef __LUNALIBC_SYS_MANN_H
 #define __LUNALIBC_SYS_MANN_H
 
-#include <stddef.h>
 #include <lunaix/mman.h>
 #include <sys/types.h>
 
index 34c629d6ac1ebaa8887d3ce5b3cef6b711efe175..0c410eecba49e807c7e54dd2ea29b66e67620402 100644 (file)
@@ -12,6 +12,10 @@ typedef __lunaix_ssize_t    ssize_t;
 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 */
index 355197cec4f27f2e623e32a7f5e8f6f657b79b51..986e0366d6347269be6820593712f0a181e5da97 100644 (file)
@@ -2,7 +2,6 @@
 #define __LUNALIBC_SYS_UNISTD_H
 
 #include <sys/types.h>
-#include <stddef.h>
 
 extern const char** environ;
 
index 4f66563ba0b7ae5839df5ec4450a856f963f062c..420f1aa4abd1d39781c011719276af670e88ffd2 100644 (file)
@@ -2,7 +2,7 @@
 #define __LUNAIX__MYSTDIO_H
 
 #include <stdarg.h>
-#include <stddef.h>
+#include <sys/types.h>
 
 int
 __vprintf_internal(char* buffer,
index d60599fe1a810d63f1905f8277d4f5d24ed3489a..18f4e07bcb9776facaf71701723948e23f3628a7 100644 (file)
@@ -1,5 +1,5 @@
-#include <stddef.h>
 #include <stdlib.h>
+#include <sys/types.h>
 
 char base_char[] = "0123456789abcdefghijklmnopqrstuvwxyz";
 
@@ -43,4 +43,4 @@ char*
 itoa(int value, char* str, int base)
 {
     return __itoa_internal(value, str, base, NULL);
-}
\ No newline at end of file
+}
index 726437c15a27be883ee4791aed3af876db1c9965..4a4a8d930f0ccdc3efc81bf05cde49df1233a7b4 100644 (file)
@@ -1,4 +1,5 @@
 #include <string.h>
+#include <sys/types.h>
 
 size_t
 strlen(const char* str)
@@ -64,4 +65,4 @@ strcmp(const char* a, const char* b)
         b++;
     }
     return *a - *b;
-}
\ No newline at end of file
+}