| 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 |
# aereiae <[email protected]>, 2014. |
| 5 |
# Azamat Hackimov <[email protected]>, 2013-2014, 2016. |
| 6 |
# Dmitriy S. Seregin <[email protected]>, 2013. |
| 7 |
# Katrin Kutepova <[email protected]>, 2018. |
| 8 |
# Lockal <[email protected]>, 2013. |
| 9 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 10 |
# Баринов Владимир, 2016. |
| 11 |
# Иван Павлов <[email protected]>, 2017,2019. |
| 12 |
msgid "" |
| 13 |
msgstr "" |
| 14 |
"Project-Id-Version: manpages-l10n\n" |
| 15 |
"POT-Creation-Date: 2026-06-05 06:39+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 "readlink" |
| 33 |
msgstr "readlink" |
| 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 "readlink, readlinkat - read value of a symbolic link" |
| 60 |
msgstr "readlink, readlinkat - считывает значение символьной ссылки" |
| 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>unistd.hE<gt>>\n" |
| 87 |
msgstr "B<#include E<lt>unistd.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<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n" |
| 95 |
#| "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n" |
| 96 |
msgid "" |
| 97 |
"B<ssize_t readlink(>size_t bufsiz;\n" |
| 98 |
"B< const char *restrict >I<path>B<,>\n" |
| 99 |
"B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n" |
| 100 |
msgstr "" |
| 101 |
"B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n" |
| 102 |
"B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n" |
| 103 |
|
| 104 |
#. type: Plain text |
| 105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 106 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 107 |
#, no-wrap |
| 108 |
msgid "" |
| 109 |
"B<#include E<lt>fcntl.hE<gt> >/* Definition of B<AT_*> constants */\n" |
| 110 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 111 |
msgstr "" |
| 112 |
"B<#include E<lt>fcntl.hE<gt> >/* определения констант B<AT_*> */\n" |
| 113 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 114 |
|
| 115 |
#. type: Plain text |
| 116 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 117 |
#: opensuse-tumbleweed |
| 118 |
#, fuzzy, no-wrap |
| 119 |
#| msgid "" |
| 120 |
#| "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n" |
| 121 |
#| "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n" |
| 122 |
msgid "" |
| 123 |
"B<ssize_t readlinkat(>size_t bufsiz;\n" |
| 124 |
"B< int >I<dirfd>B<, const char *restrict >I<path>B<,>\n" |
| 125 |
"B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n" |
| 126 |
msgstr "" |
| 127 |
"B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n" |
| 128 |
"B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n" |
| 129 |
|
| 130 |
#. type: Plain text |
| 131 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 132 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 133 |
msgid "" |
| 134 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 135 |
msgstr "" |
| 136 |
"Требования макроса тестирования свойств для glibc (см. " |
| 137 |
"B<feature_test_macros>(7)):" |
| 138 |
|
| 139 |
#. type: Plain text |
| 140 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 141 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 142 |
msgid "B<readlink>():" |
| 143 |
msgstr "B<readlink>():" |
| 144 |
|
| 145 |
#. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED |
| 146 |
#. type: Plain text |
| 147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 148 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 149 |
#, no-wrap |
| 150 |
msgid "" |
| 151 |
" _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200112L\n" |
| 152 |
" || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n" |
| 153 |
msgstr "" |
| 154 |
" _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200112L\n" |
| 155 |
" || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n" |
| 156 |
|
| 157 |
#. type: Plain text |
| 158 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 159 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 160 |
msgid "B<readlinkat>():" |
| 161 |
msgstr "B<readlinkat>():" |
| 162 |
|
| 163 |
#. type: Plain text |
| 164 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 165 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 166 |
#, no-wrap |
| 167 |
msgid "" |
| 168 |
" Since glibc 2.10:\n" |
| 169 |
" _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 170 |
" Before glibc 2.10:\n" |
| 171 |
" _ATFILE_SOURCE\n" |
| 172 |
msgstr "" |
| 173 |
" Начиная с glibc 2.10:\n" |
| 174 |
" _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 175 |
" До glibc 2.10:\n" |
| 176 |
" _ATFILE_SOURCE\n" |
| 177 |
|
| 178 |
#. type: SH |
| 179 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 180 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 181 |
#, no-wrap |
| 182 |
msgid "DESCRIPTION" |
| 183 |
msgstr "ОПИСАНИЕ" |
| 184 |
|
| 185 |
#. type: Plain text |
| 186 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 187 |
#: opensuse-tumbleweed |
| 188 |
#, fuzzy |
| 189 |
#| msgid "" |
| 190 |
#| "B<readlink>() places the contents of the symbolic link I<pathname> in " |
| 191 |
#| "the buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not " |
| 192 |
#| "append a null byte to I<buf>. It will (silently) truncate the contents " |
| 193 |
#| "(to a length of I<bufsiz> characters), in case the buffer is too small to " |
| 194 |
#| "hold all of the contents." |
| 195 |
msgid "" |
| 196 |
"B<readlink>() places the contents of the symbolic link I<path> in the " |
| 197 |
"buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not append a " |
| 198 |
"terminating null byte to I<buf>. It will (silently) truncate the contents " |
| 199 |
"(to a length of I<bufsiz> characters), in case the buffer is too small to " |
| 200 |
"hold all of the contents." |
| 201 |
msgstr "" |
| 202 |
"Вызов B<readlink>() помещает содержимое символьной ссылки I<pathname> в " |
| 203 |
"буфер I<buf> размером I<bufsiz>. B<readlink>() не добавляет в I<buf> байт " |
| 204 |
"null. Если буфер слишком мал для хранения всего содержимого, то содержимое " |
| 205 |
"будет урезано (без выдачи ошибки, до длины в I<bufsiz> символов)." |
| 206 |
|
| 207 |
#. type: SS |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
#, no-wrap |
| 211 |
msgid "readlinkat()" |
| 212 |
msgstr "readlinkat()" |
| 213 |
|
| 214 |
#. type: Plain text |
| 215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 216 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 217 |
msgid "" |
| 218 |
"The B<readlinkat>() system call operates in exactly the same way as " |
| 219 |
"B<readlink>(), except for the differences described here." |
| 220 |
msgstr "" |
| 221 |
"Системный вызов B<readlinkat>() работает также как системный вызов " |
| 222 |
"B<readlink>(), за исключением случаев, описанных здесь." |
| 223 |
|
| 224 |
#. type: Plain text |
| 225 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 226 |
#: opensuse-tumbleweed |
| 227 |
#, fuzzy |
| 228 |
#| msgid "" |
| 229 |
#| "If the pathname given in I<pathname> is relative, then it is interpreted " |
| 230 |
#| "relative to the directory referred to by the file descriptor I<dirfd> " |
| 231 |
#| "(rather than relative to the current working directory of the calling " |
| 232 |
#| "process, as is done by B<readlink>() for a relative pathname)." |
| 233 |
msgid "" |
| 234 |
"If I<path> is relative, then it is interpreted relative to the directory " |
| 235 |
"referred to by the file descriptor I<dirfd> (rather than relative to the " |
| 236 |
"current working directory of the calling process, as is done by " |
| 237 |
"B<readlink>() for a relative pathname)." |
| 238 |
msgstr "" |
| 239 |
"Если в I<pathname> задан относительный путь, то он считается относительно " |
| 240 |
"каталога, на который ссылается файловый дескриптор I<dirfd> (а не " |
| 241 |
"относительно текущего рабочего каталога вызывающего процесса, как это " |
| 242 |
"делается в B<readlink>())." |
| 243 |
|
| 244 |
#. type: Plain text |
| 245 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 246 |
#: opensuse-tumbleweed |
| 247 |
#, fuzzy |
| 248 |
#| msgid "" |
| 249 |
#| "If I<pathname> is relative and I<dirfd> is the special value B<AT_FDCWD>, " |
| 250 |
#| "then I<pathname> is interpreted relative to the current working directory " |
| 251 |
#| "of the calling process (like B<readlink>())." |
| 252 |
msgid "" |
| 253 |
"If I<path> is relative and I<dirfd> is the special value B<AT_FDCWD>, then " |
| 254 |
"I<path> is interpreted relative to the current working directory of the " |
| 255 |
"calling process (like B<readlink>())." |
| 256 |
msgstr "" |
| 257 |
"Если в I<pathname> задан относительный путь и I<dirfd> равно специальному " |
| 258 |
"значению B<AT_FDCWD>, то I<pathname> рассматривается относительно текущего " |
| 259 |
"рабочего каталога вызывающего процесса (как B<readlink>())." |
| 260 |
|
| 261 |
#. type: Plain text |
| 262 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 263 |
#: opensuse-tumbleweed |
| 264 |
#, fuzzy |
| 265 |
#| msgid "If I<pathname> is absolute, then I<dirfd> is ignored." |
| 266 |
msgid "If I<path> is absolute, then I<dirfd> is ignored." |
| 267 |
msgstr "Если в I<pathname> задан абсолютный путь, то I<dirfd> игнорируется." |
| 268 |
|
| 269 |
#. commit 65cfc6722361570bfe255698d9cd4dccaf47570d |
| 270 |
#. type: Plain text |
| 271 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 272 |
#: opensuse-tumbleweed |
| 273 |
#, fuzzy |
| 274 |
#| msgid "" |
| 275 |
#| "Since Linux 2.6.39, I<pathname> can be an empty string, in which case the " |
| 276 |
#| "call operates on the symbolic link referred to by I<dirfd> (which should " |
| 277 |
#| "have been obtained using B<open>(2) with the B<O_PATH> and B<O_NOFOLLOW> " |
| 278 |
#| "flags)." |
| 279 |
msgid "" |
| 280 |
"Since Linux 2.6.39, I<path> can be an empty string, in which case the call " |
| 281 |
"operates on the symbolic link referred to by I<dirfd> (which should have " |
| 282 |
"been obtained using B<open>(2) with the B<O_PATH> and B<O_NOFOLLOW> flags)." |
| 283 |
msgstr "" |
| 284 |
"Начиная с Linux .6.39, I<pathname> может быть пустой строкой; при этом вызов " |
| 285 |
"выполняет действие с символьной ссылкой, на которую ссылается I<dirfd> " |
| 286 |
"(должна получаться с помощью вызова B<open>(2) с флагами B<O_PATH> и " |
| 287 |
"B<O_NOFOLLOW>)." |
| 288 |
|
| 289 |
#. type: Plain text |
| 290 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 291 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 292 |
msgid "See B<openat>(2) for an explanation of the need for B<readlinkat>()." |
| 293 |
msgstr "Смотрите в B<openat>(2) объяснение необходимости B<readlinkat>()." |
| 294 |
|
| 295 |
#. type: SH |
| 296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 297 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 298 |
#, no-wrap |
| 299 |
msgid "RETURN VALUE" |
| 300 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 301 |
|
| 302 |
#. type: Plain text |
| 303 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 304 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 305 |
msgid "" |
| 306 |
"On success, these calls return the number of bytes placed in I<buf>. (If " |
| 307 |
"the returned value equals I<bufsiz>, then truncation may have occurred.) On " |
| 308 |
"error, -1 is returned and I<errno> is set to indicate the error." |
| 309 |
msgstr "" |
| 310 |
"При успешном выполнении эти вызовы возвращают количество байт, помещённых в " |
| 311 |
"I<buf> (если возвращаемое значение равно I<bufsiz>, то возможно произошло " |
| 312 |
"обрезание). В случае ошибки возвращается -1, а I<errno> устанавливается в " |
| 313 |
"соответствующее значение." |
| 314 |
|
| 315 |
#. type: SH |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
#, no-wrap |
| 319 |
msgid "ERRORS" |
| 320 |
msgstr "ОШИБКИ" |
| 321 |
|
| 322 |
#. type: TP |
| 323 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 324 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 325 |
#, no-wrap |
| 326 |
msgid "B<EACCES>" |
| 327 |
msgstr "B<EACCES>" |
| 328 |
|
| 329 |
#. type: Plain text |
| 330 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 331 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 332 |
msgid "" |
| 333 |
"Search permission is denied for a component of the path prefix. (See also " |
| 334 |
"B<path_resolution>(7).)" |
| 335 |
msgstr "" |
| 336 |
"В одном из каталогов префикса пути не разрешён поиск (см. также " |
| 337 |
"B<path_resolution>(7)." |
| 338 |
|
| 339 |
#. type: TP |
| 340 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 341 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 342 |
#, no-wrap |
| 343 |
msgid "B<EBADF>" |
| 344 |
msgstr "B<EBADF>" |
| 345 |
|
| 346 |
#. type: Plain text |
| 347 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 348 |
#: opensuse-tumbleweed |
| 349 |
#, fuzzy |
| 350 |
#| msgid "" |
| 351 |
#| "I<pathname> is relative but I<dirfd> is neither B<AT_FDCWD> nor a valid " |
| 352 |
#| "file descriptor." |
| 353 |
msgid "" |
| 354 |
"(B<readlinkat>()) I<path> is relative but I<dirfd> is neither B<AT_FDCWD> " |
| 355 |
"nor a valid file descriptor." |
| 356 |
msgstr "" |
| 357 |
"В I<pathname> содержится относительный путь, но значение I<dirfd> не равно " |
| 358 |
"B<AT_FDCWD> и не является правильным файловым дескриптором." |
| 359 |
|
| 360 |
#. type: TP |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
#, no-wrap |
| 364 |
msgid "B<EFAULT>" |
| 365 |
msgstr "B<EFAULT>" |
| 366 |
|
| 367 |
#. type: Plain text |
| 368 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 369 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 370 |
msgid "I<buf> extends outside the process's allocated address space." |
| 371 |
msgstr "" |
| 372 |
"I<buf> выходит за пределы адресного пространства, выделенного процессу." |
| 373 |
|
| 374 |
#. type: TP |
| 375 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 376 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 377 |
#, no-wrap |
| 378 |
msgid "B<EINVAL>" |
| 379 |
msgstr "B<EINVAL>" |
| 380 |
|
| 381 |
#. At the glibc level, bufsiz is unsigned, so this error can only occur |
| 382 |
#. if bufsiz==0. However, the in the kernel syscall, bufsiz is signed, |
| 383 |
#. and this error can also occur if bufsiz < 0. |
| 384 |
#. See: http://thread.gmane.org/gmane.linux.man/380 |
| 385 |
#. Subject: [patch 0/3] [RFC] kernel/glibc mismatch of "readlink" syscall? |
| 386 |
#. type: Plain text |
| 387 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 388 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 389 |
msgid "I<bufsiz> is not positive." |
| 390 |
msgstr "Аргумент I<bufsiz> содержит отрицательное значение." |
| 391 |
|
| 392 |
#. type: Plain text |
| 393 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 394 |
#: opensuse-tumbleweed |
| 395 |
#, fuzzy |
| 396 |
#| msgid "" |
| 397 |
#| "The named file (i.e., the final filename component of I<pathname>) is " |
| 398 |
#| "not a symbolic link." |
| 399 |
msgid "" |
| 400 |
"The named file (i.e., the final filename component of I<path>) is not a " |
| 401 |
"symbolic link." |
| 402 |
msgstr "" |
| 403 |
"Указанный файл (т. е., последний компонент имени файла I<pathname>) не " |
| 404 |
"является символьной ссылкой." |
| 405 |
|
| 406 |
#. type: TP |
| 407 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 408 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 409 |
#, no-wrap |
| 410 |
msgid "B<EIO>" |
| 411 |
msgstr "B<EIO>" |
| 412 |
|
| 413 |
#. type: Plain text |
| 414 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 415 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 416 |
msgid "An I/O error occurred while reading from the filesystem." |
| 417 |
msgstr "При чтении файловой системы произошла ошибка ввода-вывода." |
| 418 |
|
| 419 |
#. type: TP |
| 420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 421 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 422 |
#, no-wrap |
| 423 |
msgid "B<ELOOP>" |
| 424 |
msgstr "B<ELOOP>" |
| 425 |
|
| 426 |
#. type: Plain text |
| 427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 428 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 429 |
msgid "Too many symbolic links were encountered in translating the pathname." |
| 430 |
msgstr "" |
| 431 |
"Во время определения pathname встретилось слишком много символьных ссылок." |
| 432 |
|
| 433 |
#. type: TP |
| 434 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 435 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 436 |
#, no-wrap |
| 437 |
msgid "B<ENAMETOOLONG>" |
| 438 |
msgstr "B<ENAMETOOLONG>" |
| 439 |
|
| 440 |
#. type: Plain text |
| 441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 442 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 443 |
msgid "A pathname, or a component of a pathname, was too long." |
| 444 |
msgstr "Слишком длинное значение аргумента pathname или его части." |
| 445 |
|
| 446 |
#. type: TP |
| 447 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 448 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 449 |
#, no-wrap |
| 450 |
msgid "B<ENOENT>" |
| 451 |
msgstr "B<ENOENT>" |
| 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 "The named file does not exist." |
| 457 |
msgstr "Указанный файл не существует." |
| 458 |
|
| 459 |
#. type: TP |
| 460 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 461 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 462 |
#, no-wrap |
| 463 |
msgid "B<ENOMEM>" |
| 464 |
msgstr "B<ENOMEM>" |
| 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 "Insufficient kernel memory was available." |
| 470 |
msgstr "Недостаточное количество памяти ядра." |
| 471 |
|
| 472 |
#. type: TP |
| 473 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 474 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 475 |
#, no-wrap |
| 476 |
msgid "B<ENOTDIR>" |
| 477 |
msgstr "B<ENOTDIR>" |
| 478 |
|
| 479 |
#. type: Plain text |
| 480 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 481 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 482 |
msgid "A component of the path prefix is not a directory." |
| 483 |
msgstr "Компонент в префиксе пути не является каталогом." |
| 484 |
|
| 485 |
#. type: Plain text |
| 486 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 487 |
#: opensuse-tumbleweed |
| 488 |
#, fuzzy |
| 489 |
#| msgid "" |
| 490 |
#| "(B<readlinkat>()) I<pathname> is relative and I<dirfd> is a file " |
| 491 |
#| "descriptor referring to a file other than a directory." |
| 492 |
msgid "" |
| 493 |
"(B<readlinkat>()) I<path> is relative and I<dirfd> is a file descriptor " |
| 494 |
"referring to a file other than a directory." |
| 495 |
msgstr "" |
| 496 |
"(B<readlinkat>()) Значение I<pathname> содержит относительный путь и " |
| 497 |
"I<dirfd> содержит файловый дескриптор, указывающий на файл, а не на каталог." |
| 498 |
|
| 499 |
#. type: SH |
| 500 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 501 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 502 |
#, no-wrap |
| 503 |
msgid "STANDARDS" |
| 504 |
msgstr "СТАНДАРТЫ" |
| 505 |
|
| 506 |
#. type: Plain text |
| 507 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 508 |
#: opensuse-tumbleweed |
| 509 |
msgid "POSIX.1-2024." |
| 510 |
msgstr "POSIX.1-2024." |
| 511 |
|
| 512 |
#. type: SH |
| 513 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 514 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 515 |
#, no-wrap |
| 516 |
msgid "HISTORY" |
| 517 |
msgstr "ИСТОРИЯ" |
| 518 |
|
| 519 |
#. type: TP |
| 520 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 521 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 522 |
#, fuzzy, no-wrap |
| 523 |
#| msgid "B<readlink>():" |
| 524 |
msgid "B<readlink>()" |
| 525 |
msgstr "B<readlink>():" |
| 526 |
|
| 527 |
#. type: Plain text |
| 528 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 529 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 530 |
#, fuzzy |
| 531 |
#| msgid "" |
| 532 |
#| "B<readlink>(): 4.4BSD (B<readlink>() first appeared in 4.2BSD), " |
| 533 |
#| "POSIX.1-2001, POSIX.1-2008." |
| 534 |
msgid "4.4BSD (first appeared in 4.2BSD), POSIX.1-2001, POSIX.1-2008." |
| 535 |
msgstr "" |
| 536 |
"B<readlink>(): 4.4BSD (B<readlink>() появился в 4.2BSD), POSIX.1-2001, " |
| 537 |
"POSIX.1-2008." |
| 538 |
|
| 539 |
#. type: TP |
| 540 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 541 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 542 |
#, fuzzy, no-wrap |
| 543 |
#| msgid "B<readlinkat>():" |
| 544 |
msgid "B<readlinkat>()" |
| 545 |
msgstr "B<readlinkat>():" |
| 546 |
|
| 547 |
#. type: Plain text |
| 548 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 549 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 550 |
msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4." |
| 551 |
msgstr "POSIX.1-2008. Linux 2.6.16, glibc 2.4." |
| 552 |
|
| 553 |
#. type: Plain text |
| 554 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 555 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 556 |
#, fuzzy |
| 557 |
#| msgid "" |
| 558 |
#| "In versions of glibc up to and including glibc 2.4, the return type of " |
| 559 |
#| "B<readlink>() was declared as I<int>. Nowadays, the return type is " |
| 560 |
#| "declared as I<ssize_t>, as (newly) required in POSIX.1-2001." |
| 561 |
msgid "" |
| 562 |
"Up to and including glibc 2.4, the return type of B<readlink>() was " |
| 563 |
"declared as I<int>. Nowadays, the return type is declared as I<ssize_t>, as " |
| 564 |
"(newly) required in POSIX.1-2001." |
| 565 |
msgstr "" |
| 566 |
"В версиях glibc до glibc 2.4 включительно, тип результата B<readlink>() был " |
| 567 |
"объявлен как I<int>. В настоящее время типом возвращаемого результата " |
| 568 |
"является I<ssize_t>, как (теперь) это требуется по POSIX.1-2001." |
| 569 |
|
| 570 |
#. type: SS |
| 571 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 572 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 573 |
#, no-wrap |
| 574 |
msgid "glibc" |
| 575 |
msgstr "glibc" |
| 576 |
|
| 577 |
#. type: Plain text |
| 578 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 579 |
#: opensuse-tumbleweed |
| 580 |
#, fuzzy |
| 581 |
#| msgid "" |
| 582 |
#| "On older kernels where B<readlinkat>() is unavailable, the glibc wrapper " |
| 583 |
#| "function falls back to the use of B<readlink>(). When I<pathname> is a " |
| 584 |
#| "relative pathname, glibc constructs a pathname based on the symbolic link " |
| 585 |
#| "in I</proc/self/fd> that corresponds to the I<dirfd> argument." |
| 586 |
msgid "" |
| 587 |
"On older kernels where B<readlinkat>() is unavailable, the glibc wrapper " |
| 588 |
"function falls back to the use of B<readlink>(). When I<path> is relative, " |
| 589 |
"glibc constructs a pathname based on the symbolic link in I</proc/self/fd> " |
| 590 |
"that corresponds to the I<dirfd> argument." |
| 591 |
msgstr "" |
| 592 |
"В старых ядрах, где B<readlinkat>() отсутствует, обёрточная функция glibc " |
| 593 |
"использует B<readlink>(). Если I<pathname> является относительным путём, то " |
| 594 |
"glibc собирает путь относительно символической ссылки в I</proc/self/fd>, " |
| 595 |
"которая соответствует аргументу I<dirfd>." |
| 596 |
|
| 597 |
#. type: SH |
| 598 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 599 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 600 |
#, no-wrap |
| 601 |
msgid "NOTES" |
| 602 |
msgstr "ПРИМЕЧАНИЯ" |
| 603 |
|
| 604 |
#. type: Plain text |
| 605 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 606 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 607 |
msgid "" |
| 608 |
"Using a statically sized buffer might not provide enough room for the " |
| 609 |
"symbolic link contents. The required size for the buffer can be obtained " |
| 610 |
"from the I<stat.st_size> value returned by a call to B<lstat>(2) on the " |
| 611 |
"link. However, the number of bytes written by B<readlink>() and " |
| 612 |
"B<readlinkat>() should be checked to make sure that the size of the " |
| 613 |
"symbolic link did not increase between the calls. Dynamically allocating " |
| 614 |
"the buffer for B<readlink>() and B<readlinkat>() also addresses a common " |
| 615 |
"portability problem when using B<PATH_MAX> for the buffer size, as this " |
| 616 |
"constant is not guaranteed to be defined per POSIX if the system does not " |
| 617 |
"have such limit." |
| 618 |
msgstr "" |
| 619 |
"Буфера с фиксированным размером может не хватить для хранения содержимого " |
| 620 |
"символьной ссылки. Требуемый размер буфера можно получить как значение " |
| 621 |
"I<stat.st_size>, возвращаемое на ссылку вызовом B<lstat>(2). Однако, " |
| 622 |
"количество байт, записанное B<readlink>() и B<readlinkat>(), должно быть " |
| 623 |
"проверено, так как требуется убедиться, что размер символьной ссылки не " |
| 624 |
"увеличился между вызовами. Динамическое выделение буфера для B<readlink>() и " |
| 625 |
"B<readlinkat>() также поможет решить проблему с переносимостью, которая " |
| 626 |
"возникает, когда для размера буфера используется B<PATH_MAX>, но согласно " |
| 627 |
"POSIX для этой константы не гарантируется, что она определена , если система " |
| 628 |
"не имеет такого ограничения." |
| 629 |
|
| 630 |
#. type: SH |
| 631 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 632 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 633 |
#, no-wrap |
| 634 |
msgid "EXAMPLES" |
| 635 |
msgstr "ПРИМЕРЫ" |
| 636 |
|
| 637 |
#. type: Plain text |
| 638 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 639 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 640 |
msgid "" |
| 641 |
"The following program allocates the buffer needed by B<readlink>() " |
| 642 |
"dynamically from the information provided by B<lstat>(2), falling back to a " |
| 643 |
"buffer of size B<PATH_MAX> in cases where B<lstat>(2) reports a size of " |
| 644 |
"zero." |
| 645 |
msgstr "" |
| 646 |
"Следующая программа динамически выделяет буфер, необходимый B<readlink>(), " |
| 647 |
"из информации, предоставленной B<lstat>(2), или использует буфер размером " |
| 648 |
"B<PATH_MAX>, если B<lstat>(2) вернул нулевой размер." |
| 649 |
|
| 650 |
#. type: Plain text |
| 651 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 652 |
#: opensuse-tumbleweed |
| 653 |
#, no-wrap |
| 654 |
msgid "" |
| 655 |
"#include E<lt>limits.hE<gt>\n" |
| 656 |
"#include E<lt>stdio.hE<gt>\n" |
| 657 |
"#include E<lt>stdlib.hE<gt>\n" |
| 658 |
"#include E<lt>sys/stat.hE<gt>\n" |
| 659 |
"#include E<lt>sys/types.hE<gt>\n" |
| 660 |
"#include E<lt>unistd.hE<gt>\n" |
| 661 |
"\\&\n" |
| 662 |
"int\n" |
| 663 |
"main(int argc, char *argv[])\n" |
| 664 |
"{\n" |
| 665 |
" char *buf;\n" |
| 666 |
" ssize_t nbytes, bufsiz;\n" |
| 667 |
" struct stat sb;\n" |
| 668 |
"\\&\n" |
| 669 |
" if (argc != 2) {\n" |
| 670 |
" fprintf(stderr, \"Usage: %s E<lt>pathE<gt>\\[rs]n\", argv[0]);\n" |
| 671 |
" exit(EXIT_FAILURE);\n" |
| 672 |
" }\n" |
| 673 |
"\\&\n" |
| 674 |
" if (lstat(argv[1], &sb) == -1) {\n" |
| 675 |
" perror(\"lstat\");\n" |
| 676 |
" exit(EXIT_FAILURE);\n" |
| 677 |
" }\n" |
| 678 |
"\\&\n" |
| 679 |
" /* Add one to the link size, so that we can determine whether\n" |
| 680 |
" the buffer returned by readlink() was truncated. */\n" |
| 681 |
"\\&\n" |
| 682 |
" bufsiz = sb.st_size + 1;\n" |
| 683 |
"\\&\n" |
| 684 |
" /* Some magic symlinks under (for example) /proc and /sys\n" |
| 685 |
" report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n" |
| 686 |
" a \"good enough\" estimate. */\n" |
| 687 |
"\\&\n" |
| 688 |
" if (sb.st_size == 0)\n" |
| 689 |
" bufsiz = PATH_MAX;\n" |
| 690 |
"\\&\n" |
| 691 |
" buf = malloc(bufsiz);\n" |
| 692 |
" if (buf == NULL) {\n" |
| 693 |
" perror(\"malloc\");\n" |
| 694 |
" exit(EXIT_FAILURE);\n" |
| 695 |
" }\n" |
| 696 |
"\\&\n" |
| 697 |
" nbytes = readlink(argv[1], buf, bufsiz);\n" |
| 698 |
" if (nbytes == -1) {\n" |
| 699 |
" perror(\"readlink\");\n" |
| 700 |
" exit(EXIT_FAILURE);\n" |
| 701 |
" }\n" |
| 702 |
"\\&\n" |
| 703 |
" /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n" |
| 704 |
" null byte (\\[aq]\\[rs]0\\[aq]). */\n" |
| 705 |
" printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n" |
| 706 |
"\\&\n" |
| 707 |
" /* If the return value was equal to the buffer size, then\n" |
| 708 |
" the link target was larger than expected (perhaps because the\n" |
| 709 |
" target was changed between the call to lstat() and the call to\n" |
| 710 |
" readlink()). Warn the user that the returned target may have\n" |
| 711 |
" been truncated. */\n" |
| 712 |
"\\&\n" |
| 713 |
" if (nbytes == bufsiz)\n" |
| 714 |
" printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n" |
| 715 |
"\\&\n" |
| 716 |
" free(buf);\n" |
| 717 |
" exit(EXIT_SUCCESS);\n" |
| 718 |
"}\n" |
| 719 |
msgstr "" |
| 720 |
|
| 721 |
#. SRC END |
| 722 |
#. type: SH |
| 723 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 724 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 725 |
#, no-wrap |
| 726 |
msgid "SEE ALSO" |
| 727 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 728 |
|
| 729 |
#. type: Plain text |
| 730 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 731 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 732 |
msgid "" |
| 733 |
"B<readlink>(1), B<lstat>(2), B<stat>(2), B<symlink>(2), B<realpath>(3), " |
| 734 |
"B<path_resolution>(7), B<symlink>(7)" |
| 735 |
msgstr "" |
| 736 |
"B<readlink>(1), B<lstat>(2), B<stat>(2), B<symlink>(2), B<realpath>(3), " |
| 737 |
"B<path_resolution>(7), B<symlink>(7)" |
| 738 |
|
| 739 |
#. type: TH |
| 740 |
#: debian-trixie |
| 741 |
#, no-wrap |
| 742 |
msgid "2024-06-15" |
| 743 |
msgstr "15 июня 2024 г." |
| 744 |
|
| 745 |
#. type: TH |
| 746 |
#: debian-trixie |
| 747 |
#, no-wrap |
| 748 |
msgid "Linux man-pages 6.9.1" |
| 749 |
msgstr "Страницы руководства Linux 6.9.1" |
| 750 |
|
| 751 |
#. type: Plain text |
| 752 |
#: debian-trixie |
| 753 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 754 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 755 |
|
| 756 |
#. type: Plain text |
| 757 |
#: debian-trixie |
| 758 |
#, no-wrap |
| 759 |
msgid "" |
| 760 |
"B<ssize_t readlink(const char *restrict >I<pathname>B<, char *restrict >I<buf>B<,>\n" |
| 761 |
"B< size_t >I<bufsiz>B<);>\n" |
| 762 |
msgstr "" |
| 763 |
"B<ssize_t readlink(const char *restrict >I<pathname>B<, char *restrict >I<buf>B<,>\n" |
| 764 |
"B< size_t >I<bufsiz>B<);>\n" |
| 765 |
|
| 766 |
#. type: Plain text |
| 767 |
#: debian-trixie |
| 768 |
#, no-wrap |
| 769 |
msgid "" |
| 770 |
"B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n" |
| 771 |
"B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n" |
| 772 |
msgstr "" |
| 773 |
"B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n" |
| 774 |
"B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n" |
| 775 |
|
| 776 |
#. type: Plain text |
| 777 |
#: debian-trixie fedora-44 fedora-rawhide |
| 778 |
#, fuzzy |
| 779 |
#| msgid "" |
| 780 |
#| "B<readlink>() places the contents of the symbolic link I<pathname> in " |
| 781 |
#| "the buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not " |
| 782 |
#| "append a null byte to I<buf>. It will (silently) truncate the contents " |
| 783 |
#| "(to a length of I<bufsiz> characters), in case the buffer is too small to " |
| 784 |
#| "hold all of the contents." |
| 785 |
msgid "" |
| 786 |
"B<readlink>() places the contents of the symbolic link I<pathname> in the " |
| 787 |
"buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not append a " |
| 788 |
"terminating null byte to I<buf>. It will (silently) truncate the contents " |
| 789 |
"(to a length of I<bufsiz> characters), in case the buffer is too small to " |
| 790 |
"hold all of the contents." |
| 791 |
msgstr "" |
| 792 |
"Вызов B<readlink>() помещает содержимое символьной ссылки I<pathname> в " |
| 793 |
"буфер I<buf> размером I<bufsiz>. B<readlink>() не добавляет в I<buf> байт " |
| 794 |
"null. Если буфер слишком мал для хранения всего содержимого, то содержимое " |
| 795 |
"будет урезано (без выдачи ошибки, до длины в I<bufsiz> символов)." |
| 796 |
|
| 797 |
#. type: Plain text |
| 798 |
#: debian-trixie fedora-44 fedora-rawhide |
| 799 |
msgid "" |
| 800 |
"If the pathname given in I<pathname> is relative, then it is interpreted " |
| 801 |
"relative to the directory referred to by the file descriptor I<dirfd> " |
| 802 |
"(rather than relative to the current working directory of the calling " |
| 803 |
"process, as is done by B<readlink>() for a relative pathname)." |
| 804 |
msgstr "" |
| 805 |
"Если в I<pathname> задан относительный путь, то он считается относительно " |
| 806 |
"каталога, на который ссылается файловый дескриптор I<dirfd> (а не " |
| 807 |
"относительно текущего рабочего каталога вызывающего процесса, как это " |
| 808 |
"делается в B<readlink>())." |
| 809 |
|
| 810 |
#. type: Plain text |
| 811 |
#: debian-trixie fedora-44 fedora-rawhide |
| 812 |
msgid "" |
| 813 |
"If I<pathname> is relative and I<dirfd> is the special value B<AT_FDCWD>, " |
| 814 |
"then I<pathname> is interpreted relative to the current working directory of " |
| 815 |
"the calling process (like B<readlink>())." |
| 816 |
msgstr "" |
| 817 |
"Если в I<pathname> задан относительный путь и I<dirfd> равно специальному " |
| 818 |
"значению B<AT_FDCWD>, то I<pathname> рассматривается относительно текущего " |
| 819 |
"рабочего каталога вызывающего процесса (как B<readlink>())." |
| 820 |
|
| 821 |
#. type: Plain text |
| 822 |
#: debian-trixie fedora-44 fedora-rawhide |
| 823 |
msgid "If I<pathname> is absolute, then I<dirfd> is ignored." |
| 824 |
msgstr "Если в I<pathname> задан абсолютный путь, то I<dirfd> игнорируется." |
| 825 |
|
| 826 |
#. commit 65cfc6722361570bfe255698d9cd4dccaf47570d |
| 827 |
#. type: Plain text |
| 828 |
#: debian-trixie fedora-44 fedora-rawhide |
| 829 |
msgid "" |
| 830 |
"Since Linux 2.6.39, I<pathname> can be an empty string, in which case the " |
| 831 |
"call operates on the symbolic link referred to by I<dirfd> (which should " |
| 832 |
"have been obtained using B<open>(2) with the B<O_PATH> and B<O_NOFOLLOW> " |
| 833 |
"flags)." |
| 834 |
msgstr "" |
| 835 |
"Начиная с Linux .6.39, I<pathname> может быть пустой строкой; при этом вызов " |
| 836 |
"выполняет действие с символьной ссылкой, на которую ссылается I<dirfd> " |
| 837 |
"(должна получаться с помощью вызова B<open>(2) с флагами B<O_PATH> и " |
| 838 |
"B<O_NOFOLLOW>)." |
| 839 |
|
| 840 |
#. type: Plain text |
| 841 |
#: debian-trixie fedora-44 fedora-rawhide |
| 842 |
msgid "" |
| 843 |
"(B<readlinkat>()) I<pathname> is relative but I<dirfd> is neither " |
| 844 |
"B<AT_FDCWD> nor a valid file descriptor." |
| 845 |
msgstr "" |
| 846 |
|
| 847 |
#. type: Plain text |
| 848 |
#: debian-trixie fedora-44 fedora-rawhide |
| 849 |
msgid "" |
| 850 |
"The named file (i.e., the final filename component of I<pathname>) is not a " |
| 851 |
"symbolic link." |
| 852 |
msgstr "" |
| 853 |
"Указанный файл (т. е., последний компонент имени файла I<pathname>) не " |
| 854 |
"является символьной ссылкой." |
| 855 |
|
| 856 |
#. type: Plain text |
| 857 |
#: debian-trixie fedora-44 fedora-rawhide |
| 858 |
msgid "" |
| 859 |
"(B<readlinkat>()) I<pathname> is relative and I<dirfd> is a file descriptor " |
| 860 |
"referring to a file other than a directory." |
| 861 |
msgstr "" |
| 862 |
"(B<readlinkat>()) Значение I<pathname> содержит относительный путь и " |
| 863 |
"I<dirfd> содержит файловый дескриптор, указывающий на файл, а не на каталог." |
| 864 |
|
| 865 |
#. type: Plain text |
| 866 |
#: debian-trixie fedora-44 fedora-rawhide |
| 867 |
msgid "POSIX.1-2008." |
| 868 |
msgstr "POSIX.1-2008." |
| 869 |
|
| 870 |
#. type: Plain text |
| 871 |
#: debian-trixie fedora-44 fedora-rawhide |
| 872 |
msgid "" |
| 873 |
"On older kernels where B<readlinkat>() is unavailable, the glibc wrapper " |
| 874 |
"function falls back to the use of B<readlink>(). When I<pathname> is a " |
| 875 |
"relative pathname, glibc constructs a pathname based on the symbolic link in " |
| 876 |
"I</proc/self/fd> that corresponds to the I<dirfd> argument." |
| 877 |
msgstr "" |
| 878 |
"В старых ядрах, где B<readlinkat>() отсутствует, обёрточная функция glibc " |
| 879 |
"использует B<readlink>(). Если I<pathname> является относительным путём, то " |
| 880 |
"glibc собирает путь относительно символической ссылки в I</proc/self/fd>, " |
| 881 |
"которая соответствует аргументу I<dirfd>." |
| 882 |
|
| 883 |
#. type: Plain text |
| 884 |
#: debian-trixie fedora-44 fedora-rawhide |
| 885 |
#, no-wrap |
| 886 |
msgid "" |
| 887 |
"#include E<lt>limits.hE<gt>\n" |
| 888 |
"#include E<lt>stdio.hE<gt>\n" |
| 889 |
"#include E<lt>stdlib.hE<gt>\n" |
| 890 |
"#include E<lt>sys/stat.hE<gt>\n" |
| 891 |
"#include E<lt>sys/types.hE<gt>\n" |
| 892 |
"#include E<lt>unistd.hE<gt>\n" |
| 893 |
"\\&\n" |
| 894 |
"int\n" |
| 895 |
"main(int argc, char *argv[])\n" |
| 896 |
"{\n" |
| 897 |
" char *buf;\n" |
| 898 |
" ssize_t nbytes, bufsiz;\n" |
| 899 |
" struct stat sb;\n" |
| 900 |
"\\&\n" |
| 901 |
" if (argc != 2) {\n" |
| 902 |
" fprintf(stderr, \"Usage: %s E<lt>pathnameE<gt>\\[rs]n\", argv[0]);\n" |
| 903 |
" exit(EXIT_FAILURE);\n" |
| 904 |
" }\n" |
| 905 |
"\\&\n" |
| 906 |
" if (lstat(argv[1], &sb) == -1) {\n" |
| 907 |
" perror(\"lstat\");\n" |
| 908 |
" exit(EXIT_FAILURE);\n" |
| 909 |
" }\n" |
| 910 |
"\\&\n" |
| 911 |
" /* Add one to the link size, so that we can determine whether\n" |
| 912 |
" the buffer returned by readlink() was truncated. */\n" |
| 913 |
"\\&\n" |
| 914 |
" bufsiz = sb.st_size + 1;\n" |
| 915 |
"\\&\n" |
| 916 |
" /* Some magic symlinks under (for example) /proc and /sys\n" |
| 917 |
" report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n" |
| 918 |
" a \"good enough\" estimate. */\n" |
| 919 |
"\\&\n" |
| 920 |
" if (sb.st_size == 0)\n" |
| 921 |
" bufsiz = PATH_MAX;\n" |
| 922 |
"\\&\n" |
| 923 |
" buf = malloc(bufsiz);\n" |
| 924 |
" if (buf == NULL) {\n" |
| 925 |
" perror(\"malloc\");\n" |
| 926 |
" exit(EXIT_FAILURE);\n" |
| 927 |
" }\n" |
| 928 |
"\\&\n" |
| 929 |
" nbytes = readlink(argv[1], buf, bufsiz);\n" |
| 930 |
" if (nbytes == -1) {\n" |
| 931 |
" perror(\"readlink\");\n" |
| 932 |
" exit(EXIT_FAILURE);\n" |
| 933 |
" }\n" |
| 934 |
"\\&\n" |
| 935 |
" /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n" |
| 936 |
" null byte (\\[aq]\\[rs]0\\[aq]). */\n" |
| 937 |
" printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n" |
| 938 |
"\\&\n" |
| 939 |
" /* If the return value was equal to the buffer size, then\n" |
| 940 |
" the link target was larger than expected (perhaps because the\n" |
| 941 |
" target was changed between the call to lstat() and the call to\n" |
| 942 |
" readlink()). Warn the user that the returned target may have\n" |
| 943 |
" been truncated. */\n" |
| 944 |
"\\&\n" |
| 945 |
" if (nbytes == bufsiz)\n" |
| 946 |
" printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n" |
| 947 |
"\\&\n" |
| 948 |
" free(buf);\n" |
| 949 |
" exit(EXIT_SUCCESS);\n" |
| 950 |
"}\n" |
| 951 |
msgstr "" |
| 952 |
|
| 953 |
#. type: TH |
| 954 |
#: fedora-44 fedora-rawhide |
| 955 |
#, no-wrap |
| 956 |
msgid "2024-11-28" |
| 957 |
msgstr "28 ноября 2024 г." |
| 958 |
|
| 959 |
#. type: TH |
| 960 |
#: fedora-44 fedora-rawhide |
| 961 |
#, no-wrap |
| 962 |
msgid "Linux man-pages 6.13" |
| 963 |
msgstr "Страницы руководства Linux 6.13" |
| 964 |
|
| 965 |
#. type: Plain text |
| 966 |
#: fedora-44 fedora-rawhide |
| 967 |
#, fuzzy, no-wrap |
| 968 |
#| msgid "" |
| 969 |
#| "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n" |
| 970 |
#| "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n" |
| 971 |
msgid "" |
| 972 |
"B<ssize_t readlink(const char *restrict >I<pathname>B<,>\n" |
| 973 |
"B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n" |
| 974 |
msgstr "" |
| 975 |
"B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n" |
| 976 |
"B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n" |
| 977 |
|
| 978 |
#. type: Plain text |
| 979 |
#: fedora-44 fedora-rawhide |
| 980 |
#, fuzzy, no-wrap |
| 981 |
#| msgid "" |
| 982 |
#| "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n" |
| 983 |
#| "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n" |
| 984 |
msgid "" |
| 985 |
"B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n" |
| 986 |
"B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n" |
| 987 |
msgstr "" |
| 988 |
"B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n" |
| 989 |
"B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n" |
| 990 |
|
| 991 |
#. type: TH |
| 992 |
#: mageia-cauldron |
| 993 |
#, no-wrap |
| 994 |
msgid "Linux man-pages 6.17" |
| 995 |
msgstr "Страницы руководства Linux 6.17" |
| 996 |
|
| 997 |
#. type: TH |
| 998 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 999 |
#, no-wrap |
| 1000 |
msgid "Linux man-pages (unreleased)" |
| 1001 |
msgstr "Страницы руководства Linux (не выпущены)" |