Lines Matching defs:path
75 hal_util_remove_trailing_slash (gchar *path)
79 if (path == NULL) {
83 c = strrchr (path, '/');
85 HAL_WARNING (("Invalid path %s", path));
94 /** Given a path, /foo/bar/bat/foobar, return the last element, e.g.
97 * @param path Path
115 /** Given a path, this functions finds the path representing the
118 * @param path Path
122 hal_util_get_parent_path (const gchar *path)
128 /* Find parent device by truncating our own path */
129 parent_path = g_strndup (path, HAL_PATH_MAX);
177 gchar path[HAL_PATH_MAX];
183 g_snprintf (path, sizeof (path), "%s/%s", directory, file);
185 f = fopen (path, "rb");
187 HAL_ERROR (("Cannot open '%s'", path));
192 HAL_ERROR (("Cannot read from '%s'", path));
227 gchar path[HAL_PATH_MAX];
233 g_snprintf (path, sizeof (path), "%s/%s", directory, file);
235 f = fopen (path, "rb");
237 HAL_ERROR (("Cannot open '%s'", path));
242 HAL_ERROR (("Cannot read from '%s'", path));
277 gchar path[HAL_PATH_MAX];
290 g_snprintf (path, sizeof (path), "%s/%s", directory, file);
292 f = fopen (path, "rb");
294 HAL_ERROR (("Cannot open '%s'", path));
299 HAL_ERROR (("Cannot read from '%s'", path));
367 gchar path[HAL_PATH_MAX];
375 g_snprintf (path, sizeof (path), "%s/%s", directory, file);
377 f = fopen (path, "rb");
379 HAL_ERROR (("Cannot open '%s'", path));
385 HAL_ERROR (("Cannot read from '%s'", path));
456 hal_util_path_ascend (gchar *path)
460 if (path == NULL)
463 p = strrchr (path, '/');