Debian Codegraph @

po/ru/man2/stat.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 # Alexander Golubev <[email protected]>, 2018.
5 # Azamat Hackimov <[email protected]>, 2011, 2014-2016.
6 # Hotellook, 2014.
7 # Nikita <[email protected]>, 2014.
8 # Spiros Georgaras <[email protected]>, 2016.
9 # Vladislav <[email protected]>, 2015.
10 # Yuri Kozlov <[email protected]>, 2011-2019.
11 # Иван Павлов <[email protected]>, 2017.
12 msgid ""
13 msgstr ""
14 "Project-Id-Version: manpages-l10n\n"
15 "POT-Creation-Date: 2026-06-05 06:44+0200\n"
16 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
17 "Last-Translator: Yuri Kozlov <[email protected]>\n"
18 "Language-Team: Russian <[email protected]>\n"
19 "Language: ru\n"
20 "MIME-Version: 1.0\n"
21 "Content-Type: text/plain; charset=UTF-8\n"
22 "Content-Transfer-Encoding: 8bit\n"
23 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
24 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
25 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
26 "X-Generator: Lokalize 2.0\n"
27
28 #. type: TH
29 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
30 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
31 #, no-wrap
32 msgid "stat"
33 msgstr "stat"
34
35 #. type: TH
36 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
37 #: opensuse-tumbleweed
38 #, no-wrap
39 msgid "2026-02-08"
40 msgstr "8 февраля 2026 г."
41
42 #. type: TH
43 #: archlinux debian-unstable
44 #, fuzzy, no-wrap
45 #| msgid "Linux man-pages 6.17"
46 msgid "Linux man-pages 6.18"
47 msgstr "Справочные страницы Linux 6.17"
48
49 #. type: SH
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 #, no-wrap
53 msgid "NAME"
54 msgstr "НАИМЕНОВАНИЕ"
55
56 #. type: Plain text
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 msgid "stat, fstat, lstat, fstatat - get file status"
60 msgstr "stat, fstat, lstat, fstatat - считывает состояние файла"
61
62 #. type: SH
63 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
64 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
65 #, no-wrap
66 msgid "LIBRARY"
67 msgstr "БИБЛИОТЕКА"
68
69 #. type: Plain text
70 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
71 #: opensuse-leap-16-1 opensuse-tumbleweed
72 msgid "Standard C library (I<libc>,\\ I<-lc>)"
73 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
74
75 #. type: SH
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "SYNOPSIS"
80 msgstr "СИНТАКСИС"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid "B<#include E<lt>sys/stat.hE<gt>>\n"
87 msgstr "B<#include E<lt>sys/stat.hE<gt>>\n"
88
89 #. type: Plain text
90 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
91 #: opensuse-tumbleweed
92 #, fuzzy, no-wrap
93 #| msgid ""
94 #| "B<int stat(const char *restrict >I<pathname>B<,>\n"
95 #| "B< struct stat *restrict >I<statbuf>B<);>\n"
96 #| "B<int fstat(int >I<fd>B<, struct stat *>I<statbuf>B<);>\n"
97 #| "B<int lstat(const char *restrict >I<pathname>B<,>\n"
98 #| "B< struct stat *restrict >I<statbuf>B<);>\n"
99 msgid ""
100 "B<int stat(const char *restrict >I<path>B<,>\n"
101 "B< struct stat *restrict >I<statbuf>B<);>\n"
102 "B<int fstat(int >I<fd>B<, struct stat *>I<statbuf>B<);>\n"
103 "B<int lstat(const char *restrict >I<path>B<,>\n"
104 "B< struct stat *restrict >I<statbuf>B<);>\n"
105 msgstr ""
106 "B<int stat(const char *restrict >I<pathname>B<,>\n"
107 "B< struct stat *restrict >I<statbuf>B<);>\n"
108 "B<int fstat(int >I<fd>B<, struct stat *>I<statbuf>B<);>\n"
109 "B<int lstat(const char *restrict >I<pathname>B<,>\n"
110 "B< struct stat *restrict >I<statbuf>B<);>\n"
111
112 #. type: Plain text
113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
115 #, no-wrap
116 msgid ""
117 "B<#include E<lt>fcntl.hE<gt> >/* Definition of B<AT_*> constants */\n"
118 "B<#include E<lt>sys/stat.hE<gt>>\n"
119 msgstr ""
120 "B<#include E<lt>fcntl.hE<gt> >/* определения констант B<AT_*> */\n"
121 "B<#include E<lt>sys/stat.hE<gt>>\n"
122
123 #. type: Plain text
124 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
125 #: opensuse-tumbleweed
126 #, fuzzy, no-wrap
127 #| msgid ""
128 #| "B<int fstatat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
129 #| "B< struct stat *restrict >I<statbuf>B<, int >I<flags>B<);>\n"
130 msgid ""
131 "B<int fstatat(int >I<dirfd>B<, const char *restrict >I<path>B<,>\n"
132 "B< struct stat *restrict >I<statbuf>B<, int >I<flags>B<);>\n"
133 msgstr ""
134 "B<int fstatat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
135 "B< struct stat *restrict >I<statbuf>B<, int >I<flags>B<);>\n"
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 msgid ""
141 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
142 msgstr ""
143 "Требования макроса тестирования свойств для glibc (см. "
144 "B<feature_test_macros>(7)):"
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 msgid "B<lstat>():"
150 msgstr "B<lstat>():"
151
152 #. _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 #, fuzzy, no-wrap
157 #| msgid ""
158 #| "_XOPEN_SOURCE\\ E<gt>=\\ 500\n"
159 #| " || /* Since glibc 2.12: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200809L\n"
160 #| " || /* Glibc versions E<lt>= 2.19: */ _BSD_SOURCE\n"
161 msgid ""
162 " /* Since glibc 2.20 */ _DEFAULT_SOURCE\n"
163 " || _XOPEN_SOURCE E<gt>= 500\n"
164 " || /* Since glibc 2.10: */ _POSIX_C_SOURCE E<gt>= 200112L\n"
165 " || /* glibc 2.19 and earlier */ _BSD_SOURCE\n"
166 msgstr ""
167 "_XOPEN_SOURCE\\ E<gt>=\\ 500\n"
168 " || /* начиная с glibc 2.12: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200809L\n"
169 " || /* в версии glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid "B<fstatat>():"
175 msgstr "B<fstatat>():"
176
177 #. type: Plain text
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 #, no-wrap
181 msgid ""
182 " Since glibc 2.10:\n"
183 " _POSIX_C_SOURCE E<gt>= 200809L\n"
184 " Before glibc 2.10:\n"
185 " _ATFILE_SOURCE\n"
186 msgstr ""
187 " Начиная с glibc 2.10:\n"
188 " _POSIX_C_SOURCE E<gt>= 200809L\n"
189 " До glibc 2.10:\n"
190 " _ATFILE_SOURCE\n"
191
192 #. type: SH
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, no-wrap
196 msgid "DESCRIPTION"
197 msgstr "ОПИСАНИЕ"
198
199 #. type: Plain text
200 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
201 #: opensuse-tumbleweed
202 #, fuzzy
203 #| msgid ""
204 #| "These functions return information about a file, in the buffer pointed to "
205 #| "by I<statbuf>. No permissions are required on the file itself, but\\"
206 #| "(emin the case of B<stat>(), B<fstatat>(), and B<lstat>()\\(emexecute "
207 #| "(search) permission is required on all of the directories in I<pathname> "
208 #| "that lead to the file."
209 msgid ""
210 "These functions return information about a file, in the buffer pointed to by "
211 "I<statbuf>. No permissions are required on the file itself, but\\[em]in the "
212 "case of B<stat>(), B<fstatat>(), and B<lstat>()\\[em]execute (search) "
213 "permission is required on all of the directories in I<path> that lead to the "
214 "file."
215 msgstr ""
216 "Данные системные вызовы возвращают информацию о файле в буфер, на который "
217 "указывает I<statbuf>. Для этого не требуется иметь права доступа к самому "
218 "файлу, но — в случае B<stat>(), B<fstatat>() и B<lstat>() — потребуются "
219 "права выполнения (поиска) на все каталоги, указанные в полном имени файла "
220 "I<pathname>."
221
222 #. type: Plain text
223 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
224 #: opensuse-tumbleweed
225 #, fuzzy
226 #| msgid ""
227 #| "B<stat>() and B<fstatat>() retrieve information about the file pointed "
228 #| "to by I<pathname>; the differences for B<fstatat>() are described below."
229 msgid ""
230 "B<stat>() and B<fstatat>() retrieve information about the file pointed to "
231 "by I<path>; the differences for B<fstatat>() are described below."
232 msgstr ""
233 "Вызовы B<stat>() и B<fstatat>() возвращают информацию о файле, указанном в "
234 "I<pathname>; различия с B<fstatat>() описаны далее."
235
236 #. type: Plain text
237 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
238 #: opensuse-tumbleweed
239 #, fuzzy
240 #| msgid ""
241 #| "B<lstat>() is identical to B<stat>(), except that if I<pathname> is a "
242 #| "symbolic link, then it returns information about the link itself, not the "
243 #| "file that it refers to."
244 msgid ""
245 "B<lstat>() is identical to B<stat>(), except that if I<path> is a symbolic "
246 "link, then it returns information about the link itself, not the file that "
247 "the link refers to."
248 msgstr ""
249 "Вызов B<lstat>() идентичен B<stat>(), но в случае, если I<pathname> является "
250 "символьной ссылкой, то возвращается информация о самой ссылке, а не о файле, "
251 "на который она указывает."
252
253 #. type: Plain text
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 msgid ""
257 "B<fstat>() is identical to B<stat>(), except that the file about which "
258 "information is to be retrieved is specified by the file descriptor I<fd>."
259 msgstr ""
260 "Вызов B<fstat>() идентичен B<stat>(), но опрашиваемый файл задаётся в виде "
261 "файлового дескриптора I<fd>."
262
263 #. type: SS
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 #, no-wrap
267 msgid "The stat structure"
268 msgstr "Структура stat"
269
270 #. type: Plain text
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 #, fuzzy
274 #| msgid ""
275 #| "All of these system calls return a I<stat> structure, which contains the "
276 #| "following fields:"
277 msgid ""
278 "All of these system calls return a I<stat> structure (see B<stat>(3type))."
279 msgstr ""
280 "Все эти системные вызовы возвращают структуру I<stat>, которая содержит "
281 "следующие поля:"
282
283 #. Background: inode attributes are modified with i_mutex held, but
284 #. read by stat() without taking the mutex.
285 #. type: Plain text
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 msgid ""
289 "I<Note>: for performance and simplicity reasons, different fields in the "
290 "I<stat> structure may contain state information from different moments "
291 "during the execution of the system call. For example, if I<st_mode> or "
292 "I<st_uid> is changed by another process by calling B<chmod>(2) or "
293 "B<chown>(2), B<stat>() might return the old I<st_mode> together with the "
294 "new I<st_uid>, or the old I<st_uid> together with the new I<st_mode>."
295 msgstr ""
296 "I<Замечание>: Для простоты и производительности различные поля структуры "
297 "I<stat> могут содержать информацию о состоянии из разных моментов работы "
298 "системного вызова. Например, если I<st_mode> или I<st_uid> изменились другим "
299 "процессом с помощью вызова B<chmod>(2) или B<chown>(2), то B<stat>() может "
300 "вернуть старое значение I<st_mode> вместе с новым I<st_uid>, или старое "
301 "значение I<st_uid> вместе с новым I<st_mode>."
302
303 #. type: SS
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "fstatat()"
308 msgstr "fstatat()"
309
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 msgid ""
314 "The B<fstatat>() system call is a more general interface for accessing file "
315 "information which can still provide exactly the behavior of each of "
316 "B<stat>(), B<lstat>(), and B<fstat>()."
317 msgstr ""
318 "Системный вызов B<fstatat>() представляет собой обобщённый интерфейс доступа "
319 "к файловой информации, и может выполнить работу за B<stat>(), B<lstat>() и "
320 "B<fstat>()."
321
322 #. type: Plain text
323 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
324 #: opensuse-tumbleweed
325 #, fuzzy
326 #| msgid ""
327 #| "If the pathname given in I<pathname> is relative, then it is interpreted "
328 #| "relative to the directory referred to by the file descriptor I<dirfd> "
329 #| "(rather than relative to the current working directory of the calling "
330 #| "process, as is done by B<stat>() and B<lstat>() for a relative "
331 #| "pathname)."
332 msgid ""
333 "If I<path> is relative, then it is interpreted relative to the directory "
334 "referred to by the file descriptor I<dirfd> (rather than relative to the "
335 "current working directory of the calling process, as is done by B<stat>() "
336 "and B<lstat>() for a relative pathname)."
337 msgstr ""
338 "Если в I<pathname> задан относительный путь, то он считается относительно "
339 "каталога, на который ссылается файловый дескриптор I<dirfd> (а не "
340 "относительно текущего рабочего каталога вызывающего процесса, как это "
341 "делается в B<stat>() и B<lstat>())."
342
343 #. type: Plain text
344 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
345 #: opensuse-tumbleweed
346 #, fuzzy
347 #| msgid ""
348 #| "If I<pathname> is relative and I<dirfd> is the special value B<AT_FDCWD>, "
349 #| "then I<pathname> is interpreted relative to the current working directory "
350 #| "of the calling process (like B<stat>() and B<lstat>())."
351 msgid ""
352 "If I<path> is relative and I<dirfd> is the special value B<AT_FDCWD>, then "
353 "I<path> is interpreted relative to the current working directory of the "
354 "calling process (like B<stat>() and B<lstat>())."
355 msgstr ""
356 "Если в I<pathname> задан относительный путь и значение I<dirfd> равно "
357 "B<AT_FDCWD>, то I<pathname> рассматривается относительно текущего рабочего "
358 "каталога вызывающего процесса (как B<stat>() и B<lstat>())."
359
360 #. type: Plain text
361 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
362 #: opensuse-tumbleweed
363 #, fuzzy
364 #| msgid "If I<pathname> is absolute, then I<dirfd> is ignored."
365 msgid "If I<path> is absolute, then I<dirfd> is ignored."
366 msgstr "Если в I<pathname> задан абсолютный путь, то I<dirfd> игнорируется."
367
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 ""
372 "I<flags> can either be 0, or include one or more of the following flags ORed:"
373 msgstr ""
374 "Значение I<flags> может быть 0, или включать один или более следующих флагов:"
375
376 #. type: TP
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 #, no-wrap
380 msgid "B<AT_EMPTY_PATH> (since Linux 2.6.39)"
381 msgstr "B<AT_EMPTY_PATH> (начиная с Linux 2.6.39)"
382
383 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
384 #. Before glibc 2.16, defining _ATFILE_SOURCE sufficed
385 #. type: Plain text
386 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
387 #: opensuse-tumbleweed
388 #, fuzzy
389 #| msgid ""
390 #| "If I<pathname> is an empty string, operate on the file referred to by "
391 #| "I<dirfd> (which may have been obtained using the B<open>(2) B<O_PATH> "
392 #| "flag). In this case, I<dirfd> can refer to any type of file, not just a "
393 #| "directory, and the behavior of B<fstatat>() is similar to that of "
394 #| "B<fstat>(). If I<dirfd> is B<AT_FDCWD>, the call operates on the current "
395 #| "working directory. This flag is Linux-specific; define B<_GNU_SOURCE> to "
396 #| "obtain its definition."
397 msgid ""
398 "If I<path> is an empty string (or NULL, since Linux 6.11) operate on the "
399 "file referred to by I<dirfd> (which may have been obtained using the "
400 "B<open>(2) B<O_PATH> flag). In this case, I<dirfd> can refer to any type "
401 "of file, not just a directory, and the behavior of B<fstatat>() is similar "
402 "to that of B<fstat>(). If I<dirfd> is B<AT_FDCWD>, the call operates on the "
403 "current working directory. This flag is Linux-specific; define "
404 "B<_GNU_SOURCE> to obtain its definition."
405 msgstr ""
406 "Если значение I<pathname> равно пустой строке, то выполнять действие над "
407 "файлом, на который указывает I<dirfd> (который может быть получен с помощью "
408 "B<open>(2) с флагом B<O_PATH>). В этом случае I<dirfd> может указывать на "
409 "файл любого типа, а не только на каталог и поведение B<fstatat>() подобно "
410 "B<fstat>(). Если I<dirfd> равно B<AT_FDCWD>, то вызов выполняет действие над "
411 "текущим рабочим каталогом. Этот флаг есть только в Linux; для получения его "
412 "определения определите B<_GNU_SOURCE>."
413
414 #. type: TP
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 #, no-wrap
418 msgid "B<AT_NO_AUTOMOUNT> (since Linux 2.6.38)"
419 msgstr "B<AT_NO_AUTOMOUNT> (начиная с Linux 2.6.38)"
420
421 #. type: Plain text
422 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
423 #: opensuse-tumbleweed
424 msgid ""
425 "Don't automount the terminal (\"basename\") component of I<path.> Since "
426 "Linux 3.1 this flag is ignored. Since Linux 4.11 this flag is implied."
427 msgstr ""
428
429 #. type: TP
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "B<AT_SYMLINK_NOFOLLOW>"
434 msgstr "B<AT_SYMLINK_NOFOLLOW>"
435
436 #. type: Plain text
437 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
438 #: opensuse-tumbleweed
439 #, fuzzy
440 #| msgid ""
441 #| "If I<pathname> is a symbolic link, do not dereference it: instead return "
442 #| "information about the link itself, like B<lstat>(). (By default, "
443 #| "B<fstatat>() dereferences symbolic links, like B<stat>().)"
444 msgid ""
445 "If I<path> is a symbolic link, do not dereference it: instead return "
446 "information about the link itself, like B<lstat>(). (By default, "
447 "B<fstatat>() dereferences symbolic links, like B<stat>().)"
448 msgstr ""
449 "Если значение I<pathname> является символьной ссылкой, не разыменовывать её, "
450 "а вернуть информацию о самой ссылке, как это делается в B<lstat>(). (По "
451 "умолчанию, B<fstatat>() разыменовывает символьные ссылки как и B<stat>().)"
452
453 #. type: Plain text
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 msgid "See B<openat>(2) for an explanation of the need for B<fstatat>()."
457 msgstr "Смотрите в B<openat>(2) объяснение необходимости B<fstatat>()."
458
459 #. type: SH
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 #, no-wrap
463 msgid "RETURN VALUE"
464 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
465
466 #. type: Plain text
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 msgid ""
470 "On success, zero is returned. On error, -1 is returned, and I<errno> is set "
471 "to indicate the error."
472 msgstr ""
473 "При успешном выполнении возвращается 0. При ошибке возвращается -1, а в "
474 "I<errno> содержится код ошибки."
475
476 #. type: SH
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 #, no-wrap
480 msgid "ERRORS"
481 msgstr "ОШИБКИ"
482
483 #. type: TP
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 #, no-wrap
487 msgid "B<EACCES>"
488 msgstr "B<EACCES>"
489
490 #. type: Plain text
491 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
492 #: opensuse-tumbleweed
493 #, fuzzy
494 #| msgid ""
495 #| "Search permission is denied for one of the directories in the path prefix "
496 #| "of I<pathname>. (See also B<path_resolution>(7).)"
497 msgid ""
498 "Search permission is denied for one of the directories in the path prefix of "
499 "I<path>. (See also B<path_resolution>(7).)"
500 msgstr ""
501 "Запрещён поиск в одном из каталогов пути I<pathname> (смотрите также "
502 "B<path_resolution>(7))."
503
504 #. type: TP
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 #, no-wrap
508 msgid "B<EBADF>"
509 msgstr "B<EBADF>"
510
511 #. type: Plain text
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 msgid "I<fd> is not a valid open file descriptor."
515 msgstr "Значение I<fd> не является правильным открытым файловым дескриптором."
516
517 #. type: Plain text
518 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
519 #: opensuse-tumbleweed
520 #, fuzzy
521 #| msgid "(B<fstatfs>()) I<fd> is not a valid open file descriptor."
522 msgid ""
523 "(B<fstatat>()) I<path> is relative but I<dirfd> is neither B<AT_FDCWD> nor "
524 "a valid file descriptor."
525 msgstr ""
526 "(B<fstatfs>()) I<fd> не является корректным открытым дескриптором файла."
527
528 #. type: TP
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 #, no-wrap
532 msgid "B<EFAULT>"
533 msgstr "B<EFAULT>"
534
535 #. type: Plain text
536 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
537 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
538 msgid "Bad address."
539 msgstr "Неправильный адрес."
540
541 #. type: TP
542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
544 #, no-wrap
545 msgid "B<EINVAL>"
546 msgstr "B<EINVAL>"
547
548 #. type: Plain text
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 msgid "(B<fstatat>()) Invalid flag specified in I<flags>."
552 msgstr "(B<fstatat>()) Указано неверное значение в I<flags>."
553
554 #. type: TP
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 #, no-wrap
558 msgid "B<ELOOP>"
559 msgstr "B<ELOOP>"
560
561 #. type: Plain text
562 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
563 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
564 msgid "Too many symbolic links encountered while traversing the path."
565 msgstr "Во время определения пути встретилось слишком много символьных ссылок."
566
567 #. type: TP
568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
570 #, no-wrap
571 msgid "B<ENAMETOOLONG>"
572 msgstr "B<ENAMETOOLONG>"
573
574 #. type: Plain text
575 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
576 #: opensuse-tumbleweed
577 msgid "I<path> is too long."
578 msgstr "I<path> слишком длинен."
579
580 #. type: TP
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 #, no-wrap
584 msgid "B<ENOENT>"
585 msgstr "B<ENOENT>"
586
587 #. type: Plain text
588 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
589 #: opensuse-tumbleweed
590 #, fuzzy
591 #| msgid ""
592 #| "A component of I<pathname> does not exist or is a dangling symbolic link."
593 msgid "A component of I<path> does not exist or is a dangling symbolic link."
594 msgstr ""
595 "Компонент пути I<pathname> не существует или является повисшей символьной "
596 "ссылкой."
597
598 #. type: Plain text
599 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
600 #: opensuse-tumbleweed
601 #, fuzzy
602 #| msgid ""
603 #| "I<pathname> is an empty string and B<AT_EMPTY_PATH> was not specified in "
604 #| "I<flags>."
605 msgid ""
606 "I<path> is an empty string and B<AT_EMPTY_PATH> was not specified in "
607 "I<flags>."
608 msgstr ""
609 "Значение I<pathname> равно пустой строке и в I<flags> не указано значение "
610 "B<AT_EMPTY_PATH>."
611
612 #. type: TP
613 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
614 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
615 #, no-wrap
616 msgid "B<ENOMEM>"
617 msgstr "B<ENOMEM>"
618
619 #. type: Plain text
620 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
621 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
622 msgid "Out of memory (i.e., kernel memory)."
623 msgstr "Не хватает памяти (например, памяти ядра)."
624
625 #. type: TP
626 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
627 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
628 #, no-wrap
629 msgid "B<ENOTDIR>"
630 msgstr "B<ENOTDIR>"
631
632 #. type: Plain text
633 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
634 #: opensuse-tumbleweed
635 #, fuzzy
636 #| msgid "A component of the path prefix of I<pathname> is not a directory."
637 msgid "A component of the path prefix of I<path> is not a directory."
638 msgstr "Компонент в префиксе пути I<pathname> не является каталогом."
639
640 #. type: Plain text
641 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
642 #: opensuse-tumbleweed
643 #, fuzzy
644 #| msgid ""
645 #| "(B<fstatat>()) I<pathname> is relative and I<dirfd> is a file descriptor "
646 #| "referring to a file other than a directory."
647 msgid ""
648 "(B<fstatat>()) I<path> is relative and I<dirfd> is a file descriptor "
649 "referring to a file other than a directory."
650 msgstr ""
651 "(B<fstatat>()) Значение I<pathname> содержит относительный путь и I<dirfd> "
652 "содержит файловый дескриптор, указывающий на файл, а не на каталог."
653
654 #. type: TP
655 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
656 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
657 #, no-wrap
658 msgid "B<EOVERFLOW>"
659 msgstr "B<EOVERFLOW>"
660
661 #. type: Plain text
662 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
663 #: opensuse-tumbleweed
664 #, fuzzy
665 #| msgid ""
666 #| "I<pathname> or I<fd> refers to a file whose size, inode number, or number "
667 #| "of blocks cannot be represented in, respectively, the types I<off_t>, "
668 #| "I<ino_t>, or I<blkcnt_t>. This error can occur when, for example, an "
669 #| "application compiled on a 32-bit platform without I<-"
670 #| "D_FILE_OFFSET_BITS=64> calls B<stat>() on a file whose size exceeds "
671 #| "I<(1E<lt>E<lt>31)-1> bytes."
672 msgid ""
673 "I<path> or I<fd> refers to a file whose size, inode number, or number of "
674 "blocks cannot be represented in, respectively, the types I<off_t>, I<ino_t>, "
675 "or I<blkcnt_t>. This error can occur when, for example, an application "
676 "compiled on a 32-bit platform without I<-D_FILE_OFFSET_BITS=64> calls "
677 "B<stat>() on a file whose size exceeds I<(1E<lt>E<lt>31)-1> bytes."
678 msgstr ""
679 "Значение I<pathname> или I<fd> ссылаются на файл, чей размер, номер inode "
680 "или количество блоков не может быть представлено с помощью типов I<off_t>, "
681 "I<ino_t> или I<blkcnt_t>, соответственно. Эта ошибка может возникнуть, если, "
682 "например, приложение собрано на 32-битной платформе без флага I<-"
683 "D_FILE_OFFSET_BITS=64> при вызове B<stat>() для файла, чей размер превышает "
684 "I<(1E<lt>E<lt>31)-1> байт."
685
686 #. type: SH
687 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
688 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
689 #, no-wrap
690 msgid "STANDARDS"
691 msgstr "СТАНДАРТЫ"
692
693 #. type: Plain text
694 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
695 #: opensuse-tumbleweed
696 msgid "POSIX.1-2024."
697 msgstr "POSIX.1-2024."
698
699 #. type: SH
700 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
701 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
702 #, no-wrap
703 msgid "HISTORY"
704 msgstr "ИСТОРИЯ"
705
706 #. type: TP
707 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
708 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
709 #, fuzzy, no-wrap
710 #| msgid "B<stat>(2)"
711 msgid "B<stat>()"
712 msgstr "B<stat>(2)"
713
714 #. type: TQ
715 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
716 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
717 #, fuzzy, no-wrap
718 #| msgid "B<fstat>(2)"
719 msgid "B<fstat>()"
720 msgstr "B<fstat>(2)"
721
722 #. type: TQ
723 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
724 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
725 #, fuzzy, no-wrap
726 #| msgid "B<lstat>():"
727 msgid "B<lstat>()"
728 msgstr "B<lstat>():"
729
730 #. SVr4 documents additional
731 #. .BR fstat ()
732 #. error conditions EINTR, ENOLINK, and EOVERFLOW. SVr4
733 #. documents additional
734 #. .BR stat ()
735 #. and
736 #. .BR lstat ()
737 #. error conditions EINTR, EMULTIHOP, ENOLINK, and EOVERFLOW.
738 #. type: Plain text
739 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
740 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
741 msgid "SVr4, 4.3BSD, POSIX.1-2001."
742 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
743
744 #. type: TP
745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
747 #, fuzzy, no-wrap
748 #| msgid "B<fstatat>():"
749 msgid "B<fstatat>()"
750 msgstr "B<fstatat>():"
751
752 #. type: Plain text
753 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
754 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
755 msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
756 msgstr "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
757
758 #. type: Plain text
759 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
760 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
761 msgid ""
762 "According to POSIX.1-2001, B<lstat>() on a symbolic link need return valid "
763 "information only in the I<st_size> field and the file type of the I<st_mode> "
764 "field of the I<stat> structure. POSIX.1-2008 tightens the specification, "
765 "requiring B<lstat>() to return valid information in all fields except the "
766 "mode bits in I<st_mode>."
767 msgstr ""
768 "Согласно POSIX.1-2001, B<lstat>() для символьной ссылки требует вернуть "
769 "корректную информацию только в поле I<st_size> и в типе файла в поле "
770 "I<st_mode> структуры I<stat>. В POSIX.1-2008 более жёсткая спецификация, "
771 "требующая, чтобы B<lstat>() возвращал корректную информацию во всех полях "
772 "кроме битов режима в I<st_mode>."
773
774 #. type: Plain text
775 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
776 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
777 msgid ""
778 "Use of the I<st_blocks> and I<st_blksize> fields may be less portable. "
779 "(They were introduced in BSD. The interpretation differs between systems, "
780 "and possibly on a single system when NFS mounts are involved.)"
781 msgstr ""
782 "Использование полей I<st_blocks> и I<st_blksize> может усложнить перенос на "
783 "другие платформы. (Эти поля появились из BSD. Их смысл различается в разных "
784 "системах и, вероятно, даже в одной системе при использовании NFS)."
785
786 #. type: SS
787 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
788 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
789 #, no-wrap
790 msgid "C library/kernel differences"
791 msgstr "Отличия между библиотекой C и ядром"
792
793 #. See include/asm-i386/stat.h in the Linux 2.4 source code for the
794 #. various versions of the structure definitions
795 #. type: Plain text
796 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
797 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
798 msgid ""
799 "Over time, increases in the size of the I<stat> structure have led to three "
800 "successive versions of B<stat>(): I<sys_stat>() (slot I<__NR_oldstat>), "
801 "I<sys_newstat>() (slot I<__NR_stat>), and I<sys_stat64()> (slot "
802 "I<__NR_stat64>) on 32-bit platforms such as i386. The first two versions "
803 "were already present in Linux 1.0 (albeit with different names); the last "
804 "was added in Linux 2.4. Similar remarks apply for B<fstat>() and "
805 "B<lstat>()."
806 msgstr ""
807 "В течении долгого времени увеличение размера структуры I<stat> привело к "
808 "появлению трёх новых версий B<stat>(): I<sys_stat>() (слот I<__NR_oldstat>), "
809 "I<sys_newstat>() (слот I<__NR_stat>) и I<sys_stat64()> (слот I<__NR_stat64>) "
810 "на 32-битных платформах, например, i386. Первые две версии уже существовали "
811 "в Linux 1.0 (но под другими именами); последняя была добавлена в Linux 2.4. "
812 "Подобное замечание применимо к B<fstat>() и B<lstat>()."
813
814 #. type: Plain text
815 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
816 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
817 msgid ""
818 "The kernel-internal versions of the I<stat> structure dealt with by the "
819 "different versions are, respectively:"
820 msgstr "Внутренние ядерные структуры I<stat> в разных версиях:"
821
822 #. type: TP
823 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
824 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
825 #, no-wrap
826 msgid "I<__old_kernel_stat>"
827 msgstr "I<__old_kernel_stat>"
828
829 #. type: Plain text
830 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
831 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
832 msgid "The original structure, with rather narrow fields, and no padding."
833 msgstr ""
834 "Самая первая версия структуры со слегка узкими полями и без заполнителей."
835
836 #. type: TP
837 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
838 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
839 #, no-wrap
840 msgid "I<stat>"
841 msgstr "I<stat>"
842
843 #. type: Plain text
844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
846 msgid ""
847 "Larger I<st_ino> field and padding added to various parts of the structure "
848 "to allow for future expansion."
849 msgstr ""
850 "Увеличенное поле I<st_ino> и добавлены заполнители в различные части "
851 "структуры для расширения в дальнейшем."
852
853 #. type: TP
854 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
855 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
856 #, no-wrap
857 msgid "I<stat64>"
858 msgstr "I<stat64>"
859
860 #. type: Plain text
861 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
862 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
863 msgid ""
864 "Even larger I<st_ino> field, larger I<st_uid> and I<st_gid> fields to "
865 "accommodate the Linux-2.4 expansion of UIDs and GIDs to 32 bits, and various "
866 "other enlarged fields and further padding in the structure. (Various "
867 "padding bytes were eventually consumed in Linux 2.6, with the advent of 32-"
868 "bit device IDs and nanosecond components for the timestamp fields.)"
869 msgstr ""
870 "Ещё раз увеличенное поле I<st_ino>, увеличены поля I<st_uid> и I<st_gid> для "
871 "работы с увеличенными в Linux-2.4 UID и GID до 32 бит, увеличены другие "
872 "поля, дальнейшее добавление заполнителей в структуру (различные байты "
873 "заполнения в дальнейшем были задействованы в Linux 2.6 с появлением 32-"
874 "битных ID устройств и наносекундной части в полях временных отметок)."
875
876 #. #-#-#-#-# archlinux: stat.2.pot (PACKAGE VERSION) #-#-#-#-#
877 #. A note from Andries Brouwer, July 2007
878 #. > Is the story not rather more complicated for some calls like
879 #. > stat(2)?
880 #. Yes and no, mostly no. See "/usr/include/sys/stat.h".
881 #. The idea is here not so much that syscalls change, but that
882 #. the definitions of struct stat and of the types dev_t and mode_t change.
883 #. This means that libc (even if it does not call the kernel
884 #. but only calls some internal function) must know what the
885 #. format of dev_t or of struct stat is.
886 #. The communication between the application and libc goes via
887 #. the include file <sys/stat.h> that defines a _STAT_VER and
888 #. _MKNOD_VER describing the layout of the data that user space
889 #. uses. Each (almost each) occurrence of stat() is replaced by
890 #. an occurrence of xstat() where the first parameter of xstat()
891 #. is this version number _STAT_VER.
892 #. Now, also the definitions used by the kernel change.
893 #. But glibc copes with this in the standard way, and the
894 #. struct stat as returned by the kernel is repacked into
895 #. the struct stat as expected by the application.
896 #. Thus, _STAT_VER and this setup cater for the application-libc
897 #. interface, rather than the libc-kernel interface.
898 #. (Note that the details depend on gcc being used as c compiler.)
899 #. type: Plain text
900 #. #-#-#-#-# debian-trixie: stat.2.pot (PACKAGE VERSION) #-#-#-#-#
901 #. A note from Andries Brouwer, July 2007
902 #. > Is the story not rather more complicated for some calls like
903 #. > stat(2)?
904 #. Yes and no, mostly no. See /usr/include/sys/stat.h .
905 #. The idea is here not so much that syscalls change, but that
906 #. the definitions of struct stat and of the types dev_t and mode_t change.
907 #. This means that libc (even if it does not call the kernel
908 #. but only calls some internal function) must know what the
909 #. format of dev_t or of struct stat is.
910 #. The communication between the application and libc goes via
911 #. the include file <sys/stat.h> that defines a _STAT_VER and
912 #. _MKNOD_VER describing the layout of the data that user space
913 #. uses. Each (almost each) occurrence of stat() is replaced by
914 #. an occurrence of xstat() where the first parameter of xstat()
915 #. is this version number _STAT_VER.
916 #. Now, also the definitions used by the kernel change.
917 #. But glibc copes with this in the standard way, and the
918 #. struct stat as returned by the kernel is repacked into
919 #. the struct stat as expected by the application.
920 #. Thus, _STAT_VER and this setup cater for the application-libc
921 #. interface, rather than the libc-kernel interface.
922 #. (Note that the details depend on gcc being used as c compiler.)
923 #. type: Plain text
924 #. #-#-#-#-# debian-unstable: stat.2.pot (PACKAGE VERSION) #-#-#-#-#
925 #. A note from Andries Brouwer, July 2007
926 #. > Is the story not rather more complicated for some calls like
927 #. > stat(2)?
928 #. Yes and no, mostly no. See "/usr/include/sys/stat.h".
929 #. The idea is here not so much that syscalls change, but that
930 #. the definitions of struct stat and of the types dev_t and mode_t change.
931 #. This means that libc (even if it does not call the kernel
932 #. but only calls some internal function) must know what the
933 #. format of dev_t or of struct stat is.
934 #. The communication between the application and libc goes via
935 #. the include file <sys/stat.h> that defines a _STAT_VER and
936 #. _MKNOD_VER describing the layout of the data that user space
937 #. uses. Each (almost each) occurrence of stat() is replaced by
938 #. an occurrence of xstat() where the first parameter of xstat()
939 #. is this version number _STAT_VER.
940 #. Now, also the definitions used by the kernel change.
941 #. But glibc copes with this in the standard way, and the
942 #. struct stat as returned by the kernel is repacked into
943 #. the struct stat as expected by the application.
944 #. Thus, _STAT_VER and this setup cater for the application-libc
945 #. interface, rather than the libc-kernel interface.
946 #. (Note that the details depend on gcc being used as c compiler.)
947 #. type: Plain text
948 #. #-#-#-#-# fedora-44: stat.2.pot (PACKAGE VERSION) #-#-#-#-#
949 #. A note from Andries Brouwer, July 2007
950 #. > Is the story not rather more complicated for some calls like
951 #. > stat(2)?
952 #. Yes and no, mostly no. See /usr/include/sys/stat.h .
953 #. The idea is here not so much that syscalls change, but that
954 #. the definitions of struct stat and of the types dev_t and mode_t change.
955 #. This means that libc (even if it does not call the kernel
956 #. but only calls some internal function) must know what the
957 #. format of dev_t or of struct stat is.
958 #. The communication between the application and libc goes via
959 #. the include file <sys/stat.h> that defines a _STAT_VER and
960 #. _MKNOD_VER describing the layout of the data that user space
961 #. uses. Each (almost each) occurrence of stat() is replaced by
962 #. an occurrence of xstat() where the first parameter of xstat()
963 #. is this version number _STAT_VER.
964 #. Now, also the definitions used by the kernel change.
965 #. But glibc copes with this in the standard way, and the
966 #. struct stat as returned by the kernel is repacked into
967 #. the struct stat as expected by the application.
968 #. Thus, _STAT_VER and this setup cater for the application-libc
969 #. interface, rather than the libc-kernel interface.
970 #. (Note that the details depend on gcc being used as c compiler.)
971 #. type: Plain text
972 #. #-#-#-#-# fedora-rawhide: stat.2.pot (PACKAGE VERSION) #-#-#-#-#
973 #. A note from Andries Brouwer, July 2007
974 #. > Is the story not rather more complicated for some calls like
975 #. > stat(2)?
976 #. Yes and no, mostly no. See /usr/include/sys/stat.h .
977 #. The idea is here not so much that syscalls change, but that
978 #. the definitions of struct stat and of the types dev_t and mode_t change.
979 #. This means that libc (even if it does not call the kernel
980 #. but only calls some internal function) must know what the
981 #. format of dev_t or of struct stat is.
982 #. The communication between the application and libc goes via
983 #. the include file <sys/stat.h> that defines a _STAT_VER and
984 #. _MKNOD_VER describing the layout of the data that user space
985 #. uses. Each (almost each) occurrence of stat() is replaced by
986 #. an occurrence of xstat() where the first parameter of xstat()
987 #. is this version number _STAT_VER.
988 #. Now, also the definitions used by the kernel change.
989 #. But glibc copes with this in the standard way, and the
990 #. struct stat as returned by the kernel is repacked into
991 #. the struct stat as expected by the application.
992 #. Thus, _STAT_VER and this setup cater for the application-libc
993 #. interface, rather than the libc-kernel interface.
994 #. (Note that the details depend on gcc being used as c compiler.)
995 #. type: Plain text
996 #. #-#-#-#-# mageia-cauldron: stat.2.pot (PACKAGE VERSION) #-#-#-#-#
997 #. A note from Andries Brouwer, July 2007
998 #. > Is the story not rather more complicated for some calls like
999 #. > stat(2)?
1000 #. Yes and no, mostly no. See "/usr/include/sys/stat.h".
1001 #. The idea is here not so much that syscalls change, but that
1002 #. the definitions of struct stat and of the types dev_t and mode_t change.
1003 #. This means that libc (even if it does not call the kernel
1004 #. but only calls some internal function) must know what the
1005 #. format of dev_t or of struct stat is.
1006 #. The communication between the application and libc goes via
1007 #. the include file <sys/stat.h> that defines a _STAT_VER and
1008 #. _MKNOD_VER describing the layout of the data that user space
1009 #. uses. Each (almost each) occurrence of stat() is replaced by
1010 #. an occurrence of xstat() where the first parameter of xstat()
1011 #. is this version number _STAT_VER.
1012 #. Now, also the definitions used by the kernel change.
1013 #. But glibc copes with this in the standard way, and the
1014 #. struct stat as returned by the kernel is repacked into
1015 #. the struct stat as expected by the application.
1016 #. Thus, _STAT_VER and this setup cater for the application-libc
1017 #. interface, rather than the libc-kernel interface.
1018 #. (Note that the details depend on gcc being used as c compiler.)
1019 #. type: Plain text
1020 #. #-#-#-#-# opensuse-leap-16-1: stat.2.pot (PACKAGE VERSION) #-#-#-#-#
1021 #. A note from Andries Brouwer, July 2007
1022 #. > Is the story not rather more complicated for some calls like
1023 #. > stat(2)?
1024 #. Yes and no, mostly no. See "/usr/include/sys/stat.h".
1025 #. The idea is here not so much that syscalls change, but that
1026 #. the definitions of struct stat and of the types dev_t and mode_t change.
1027 #. This means that libc (even if it does not call the kernel
1028 #. but only calls some internal function) must know what the
1029 #. format of dev_t or of struct stat is.
1030 #. The communication between the application and libc goes via
1031 #. the include file <sys/stat.h> that defines a _STAT_VER and
1032 #. _MKNOD_VER describing the layout of the data that user space
1033 #. uses. Each (almost each) occurrence of stat() is replaced by
1034 #. an occurrence of xstat() where the first parameter of xstat()
1035 #. is this version number _STAT_VER.
1036 #. Now, also the definitions used by the kernel change.
1037 #. But glibc copes with this in the standard way, and the
1038 #. struct stat as returned by the kernel is repacked into
1039 #. the struct stat as expected by the application.
1040 #. Thus, _STAT_VER and this setup cater for the application-libc
1041 #. interface, rather than the libc-kernel interface.
1042 #. (Note that the details depend on gcc being used as c compiler.)
1043 #. type: Plain text
1044 #. #-#-#-#-# opensuse-tumbleweed: stat.2.pot (PACKAGE VERSION) #-#-#-#-#
1045 #. A note from Andries Brouwer, July 2007
1046 #. > Is the story not rather more complicated for some calls like
1047 #. > stat(2)?
1048 #. Yes and no, mostly no. See "/usr/include/sys/stat.h".
1049 #. The idea is here not so much that syscalls change, but that
1050 #. the definitions of struct stat and of the types dev_t and mode_t change.
1051 #. This means that libc (even if it does not call the kernel
1052 #. but only calls some internal function) must know what the
1053 #. format of dev_t or of struct stat is.
1054 #. The communication between the application and libc goes via
1055 #. the include file <sys/stat.h> that defines a _STAT_VER and
1056 #. _MKNOD_VER describing the layout of the data that user space
1057 #. uses. Each (almost each) occurrence of stat() is replaced by
1058 #. an occurrence of xstat() where the first parameter of xstat()
1059 #. is this version number _STAT_VER.
1060 #. Now, also the definitions used by the kernel change.
1061 #. But glibc copes with this in the standard way, and the
1062 #. struct stat as returned by the kernel is repacked into
1063 #. the struct stat as expected by the application.
1064 #. Thus, _STAT_VER and this setup cater for the application-libc
1065 #. interface, rather than the libc-kernel interface.
1066 #. (Note that the details depend on gcc being used as c compiler.)
1067 #. type: Plain text
1068 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1069 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1070 msgid ""
1071 "The glibc B<stat>() wrapper function hides these details from applications, "
1072 "invoking the most recent version of the system call provided by the kernel, "
1073 "and repacking the returned information if required for old binaries."
1074 msgstr ""
1075 "Обёрточная функция glibc B<stat>() прячет эти подробности от приложений, "
1076 "вызывая самую новую версию системного вызова, предоставляемого ядром, и "
1077 "перепаковывая возвращаемую информацию, если это нужно для старых программ."
1078
1079 #. type: Plain text
1080 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1081 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1082 msgid ""
1083 "On modern 64-bit systems, life is simpler: there is a single B<stat>() "
1084 "system call and the kernel deals with a I<stat> structure that contains "
1085 "fields of a sufficient size."
1086 msgstr ""
1087 "В современных 64-битных системах жизнь упростилась: единственный системный "
1088 "вызов B<stat>() и ядро работает со структурой I<stat>, в которой поля "
1089 "достаточного размера."
1090
1091 #. strace(1) shows the name "newfstatat" on x86-64
1092 #. type: Plain text
1093 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1094 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1095 msgid ""
1096 "The underlying system call employed by the glibc B<fstatat>() wrapper "
1097 "function is actually called B<fstatat64>() or, on some architectures, "
1098 "B<newfstatat>()."
1099 msgstr ""
1100 "Нижележащий системный вызов, используемый обёрточной функцией B<fstatat>() в "
1101 "glibc, на самом деле называется B<fstatat64>() или, на некоторых "
1102 "архитектурах, B<newfstatat>()."
1103
1104 #. type: SH
1105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1107 #, no-wrap
1108 msgid "EXAMPLES"
1109 msgstr "ПРИМЕРЫ"
1110
1111 #. type: Plain text
1112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1114 msgid ""
1115 "The following program calls B<lstat>() and displays selected fields in the "
1116 "returned I<stat> structure."
1117 msgstr ""
1118 "Следующая программа вызывает B<lstat>() и показывает некоторые поля из "
1119 "полученной структуры I<stat>."
1120
1121 #. type: Plain text
1122 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1123 #: opensuse-tumbleweed
1124 #, no-wrap
1125 msgid ""
1126 "#include E<lt>stdint.hE<gt>\n"
1127 "#include E<lt>stdio.hE<gt>\n"
1128 "#include E<lt>stdlib.hE<gt>\n"
1129 "#include E<lt>sys/stat.hE<gt>\n"
1130 "#include E<lt>sys/sysmacros.hE<gt>\n"
1131 "#include E<lt>time.hE<gt>\n"
1132 "\\&\n"
1133 "int\n"
1134 "main(int argc, char *argv[])\n"
1135 "{\n"
1136 " struct stat sb;\n"
1137 "\\&\n"
1138 " if (argc != 2) {\n"
1139 " fprintf(stderr, \"Usage: %s E<lt>pathE<gt>\\[rs]n\", argv[0]);\n"
1140 " exit(EXIT_FAILURE);\n"
1141 " }\n"
1142 "\\&\n"
1143 " if (lstat(argv[1], &sb) == -1) {\n"
1144 " perror(\"lstat\");\n"
1145 " exit(EXIT_FAILURE);\n"
1146 " }\n"
1147 "\\&\n"
1148 " printf(\"ID of containing device: [%x,%x]\\[rs]n\",\n"
1149 " major(sb.st_dev),\n"
1150 " minor(sb.st_dev));\n"
1151 "\\&\n"
1152 " printf(\"File type: \");\n"
1153 "\\&\n"
1154 " switch (sb.st_mode & S_IFMT) {\n"
1155 " case S_IFBLK: printf(\"block device\\[rs]n\"); break;\n"
1156 " case S_IFCHR: printf(\"character device\\[rs]n\"); break;\n"
1157 " case S_IFDIR: printf(\"directory\\[rs]n\"); break;\n"
1158 " case S_IFIFO: printf(\"FIFO/pipe\\[rs]n\"); break;\n"
1159 " case S_IFLNK: printf(\"symlink\\[rs]n\"); break;\n"
1160 " case S_IFREG: printf(\"regular file\\[rs]n\"); break;\n"
1161 " case S_IFSOCK: printf(\"socket\\[rs]n\"); break;\n"
1162 " default: printf(\"unknown?\\[rs]n\"); break;\n"
1163 " }\n"
1164 "\\&\n"
1165 " printf(\"I-node number: %ju\\[rs]n\", (uintmax_t) sb.st_ino);\n"
1166 "\\&\n"
1167 " printf(\"Mode: %jo (octal)\\[rs]n\",\n"
1168 " (uintmax_t) sb.st_mode);\n"
1169 "\\&\n"
1170 " printf(\"Link count: %ju\\[rs]n\", (uintmax_t) sb.st_nlink);\n"
1171 " printf(\"Ownership: UID=%ju GID=%ju\\[rs]n\",\n"
1172 " (uintmax_t) sb.st_uid, (uintmax_t) sb.st_gid);\n"
1173 "\\&\n"
1174 " printf(\"Preferred I/O block size: %jd bytes\\[rs]n\",\n"
1175 " (intmax_t) sb.st_blksize);\n"
1176 " printf(\"File size: %jd bytes\\[rs]n\",\n"
1177 " (intmax_t) sb.st_size);\n"
1178 " printf(\"Blocks allocated: %jd\\[rs]n\",\n"
1179 " (intmax_t) sb.st_blocks);\n"
1180 "\\&\n"
1181 " printf(\"Last status change: %s\", ctime(&sb.st_ctime));\n"
1182 " printf(\"Last file access: %s\", ctime(&sb.st_atime));\n"
1183 " printf(\"Last file modification: %s\", ctime(&sb.st_mtime));\n"
1184 "\\&\n"
1185 " exit(EXIT_SUCCESS);\n"
1186 "}\n"
1187 msgstr ""
1188
1189 #. SRC END
1190 #. type: SH
1191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1193 #, no-wrap
1194 msgid "SEE ALSO"
1195 msgstr "СМОТРИТЕ ТАКЖЕ"
1196
1197 #. type: Plain text
1198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1200 msgid ""
1201 "B<ls>(1), B<stat>(1), B<access>(2), B<chmod>(2), B<chown>(2), "
1202 "B<readlink>(2), B<statx>(2), B<utime>(2), B<stat>(3type), "
1203 "B<capabilities>(7), B<inode>(7), B<symlink>(7)"
1204 msgstr ""
1205 "B<ls>(1), B<stat>(1), B<access>(2), B<chmod>(2), B<chown>(2), "
1206 "B<readlink>(2), B<statx>(2), B<utime>(2), B<stat>(3type), "
1207 "B<capabilities>(7), B<inode>(7), B<symlink>(7)"
1208
1209 #. type: TH
1210 #: debian-trixie
1211 #, no-wrap
1212 msgid "2024-06-15"
1213 msgstr "15 июня 2024 г."
1214
1215 #. type: TH
1216 #: debian-trixie
1217 #, no-wrap
1218 msgid "Linux man-pages 6.9.1"
1219 msgstr "Страницы руководства Linux 6.9.1"
1220
1221 #. type: Plain text
1222 #: debian-trixie
1223 msgid "Standard C library (I<libc>, I<-lc>)"
1224 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
1225
1226 #. type: Plain text
1227 #: debian-trixie fedora-44 fedora-rawhide
1228 #, no-wrap
1229 msgid ""
1230 "B<int stat(const char *restrict >I<pathname>B<,>\n"
1231 "B< struct stat *restrict >I<statbuf>B<);>\n"
1232 "B<int fstat(int >I<fd>B<, struct stat *>I<statbuf>B<);>\n"
1233 "B<int lstat(const char *restrict >I<pathname>B<,>\n"
1234 "B< struct stat *restrict >I<statbuf>B<);>\n"
1235 msgstr ""
1236 "B<int stat(const char *restrict >I<pathname>B<,>\n"
1237 "B< struct stat *restrict >I<statbuf>B<);>\n"
1238 "B<int fstat(int >I<fd>B<, struct stat *>I<statbuf>B<);>\n"
1239 "B<int lstat(const char *restrict >I<pathname>B<,>\n"
1240 "B< struct stat *restrict >I<statbuf>B<);>\n"
1241
1242 #. type: Plain text
1243 #: debian-trixie fedora-44 fedora-rawhide
1244 #, no-wrap
1245 msgid ""
1246 "B<int fstatat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
1247 "B< struct stat *restrict >I<statbuf>B<, int >I<flags>B<);>\n"
1248 msgstr ""
1249 "B<int fstatat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
1250 "B< struct stat *restrict >I<statbuf>B<, int >I<flags>B<);>\n"
1251
1252 #. type: Plain text
1253 #: debian-trixie fedora-44 fedora-rawhide
1254 #, fuzzy
1255 #| msgid ""
1256 #| "These functions return information about a file, in the buffer pointed to "
1257 #| "by I<statbuf>. No permissions are required on the file itself, but\\"
1258 #| "(emin the case of B<stat>(), B<fstatat>(), and B<lstat>()\\(emexecute "
1259 #| "(search) permission is required on all of the directories in I<pathname> "
1260 #| "that lead to the file."
1261 msgid ""
1262 "These functions return information about a file, in the buffer pointed to by "
1263 "I<statbuf>. No permissions are required on the file itself, but\\[em]in the "
1264 "case of B<stat>(), B<fstatat>(), and B<lstat>()\\[em]execute (search) "
1265 "permission is required on all of the directories in I<pathname> that lead to "
1266 "the file."
1267 msgstr ""
1268 "Данные системные вызовы возвращают информацию о файле в буфер, на который "
1269 "указывает I<statbuf>. Для этого не требуется иметь права доступа к самому "
1270 "файлу, но — в случае B<stat>(), B<fstatat>() и B<lstat>() — потребуются "
1271 "права выполнения (поиска) на все каталоги, указанные в полном имени файла "
1272 "I<pathname>."
1273
1274 #. type: Plain text
1275 #: debian-trixie fedora-44 fedora-rawhide
1276 msgid ""
1277 "B<stat>() and B<fstatat>() retrieve information about the file pointed to "
1278 "by I<pathname>; the differences for B<fstatat>() are described below."
1279 msgstr ""
1280 "Вызовы B<stat>() и B<fstatat>() возвращают информацию о файле, указанном в "
1281 "I<pathname>; различия с B<fstatat>() описаны далее."
1282
1283 #. type: Plain text
1284 #: debian-trixie fedora-44 fedora-rawhide
1285 #, fuzzy
1286 #| msgid ""
1287 #| "B<lstat>() is identical to B<stat>(), except that if I<pathname> is a "
1288 #| "symbolic link, then it returns information about the link itself, not the "
1289 #| "file that it refers to."
1290 msgid ""
1291 "B<lstat>() is identical to B<stat>(), except that if I<pathname> is a "
1292 "symbolic link, then it returns information about the link itself, not the "
1293 "file that the link refers to."
1294 msgstr ""
1295 "Вызов B<lstat>() идентичен B<stat>(), но в случае, если I<pathname> является "
1296 "символьной ссылкой, то возвращается информация о самой ссылке, а не о файле, "
1297 "на который она указывает."
1298
1299 #. type: Plain text
1300 #: debian-trixie fedora-44 fedora-rawhide
1301 msgid ""
1302 "If the pathname given in I<pathname> is relative, then it is interpreted "
1303 "relative to the directory referred to by the file descriptor I<dirfd> "
1304 "(rather than relative to the current working directory of the calling "
1305 "process, as is done by B<stat>() and B<lstat>() for a relative pathname)."
1306 msgstr ""
1307 "Если в I<pathname> задан относительный путь, то он считается относительно "
1308 "каталога, на который ссылается файловый дескриптор I<dirfd> (а не "
1309 "относительно текущего рабочего каталога вызывающего процесса, как это "
1310 "делается в B<stat>() и B<lstat>())."
1311
1312 #. type: Plain text
1313 #: debian-trixie fedora-44 fedora-rawhide
1314 msgid ""
1315 "If I<pathname> is relative and I<dirfd> is the special value B<AT_FDCWD>, "
1316 "then I<pathname> is interpreted relative to the current working directory of "
1317 "the calling process (like B<stat>() and B<lstat>())."
1318 msgstr ""
1319 "Если в I<pathname> задан относительный путь и значение I<dirfd> равно "
1320 "B<AT_FDCWD>, то I<pathname> рассматривается относительно текущего рабочего "
1321 "каталога вызывающего процесса (как B<stat>() и B<lstat>())."
1322
1323 #. type: Plain text
1324 #: debian-trixie fedora-44 fedora-rawhide
1325 msgid "If I<pathname> is absolute, then I<dirfd> is ignored."
1326 msgstr "Если в I<pathname> задан абсолютный путь, то I<dirfd> игнорируется."
1327
1328 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
1329 #. Before glibc 2.16, defining _ATFILE_SOURCE sufficed
1330 #. type: Plain text
1331 #: debian-trixie
1332 msgid ""
1333 "If I<pathname> is an empty string, operate on the file referred to by "
1334 "I<dirfd> (which may have been obtained using the B<open>(2) B<O_PATH> "
1335 "flag). In this case, I<dirfd> can refer to any type of file, not just a "
1336 "directory, and the behavior of B<fstatat>() is similar to that of "
1337 "B<fstat>(). If I<dirfd> is B<AT_FDCWD>, the call operates on the current "
1338 "working directory. This flag is Linux-specific; define B<_GNU_SOURCE> to "
1339 "obtain its definition."
1340 msgstr ""
1341 "Если значение I<pathname> равно пустой строке, то выполнять действие над "
1342 "файлом, на который указывает I<dirfd> (который может быть получен с помощью "
1343 "B<open>(2) с флагом B<O_PATH>). В этом случае I<dirfd> может указывать на "
1344 "файл любого типа, а не только на каталог и поведение B<fstatat>() подобно "
1345 "B<fstat>(). Если I<dirfd> равно B<AT_FDCWD>, то вызов выполняет действие над "
1346 "текущим рабочим каталогом. Этот флаг есть только в Linux; для получения его "
1347 "определения определите B<_GNU_SOURCE>."
1348
1349 #. type: Plain text
1350 #: debian-trixie fedora-44 fedora-rawhide
1351 msgid ""
1352 "Don't automount the terminal (\"basename\") component of I<pathname.> Since "
1353 "Linux 3.1 this flag is ignored. Since Linux 4.11 this flag is implied."
1354 msgstr ""
1355
1356 #. type: Plain text
1357 #: debian-trixie fedora-44 fedora-rawhide
1358 msgid ""
1359 "If I<pathname> is a symbolic link, do not dereference it: instead return "
1360 "information about the link itself, like B<lstat>(). (By default, "
1361 "B<fstatat>() dereferences symbolic links, like B<stat>().)"
1362 msgstr ""
1363 "Если значение I<pathname> является символьной ссылкой, не разыменовывать её, "
1364 "а вернуть информацию о самой ссылке, как это делается в B<lstat>(). (По "
1365 "умолчанию, B<fstatat>() разыменовывает символьные ссылки как и B<stat>().)"
1366
1367 #. type: Plain text
1368 #: debian-trixie fedora-44 fedora-rawhide
1369 msgid ""
1370 "Search permission is denied for one of the directories in the path prefix of "
1371 "I<pathname>. (See also B<path_resolution>(7).)"
1372 msgstr ""
1373 "Запрещён поиск в одном из каталогов пути I<pathname> (смотрите также "
1374 "B<path_resolution>(7))."
1375
1376 #. type: Plain text
1377 #: debian-trixie fedora-44 fedora-rawhide
1378 #, fuzzy
1379 #| msgid "(B<fstatfs>()) I<fd> is not a valid open file descriptor."
1380 msgid ""
1381 "(B<fstatat>()) I<pathname> is relative but I<dirfd> is neither B<AT_FDCWD> "
1382 "nor a valid file descriptor."
1383 msgstr ""
1384 "(B<fstatfs>()) I<fd> не является корректным открытым дескриптором файла."
1385
1386 #. type: Plain text
1387 #: debian-trixie fedora-44 fedora-rawhide
1388 msgid "I<pathname> is too long."
1389 msgstr "Слишком длинное значение аргумента I<pathname>."
1390
1391 #. type: Plain text
1392 #: debian-trixie fedora-44 fedora-rawhide
1393 msgid ""
1394 "A component of I<pathname> does not exist or is a dangling symbolic link."
1395 msgstr ""
1396 "Компонент пути I<pathname> не существует или является повисшей символьной "
1397 "ссылкой."
1398
1399 #. type: Plain text
1400 #: debian-trixie fedora-44 fedora-rawhide
1401 msgid ""
1402 "I<pathname> is an empty string and B<AT_EMPTY_PATH> was not specified in "
1403 "I<flags>."
1404 msgstr ""
1405 "Значение I<pathname> равно пустой строке и в I<flags> не указано значение "
1406 "B<AT_EMPTY_PATH>."
1407
1408 #. type: Plain text
1409 #: debian-trixie fedora-44 fedora-rawhide
1410 msgid "A component of the path prefix of I<pathname> is not a directory."
1411 msgstr "Компонент в префиксе пути I<pathname> не является каталогом."
1412
1413 #. type: Plain text
1414 #: debian-trixie fedora-44 fedora-rawhide
1415 msgid ""
1416 "(B<fstatat>()) I<pathname> is relative and I<dirfd> is a file descriptor "
1417 "referring to a file other than a directory."
1418 msgstr ""
1419 "(B<fstatat>()) Значение I<pathname> содержит относительный путь и I<dirfd> "
1420 "содержит файловый дескриптор, указывающий на файл, а не на каталог."
1421
1422 #. type: Plain text
1423 #: debian-trixie fedora-44 fedora-rawhide
1424 msgid ""
1425 "I<pathname> or I<fd> refers to a file whose size, inode number, or number of "
1426 "blocks cannot be represented in, respectively, the types I<off_t>, I<ino_t>, "
1427 "or I<blkcnt_t>. This error can occur when, for example, an application "
1428 "compiled on a 32-bit platform without I<-D_FILE_OFFSET_BITS=64> calls "
1429 "B<stat>() on a file whose size exceeds I<(1E<lt>E<lt>31)-1> bytes."
1430 msgstr ""
1431 "Значение I<pathname> или I<fd> ссылаются на файл, чей размер, номер inode "
1432 "или количество блоков не может быть представлено с помощью типов I<off_t>, "
1433 "I<ino_t> или I<blkcnt_t>, соответственно. Эта ошибка может возникнуть, если, "
1434 "например, приложение собрано на 32-битной платформе без флага I<-"
1435 "D_FILE_OFFSET_BITS=64> при вызове B<stat>() для файла, чей размер превышает "
1436 "I<(1E<lt>E<lt>31)-1> байт."
1437
1438 #. type: Plain text
1439 #: debian-trixie fedora-44 fedora-rawhide
1440 msgid "POSIX.1-2008."
1441 msgstr "POSIX.1-2008."
1442
1443 #. type: Plain text
1444 #: debian-trixie fedora-44 fedora-rawhide
1445 #, no-wrap
1446 msgid ""
1447 "#include E<lt>stdint.hE<gt>\n"
1448 "#include E<lt>stdio.hE<gt>\n"
1449 "#include E<lt>stdlib.hE<gt>\n"
1450 "#include E<lt>sys/stat.hE<gt>\n"
1451 "#include E<lt>sys/sysmacros.hE<gt>\n"
1452 "#include E<lt>time.hE<gt>\n"
1453 "\\&\n"
1454 "int\n"
1455 "main(int argc, char *argv[])\n"
1456 "{\n"
1457 " struct stat sb;\n"
1458 "\\&\n"
1459 " if (argc != 2) {\n"
1460 " fprintf(stderr, \"Usage: %s E<lt>pathnameE<gt>\\[rs]n\", argv[0]);\n"
1461 " exit(EXIT_FAILURE);\n"
1462 " }\n"
1463 "\\&\n"
1464 " if (lstat(argv[1], &sb) == -1) {\n"
1465 " perror(\"lstat\");\n"
1466 " exit(EXIT_FAILURE);\n"
1467 " }\n"
1468 "\\&\n"
1469 " printf(\"ID of containing device: [%x,%x]\\[rs]n\",\n"
1470 " major(sb.st_dev),\n"
1471 " minor(sb.st_dev));\n"
1472 "\\&\n"
1473 " printf(\"File type: \");\n"
1474 "\\&\n"
1475 " switch (sb.st_mode & S_IFMT) {\n"
1476 " case S_IFBLK: printf(\"block device\\[rs]n\"); break;\n"
1477 " case S_IFCHR: printf(\"character device\\[rs]n\"); break;\n"
1478 " case S_IFDIR: printf(\"directory\\[rs]n\"); break;\n"
1479 " case S_IFIFO: printf(\"FIFO/pipe\\[rs]n\"); break;\n"
1480 " case S_IFLNK: printf(\"symlink\\[rs]n\"); break;\n"
1481 " case S_IFREG: printf(\"regular file\\[rs]n\"); break;\n"
1482 " case S_IFSOCK: printf(\"socket\\[rs]n\"); break;\n"
1483 " default: printf(\"unknown?\\[rs]n\"); break;\n"
1484 " }\n"
1485 "\\&\n"
1486 " printf(\"I-node number: %ju\\[rs]n\", (uintmax_t) sb.st_ino);\n"
1487 "\\&\n"
1488 " printf(\"Mode: %jo (octal)\\[rs]n\",\n"
1489 " (uintmax_t) sb.st_mode);\n"
1490 "\\&\n"
1491 " printf(\"Link count: %ju\\[rs]n\", (uintmax_t) sb.st_nlink);\n"
1492 " printf(\"Ownership: UID=%ju GID=%ju\\[rs]n\",\n"
1493 " (uintmax_t) sb.st_uid, (uintmax_t) sb.st_gid);\n"
1494 "\\&\n"
1495 " printf(\"Preferred I/O block size: %jd bytes\\[rs]n\",\n"
1496 " (intmax_t) sb.st_blksize);\n"
1497 " printf(\"File size: %jd bytes\\[rs]n\",\n"
1498 " (intmax_t) sb.st_size);\n"
1499 " printf(\"Blocks allocated: %jd\\[rs]n\",\n"
1500 " (intmax_t) sb.st_blocks);\n"
1501 "\\&\n"
1502 " printf(\"Last status change: %s\", ctime(&sb.st_ctime));\n"
1503 " printf(\"Last file access: %s\", ctime(&sb.st_atime));\n"
1504 " printf(\"Last file modification: %s\", ctime(&sb.st_mtime));\n"
1505 "\\&\n"
1506 " exit(EXIT_SUCCESS);\n"
1507 "}\n"
1508 msgstr ""
1509
1510 #. type: TH
1511 #: fedora-44 fedora-rawhide
1512 #, no-wrap
1513 msgid "2025-01-09"
1514 msgstr "9 января 2025 г."
1515
1516 #. type: TH
1517 #: fedora-44 fedora-rawhide
1518 #, no-wrap
1519 msgid "Linux man-pages 6.13"
1520 msgstr "Страницы руководства Linux 6.13"
1521
1522 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
1523 #. Before glibc 2.16, defining _ATFILE_SOURCE sufficed
1524 #. type: Plain text
1525 #: fedora-44 fedora-rawhide
1526 #, fuzzy
1527 #| msgid ""
1528 #| "If I<pathname> is an empty string, operate on the file referred to by "
1529 #| "I<dirfd> (which may have been obtained using the B<open>(2) B<O_PATH> "
1530 #| "flag). In this case, I<dirfd> can refer to any type of file, not just a "
1531 #| "directory, and the behavior of B<fstatat>() is similar to that of "
1532 #| "B<fstat>(). If I<dirfd> is B<AT_FDCWD>, the call operates on the current "
1533 #| "working directory. This flag is Linux-specific; define B<_GNU_SOURCE> to "
1534 #| "obtain its definition."
1535 msgid ""
1536 "If I<pathname> is an empty string (or NULL, since Linux 6.11) operate on "
1537 "the file referred to by I<dirfd> (which may have been obtained using the "
1538 "B<open>(2) B<O_PATH> flag). In this case, I<dirfd> can refer to any type "
1539 "of file, not just a directory, and the behavior of B<fstatat>() is similar "
1540 "to that of B<fstat>(). If I<dirfd> is B<AT_FDCWD>, the call operates on the "
1541 "current working directory. This flag is Linux-specific; define "
1542 "B<_GNU_SOURCE> to obtain its definition."
1543 msgstr ""
1544 "Если значение I<pathname> равно пустой строке, то выполнять действие над "
1545 "файлом, на который указывает I<dirfd> (который может быть получен с помощью "
1546 "B<open>(2) с флагом B<O_PATH>). В этом случае I<dirfd> может указывать на "
1547 "файл любого типа, а не только на каталог и поведение B<fstatat>() подобно "
1548 "B<fstat>(). Если I<dirfd> равно B<AT_FDCWD>, то вызов выполняет действие над "
1549 "текущим рабочим каталогом. Этот флаг есть только в Linux; для получения его "
1550 "определения определите B<_GNU_SOURCE>."
1551
1552 #. type: TH
1553 #: mageia-cauldron
1554 #, no-wrap
1555 msgid "Linux man-pages 6.17"
1556 msgstr "Страницы руководства Linux 6.17"
1557
1558 #. type: TH
1559 #: opensuse-leap-16-1 opensuse-tumbleweed
1560 #, no-wrap
1561 msgid "Linux man-pages (unreleased)"
1562 msgstr "Страницы руководства Linux (не выпущены)"