hpux man page for pathfind

Query: pathfind

OS: hpux

Section: 3g

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

pathfind(3G)															      pathfind(3G)

NAME
pathfind() - search for named file in named directories
SYNOPSIS
DESCRIPTION
searches the directories named in path for the file name. The directories named in path are separated by colons. mode is a string of option letters chosen from the set Letter Meaning --------------------------- r readable w writable x executable f normal file b block special c character special d directory p FIFO (pipe) u set user ID bit g set group ID bit k sticky bit s size nonzero Options read, write, and execute are checked relative to the real (not the effective) user ID and group ID of the current process. If the file name, with all the characteristics specified by mode, is found in any of the directories specified by path, then returns a pointer to a string containing the member of path, followed by a slash character followed by name. If name begins with a slash, it is treated as an absolute path name, and path is ignored. An empty path member is treated as the current directory. is not prepended at the occurrence of the first match; rather, the unadorned name is returned. To use this interface, link in the libgen library by specifying For example:
RETURN VALUE
If no match is found, returns a null pointer,
EXAMPLES
To find the command using the environment variable:
WARNINGS
The string pointed to by the returned pointer is stored in a static area that is reused on subsequent calls to
SEE ALSO
sh(1), test(1), access(2), mknod(2), stat(2), getenv(3C), thread_safety(5). pathfind(3G)
Related Man Pages
mknod(2) - opensolaris
mkfifo(3c) - opensolaris
access(2) - bsd
pathfind(3gen) - sunos
mknod(2) - hpux
Similar Topics in the Unix Linux Community
Multiple protected directories
Using find -d and copying to the found directories
Deleting empty directories using find
How to find (specific) directories in SunOS 5.9?
Determining file access perms for current process