Sure, but it's longer, it removes or reduces error checking, and it lowers portability. (Granted, the last was already lost in this case, but it means you have two things to fix instead of one if you ever want portability.) Also, reinventing the wheel leads to problems such as using exit instead of _exit.