Home | History | Annotate | Download | only in efivarfs

Lines Matching defs:path

13 static int set_immutable(const char *path, int immutable)
20 fd = open(path, O_RDONLY);
44 static int get_immutable(const char *path)
51 fd = open(path, O_RDONLY);
70 const char *path;
75 fprintf(stderr, "usage: %s <path>\n", argv[0]);
79 path = argv[1];
89 fd = open(path, O_WRONLY | O_CREAT, 0600);
103 rc = get_immutable(path);
108 rc = set_immutable(path, 0);
115 fd = open(path, O_RDONLY);
121 if (unlink(path) < 0) {