#include #include #include #include int main(int argc, char *argv[]) { int fd; fd = open(argv[1], O_RDONLY); if (fd < 0) { perror("open()"); exit(1); } close(fd); return 0; }