Lines Matching defs:pathname
78 * Figure out the maximum length of an expanded pathname.
84 * Allocate the pathname buffer.
113 * Return the pathname to a zero-length string.
116 * path PathName * The pathname container.
118 * return char * The cleared pathname buffer, or NULL on error.
134 * Append a string to a pathname, increasing the size of the pathname
138 * path PathName * The pathname container.
139 * string const char * The string to be appended to the pathname.
148 * return char * The pathname string path->name[], which may
150 * insufficient memory to extend the pathname.
155 int pathlen; /* The length of the pathname */
165 * Get the current length of the pathname.
174 * Resize the pathname if needed.
179 * Append the string to the output pathname, removing any escape
195 * Append the string directly to the pathname.
204 * Prepend a string to a pathname, increasing the size of the pathname
208 * path PathName * The pathname container.
209 * string const char * The string to be prepended to the pathname.
218 * return char * The pathname string path->name[], which may
220 * insufficient memory to extend the pathname.
225 int pathlen; /* The length of the pathname */
236 * Get the current length of the pathname.
261 * Resize the pathname if needed.
271 * output pathname, removing any escape characters if needed.
287 * If needed reallocate a given pathname buffer to allow a string of
291 * path PathName * The pathname container object.
292 * length size_t The required length of the pathname buffer,
295 * return char * The pathname buffer, or NULL if there was
308 * If the pathname buffer isn't large enough to accomodate a string
326 * Estimate the largest amount of space needed to store a pathname.
356 * Return the amount of space needed to accomodate a pathname plus
366 * pathname const char * The path to test.
369 * 1 - pathname[] refers to a directory.
371 int _pu_path_is_dir(const char *pathname)
377 if(stat(pathname, &statbuf) < 0)
389 * pathname const char * The path to test.
392 * 1 - pathname[] refers to a regular file.
394 int _pu_path_is_file(const char *pathname)
400 if(stat(pathname, &statbuf) < 0)
412 * pathname const char * The path to test.
415 * 1 - pathname[] refers to an executable file.
417 int _pu_path_is_exe(const char *pathname)
423 if(stat(pathname, &statbuf) < 0)
430 access(pathname, X_OK) == 0;
441 * that follows the pathname.
444 * the potential pathname, or NULL on error.
493 * start_from int The index of the first character of the pathname
497 * the potential pathname, or NULL on error.
530 * pathname const char * The path to test.
535 int _pu_file_exists(const char *pathname)
538 return stat(pathname, &statbuf) == 0;