/* Open the output file. */
if (!to_stdout)
{
fd = open (filename, O_WRONLY | O_CREAT);
fd = open (filename, O_WRONLY | O_CREAT, S_IRUSR|S_IWUSR);
if (fd < 0)
const char *errno_description = strerror (errno);