apsun / loliOS

Lightweight & operational Linux-inspired OS.
33 stars 1 forks source link

Change size-related usages of int -> size_t #29

Open apsun opened 2 years ago

apsun commented 2 years ago

Arguments for doing this:

I don't want to change the return type of syscalls (for uniformity/OCD reasons); this effectively means that all syscalls are still limited to reading 2GB at a time. Which is fine; we need to limit the range to half of size_t anyways since the return value needs to encode an error bit.