CTL_DEFAULT_DEV
ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR);
ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR);
err(1, "Failed to open %s", CTL_DEFAULT_DEV);
if ((fd = open(CTL_DEFAULT_DEV, O_RDWR)) == -1)
err(1, "cannot open %s", CTL_DEFAULT_DEV);
CTL_DEFAULT_DEV);
device = strdup(CTL_DEFAULT_DEV);
ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR);
ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR);
log_err(1, "failed to open %s", CTL_DEFAULT_DEV);