Lines Matching defs:type
117 __pos4obj_name(const char *path, const char *type)
127 * If the path is path_max - strlen(type) characters or less,
129 * the type.
132 * path_max - strlen(type) characters, we create a string based on the
136 * after the type of object requested. Inside the type
141 * Let objroot = "/tmp/", path = "/<longpath>", and type = ".MQD"
151 if ((strlen(path) - 1) > (name_max - strlen(type)))
158 len = strlen(objroot) + strlen(type) + strlen(path);
163 len = strlen(objroot) + HASHSTRLEN + strlen(type) +
174 (void) strcat(dfile, type);
206 * set errno to EEXIST, since the hash and type directories
229 (void) strcat(dfile, type);
232 * Create directory for requested type. Use 777 perms so everyone
284 __pos4obj_open(const char *name, char *type, int oflag,
293 if ((dfile = __pos4obj_name(name, type)) == NULL) {
336 __pos4obj_unlink(const char *name, const char *type)
341 if ((dfile = __pos4obj_name(name, type)) == NULL) {
391 __pos4obj_unlock(const char *path, const char *type)
393 return (__pos4obj_unlink(path, type));
397 * Removes unused hash and type directories that may exist in specified path.
407 * 1) /<objroot>/<type><path> or
408 * 2) /<objroot>/.<hash>/<type>/<path>