>On success, these functions return the file descriptor of the temporary file. On error, -1 is returned, and errno is set to indicate the error.
man FUCK LINUX what fucking nigger came up with this? we've got 2,147,483,646 values to send errors in, what will we use? oh the global variable will be a good place!