logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

VOP_PATHCONF — return POSIX pathconf information

Authors

       This manual page was written by Doug Rabson.

Debian                                            July 21, 2019                                  VOP_PATHCONF(9)

Description

       The arguments are:

       vp      The vnode to get information about.

       name    The type of information to return.

       retval  The place to return the information.

       The value of name specifies what should be returned:

       _PC_LINK_MAX          The maximum number of links to a file.

       _PC_NAME_MAX          The maximum number of bytes in a file name.

       _PC_PATH_MAX          The maximum number of bytes in a pathname.

       _PC_PIPE_BUF          The maximum number of bytes which will be written atomically to a pipe.

       _PC_CHOWN_RESTRICTED  Return  1  if  appropriate  privileges  are  required for the chown(2) system call,
                             otherwise 0.

       _PC_NO_TRUNC          Return 1 if file names longer than KERN_NAME_MAX are truncated.

Name

       VOP_PATHCONF — return POSIX pathconf information

Return Values

       If name is recognized, *retval is set to the specified value and zero is returned,  otherwise  EINVAL  is
       returned.

See Also

pathconf(2), vnode(9)

Synopsis

#include<sys/param.h>#include<sys/vnode.h>#include<sys/unistd.h>intVOP_PATHCONF(structvnode*vp, intname, long*retval);

See Also