MPE/iX Shell and Utilities Reference Manual, Vol 2

pathchk(1) MPE/iX Shell and Utilities pathchk(1)
NAME
pathchk — check path names
SYNOPSIS
pathchk [-p] pathname...
DESCRIPTION
pathchk checks one or more pathnames for validity and portability (based on the underlying
file system). A pathname is valid if you can use it to create or access a file without causing a
syntax error. A pathname is portable if the file system does not truncate the name when it tries
to use it. pathchk writes an error message indicating the error detected and the erroneous
path name if any pathname
is longer than PATH_MAX bytes;
contains a component longer than NAME_MAX bytes;
contains any component in a directory that is not searchable;
contains any character in any component that is not valid.
Options
pathchk accepts the following option:
–p instead of using the previous criteria, writes an error message if pathname
is longer than _POSIX_PATH_MAX bytes;
contains any component longer than _POSIX_NAME_MAX bytes;
contains any character in any component that is not in the portable file name
character set.
DIAGNOSTICS
Possible exit status values are:
0 All pathnames passed the check.
1 An error occurred.
2 Unknown command line option.
Messages
Message: component: component too long.
Cause: One of the components of the path name provided is longer than is allowed by
the filesystem (or by
POSIX,if–p was specified).
Action: Try to shorten the offending component or components of the path name.
1-414 Commands and Utilities