Anonymous inode!

This commit is contained in:
Ciro Santilli
2017-06-13 09:44:29 +01:00
parent 1fb095f969
commit 1f1cf4b0bd
8 changed files with 149 additions and 7 deletions

View File

@@ -15,8 +15,8 @@ int main(int argc, char **argv)
int fd, arg_int, ret;
lkmc_ioctl_struct arg_struct;
if (argc < 4) {
puts("Usage: ./prog <ioctl-file> <cmd> <arg>");
if (argc < 2) {
puts("Usage: ./prog <ioctl-file>");
return EXIT_FAILURE;
}
fd = open(argv[1], O_RDONLY);