This post explores one of my favorite hacks in SerenityOS. I don’t recommend doing this in your codebase, but it has worked for us so far. :^) Background size_t and ssize_t are common types used in many POSIX APIs. According to POSIX, they are used as follows:
How SerenityOS declares ssize_t
How SerenityOS declares ssize_t
How SerenityOS declares ssize_t
This post explores one of my favorite hacks in SerenityOS. I don’t recommend doing this in your codebase, but it has worked for us so far. :^) Background size_t and ssize_t are common types used in many POSIX APIs. According to POSIX, they are used as follows: