Lines Matching refs:path
70 // Concatene 2 path, path1 and path2, using / as a directory separator and
88 // Do a recursive mkdir of all folders of path except the last path
89 // segment (if path ends with a / then the last path segment is empty).
91 void mkdirs(const char *path, mode_t mode) {
94 strncpy(path_, path, PATH_MAX);
127 char path[PATH_MAX];
129 concat_path(path, PATH_MAX, output_root_, filename);
130 mkdirs(path, perm);
132 fd = open(path, O_CREAT | O_WRONLY, perm);
135 path, strerror(errno));
144 // Get the basename of path and store it in output. output_size
146 void basename(const char *path, char *output, size_t output_size) {
147 const char *pointer = strrchr(path, '/');
149 pointer = path;
195 char path[PATH_MAX];
202 // Compute the path, flattening it if requested
204 basename(files[i], path, PATH_MAX);
206 strncpy(path, files[i], PATH_MAX);
207 path[PATH_MAX-1] = 0;
208 size_t len = strlen(path);
211 path[len] = '/';
212 path[len+1] = 0;
218 printf("%c %o %s\n", isdir ? 'd' : 'f', perm, path);
221 u1 *buffer = builder->NewFile(path, mode_to_zipattr(statst.st_mode));