.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993 Mitchum DSouza .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" Modified Thu Dec 13 22:51:19 2001 by Martin Schulze .\" Modified 2001-12-14 aeb .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH catopen 3 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE catopen, catclose \- abre/cierra un catálogo de mensajes .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBnl_catd catopen(const char *\fP\fIname\fP\fB, int \fP\fIflag\fP\fB);\fP \fBint catclose(nl_catd \fP\fIcatalog\fP\fB);\fP .fi .SH DESCRIPCIÓN La función \fBcatopen\fP() abre un catálogo de mensajes y devuelve un descriptor de catálogo. El descriptor permanece válido hasta una llamada a \fBcatclose\fP() o \fBexecve\fP(2). Si un descriptor de fichero es utilizado para implementar descriptores de catálogo la bandera \fBFD_CLOEXEC\fP es activada. .PP The argument \fIname\fP specifies the name of the message catalog to be opened. If \fIname\fP specifies an absolute path (i.e., contains a \[aq]/\[aq]), then \fIname\fP specifies a pathname for the message catalog. Otherwise, the environment variable \fBNLSPATH\fP is used with \fIname\fP substituted for \fB%N\fP (see \fBlocale\fP(7)). It is unspecified whether \fBNLSPATH\fP will be used when the process has root privileges. If \fBNLSPATH\fP does not exist in the environment, or if a message catalog cannot be opened in any of the paths specified by it, then an implementation defined path is used. This latter default path may depend on the \fBLC_MESSAGES\fP locale setting when the \fIflag\fP argument is \fBNL_CAT_LOCALE\fP and on the \fBLANG\fP environment variable when the \fIflag\fP argument is 0. Changing the \fBLC_MESSAGES\fP part of the locale may invalidate open catalog descriptors. .PP El argumento \fIflag\fP de \fBcatopen\fP() se emplea para indicar el origen para el idioma a utilizar. Si vale \fBNL_CAT_LOCALE\fP usará la configuración de localización actual para \fBLC_MESSAGES\fP. En otro caso usará la variable de entorno \fBLANG\fP. .PP La función \fBcatclose\fP() cierra el catálogo de mensajes identificado por \fIcatalog\fP. Esto invalida cualquier referencia posterior al catálogo de mensajes definido por \fIcatalog\fP. .SH "VALOR DEVUELTO" The function \fBcatopen\fP() returns a message catalog descriptor of type \fInl_catd\fP on success. On failure, it returns \fI(nl_catd)\~\-1\fP and sets \fIerrno\fP to indicate the error. The possible error values include all possible values for the \fBopen\fP(2) call. .PP La función \fBcatclose\fP() devuelve 0 en caso de éxito, o \-1 en caso de fallo. .SH ENTORNO .TP \fBLC_MESSAGES\fP Puede ser el origen de la configuración de localización \fBLC_MESSAGES\fP, y por tanto determina el idioma a usar si \fIflag\fP vale \fBNL_CAT_LOCALE\fP. .TP \fBLANG\fP El idioma a utilizar si \fIflag\fP vale 0. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBcatopen\fP() T} Seguridad del hilo MT\-Safe env T{ .na .nh \fBcatclose\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .sp 1 .SH VERSIONES .\" (Compare .\" .B MCLoadAll .\" below.) .\" .SS Linux notes .\" These functions are available for Linux since libc 4.4.4c. .\" In the case of linux libc4 and libc5, the catalog descriptor .\" .I nl_catd .\" is a .\" .BR mmap (2)'ed .\" area of memory and not a file descriptor. .\" The .\" .I flag .\" argument to .\" .BR catopen () .\" should be either .\" .B MCLoadBySet .\" (=0) or .\" .B MCLoadAll .\" (=1). .\" The former value indicates that a set from the catalog is to be .\" loaded when needed, whereas the latter causes the initial call to .\" .BR catopen () .\" to load the entire catalog into memory. .\" The default search path varies, but usually looks at a number of places below .\" .I /etc/locale .\" and .\" .IR /usr/lib/locale . Esta es la descripción de POSIX.1. El valor de glibc para \fBNL_CAT_LOCALE\fP es 1. El camino por defecto varía, pero normalmente se suele buscar en un número de sitios por debajo de \fI/usr/share/locale\fP. .SH ESTÁNDARES POSIX.1\-2008. .SH HISTORIAL .\" In XPG 1987, Vol. 3 it says: .\" .I "The flag argument of catopen is reserved for future use" .\" .IR "and should be set to 0" . .\" .\" It is unclear what the source was for the constants .\" .B MCLoadBySet .\" and .\" .B MCLoadAll .\" (see below). POSIX.1\-2001. .SH "VÉASE TAMBIÉN" \fBcatgets\fP(3), \fBsetlocale\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Sebastian Desimone , Gerardo Aburruzaga García y Miguel Pérez Ibars . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .