.\" -*- 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 "5 lutego 2023 r." "Linux man\-pages 6.03" .SH NAZWA catopen, catclose \- otwarcie/zamknięcie katalogu komunikatów .SH BIBLIOTEKA Standardowa biblioteka C (\fIlibc\fP, \fI\-lc\fP) .SH SKŁADNIA .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\fIkatalog\fP\fB);\fP .fi .SH OPIS Funkcja \fBcatopen\fP() otwiera katalog komunikatów i zwraca deskryptor tego katalogu. Deskryptor pozostaje ważny aż do wywołania \fBcatclose\fP() lub \fBexecve\fP(2). Jeśli w celu implementacji deskryptorów katalogów, użyty zostanie deskryptor pliku, to zostanie ustawiony znacznik \fBFD_CLOEXEC\fP. .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 Argument \fIflag\fP funkcji \fBcatopen\fP() służy do wskazania źródeł dla używanego języka. Jeśli ma wartość \fBNL_CAT_LOCALE\fP, to użyte zostanie bieżące ustawienie regionalne dla \fBLC_MESSAGES\fP. W przeciwnym przypadku użyta zostanie zmienna środowiskowa \fBLANG\fP. .PP Funkcja \fBcatclose\fP() zamyka katalog komunikatów określony przez deskryptor \fIcatalog\fP. Unieważnia każde następne odwołania do katalogu komunikatów określonego przez \fIcatalog\fP. .SH "WARTOŚĆ ZWRACANA" 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 Funkcja \fBcatclose\fP() zwraca 0, jeśli zakończy się pomyślnie, a \-1 w przypadku błędu. .SH ŚRODOWISKO .TP \fBLC_MESSAGES\fP Może stanowić źródło ustawienia regionalnego \fBLC_MESSAGES\fP i wówczas określa język używany, gdy \fIflag\fP jest ustawione na \fBNL_CAT_LOCALE\fP. .TP \fBLANG\fP Język używany, gdy \fIflag\fP wynosi 0. .SH ATRYBUTY Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku \fBattributes\fP(7). .ad l .nh .TS allbox; lbx lb lb l l l. Interfejs Atrybut Wartość T{ \fBcatopen\fP() T} Bezpieczeństwo wątkowe MT\-Safe env T{ \fBcatclose\fP() T} Bezpieczeństwo wątkowe MT\-Safe .TE .hy .ad .sp 1 .SH STANDARDY .\" 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, POSIX.1\-2008. .SH UWAGI .\" (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 . Powyższe stanowi opis wg POSIX.1. W glibc wartość \fBNL_CAT_LOCALE\fP wynosi 1. Domyślna ścieżka może być różna, ale zazwyczaj stanowi kilka miejsc wewnątrz katalogu \fI/usr/share/locale\fP. .SH "ZOBACZ TAKŻE" \fBcatgets\fP(3), \fBsetlocale\fP(3) .PP .SH TŁUMACZENIE Autorami polskiego tłumaczenia niniejszej strony podręcznika są: Adam Byrtek , Andrzej Krzysztofowicz , Robert Luberda i Michał Kułach . .PP Niniejsze tłumaczenie jest wolną dokumentacją. Bliższe informacje o warunkach licencji można uzyskać zapoznając się z .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License w wersji 3 .UE lub nowszej. Nie przyjmuje się ŻADNEJ ODPOWIEDZIALNOŚCI. .PP Błędy w tłumaczeniu strony podręcznika prosimy zgłaszać na adres listy dyskusyjnej .MT manpages-pl-list@lists.sourceforge.net .ME .