9 /* getpath th -- get the path of the file name specified by the first parameter
\r
10 * of the function and store the path in its second parmater.
\r
11 * the function returns the length of the path of the file.
\r
13 * param file_name The file name to get the path
\r
14 * param path The address of the path of the file
\r
16 * return If successful, the function returns the len of the path.
\r
17 * Otherwise the function returns -1 and sets errno to indicate
\r
22 * [ENOENT] the file name specified as parameter does not exist.
\r
24 * [ENOMEM] because this function use calloc, errno can be set with
\r
28 int
\r getpath(const char *file_name, char **path);
30 /* translatepath -- path translation
\r
32 * param totranslate The path to translate.
\r
33 * param transled The address of the translated path.
\r
35 * return If successful the function returns the len of the translated path.
\r
36 * 0therwise the function returns -1 and sets the global variable errno
\r
37 * to indicate the error.
\r
39 * errors [ENOTDIR] the path to translate is not a directory.
\r
41 * [ENOMEM] because this function use calloc, errno can be set with
\r
44 int
\r translatepath(const char *totranslate, char **translated);
50 #endif /* !__GETPATH_H */
\r