Lines Matching refs:path

58 __open_nc(const char *path, int oflag, mode_t mode)
65 * Ensure path is not a symlink to somewhere else. This provides
68 if (lstat64(path, &statbuf) == 0) {
76 val = open64(path, oflag, mode);
126 __pos4obj_name(const char *path, const char *type)
136 * If the path is path_max - strlen(type) characters or less,
137 * the name of the file to use will be the path prefixed by
140 * In the special case where the path is longer than
142 * MD5 hash of the path. We prefix that string with a '.' to
146 * directory, the filename will be the path of the object. This
150 * Let objroot = "/tmp/", path = "/<longpath>", and type = ".MQD"
157 * Do not include the leading '/' in the path length.
158 * Assumes __pos4obj_check(path) has already been called.
160 if ((strlen(path) - 1) > (name_max - strlen(type)))
165 * strlen(path) includes leading slash as space for NUL.
167 len = strlen(objroot) + strlen(type) + strlen(path);
170 * Long path name. Add 3 for extra '/', '.' and '\0'
173 strlen(path) + 3;
184 (void) strcat(dfile, path + 1);
199 real_md5_calc(md5_digest, (unsigned char *)path + 1, strlen(path + 1));
211 * lock file is then destroyed. In the following code path, we
212 * are finding the absolute path to the lock file after
257 (void) strcat(dfile, path);
400 __pos4obj_unlock(const char *path, const char *type)
402 return (__pos4obj_unlink(path, type));
406 * Removes unused hash and type directories that may exist in specified path.
409 __pos4obj_clean(char *path)
415 * path is either
416 * 1) /<objroot>/<type><path> or
417 * 2) /<objroot>/.<hash>/<type>/<path>
424 if (strchr(path + strlen(objroot), '/') == NULL)
433 if ((p = strrchr(path, '/')) == NULL)
437 (void) rmdir(path);
439 if ((p = strrchr(path, '/')) == NULL)
443 (void) rmdir(path);
450 * Check that path starts with a /, does not contain a / within it
454 __pos4obj_check(const char *path)
468 if (*path++ != '/') {
473 for (i = 0; *path != '\0'; i++) {
474 if (*path++ == '/') {