Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sysconf(3P)



          fpathconf(2P)    INTERACTIVE UNIX System (POSIX)    fpathconf(2P)



          NAME
               fpathconf, pathconf - get configurable path name variables

          SYNOPSIS
               #include <unistd.h>

               long fpathconf (fildes, name)
               int fildes;
               int name;

               long pathconf (path, name)
               char *path;
               int name;

          DESCRIPTION
               The fpathconf() and pathconf() functions provide a method
               for the application to determine the current value of a con-
               figurable limit or option.

               The argument fildes is an open file descriptor.

               The name argument represents the system variable to be
               queried.  In the table below, the symbolic constants listed
               under ``Value of name'' should be used instead of the actual
               values.

               __________________________________________________
              |      System variable     |     Value of name    |
              |__________________________|______________________|
              | {LINK_MAX}               |  _PC_LINK_MAX        |
              |__________________________|______________________|
              | {MAX_CANNON}             |  _PC_MAX_CANNON      |
              |__________________________|______________________|
              | {MAX_INPUT}              |  _PC_MAX_INPUT       |
              |__________________________|______________________|
              | {NAME_MAX}               |  _PC_NAME_MAX        |
              |__________________________|______________________|
              | {PATH_MAX}               |  _PC_PATH_MAX        |
              |__________________________|______________________|
              | {_POSIX_CHOWN_RESTRICTED}|  _PC_CHOWN_RESTRICTED|
              |__________________________|______________________|
              | {_POSIX_NO_TRUNC}        |  _PC_NO_TRUNC        |
              |__________________________|______________________|
              | {_POSIX_VDISABLE}        |  _PC_VDISABLE        |
              |__________________________|______________________|

          SEE ALSO
               sysconf(3P).

          DIAGNOSTICS
               If fpathconf() or pathconf() are invoked with a invalid sym-
               bolic constant or the symbolic constant corresponds to a
               configurable system limit or option not supported on the


          Rev. 1.1                                                   Page 1





          fpathconf(2P)    INTERACTIVE UNIX System (POSIX)    fpathconf(2P)



               system, a value of -1 will be returned to the invoking pro-
               cess.  If the function fails because the configurable system
               limit or option corresponding to name is not supported on
               the system, the value of errno will remain unchanged.

               Otherwise the fpathconf() or pathconf() functions return the
               current value for the file or directory.

          ERRORS
               Under the following conditions, the functions fpathconf()
               and pathconf() will fail and will set errno to:

               [EINVAL]
                    If the value of name is invalid.









































          Rev. 1.1                                                   Page 2



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026