Lines Matching refs:path
57 static int write_file(const char *path, const char *value)
61 fd = open(path, O_WRONLY|O_CREAT, 0622);
80 static int _open(const char *path)
84 fd = open(path, O_RDONLY | O_NOFOLLOW);
86 fd = open(path, O_WRONLY | O_NOFOLLOW);
91 static int _chown(const char *path, unsigned int uid, unsigned int gid)
96 fd = _open(path);
114 static int _chmod(const char *path, mode_t mode)
119 fd = _open(path);
299 /* mkdir <path> [mode] [owner] [group] */
362 /* mount <type> <device> <path> <flags ...> <options> */
642 const char *path = args[1];
649 ERROR("cannot expand '%s' while writing to '%s'\n", value, path);
652 return write_file(path, prop_val);