CMDLOG
fd = open(CMDLOG, O_WRONLY | O_APPEND);
fd = creat(CMDLOG, LOGFILEMODE);
(void) chmod(CMDLOG, LOGFILEMODE);