Debian Codegraph @

po/ru/man2/listxattr.2.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Azamat Hackimov <[email protected]>, 2013-2014, 2017.
5 # Dmitriy S. Seregin <[email protected]>, 2013.
6 # Yuri Kozlov <[email protected]>, 2011-2019.
7 # Иван Павлов <[email protected]>, 2017, 2019.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: manpages-l10n\n"
11 "POT-Creation-Date: 2026-06-05 06:29+0200\n"
12 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
13 "Last-Translator: Yuri Kozlov <[email protected]>\n"
14 "Language-Team: Russian <[email protected]>\n"
15 "Language: ru\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
20 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
21 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
22 "X-Generator: Lokalize 2.0\n"
23
24 #. type: TH
25 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
26 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
27 #, no-wrap
28 msgid "listxattr"
29 msgstr "listxattr"
30
31 #. type: TH
32 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
33 #: opensuse-tumbleweed
34 #, no-wrap
35 msgid "2026-02-08"
36 msgstr "8 февраля 2026 г."
37
38 #. type: TH
39 #: archlinux debian-unstable
40 #, fuzzy, no-wrap
41 #| msgid "Linux man-pages 6.17"
42 msgid "Linux man-pages 6.18"
43 msgstr "Справочные страницы Linux 6.17"
44
45 #. type: SH
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 #, no-wrap
49 msgid "NAME"
50 msgstr "НАИМЕНОВАНИЕ"
51
52 #. type: Plain text
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 msgid "listxattr, llistxattr, flistxattr - list extended attribute names"
56 msgstr ""
57 "listxattr, llistxattr, flistxattr - выводит список названий расширенных "
58 "атрибутов"
59
60 #. type: SH
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 #, no-wrap
64 msgid "LIBRARY"
65 msgstr "БИБЛИОТЕКА"
66
67 #. type: Plain text
68 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
69 #: opensuse-leap-16-1 opensuse-tumbleweed
70 msgid "Standard C library (I<libc>,\\ I<-lc>)"
71 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
72
73 #. type: SH
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "SYNOPSIS"
78 msgstr "СИНТАКСИС"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "B<#include E<lt>sys/xattr.hE<gt>>\n"
85 msgstr "B<#include E<lt>sys/xattr.hE<gt>>\n"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, fuzzy, no-wrap
91 #| msgid ""
92 #| "B<ssize_t listxattr(const char *>I<path>B<, char *>I<list>B<, size_t >I<size>B<);>\n"
93 #| "B<ssize_t llistxattr(const char *>I<path>B<, char *>I<list>B<, size_t >I<size>B<);>\n"
94 #| "B<ssize_t flistxattr(int >I<fd>B<, char *>I<list>B<, size_t >I<size>B<);>\n"
95 msgid ""
96 "B<ssize_t listxattr(const char *>I<path>B<, char *_Nullable >I<list>B<, size_t >I<size>B<);>\n"
97 "B<ssize_t llistxattr(const char *>I<path>B<, char *_Nullable >I<list>B<, size_t >I<size>B<);>\n"
98 "B<ssize_t flistxattr(int >I<fd>B<, char *_Nullable >I<list>B<, size_t >I<size>B<);>\n"
99 msgstr ""
100 "B<ssize_t listxattr(const char *>I<path>B<, char *>I<list>B<, size_t >I<size>B<);>\n"
101 "B<ssize_t llistxattr(const char *>I<path>B<, char *>I<list>B<, size_t >I<size>B<);>\n"
102 "B<ssize_t flistxattr(int >I<fd>B<, char *>I<list>B<, size_t >I<size>B<);>\n"
103
104 #. type: SH
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 #, no-wrap
108 msgid "DESCRIPTION"
109 msgstr "ОПИСАНИЕ"
110
111 #. type: Plain text
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 msgid ""
115 "Extended attributes are I<name>:I<value> pairs associated with inodes "
116 "(files, directories, symbolic links, etc.). They are extensions to the "
117 "normal attributes which are associated with all inodes in the system (i.e., "
118 "the B<stat>(2) data). A complete overview of extended attributes concepts "
119 "can be found in B<xattr>(7)."
120 msgstr ""
121 "Расширенные атрибуты представляют собой пару I<имя>:I<значение> и "
122 "связываются с записями inode (файлы, каталоги, символьные ссылки и т.п.). "
123 "Они являются расширениями к обычным атрибутам, связанным со всеми записями "
124 "inode в системе (например, данные B<stat>(2)). Полное описание модели "
125 "расширенных атрибутов можно найти в B<xattr>(7)."
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 msgid ""
131 "B<listxattr>() retrieves the list of extended attribute names associated "
132 "with the given I<path> in the filesystem. The retrieved list is placed in "
133 "I<list>, a caller-allocated buffer whose size (in bytes) is specified in the "
134 "argument I<size>. The list is the set of (null-terminated) names, one after "
135 "the other. Names of extended attributes to which the calling process does "
136 "not have access may be omitted from the list. The length of the attribute "
137 "name I<list> is returned."
138 msgstr ""
139 "B<listxattr>() получает список названий расширенных атрибутов, связанных с "
140 "заданным путем I<path> в файловой системе. Список помещается в I<list> "
141 "вызывающего, который выделил для этого буфер размером I<size> (задаётся в "
142 "байтах). Список представляет собой набор названий (заканчивающихся null) "
143 "один за одним. Названия расширенных атрибутов, к которым вызывающий процесс "
144 "не может иметь доступ, могут отсутствовать в списке. Возвращается длина "
145 "списка I<list>."
146
147 #. type: Plain text
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 msgid ""
151 "B<llistxattr>() is identical to B<listxattr>(), except in the case of a "
152 "symbolic link, where the list of names of extended attributes associated "
153 "with the link itself is retrieved, not the file that it refers to."
154 msgstr ""
155 "B<llistxattr>() идентичен B<listxattr>(), за исключением случая с символьной "
156 "ссылкой, где возвращается список названий расширенных атрибутов, связанных с "
157 "самой ссылкой, а не с файлом, на который она ссылается."
158
159 #. type: Plain text
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 msgid ""
163 "B<flistxattr>() is identical to B<listxattr>(), only the open file referred "
164 "to by I<fd> (as returned by B<open>(2)) is interrogated in place of I<path>."
165 msgstr ""
166 "B<flistxattr>() идентичен B<listxattr>(), отличием является то, что "
167 "используется открытый файл, на который указывает I<fd> (возвращаемом "
168 "B<open>(2)), а не указанный в I<path>."
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 msgid ""
174 "A single extended attribute I<name> is a null-terminated string. The name "
175 "includes a namespace prefix; there may be several, disjoint namespaces "
176 "associated with an individual inode."
177 msgstr ""
178 "Одиночный расширенный атрибут I<name> является строкой, заканчивающейся "
179 "null. Имя включает префикс пространства имен; их может быть несколько, "
180 "разрозненные пространства связаны с отдельной записью inode."
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 msgid ""
186 "If I<size> is specified as zero, these calls return the current size of the "
187 "list of extended attribute names (and leave I<list> unchanged). This can be "
188 "used to determine the size of the buffer that should be supplied in a "
189 "subsequent call. (But, bear in mind that there is a possibility that the "
190 "set of extended attributes may change between the two calls, so that it is "
191 "still necessary to check the return status from the second call.)"
192 msgstr ""
193 "Если I<size> равно нулю, то эти вызовы возвращают текущий размер списка имён "
194 "расширенных атрибутов (и не изменяют I<list>). Это можно использовать для "
195 "определения размера буфера, который будет указан в последующем вызове (но "
196 "учтите, есть вероятность, что набор расширенных атрибутов может измениться "
197 "между двумя вызовами, поэтому всё равно нужно проверять возвращаемое "
198 "состояние после второго вызова)."
199
200 #. type: SS
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid "Example"
205 msgstr "Пример"
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, fuzzy
211 #| msgid ""
212 #| "The I<list> of names is returned as an unordered array of null-terminated "
213 #| "character strings (attribute names are separated by null bytes (\\"
214 #| "(aq\\e0\\(aq)), like this:"
215 msgid ""
216 "The I<list> of names is returned as an unordered array of null-terminated "
217 "character strings (attribute names are separated by null bytes (\\[aq]\\"
218 "[rs]0\\[aq])), like this:"
219 msgstr ""
220 "I<Список> названий возвращается в виде неупорядоченного массива символьных "
221 "строк, заканчивающихся null (названия атрибутов разделяются байтами null (\\"
222 "(aq\\e0\\(aq)), например:"
223
224 #. type: Plain text
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, fuzzy, no-wrap
228 #| msgid "user.name1\\e0system.name1\\e0user.name2\\e0\n"
229 msgid "user.name1\\[rs]0system.name1\\[rs]0user.name2\\[rs]0\n"
230 msgstr "user.name1\\e0system.name1\\e0user.name2\\e0\n"
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid ""
236 "Filesystems that implement POSIX ACLs using extended attributes might return "
237 "a I<list> like this:"
238 msgstr ""
239 "Файловые системы, реализующие ACL стандарта POSIX с помощью расширенных "
240 "атрибутов, могут возвращать такой I<список>:"
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, fuzzy, no-wrap
246 #| msgid "system.posix_acl_access\\e0system.posix_acl_default\\e0\n"
247 msgid "system.posix_acl_access\\[rs]0system.posix_acl_default\\[rs]0\n"
248 msgstr "system.posix_acl_access\\e0system.posix_acl_default\\e0\n"
249
250 #. type: SH
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, no-wrap
254 msgid "RETURN VALUE"
255 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
256
257 #. type: Plain text
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 #, fuzzy
261 #| msgid ""
262 #| "On success, a nonnegative number is returned indicating the size of the "
263 #| "extended attribute name list. On failure, -1 is returned and I<errno> is "
264 #| "set appropriately."
265 msgid ""
266 "On success, a nonnegative number is returned indicating the size of the "
267 "extended attribute name list. On failure, -1 is returned and I<errno> is "
268 "set to indicate the error."
269 msgstr ""
270 "При успешном завершении работы возвращается неотрицательное число, "
271 "обозначающее размер списка названий расширенных атрибутов. При ошибках "
272 "возвращается -1 и I<errno> устанавливается в соответствующее значение."
273
274 #. type: SH
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 #, no-wrap
278 msgid "ERRORS"
279 msgstr "ОШИБКИ"
280
281 #. type: TP
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "B<E2BIG>"
286 msgstr "B<E2BIG>"
287
288 #. type: Plain text
289 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
290 #: opensuse-tumbleweed
291 #, fuzzy
292 #| msgid ""
293 #| "The size of the list of extended attribute names is larger than the "
294 #| "maximum size allowed; the list cannot be retrieved. This can happen on "
295 #| "filesystems that support an unlimited number of extended attributes per "
296 #| "file such as XFS, for example. See BUGS."
297 msgid ""
298 "The size of the list of extended attribute names is larger than the maximum "
299 "size allowed; the list cannot be retrieved. This can happen on filesystems "
300 "that support an unlimited number of extended attributes per file, such as "
301 "XFS, for example. See BUGS."
302 msgstr ""
303 "Размер списка имён расширенных атрибутов превышает максимально допустимый; "
304 "список невозможно получить. Это может случиться в файловых системах, которые "
305 "поддерживают бесконечное количество расширенных атрибутов на файл, например "
306 "XFS. Смотрите ДЕФЕКТЫ."
307
308 #. type: TP
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 #, no-wrap
312 msgid "B<ENOTSUP>"
313 msgstr "B<ENOTSUP>"
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 msgid ""
319 "Extended attributes are not supported by the filesystem, or are disabled."
320 msgstr ""
321 "Расширенные атрибуты не поддерживаются файловой системой или отключены."
322
323 #. type: TP
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "B<ERANGE>"
328 msgstr "B<ERANGE>"
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 msgid "The I<size> of the I<list> buffer is too small to hold the result."
334 msgstr "Размер I<size> буфера I<list> слишком мал для хранения результата."
335
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 msgid "In addition, the errors documented in B<stat>(2) can also occur."
340 msgstr "Также могут возникать ошибки, описанные в B<stat>(2)."
341
342 #. type: SH
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 #, no-wrap
346 msgid "STANDARDS"
347 msgstr "СТАНДАРТЫ"
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 msgid "Linux."
353 msgstr "Linux."
354
355 #. type: SH
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 #, no-wrap
359 msgid "HISTORY"
360 msgstr "ИСТОРИЯ"
361
362 #. .SH AUTHORS
363 #. Andreas Gruenbacher,
364 #. .RI < [email protected] >
365 #. and the SGI XFS development team,
366 #. .RI < [email protected] >.
367 #. Please send any bug reports or comments to these addresses.
368 #. type: Plain text
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 msgid "Linux 2.4, glibc 2.3."
372 msgstr "Linux 2.4, glibc 2.3."
373
374 #. type: SH
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 #, no-wrap
378 msgid "BUGS"
379 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
380
381 #. The xattr(7) page refers to this text:
382 #. type: Plain text
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 msgid ""
386 "As noted in B<xattr>(7), the VFS imposes a limit of 64\\ kB on the size of "
387 "the extended attribute name list returned by B<listxattr>(). If the total "
388 "size of attribute names attached to a file exceeds this limit, it is no "
389 "longer possible to retrieve the list of attribute names."
390 msgstr ""
391 "Как упоминалось в B<xattr>(7), в VFS есть ограничение в 64\\ КБ на размер "
392 "списка имён расширенных атрибутов, возвращаемый B<listxattr>(). Если полный "
393 "размер имён атрибутов, прикреплённых к файлу, превышает это ограничение, то "
394 "становится невозможно получить список имён атрибутов."
395
396 #. type: SH
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "EXAMPLES"
401 msgstr "ПРИМЕРЫ"
402
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 msgid ""
407 "The following program demonstrates the usage of B<listxattr>() and "
408 "B<getxattr>(2). For the file whose pathname is provided as a command-line "
409 "argument, it lists all extended file attributes and their values."
410 msgstr ""
411 "В следующей программе показано использование B<listxattr>() и "
412 "B<getxattr>(2). Для файла, чьё имя указывается параметром в командной "
413 "строке, выводится список файловых атрибутов и их значения."
414
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 msgid ""
419 "To keep the code simple, the program assumes that attribute keys and values "
420 "are constant during the execution of the program. A production program "
421 "should expect and handle changes during execution of the program. For "
422 "example, the number of bytes required for attribute keys might increase "
423 "between the two calls to B<listxattr>(). An application could handle this "
424 "possibility using a loop that retries the call (perhaps up to a "
425 "predetermined maximum number of attempts) with a larger buffer each time it "
426 "fails with the error B<ERANGE>. Calls to B<getxattr>(2) could be handled "
427 "similarly."
428 msgstr ""
429 "Для упрощения кода при выполнении программы ключи атрибутов и значения "
430 "считаются константами. В реальной программе нужно учитывать и обрабатывать "
431 "изменения при выполнении программы. Например, количество байт, необходимое "
432 "для ключей атрибутов, может увеличиваться между двумя вызовами "
433 "B<listxattr>(). В приложении нужно предусмотреть эту возможность с помощью "
434 "цикла, который повторяет вызов (возможно, ввести задаваемое максимальное "
435 "количество попыток) с большим буфером каждый раз при ошибке B<ERANGE>. "
436 "Вызовы B<getxattr>(2) могут обрабатываться схожим образом."
437
438 #. type: Plain text
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 msgid ""
442 "The following output was recorded by first creating a file, setting some "
443 "extended file attributes, and then listing the attributes with the example "
444 "program."
445 msgstr ""
446 "В следующем выводе был создан файл, заданы некоторые расширенные файловые "
447 "атрибуты и показан вывод атрибутов с помощью программы-примера."
448
449 #. type: SS
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 #, no-wrap
453 msgid "Example output"
454 msgstr "Пример вывода"
455
456 #. type: Plain text
457 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
458 #: opensuse-tumbleweed
459 #, fuzzy, no-wrap
460 #| msgid ""
461 #| "$ B<touch /tmp/foo>\n"
462 #| "$ B<setfattr -n user.fred -v chocolate /tmp/foo>\n"
463 #| "$ B<setfattr -n user.frieda -v bar /tmp/foo>\n"
464 #| "$ B<setfattr -n user.empty /tmp/foo>\n"
465 #| "$ B<./listxattr /tmp/foo>\n"
466 #| "user.fred: chocolate\n"
467 #| "user.frieda: bar\n"
468 #| "user.empty: E<lt>no valueE<gt>\n"
469 msgid ""
470 "$B< touch /tmp/foo>;\n"
471 "$B< setfattr -n user.fred -v chocolate /tmp/foo>;\n"
472 "$B< setfattr -n user.frieda -v bar /tmp/foo>;\n"
473 "$B< setfattr -n user.empty /tmp/foo>;\n"
474 "$B< ./listxattr /tmp/foo>;\n"
475 "user.fred: chocolate\n"
476 "user.frieda: bar\n"
477 "user.empty: E<lt>no valueE<gt>\n"
478 msgstr ""
479 "$ B<touch /tmp/foo>\n"
480 "$ B<setfattr -n user.fred -v chocolate /tmp/foo>\n"
481 "$ B<setfattr -n user.frieda -v bar /tmp/foo>\n"
482 "$ B<setfattr -n user.empty /tmp/foo>\n"
483 "$ B<./listxattr /tmp/foo>\n"
484 "user.fred: chocolate\n"
485 "user.frieda: bar\n"
486 "user.empty: E<lt>нет значенияE<gt>\n"
487
488 #. type: SS
489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
491 #, no-wrap
492 msgid "Program source (listxattr.c)"
493 msgstr "Исходный код программы (listxattr.c)"
494
495 #. type: Plain text
496 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
497 #: opensuse-tumbleweed
498 #, no-wrap
499 msgid ""
500 "#include E<lt>stdio.hE<gt>\n"
501 "#include E<lt>stdlib.hE<gt>\n"
502 "#include E<lt>string.hE<gt>\n"
503 "#include E<lt>sys/xattr.hE<gt>\n"
504 "\\&\n"
505 "int\n"
506 "main(int argc, char *argv[])\n"
507 "{\n"
508 " char *buf, *key, *val;\n"
509 " ssize_t buflen, keylen, vallen;\n"
510 "\\&\n"
511 " if (argc != 2) {\n"
512 " fprintf(stderr, \"Usage: %s path\\[rs]n\", argv[0]);\n"
513 " exit(EXIT_FAILURE);\n"
514 " }\n"
515 "\\&\n"
516 " /*\n"
517 " * Determine the length of the buffer needed.\n"
518 " */\n"
519 " buflen = listxattr(argv[1], NULL, 0);\n"
520 " if (buflen == -1) {\n"
521 " perror(\"listxattr\");\n"
522 " exit(EXIT_FAILURE);\n"
523 " }\n"
524 " if (buflen == 0) {\n"
525 " printf(\"%s has no attributes.\\[rs]n\", argv[1]);\n"
526 " exit(EXIT_SUCCESS);\n"
527 " }\n"
528 "\\&\n"
529 " /*\n"
530 " * Allocate the buffer.\n"
531 " */\n"
532 " buf = malloc(buflen);\n"
533 " if (buf == NULL) {\n"
534 " perror(\"malloc\");\n"
535 " exit(EXIT_FAILURE);\n"
536 " }\n"
537 "\\&\n"
538 " /*\n"
539 " * Copy the list of attribute keys to the buffer.\n"
540 " */\n"
541 " buflen = listxattr(argv[1], buf, buflen);\n"
542 " if (buflen == -1) {\n"
543 " perror(\"listxattr\");\n"
544 " exit(EXIT_FAILURE);\n"
545 " }\n"
546 "\\&\n"
547 " /*\n"
548 " * Loop over the list of zero terminated strings with the\n"
549 " * attribute keys. Use the remaining buffer length to determine\n"
550 " * the end of the list.\n"
551 " */\n"
552 " key = buf;\n"
553 " while (buflen E<gt> 0) {\n"
554 "\\&\n"
555 " /*\n"
556 " * Output attribute key.\n"
557 " */\n"
558 " printf(\"%s: \", key);\n"
559 "\\&\n"
560 " /*\n"
561 " * Determine length of the value.\n"
562 " */\n"
563 " vallen = getxattr(argv[1], key, NULL, 0);\n"
564 " if (vallen == -1)\n"
565 " perror(\"getxattr\");\n"
566 "\\&\n"
567 " if (vallen E<gt> 0) {\n"
568 "\\&\n"
569 " /*\n"
570 " * Allocate value buffer.\n"
571 " * One extra byte is needed to append 0x00.\n"
572 " */\n"
573 " val = malloc(vallen + 1);\n"
574 " if (val == NULL) {\n"
575 " perror(\"malloc\");\n"
576 " exit(EXIT_FAILURE);\n"
577 " }\n"
578 "\\&\n"
579 " /*\n"
580 " * Copy value to buffer.\n"
581 " */\n"
582 " vallen = getxattr(argv[1], key, val, vallen);\n"
583 " if (vallen == -1) {\n"
584 " perror(\"getxattr\");\n"
585 " } else {\n"
586 " /*\n"
587 " * Output attribute value.\n"
588 " */\n"
589 " val[vallen] = 0;\n"
590 " printf(\"%s\", val);\n"
591 " }\n"
592 "\\&\n"
593 " free(val);\n"
594 " } else if (vallen == 0) {\n"
595 " printf(\"E<lt>no valueE<gt>\");\n"
596 " }\n"
597 "\\&\n"
598 " printf(\"\\[rs]n\");\n"
599 "\\&\n"
600 " /*\n"
601 " * Forward to next attribute key.\n"
602 " */\n"
603 " keylen = strlen(key) + 1;\n"
604 " buflen -= keylen;\n"
605 " key += keylen;\n"
606 " }\n"
607 "\\&\n"
608 " free(buf);\n"
609 " exit(EXIT_SUCCESS);\n"
610 "}\n"
611 msgstr ""
612
613 #. SRC END
614 #. type: SH
615 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
616 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
617 #, no-wrap
618 msgid "SEE ALSO"
619 msgstr "СМОТРИТЕ ТАКЖЕ"
620
621 #. type: Plain text
622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
624 msgid ""
625 "B<getfattr>(1), B<setfattr>(1), B<getxattr>(2), B<open>(2), "
626 "B<removexattr>(2), B<setxattr>(2), B<stat>(2), B<symlink>(7), B<xattr>(7)"
627 msgstr ""
628 "B<getfattr>(1), B<setfattr>(1), B<getxattr>(2), B<open>(2), "
629 "B<removexattr>(2), B<setxattr>(2), B<stat>(2), B<symlink>(7), B<xattr>(7)"
630
631 #. type: TH
632 #: debian-trixie
633 #, no-wrap
634 msgid "2024-06-15"
635 msgstr "15 июня 2024 г."
636
637 #. type: TH
638 #: debian-trixie
639 #, no-wrap
640 msgid "Linux man-pages 6.9.1"
641 msgstr "Страницы руководства Linux 6.9.1"
642
643 #. type: Plain text
644 #: debian-trixie
645 msgid "Standard C library (I<libc>, I<-lc>)"
646 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
647
648 #. type: Plain text
649 #: debian-trixie fedora-44 fedora-rawhide
650 msgid ""
651 "The size of the list of extended attribute names is larger than the maximum "
652 "size allowed; the list cannot be retrieved. This can happen on filesystems "
653 "that support an unlimited number of extended attributes per file such as "
654 "XFS, for example. See BUGS."
655 msgstr ""
656 "Размер списка имён расширенных атрибутов превышает максимально допустимый; "
657 "список невозможно получить. Это может случиться в файловых системах, которые "
658 "поддерживают бесконечное количество расширенных атрибутов на файл, например "
659 "XFS. Смотрите ДЕФЕКТЫ."
660
661 #. type: Plain text
662 #: debian-trixie fedora-44 fedora-rawhide
663 #, no-wrap
664 msgid ""
665 "$ B<touch /tmp/foo>\n"
666 "$ B<setfattr -n user.fred -v chocolate /tmp/foo>\n"
667 "$ B<setfattr -n user.frieda -v bar /tmp/foo>\n"
668 "$ B<setfattr -n user.empty /tmp/foo>\n"
669 "$ B<./listxattr /tmp/foo>\n"
670 "user.fred: chocolate\n"
671 "user.frieda: bar\n"
672 "user.empty: E<lt>no valueE<gt>\n"
673 msgstr ""
674 "$ B<touch /tmp/foo>\n"
675 "$ B<setfattr -n user.fred -v chocolate /tmp/foo>\n"
676 "$ B<setfattr -n user.frieda -v bar /tmp/foo>\n"
677 "$ B<setfattr -n user.empty /tmp/foo>\n"
678 "$ B<./listxattr /tmp/foo>\n"
679 "user.fred: chocolate\n"
680 "user.frieda: bar\n"
681 "user.empty: E<lt>нет значенияE<gt>\n"
682
683 #. type: Plain text
684 #: debian-trixie fedora-44 fedora-rawhide
685 #, no-wrap
686 msgid ""
687 "#include E<lt>stdio.hE<gt>\n"
688 "#include E<lt>stdlib.hE<gt>\n"
689 "#include E<lt>string.hE<gt>\n"
690 "#include E<lt>sys/xattr.hE<gt>\n"
691 "\\&\n"
692 "int\n"
693 "main(int argc, char *argv[])\n"
694 "{\n"
695 " char *buf, *key, *val;\n"
696 " ssize_t buflen, keylen, vallen;\n"
697 "\\&\n"
698 " if (argc != 2) {\n"
699 " fprintf(stderr, \"Usage: %s path\\[rs]n\", argv[0]);\n"
700 " exit(EXIT_FAILURE);\n"
701 " }\n"
702 "\\&\n"
703 " /*\n"
704 " * Determine the length of the buffer needed.\n"
705 " */\n"
706 " buflen = listxattr(argv[1], NULL, 0);\n"
707 " if (buflen == -1) {\n"
708 " perror(\"listxattr\");\n"
709 " exit(EXIT_FAILURE);\n"
710 " }\n"
711 " if (buflen == 0) {\n"
712 " printf(\"%s has no attributes.\\[rs]n\", argv[1]);\n"
713 " exit(EXIT_SUCCESS);\n"
714 " }\n"
715 "\\&\n"
716 " /*\n"
717 " * Allocate the buffer.\n"
718 " */\n"
719 " buf = malloc(buflen);\n"
720 " if (buf == NULL) {\n"
721 " perror(\"malloc\");\n"
722 " exit(EXIT_FAILURE);\n"
723 " }\n"
724 "\\&\n"
725 " /*\n"
726 " * Copy the list of attribute keys to the buffer.\n"
727 " */\n"
728 " buflen = listxattr(argv[1], buf, buflen);\n"
729 " if (buflen == -1) {\n"
730 " perror(\"listxattr\");\n"
731 " exit(EXIT_FAILURE);\n"
732 " }\n"
733 "\\&\n"
734 " /*\n"
735 " * Loop over the list of zero terminated strings with the\n"
736 " * attribute keys. Use the remaining buffer length to determine\n"
737 " * the end of the list.\n"
738 " */\n"
739 " key = buf;\n"
740 " while (buflen E<gt> 0) {\n"
741 "\\&\n"
742 " /*\n"
743 " * Output attribute key.\n"
744 " */\n"
745 " printf(\"%s: \", key);\n"
746 "\\&\n"
747 " /*\n"
748 " * Determine length of the value.\n"
749 " */\n"
750 " vallen = getxattr(argv[1], key, NULL, 0);\n"
751 " if (vallen == -1)\n"
752 " perror(\"getxattr\");\n"
753 "\\&\n"
754 " if (vallen E<gt> 0) {\n"
755 "\\&\n"
756 " /*\n"
757 " * Allocate value buffer.\n"
758 " * One extra byte is needed to append 0x00.\n"
759 " */\n"
760 " val = malloc(vallen + 1);\n"
761 " if (val == NULL) {\n"
762 " perror(\"malloc\");\n"
763 " exit(EXIT_FAILURE);\n"
764 " }\n"
765 "\\&\n"
766 " /*\n"
767 " * Copy value to buffer.\n"
768 " */\n"
769 " vallen = getxattr(argv[1], key, val, vallen);\n"
770 " if (vallen == -1) {\n"
771 " perror(\"getxattr\");\n"
772 " } else {\n"
773 " /*\n"
774 " * Output attribute value.\n"
775 " */\n"
776 " val[vallen] = 0;\n"
777 " printf(\"%s\", val);\n"
778 " }\n"
779 "\\&\n"
780 " free(val);\n"
781 " } else if (vallen == 0) {\n"
782 " printf(\"E<lt>no valueE<gt>\");\n"
783 " }\n"
784 "\\&\n"
785 " printf(\"\\[rs]n\");\n"
786 "\\&\n"
787 " /*\n"
788 " * Forward to next attribute key.\n"
789 " */\n"
790 " keylen = strlen(key) + 1;\n"
791 " buflen -= keylen;\n"
792 " key += keylen;\n"
793 " }\n"
794 "\\&\n"
795 " free(buf);\n"
796 " exit(EXIT_SUCCESS);\n"
797 "}\n"
798 msgstr ""
799
800 #. type: TH
801 #: fedora-44 fedora-rawhide
802 #, no-wrap
803 msgid "2024-07-23"
804 msgstr "23 июля 2024 г."
805
806 #. type: TH
807 #: fedora-44 fedora-rawhide
808 #, no-wrap
809 msgid "Linux man-pages 6.13"
810 msgstr "Страницы руководства Linux 6.13"
811
812 #. type: TH
813 #: mageia-cauldron
814 #, no-wrap
815 msgid "Linux man-pages 6.17"
816 msgstr "Страницы руководства Linux 6.17"
817
818 #. type: TH
819 #: opensuse-leap-16-1 opensuse-tumbleweed
820 #, no-wrap
821 msgid "Linux man-pages (unreleased)"
822 msgstr "Страницы руководства Linux (не выпущены)"