Provided by: manpages-es-dev_4.27.0-1_all 

NOMBRE
fpathconf, pathconf - obtiene valores de configuración para ficheros
BIBLIOTECA
Biblioteca Estándar C (libc, -lc)
SINOPSIS
#include <unistd.h>
long fpathconf(int descf, int nombre);
long pathconf(const char *ruta, int nombre);
DESCRIPCIÓN
fpathconf() obtiene un valor para la opción de configuración nombre para el descriptor de fichero abierto
descf.
pathconf() obtiene un valor para la opción de configuración nombre para el nombre de fichero ruta.
Las correspondientes macros definidas en <unistd.h> son valores mínimos; si una aplicación quiere
enterarse con seguridad de valores que pueden cambiar, puede hacer una llamada a fpathconf() o a
pathconf() obteniendo así resultados más liberales.
Hacer nombre igual a una de las siguientes constantes devuelve las siguientes opciones de configuración:
_PC_LINK_MAX
El número máximo de enlaces al fichero. Si descf o ruta se refieren a un directorio, entonces el
valor se aplica al directorio entero. La macro correspondiente es _POSIX_LINK_MAX.
_PC_MAX_CANON
La longitud máxima de una línea de entrada formateada, donde descf o ruta deben referirse a una
terminal. La macro correspondiente es _POSIX_MAX_CANON.
_PC_MAX_INPUT
La longitud máxima de una línea de entrada, donde descf o ruta deben referirse a una terminal. La
macro correspondiente es _POSIX_MAX_INPUT.
_PC_NAME_MAX
La máxima longitud de un nombre de fichero en el directorio ruta o descf que el proceso es capaz
de crear. La macro correspondiente es _POSIX_NAME_MAX.
_PC_PATH_MAX
La máxima longitud de un nombre de ruta relativo donde ruta o descf es el directorio de trabajo.
La macro correspondiente es _POSIX_PATH_MAX.
_PC_PIPE_BUF
The maximum number of bytes that can be written atomically to a pipe of FIFO. For fpathconf(), fd
should refer to a pipe or FIFO. For fpathconf(), path should refer to a FIFO or a directory; in
the latter case, the returned value corresponds to FIFOs created in that directory. The
corresponding macro is _POSIX_PIPE_BUF.
_PC_CHOWN_RESTRICTED
This returns a positive value if the use of chown(2) and fchown(2) for changing a file's user ID
is restricted to a process with appropriate privileges, and changing a file's group ID to a value
other than the process's effective group ID or one of its supplementary group IDs is restricted to
a process with appropriate privileges. According to POSIX.1, this variable shall always be
defined with a value other than -1. The corresponding macro is _POSIX_CHOWN_RESTRICTED.
Si fd o ruta se refieren a un directorio, el valor de salida se aplicará a todos los archivo en
ese directorio.
_PC_NO_TRUNC
Devuelve no-cero si acceder a nombres de ficheros de longitud mayor que _POSIX_NAME_MAX genera un
error. La macro correspondiente es _POSIX_NO_TRUNC.
_PC_VDISABLE
Devuelve no-cero si se puede inhabilitar el procesamiento de caracteres especiales, donde descf o
ruta deben referirse a una terminal.
VALOR DEVUELTO
El valor de salida de estas funciones es uno de los siguientes:
• On error, -1 is returned and errno is set to indicate the error (for example, EINVAL, indicating that
name is invalid).
• If name corresponds to a maximum or minimum limit, and that limit is indeterminate, -1 is returned and
errno is not changed. (To distinguish an indeterminate limit from an error, set errno to zero before
the call, and then check whether errno is nonzero when -1 is returned.)
• If name corresponds to an option, a positive value is returned if the option is supported, and -1 is
returned if the option is not supported.
• Otherwise, the current value of the option or limit is returned. This value will not be more
restrictive than the corresponding value that was described to the application in <unistd.h> or
<limits.h> when the application was compiled.
ERRORES
EACCES (pathconf()) Search permission is denied for one of the directories in the path prefix of path.
EBADF (fpathconf()) fd is not a valid file descriptor.
EINVAL name no es válido.
EINVAL The implementation does not support an association of name with the specified file.
ELOOP (pathconf()) Too many symbolic links were encountered while resolving path.
ENAMETOOLONG
(pathconf()) path is too long.
ENOENT (pathconf()) A component of path does not exist, or path is an empty string.
ENOTDIR
(pathconf()) A component used as a directory in path is not in fact a directory.
ATRIBUTOS
Para obtener una explicación de los términos usados en esta sección, véase attributes(7).
┌──────────────────────────────────────────────────────────────┬────────────────────┬───────────────────┐
│ Interfaz │ Atributo │ Valor │
├──────────────────────────────────────────────────────────────┼────────────────────┼───────────────────┤
│ fpathconf(), pathconf() │ Seguridad del hilo │ Multi-hilo seguro │
└──────────────────────────────────────────────────────────────┴────────────────────┴───────────────────┘
ESTÁNDARES
POSIX.1-2008.
HISTORIAL
POSIX.1-2001.
NOTAS
Pueden existir en el directorio dado ficheros cuyos nombres sean de longitud mayor que el valor devuelto
para nombre igual a _PC_NAME_MAX.
Algunos valores devueltos pueden ser enormes. No son apropiados para reservar memoria.
VÉASE TAMBIÉN
getconf(1), open(2), statfs(2), confstr(3), sysconf(3)
TRADUCCIÓN
La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García
<gerardo.aburruzaga@uca.es> y Marcos Fouces <marcos@debian.org>
Esta traducción es documentación libre; lea la GNU General Public License Version 3 o posterior con
respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD.
Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a
debian-l10n-spanish@lists.debian.org.
Páginas de Manual de Linux 6.9.1 2 Mayo 2024 fpathconf(3)