Debian Codegraph @

po/ru/man3/stpncpy.3.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:45+0200\n"
16 "PO-Revision-Date: 2024-12-21 19:50+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 #, fuzzy, no-wrap
32 #| msgid "B<stpncpy>()"
33 msgid "stpncpy"
34 msgstr "B<stpncpy>()"
35
36 #. type: TH
37 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
38 #, no-wrap
39 msgid "2026-02-25"
40 msgstr "25 февраля 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 ""
60 "stpncpy, strncpy - fill a fixed-size buffer with non-null bytes from a "
61 "string, padding with null bytes as needed"
62 msgstr ""
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "LIBRARY"
69 msgstr "БИБЛИОТЕКА"
70
71 #. type: Plain text
72 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
73 #: opensuse-leap-16-1 opensuse-tumbleweed
74 msgid "Standard C library (I<libc>,\\ I<-lc>)"
75 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
76
77 #. type: SH
78 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
79 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
80 #, no-wrap
81 msgid "SYNOPSIS"
82 msgstr "СИНТАКСИС"
83
84 #. type: Plain text
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid "B<#include E<lt>string.hE<gt>>\n"
89 msgstr "B<#include E<lt>string.hE<gt>>\n"
90
91 #. type: Plain text
92 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
93 #: opensuse-tumbleweed
94 #, no-wrap
95 msgid ""
96 "B<char *strncpy(>size_t dsize;\n"
97 "B< char >I<dst>B<[restrict >I<dsize>B<], const char *restrict >I<src>B<,>\n"
98 "B< size_t >I<dsize>B<);>\n"
99 "B<char *stpncpy(>size_t dsize;\n"
100 "B< char >I<dst>B<[restrict >I<dsize>B<], const char *restrict >I<src>B<,>\n"
101 "B< size_t >I<dsize>B<);>\n"
102 msgstr ""
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 msgid ""
108 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
109 msgstr ""
110 "Требования макроса тестирования свойств для glibc (см. "
111 "B<feature_test_macros>(7)):"
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 msgid "B<stpncpy>():"
117 msgstr "B<stpncpy>():"
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 #, no-wrap
123 msgid ""
124 " Since glibc 2.10:\n"
125 " _POSIX_C_SOURCE E<gt>= 200809L\n"
126 " Before glibc 2.10:\n"
127 " _GNU_SOURCE\n"
128 msgstr ""
129 " Начиная с glibc 2.10:\n"
130 " _POSIX_C_SOURCE E<gt>= 200809L\n"
131 " До glibc 2.10:\n"
132 " _BSD_SOURCE\n"
133
134 #. type: SH
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 #, no-wrap
138 msgid "DESCRIPTION"
139 msgstr "ОПИСАНИЕ"
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 msgid ""
145 "These functions copy non-null bytes from the string pointed to by I<src> "
146 "into the array pointed to by I<dst>. If the source has too few non-null "
147 "bytes to fill the destination, the functions pad the destination with "
148 "trailing null bytes. If the destination buffer, limited by its size, isn't "
149 "large enough to hold the copy, the resulting character sequence is "
150 "truncated. For the difference between the two functions, see RETURN VALUE."
151 msgstr ""
152
153 #. type: TP
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 "B<strncpy>(3)"
158 msgid "B<strncpy>()"
159 msgstr "B<strncpy>(3)"
160
161 #. type: Plain text
162 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
163 #, fuzzy
164 #| msgid "is equivalent to"
165 msgid "It is equivalent to"
166 msgstr "равнозначно"
167
168 #. type: Plain text
169 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
170 #, no-wrap
171 msgid "stpncpy(dst, src, dsize), dst\n"
172 msgstr ""
173
174 #. type: TP
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 #, no-wrap
178 msgid "B<stpncpy>()"
179 msgstr "B<stpncpy>()"
180
181 #. type: Plain text
182 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
183 #, no-wrap
184 msgid ""
185 "memset(mempcpy(dst, src, strnlen(src, dsize)), \\[aq]\\[rs]0\\[aq],\n"
186 " dsize - strnlen(src, dsize))\n"
187 msgstr ""
188
189 #. type: SH
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 #, no-wrap
193 msgid "RETURN VALUE"
194 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
195
196 #. type: Plain text
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 msgid "returns I<dst>."
200 msgstr ""
201
202 #. type: Plain text
203 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
204 #: opensuse-tumbleweed
205 msgid ""
206 "returns a pointer to one past the last non-null character written, that is, "
207 "I<dest\\ +\\ strnlen(src,\\ n)>."
208 msgstr ""
209
210 #. type: SH
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 #, no-wrap
214 msgid "ATTRIBUTES"
215 msgstr "АТРИБУТЫ"
216
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 msgid ""
221 "For an explanation of the terms used in this section, see B<attributes>(7)."
222 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
223
224 #. type: tbl table
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, no-wrap
228 msgid "Interface"
229 msgstr "Интерфейс"
230
231 #. type: tbl table
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 #, no-wrap
235 msgid "Attribute"
236 msgstr "Атрибут"
237
238 #. type: tbl table
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, no-wrap
242 msgid "Value"
243 msgstr "Значение"
244
245 #. type: tbl table
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 #, no-wrap
249 msgid ".na\n"
250 msgstr ".na\n"
251
252 #. type: tbl table
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid ".nh\n"
257 msgstr ".nh\n"
258
259 #. type: tbl table
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, fuzzy, no-wrap
263 #| msgid "B<strncpy>(3), B<wcpncpy>(3)"
264 msgid ""
265 "B<stpncpy>(),\n"
266 "B<strncpy>()"
267 msgstr "B<strncpy>(3), B<wcpncpy>(3)"
268
269 #. type: tbl table
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid "Thread safety"
274 msgstr "Безвредность в нитях"
275
276 #. type: tbl table
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, no-wrap
280 msgid "MT-Safe"
281 msgstr "MT-Safe"
282
283 #. type: SH
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 #, no-wrap
287 msgid "STANDARDS"
288 msgstr "СТАНДАРТЫ"
289
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 msgid "C11, POSIX.1-2008."
294 msgstr "C11, POSIX.1-2008."
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid "POSIX.1-2008."
300 msgstr "POSIX.1-2008."
301
302 #. type: SH
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 #, no-wrap
306 msgid "HISTORY"
307 msgstr "ИСТОРИЯ"
308
309 #. type: Plain text
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 msgid "C89, POSIX.1-2001, SVr4, 4.3BSD."
313 msgstr "C89, POSIX.1-2001, SVr4, 4.3BSD."
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 #, fuzzy
319 #| msgid "glibc 2.1. C99, POSIX.1-2001."
320 msgid "glibc 1.07. POSIX.1-2008."
321 msgstr "glibc 2.1. C99, POSIX.1-2001."
322
323 #. type: SH
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "CAVEATS"
328 msgstr ""
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 msgid ""
334 "The name of these functions is confusing. These functions produce a null-"
335 "padded character sequence, not a string (see B<string_copying>(7)). For "
336 "example:"
337 msgstr ""
338
339 #. type: Plain text
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 #, no-wrap
343 msgid ""
344 "strncpy(buf, \"1\", 5); // { \\[aq]1\\[aq], 0, 0, 0, 0 }\n"
345 "strncpy(buf, \"1234\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq], \\[aq]3\\[aq], \\[aq]4\\[aq], 0 }\n"
346 "strncpy(buf, \"12345\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq], \\[aq]3\\[aq], \\[aq]4\\[aq], \\[aq]5\\[aq] }\n"
347 "strncpy(buf, \"123456\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq], \\[aq]3\\[aq], \\[aq]4\\[aq], \\[aq]5\\[aq] }\n"
348 msgstr ""
349
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 msgid ""
354 "It's impossible to distinguish truncation by the result of the call, from a "
355 "character sequence that just fits the destination buffer; truncation should "
356 "be detected by comparing the length of the input string with the size of the "
357 "destination buffer."
358 msgstr ""
359
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 msgid ""
364 "If you're going to use this function in chained calls, it would be useful to "
365 "develop a similar function that accepts a pointer to the end (one after the "
366 "last element) of the destination buffer instead of its size."
367 msgstr ""
368
369 #. type: SH
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, no-wrap
373 msgid "EXAMPLES"
374 msgstr "ПРИМЕРЫ"
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 #, no-wrap
380 msgid ""
381 "#include E<lt>err.hE<gt>\n"
382 "#include E<lt>stdio.hE<gt>\n"
383 "#include E<lt>stdlib.hE<gt>\n"
384 "#include E<lt>string.hE<gt>\n"
385 "\\&\n"
386 "int\n"
387 "main(void)\n"
388 "{\n"
389 " char *p;\n"
390 " char buf1[20];\n"
391 " char buf2[20];\n"
392 " size_t len;\n"
393 "\\&\n"
394 " if (sizeof(buf2) E<lt> strlen(\"Hello world!\"))\n"
395 " errx(\"strncpy: truncating character sequence\");\n"
396 " strncpy(buf2, \"Hello world!\", sizeof(buf2));\n"
397 " len = strnlen(buf2, sizeof(buf2));\n"
398 "\\&\n"
399 " printf(\"[len = %zu]: \", len);\n"
400 " fwrite(buf2, 1, len, stdout);\n"
401 " putchar(\\[aq]\\[rs]n\\[aq]);\n"
402 "\\&\n"
403 " if (sizeof(buf1) E<lt> strlen(\"Hello world!\"))\n"
404 " errx(\"stpncpy: truncating character sequence\");\n"
405 " p = stpncpy(buf1, \"Hello world!\", sizeof(buf1));\n"
406 " len = p - buf1;\n"
407 "\\&\n"
408 " printf(\"[len = %zu]: \", len);\n"
409 " fwrite(buf1, 1, len, stdout);\n"
410 " putchar(\\[aq]\\[rs]n\\[aq]);\n"
411 "\\&\n"
412 " exit(EXIT_SUCCESS);\n"
413 "}\n"
414 msgstr ""
415
416 #. SRC END
417 #. type: SH
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 #, no-wrap
421 msgid "SEE ALSO"
422 msgstr "СМОТРИТЕ ТАКЖЕ"
423
424 #. type: Plain text
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 #, fuzzy
428 #| msgid "B<strncpy>(3), B<wcpncpy>(3)"
429 msgid "B<wcpncpy>(3), B<string_copying>(7)"
430 msgstr "B<strncpy>(3), B<wcpncpy>(3)"
431
432 #. type: TH
433 #: debian-trixie
434 #, no-wrap
435 msgid "2024-06-15"
436 msgstr "15 июня 2024 г."
437
438 #. type: TH
439 #: debian-trixie
440 #, no-wrap
441 msgid "Linux man-pages 6.9.1"
442 msgstr "Страницы руководства Linux 6.9.1"
443
444 #. type: Plain text
445 #: debian-trixie
446 msgid "Standard C library (I<libc>, I<-lc>)"
447 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
448
449 #. type: Plain text
450 #: debian-trixie fedora-44 fedora-rawhide
451 #, no-wrap
452 msgid ""
453 "B<char *strncpy(char >I<dst>B<[restrict .>I<dsize>B<], const char *restrict >I<src>B<,>\n"
454 "B< size_t >I<dsize>B<);>\n"
455 "B<char *stpncpy(char >I<dst>B<[restrict .>I<dsize>B<], const char *restrict >I<src>B<,>\n"
456 "B< size_t >I<dsize>B<);>\n"
457 msgstr ""
458
459 #. type: Plain text
460 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
461 msgid "An implementation of these functions might be:"
462 msgstr "Реализация этих функций может быть:"
463
464 #. type: Plain text
465 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
466 #, fuzzy, no-wrap
467 #| msgid "B<char *stpncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
468 msgid ""
469 "char *\n"
470 "strncpy(char *restrict dst, const char *restrict src, size_t dsize)\n"
471 "{\n"
472 " stpncpy(dst, src, dsize);\n"
473 " return dst;\n"
474 "}\n"
475 "\\&\n"
476 "char *\n"
477 "stpncpy(char *restrict dst, const char *restrict src, size_t dsize)\n"
478 "{\n"
479 " size_t dlen;\n"
480 "\\&\n"
481 " dlen = strnlen(src, dsize);\n"
482 " return memset(mempcpy(dst, src, dlen), 0, dsize - dlen);\n"
483 "}\n"
484 msgstr "B<char *stpncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
485
486 #. type: Plain text
487 #: debian-trixie fedora-44 fedora-rawhide
488 msgid ""
489 "returns a pointer to one after the last character in the destination "
490 "character sequence."
491 msgstr ""
492
493 #. type: TH
494 #: fedora-44 fedora-rawhide
495 #, no-wrap
496 msgid "2024-07-23"
497 msgstr "23 июля 2024 г."
498
499 #. type: TH
500 #: fedora-44 fedora-rawhide
501 #, no-wrap
502 msgid "Linux man-pages 6.13"
503 msgstr "Страницы руководства Linux 6.13"
504
505 #. type: TH
506 #: mageia-cauldron
507 #, no-wrap
508 msgid "2026-01-06"
509 msgstr "6 января 2026 г."
510
511 #. type: TH
512 #: mageia-cauldron
513 #, no-wrap
514 msgid "Linux man-pages 6.17"
515 msgstr "Страницы руководства Linux 6.17"
516
517 #. type: TH
518 #: opensuse-leap-16-1 opensuse-tumbleweed
519 #, no-wrap
520 msgid "Linux man-pages (unreleased)"
521 msgstr "Страницы руководства Linux (не выпущены)"