diff --git a/libc/Makefile b/libc/Makefile
index 6855e226..7016b1d5 100644
--- a/libc/Makefile
+++ b/libc/Makefile
@@ -230,13 +230,10 @@ netdb/setservent.o \
poll/poll.o \
poll/ppoll.o \
popen.o \
-preadv.o \
print.o \
putc.o \
pwd/pwent.o \
-pwritev.o \
readdirents.o \
-readv.o \
removeat.o \
remove.o \
renameat.o \
@@ -297,6 +294,10 @@ sys/stat/umask.o \
sys/stat/utimensat.o \
sys/stat/utimens.o \
sys/time/gettimeofday.o \
+sys/uio/preadv.o \
+sys/uio/pwritev.o \
+sys/uio/readv.o \
+sys/uio/writev.o \
termios/tcgetwinsize.o \
time/clock_getres.o \
time/clock_gettime.o \
@@ -399,7 +400,6 @@ utime.o \
vscanf.o \
wait.o \
waitpid.o \
-writev.o \
OBJS=\
$(FREEOBJS) \
diff --git a/libc/preadv.cpp b/libc/sys/uio/preadv.cpp
similarity index 98%
rename from libc/preadv.cpp
rename to libc/sys/uio/preadv.cpp
index 0ae1c9d7..35f4b9e2 100644
--- a/libc/preadv.cpp
+++ b/libc/sys/uio/preadv.cpp
@@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see .
- preadv.cpp
+ sys/uio/preadv.cpp
Read data into multiple buffers.
*******************************************************************************/
diff --git a/libc/pwritev.cpp b/libc/sys/uio/pwritev.cpp
similarity index 98%
rename from libc/pwritev.cpp
rename to libc/sys/uio/pwritev.cpp
index ee6c3331..80024dac 100644
--- a/libc/pwritev.cpp
+++ b/libc/sys/uio/pwritev.cpp
@@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see .
- pwritev.cpp
+ sys/uio/pwritev.cpp
Write data from multiple buffers.
*******************************************************************************/
diff --git a/libc/readv.cpp b/libc/sys/uio/readv.cpp
similarity index 98%
rename from libc/readv.cpp
rename to libc/sys/uio/readv.cpp
index b800b23c..5e27cec1 100644
--- a/libc/readv.cpp
+++ b/libc/sys/uio/readv.cpp
@@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see .
- readv.cpp
+ sys/uio/readv.cpp
Read data into multiple buffers.
*******************************************************************************/
diff --git a/libc/writev.cpp b/libc/sys/uio/writev.cpp
similarity index 98%
rename from libc/writev.cpp
rename to libc/sys/uio/writev.cpp
index 26066cdc..2300e9cd 100644
--- a/libc/writev.cpp
+++ b/libc/sys/uio/writev.cpp
@@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see .
- writev.cpp
+ sys/uio/writev.cpp
Write data from multiple buffers.
*******************************************************************************/