int main() const char *dev = "/dev/video0"; int fd = open(dev, O_RDWR); if (fd < 0) perror("open"); return 1;