aboutsummaryrefslogtreecommitdiffhomepage
path: root/path.h
diff options
context:
space:
mode:
authorGravatar Łukasz Niemier <lukasz@niemier.pl>2012-11-18 11:23:22 +0100
committerGravatar Łukasz Niemier <lukasz@niemier.pl>2012-11-18 11:23:22 +0100
commit47df1ae40adecd0a02fc7dd06ab0745cb18c3fe0 (patch)
tree13bf3e8fdcae60fdfb5fa5e26c95818dc7a49790 /path.h
parentb79854ad1aa814d9d35d76a1929b4726fa4bffa5 (diff)
Remove trailing whitespaces and change tabs to spaces
Diffstat (limited to 'path.h')
-rw-r--r--path.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/path.h b/path.h
index 2d3cf83d..aa49b266 100644
--- a/path.h
+++ b/path.h
@@ -1,9 +1,9 @@
/** \file path.h
- Directory utilities. This library contains functions for locating
- configuration directories, for testing if a command with a given
- name can be found in the PATH, and various other path-related
- issues.
+ Directory utilities. This library contains functions for locating
+ configuration directories, for testing if a command with a given
+ name can be found in the PATH, and various other path-related
+ issues.
*/
#ifndef FISH_PATH_H
@@ -27,7 +27,7 @@ bool path_get_config(wcstring &path);
/**
Finds the full path of an executable. Returns YES if successful.
-
+
\param cmd The name of the executable.
\param output_or_NULL If non-NULL, store the full path.
\param vars The environment variables snapshot to use
@@ -42,14 +42,14 @@ bool path_get_path(const wcstring &cmd,
variable as a list of base directories for relative paths. The
returned string is allocated using halloc and the specified
context.
-
+
If no valid path is found, null is returned and errno is set to
ENOTDIR if at least one such path was found, but it did not point
to a directory, EROTTEN if a arotten symbolic link was found, or
ENOENT if no file of the specified name was found. If both a rotten
symlink and a file are found, it is undefined which error status
will be returned.
-
+
\param dir The name of the directory.
\param out_or_NULL If non-NULL, return the path to the resolved directory
\param wd The working directory, or NULL to use the default. The working directory should have a slash appended at the end.