perror("foo");
void cleanup(int exitcode) {   /* If we own the log, unlink it before trying to free our buffer.    * Otherwise, sending the buffer to /dev/log doesn't make much sense.... */   if (we_own_log) {      perror("wol");      unlink(_PATH_LOG);   }   /* Don't try to free buffer if we were called from a signal handler */   perror("foo");   if (exitcode<=0) {       if (buffer) freeBuffer();       exit(exitcode);   } else      exit(exitcode+128);}