Debian Codegraph @

templates/man3/basename.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:19+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: tbl table
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "basename"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "basename, dirname - parse pathname components"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>libgen.hE<gt>>\n"
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid ""
84 "B<char *dirname(char *>I<path>B<);>\n"
85 "B<char *basename(char *>I<path>B<);>\n"
86 msgstr ""
87
88 #. type: SH
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid "DESCRIPTION"
93 msgstr ""
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 msgid "Warning: there are two different functions B<basename>(); see below."
99 msgstr ""
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 msgid ""
105 "The functions B<dirname>() and B<basename>() break a null-terminated "
106 "pathname string into directory and filename components. In the usual case, "
107 "B<dirname>() returns the string up to, but not including, the final \\[aq]/"
108 "\\[aq], and B<basename>() returns the component following the final \\[aq]/"
109 "\\[aq]. Trailing \\[aq]/\\[aq] characters are not counted as part of the "
110 "pathname."
111 msgstr ""
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 ""
117 "If I<path> does not contain a slash, B<dirname>() returns the string \".\" "
118 "while B<basename>() returns a copy of I<path>. If I<path> is the string \"/"
119 "\", then both B<dirname>() and B<basename>() return the string \"/\". If "
120 "I<path> is a null pointer or points to an empty string, then both "
121 "B<dirname>() and B<basename>() return the string \".\"."
122 msgstr ""
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 msgid ""
128 "Concatenating the string returned by B<dirname>(), a \"/\", and the string "
129 "returned by B<basename>() yields a complete pathname."
130 msgstr ""
131
132 #. type: Plain text
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 msgid ""
136 "Both B<dirname>() and B<basename>() may modify the contents of I<path>, so "
137 "it may be desirable to pass a copy when calling one of these functions."
138 msgstr ""
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid ""
144 "These functions may return pointers to statically allocated memory which may "
145 "be overwritten by subsequent calls. Alternatively, they may return a "
146 "pointer to some part of I<path>, so that the string referred to by I<path> "
147 "should not be modified or freed until the pointer returned by the function "
148 "is no longer required."
149 msgstr ""
150
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 msgid ""
155 "The following list of examples (taken from SUSv2) shows the strings "
156 "returned by B<dirname>() and B<basename>() for different paths:"
157 msgstr ""
158
159 #. type: tbl table
160 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
161 #: opensuse-tumbleweed
162 #, no-wrap
163 msgid "path"
164 msgstr ""
165
166 #. type: tbl table
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 #, no-wrap
170 msgid "dirname"
171 msgstr ""
172
173 #. type: tbl table
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 #, no-wrap
177 msgid "/usr/lib"
178 msgstr ""
179
180 #. type: tbl table
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 #, no-wrap
184 msgid "/usr"
185 msgstr ""
186
187 #. type: tbl table
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 #, no-wrap
191 msgid "lib"
192 msgstr ""
193
194 #. type: tbl table
195 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
196 #: opensuse-tumbleweed
197 #, no-wrap
198 msgid "/usr/"
199 msgstr ""
200
201 #. type: tbl table
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 #, no-wrap
205 msgid "/"
206 msgstr ""
207
208 #. type: tbl table
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 #, no-wrap
212 msgid "usr"
213 msgstr ""
214
215 #. type: tbl table
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 #, no-wrap
219 msgid "."
220 msgstr ""
221
222 #. type: tbl table
223 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
224 #: opensuse-tumbleweed
225 #, no-wrap
226 msgid "\\&."
227 msgstr ""
228
229 #. type: tbl table
230 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
231 #: opensuse-tumbleweed
232 #, no-wrap
233 msgid "\\&.."
234 msgstr ""
235
236 #. type: tbl table
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 #, no-wrap
240 msgid ".."
241 msgstr ""
242
243 #. type: SH
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 #, no-wrap
247 msgid "RETURN VALUE"
248 msgstr ""
249
250 #. type: Plain text
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 msgid ""
254 "Both B<dirname>() and B<basename>() return pointers to null-terminated "
255 "strings. (Do not pass these pointers to B<free>(3).)"
256 msgstr ""
257
258 #. type: SH
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 #, no-wrap
262 msgid "ATTRIBUTES"
263 msgstr ""
264
265 #. type: Plain text
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 msgid ""
269 "For an explanation of the terms used in this section, see B<attributes>(7)."
270 msgstr ""
271
272 #. type: tbl table
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, no-wrap
276 msgid "Interface"
277 msgstr ""
278
279 #. type: tbl table
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid "Attribute"
284 msgstr ""
285
286 #. type: tbl table
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 #, no-wrap
290 msgid "Value"
291 msgstr ""
292
293 #. type: tbl table
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid ".na\n"
298 msgstr ""
299
300 #. type: tbl table
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 #, no-wrap
304 msgid ".nh\n"
305 msgstr ""
306
307 #. type: tbl table
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid ""
312 "B<basename>(),\n"
313 "B<dirname>()"
314 msgstr ""
315
316 #. type: tbl table
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "Thread safety"
321 msgstr ""
322
323 #. type: tbl table
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "MT-Safe"
328 msgstr ""
329
330 #. type: SH
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "VERSIONS"
335 msgstr ""
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid ""
341 "There are two different versions of B<basename>() - the POSIX version "
342 "described above, and the GNU version, which one gets after"
343 msgstr ""
344
345 #. type: Plain text
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 #, no-wrap
349 msgid ""
350 "B< #define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
351 "B<#include E<lt>string.hE<gt>>\n"
352 msgstr ""
353
354 #. type: Plain text
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 msgid ""
358 "The GNU version never modifies its argument, and returns the empty string "
359 "when I<path> has a trailing slash, and in particular also when it is \"/\". "
360 "There is no GNU version of B<dirname>()."
361 msgstr ""
362
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid ""
367 "With glibc, one gets the POSIX version of B<basename>() when "
368 "I<E<lt>libgen.hE<gt>> is included, and the GNU version otherwise."
369 msgstr ""
370
371 #. type: SH
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 #, no-wrap
375 msgid "STANDARDS"
376 msgstr ""
377
378 #. type: Plain text
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 msgid "POSIX.1-2008."
382 msgstr ""
383
384 #. type: SH
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 #, no-wrap
388 msgid "HISTORY"
389 msgstr ""
390
391 #. type: Plain text
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 msgid "POSIX.1-2001."
395 msgstr ""
396
397 #. type: SH
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 #, no-wrap
401 msgid "BUGS"
402 msgstr ""
403
404 #. type: Plain text
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 msgid ""
408 "In the glibc implementation, the POSIX versions of these functions modify "
409 "the I<path> argument, and segfault when called with a static string such as "
410 "\"/usr/\"."
411 msgstr ""
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 ""
417 "Before glibc 2.2.1, the glibc version of B<dirname>() did not correctly "
418 "handle pathnames with trailing \\[aq]/\\[aq] characters, and generated a "
419 "segfault if given a NULL argument."
420 msgstr ""
421
422 #. type: SH
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 #, no-wrap
426 msgid "EXAMPLES"
427 msgstr ""
428
429 #. type: Plain text
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 msgid ""
433 "The following code snippet demonstrates the use of B<basename>() and "
434 "B<dirname>():"
435 msgstr ""
436
437 #. type: Plain text
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 #, no-wrap
441 msgid ""
442 "char *dirc, *basec, *bname, *dname;\n"
443 "char *path = \"/etc/passwd\";\n"
444 "\\&\n"
445 "dirc = strdup(path);\n"
446 "basec = strdup(path);\n"
447 "dname = dirname(dirc);\n"
448 "bname = basename(basec);\n"
449 "printf(\"dirname=%s, basename=%s\\[rs]n\", dname, bname);\n"
450 msgstr ""
451
452 #. type: SH
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 #, no-wrap
456 msgid "SEE ALSO"
457 msgstr ""
458
459 #. type: Plain text
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 msgid "B<basename>(1), B<dirname>(1)"
463 msgstr ""
464
465 #. type: TH
466 #: debian-trixie
467 #, no-wrap
468 msgid "2024-06-15"
469 msgstr ""
470
471 #. type: TH
472 #: debian-trixie
473 #, no-wrap
474 msgid "Linux man-pages 6.9.1"
475 msgstr ""
476
477 #. type: Plain text
478 #: debian-trixie
479 msgid "Standard C library (I<libc>, I<-lc>)"
480 msgstr ""
481
482 #. type: tbl table
483 #: debian-trixie fedora-44 fedora-rawhide
484 #, no-wrap
485 msgid "path "
486 msgstr ""
487
488 #. type: tbl table
489 #: debian-trixie fedora-44 fedora-rawhide
490 #, no-wrap
491 msgid "/usr/ "
492 msgstr ""
493
494 #. type: tbl table
495 #: debian-trixie fedora-44 fedora-rawhide
496 #, no-wrap
497 msgid "usr "
498 msgstr ""
499
500 #. type: tbl table
501 #: debian-trixie fedora-44 fedora-rawhide
502 #, no-wrap
503 msgid "/ "
504 msgstr ""
505
506 #. type: tbl table
507 #: debian-trixie fedora-44 fedora-rawhide
508 #, no-wrap
509 msgid "\\&. "
510 msgstr ""
511
512 #. type: tbl table
513 #: debian-trixie fedora-44 fedora-rawhide
514 #, no-wrap
515 msgid "\\&.. "
516 msgstr ""
517
518 #. type: TH
519 #: fedora-44 fedora-rawhide
520 #, no-wrap
521 msgid "2024-07-23"
522 msgstr ""
523
524 #. type: TH
525 #: fedora-44 fedora-rawhide
526 #, no-wrap
527 msgid "Linux man-pages 6.13"
528 msgstr ""
529
530 #. type: TH
531 #: mageia-cauldron
532 #, no-wrap
533 msgid "Linux man-pages 6.17"
534 msgstr ""
535
536 #. type: TH
537 #: opensuse-leap-16-1 opensuse-tumbleweed
538 #, no-wrap
539 msgid "Linux man-pages (unreleased)"
540 msgstr ""