diff --git a/reactos/lib/sdk/crt/crt.rbuild b/reactos/lib/sdk/crt/crt.rbuild
index ec077753e44..b7ff3da6495 100644
--- a/reactos/lib/sdk/crt/crt.rbuild
+++ b/reactos/lib/sdk/crt/crt.rbuild
@@ -120,13 +120,16 @@
asin.c
cabs.c
cosh.c
+ div.c
frexp.c
huge_val.c
hypot.c
j0_y0.c
j1_y1.c
jn_yn.c
+ ldiv.c
modf.c
+ rand.c
s_modf.c
sinh.c
stubs.c
@@ -205,6 +208,26 @@
mbstrlen.c
mbsupr.c
+
+
+
+
+ memchr_asm.s
+ memcpy_asm.s
+ memmove_asm.s
+ memset_asm.s
+
+
+
+ memchr.c
+ memcpy.c
+ memmove.c
+ memset.c
+
+ memcmp.c
+ memicmp.c
+
+
amsg.c
assert.c
@@ -321,8 +344,6 @@
_exit.c
abort.c
atexit.c
- atof.c
- div.c
ecvt.c
ecvtbuf.c
errno.c
@@ -331,35 +352,22 @@
fullpath.c
gcvt.c
getenv.c
- ldiv.c
makepath.c
malloc.c
mbtowc.c
obsol.c
putenv.c
- rand.c
rot.c
senv.c
- strtod.c
- strtoul.c
- strtoull.c
swab.c
- wcstod.c
- wcstombs.c
- wctomb.c
wfulpath.c
wputenv.c
wsenv.c
- wsplitp.c
wmakpath.c
- memchr_asm.s
- memcpy_asm.s
- memmove_asm.s
- memset_asm.s
strcat_asm.s
strchr_asm.s
strcmp_asm.s
@@ -383,10 +391,6 @@
- memchr.c
- memcpy.c
- memmove.c
- memset.c
strcat.c
strchr.c
strcmp.c
@@ -408,9 +412,8 @@
wcsnlen.c
wcsrchr.c
+ atof.c
lasttok.c
- memcmp.c
- memicmp.c
strcoll.c
strdup.c
strerror.c
@@ -422,9 +425,16 @@
strrev.c
strset.c
strstr.c
+ strtod.c
strtok.c
+ strtoul.c
+ strtoull.c
strupr.c
strxfrm.c
+ wcstod.c
+ wcstombs.c
+ wctomb.c
+ wsplitp.c
fstat.c
diff --git a/reactos/lib/sdk/crt/stdlib/abs.c b/reactos/lib/sdk/crt/math/abs.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/abs.c
rename to reactos/lib/sdk/crt/math/abs.c
diff --git a/reactos/lib/sdk/crt/stdlib/bsearch.c b/reactos/lib/sdk/crt/math/bsearch.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/bsearch.c
rename to reactos/lib/sdk/crt/math/bsearch.c
diff --git a/reactos/lib/sdk/crt/stdlib/div.c b/reactos/lib/sdk/crt/math/div.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/div.c
rename to reactos/lib/sdk/crt/math/div.c
diff --git a/reactos/lib/sdk/crt/stdlib/labs.c b/reactos/lib/sdk/crt/math/labs.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/labs.c
rename to reactos/lib/sdk/crt/math/labs.c
diff --git a/reactos/lib/sdk/crt/stdlib/ldiv.c b/reactos/lib/sdk/crt/math/ldiv.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/ldiv.c
rename to reactos/lib/sdk/crt/math/ldiv.c
diff --git a/reactos/lib/sdk/crt/stdlib/rand.c b/reactos/lib/sdk/crt/math/rand.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/rand.c
rename to reactos/lib/sdk/crt/math/rand.c
diff --git a/reactos/lib/sdk/crt/string/i386/memchr_asm.s b/reactos/lib/sdk/crt/mem/i386/memchr_asm.s
similarity index 100%
rename from reactos/lib/sdk/crt/string/i386/memchr_asm.s
rename to reactos/lib/sdk/crt/mem/i386/memchr_asm.s
diff --git a/reactos/lib/sdk/crt/string/i386/memcpy_asm.s b/reactos/lib/sdk/crt/mem/i386/memcpy_asm.s
similarity index 100%
rename from reactos/lib/sdk/crt/string/i386/memcpy_asm.s
rename to reactos/lib/sdk/crt/mem/i386/memcpy_asm.s
diff --git a/reactos/lib/sdk/crt/string/i386/memmove_asm.s b/reactos/lib/sdk/crt/mem/i386/memmove_asm.s
similarity index 100%
rename from reactos/lib/sdk/crt/string/i386/memmove_asm.s
rename to reactos/lib/sdk/crt/mem/i386/memmove_asm.s
diff --git a/reactos/lib/sdk/crt/string/i386/memset_asm.s b/reactos/lib/sdk/crt/mem/i386/memset_asm.s
similarity index 100%
rename from reactos/lib/sdk/crt/string/i386/memset_asm.s
rename to reactos/lib/sdk/crt/mem/i386/memset_asm.s
diff --git a/reactos/lib/sdk/crt/string/memchr.c b/reactos/lib/sdk/crt/mem/memchr.c
similarity index 100%
rename from reactos/lib/sdk/crt/string/memchr.c
rename to reactos/lib/sdk/crt/mem/memchr.c
diff --git a/reactos/lib/sdk/crt/string/memcmp.c b/reactos/lib/sdk/crt/mem/memcmp.c
similarity index 100%
rename from reactos/lib/sdk/crt/string/memcmp.c
rename to reactos/lib/sdk/crt/mem/memcmp.c
diff --git a/reactos/lib/sdk/crt/string/memcpy.c b/reactos/lib/sdk/crt/mem/memcpy.c
similarity index 100%
rename from reactos/lib/sdk/crt/string/memcpy.c
rename to reactos/lib/sdk/crt/mem/memcpy.c
diff --git a/reactos/lib/sdk/crt/string/memicmp.c b/reactos/lib/sdk/crt/mem/memicmp.c
similarity index 100%
rename from reactos/lib/sdk/crt/string/memicmp.c
rename to reactos/lib/sdk/crt/mem/memicmp.c
diff --git a/reactos/lib/sdk/crt/string/memmove.c b/reactos/lib/sdk/crt/mem/memmove.c
similarity index 100%
rename from reactos/lib/sdk/crt/string/memmove.c
rename to reactos/lib/sdk/crt/mem/memmove.c
diff --git a/reactos/lib/sdk/crt/string/memset.c b/reactos/lib/sdk/crt/mem/memset.c
similarity index 100%
rename from reactos/lib/sdk/crt/string/memset.c
rename to reactos/lib/sdk/crt/mem/memset.c
diff --git a/reactos/lib/sdk/crt/stdlib/atof.c b/reactos/lib/sdk/crt/string/atof.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/atof.c
rename to reactos/lib/sdk/crt/string/atof.c
diff --git a/reactos/lib/sdk/crt/stdlib/atoi.c b/reactos/lib/sdk/crt/string/atoi.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/atoi.c
rename to reactos/lib/sdk/crt/string/atoi.c
diff --git a/reactos/lib/sdk/crt/stdlib/atoi64.c b/reactos/lib/sdk/crt/string/atoi64.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/atoi64.c
rename to reactos/lib/sdk/crt/string/atoi64.c
diff --git a/reactos/lib/sdk/crt/stdlib/atol.c b/reactos/lib/sdk/crt/string/atol.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/atol.c
rename to reactos/lib/sdk/crt/string/atol.c
diff --git a/reactos/lib/sdk/crt/stdlib/itoa.c b/reactos/lib/sdk/crt/string/itoa.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/itoa.c
rename to reactos/lib/sdk/crt/string/itoa.c
diff --git a/reactos/lib/sdk/crt/stdlib/itow.c b/reactos/lib/sdk/crt/string/itow.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/itow.c
rename to reactos/lib/sdk/crt/string/itow.c
diff --git a/reactos/lib/sdk/crt/stdlib/splitp.c b/reactos/lib/sdk/crt/string/splitp.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/splitp.c
rename to reactos/lib/sdk/crt/string/splitp.c
diff --git a/reactos/lib/sdk/crt/stdlib/strtod.c b/reactos/lib/sdk/crt/string/strtod.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/strtod.c
rename to reactos/lib/sdk/crt/string/strtod.c
diff --git a/reactos/lib/sdk/crt/stdlib/strtol.c b/reactos/lib/sdk/crt/string/strtol.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/strtol.c
rename to reactos/lib/sdk/crt/string/strtol.c
diff --git a/reactos/lib/sdk/crt/stdlib/strtold.c b/reactos/lib/sdk/crt/string/strtold.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/strtold.c
rename to reactos/lib/sdk/crt/string/strtold.c
diff --git a/reactos/lib/sdk/crt/stdlib/strtoul.c b/reactos/lib/sdk/crt/string/strtoul.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/strtoul.c
rename to reactos/lib/sdk/crt/string/strtoul.c
diff --git a/reactos/lib/sdk/crt/stdlib/strtoull.c b/reactos/lib/sdk/crt/string/strtoull.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/strtoull.c
rename to reactos/lib/sdk/crt/string/strtoull.c
diff --git a/reactos/lib/sdk/crt/stdlib/wcstod.c b/reactos/lib/sdk/crt/string/wcstod.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/wcstod.c
rename to reactos/lib/sdk/crt/string/wcstod.c
diff --git a/reactos/lib/sdk/crt/stdlib/wcstol.c b/reactos/lib/sdk/crt/string/wcstol.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/wcstol.c
rename to reactos/lib/sdk/crt/string/wcstol.c
diff --git a/reactos/lib/sdk/crt/stdlib/wcstom.c b/reactos/lib/sdk/crt/string/wcstom.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/wcstom.c
rename to reactos/lib/sdk/crt/string/wcstom.c
diff --git a/reactos/lib/sdk/crt/stdlib/wcstomb.c b/reactos/lib/sdk/crt/string/wcstomb.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/wcstomb.c
rename to reactos/lib/sdk/crt/string/wcstomb.c
diff --git a/reactos/lib/sdk/crt/stdlib/wcstombs.c b/reactos/lib/sdk/crt/string/wcstombs.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/wcstombs.c
rename to reactos/lib/sdk/crt/string/wcstombs.c
diff --git a/reactos/lib/sdk/crt/stdlib/wcstoul.c b/reactos/lib/sdk/crt/string/wcstoul.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/wcstoul.c
rename to reactos/lib/sdk/crt/string/wcstoul.c
diff --git a/reactos/lib/sdk/crt/stdlib/wctomb.c b/reactos/lib/sdk/crt/string/wctomb.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/wctomb.c
rename to reactos/lib/sdk/crt/string/wctomb.c
diff --git a/reactos/lib/sdk/crt/stdlib/witoa.c b/reactos/lib/sdk/crt/string/witoa.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/witoa.c
rename to reactos/lib/sdk/crt/string/witoa.c
diff --git a/reactos/lib/sdk/crt/stdlib/witow.c b/reactos/lib/sdk/crt/string/witow.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/witow.c
rename to reactos/lib/sdk/crt/string/witow.c
diff --git a/reactos/lib/sdk/crt/stdlib/wsplitp.c b/reactos/lib/sdk/crt/string/wsplitp.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/wsplitp.c
rename to reactos/lib/sdk/crt/string/wsplitp.c
diff --git a/reactos/lib/sdk/crt/stdlib/wtoi.c b/reactos/lib/sdk/crt/string/wtoi.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/wtoi.c
rename to reactos/lib/sdk/crt/string/wtoi.c
diff --git a/reactos/lib/sdk/crt/stdlib/wtoi64.c b/reactos/lib/sdk/crt/string/wtoi64.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/wtoi64.c
rename to reactos/lib/sdk/crt/string/wtoi64.c
diff --git a/reactos/lib/sdk/crt/stdlib/wtol.c b/reactos/lib/sdk/crt/string/wtol.c
similarity index 100%
rename from reactos/lib/sdk/crt/stdlib/wtol.c
rename to reactos/lib/sdk/crt/string/wtol.c