---
name: "VOP_PATHCONF"
section: "9"
platform: "linux"
package: "freebsd-manpages"
version: "6.0-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/VOP_PATHCONF"
---

# VOP\_PATHCONF(9)

return POSIX pathconf information

## NAME

**VOP\_PATHCONF** – return POSIX pathconf information

## SYNOPSIS

**#include \<sys/param.h\>**

**#include \<sys/vnode.h\>**

**#include \<sys/unistd.h\>**

*int*\

**VOP\_PATHCONF**(*struct vnode \*vp*, *int name*, *int \*retval*);

## 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)](/chown/2.md) system call, otherwise 0.

- \_PC\_NO\_TRUNC

  Return 1 if file names longer than KERN\_NAME\_MAX are truncated.

## 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)](/pathconf/2.md), [vnode(9)](/vnode/9.md)

## AUTHORS

This manual page was written by Doug Rabson.
