if ((logfd = open(logfile, O_CREAT|O_WRONLY|O_APPEND, 0666)) < 0) { /* stdout */
report(stderr, "cannot open %s: %s\n", logfile, strerror(errno));
return PS_IOERR;
if ((logfd = open(logfile, O_CREAT|O_WRONLY|O_APPEND, 0666)) < 0) { /* stdout */
report(stderr, "cannot open %s: %s\n", logfile, strerror(errno));
return PS_IOERR;