LOGDEV
log = open(LOGDEV, O_RDWR);
fprintf(stderr, "ERROR: unable to open %s\n", LOGDEV);
fd = open(LOGDEV, O_RDWR);