Debian Codegraph @

po/es/man3/getcwd.3.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Gerardo Aburruzaga García <[email protected]>, 1998.
5 # Juan Piernas <[email protected]>, 1999.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
10 "PO-Revision-Date: 1999-06-26 19:53+0200\n"
11 "Last-Translator: Juan Piernas <[email protected]>\n"
12 "Language-Team: Spanish <[email protected]>\n"
13 "Language: es\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18 "X-Generator: Lokalize 20.04.1\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "getcwd"
25 msgstr ""
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 Febrero 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, fuzzy, no-wrap
37 #| msgid "Linux man-pages 6.17"
38 msgid "Linux man-pages 6.18"
39 msgstr "Páginas de Manual de Linux 6.17"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "NOMBRE"
47
48 #. type: Plain text
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 msgid "getcwd, getwd, get_current_dir_name - get current working directory"
52 msgstr ""
53 "getcwd, getwd, get_current_dir_name - obtienen el directorio de trabajo en "
54 "curso"
55
56 #. type: SH
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 #, no-wrap
60 msgid "LIBRARY"
61 msgstr "BIBLIOTECA"
62
63 #. type: Plain text
64 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
65 #: opensuse-leap-16-1 opensuse-tumbleweed
66 msgid "Standard C library (I<libc>,\\ I<-lc>)"
67 msgstr "Biblioteca Estándar C (I<libc>,\\ I<-lc>)"
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "SYNOPSIS"
74 msgstr "SINOPSIS"
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid "B<#include E<lt>unistd.hE<gt>>\n"
81 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
82
83 #. type: Plain text
84 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
85 #: opensuse-tumbleweed
86 #, fuzzy, no-wrap
87 #| msgid "B<char *getcwd(char *>I<buf>B<, size_t >I<size>B<);>\n"
88 msgid ""
89 "B<char *getcwd(>size_t size;\n"
90 "B< char >I<buf>B<[>I<size>B<], size_t >I<size>B<);>\n"
91 "B<char *get_current_dir_name(void);>\n"
92 msgstr "B<char *getcwd(char *>I<buf>B<, size_t >I<tam>B<);>\n"
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 #, fuzzy, no-wrap
98 #| msgid "B<char *getwd(char *>I<buf>B<);>\n"
99 msgid "B<[[deprecated]] char *getwd(char >I<buf>B<[PATH_MAX]);>\n"
100 msgstr "B<char *getwd(char *>I<buf>B<);>\n"
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 msgid ""
106 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
107 msgstr ""
108 "Requisitos de Macros de Prueba de Características para glibc (véase "
109 "B<feature_test_macros>(7)):"
110
111 #. type: Plain text
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 msgid "B<get_current_dir_name>():"
115 msgstr "B<get_current_dir_name>():"
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 #, no-wrap
121 msgid " _GNU_SOURCE\n"
122 msgstr " _GNU_SOURCE\n"
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 "B<getwd>():"
128 msgstr "B<getwd>():"
129
130 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
131 #. type: Plain text
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 #, no-wrap
135 msgid ""
136 " Since glibc 2.12:\n"
137 " (_XOPEN_SOURCE E<gt>= 500) && ! (_POSIX_C_SOURCE E<gt>= 200809L)\n"
138 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
139 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
140 " Before glibc 2.12:\n"
141 " _BSD_SOURCE || _XOPEN_SOURCE E<gt>= 500\n"
142 msgstr ""
143 " Desde glibc 2.12:\n"
144 " (_XOPEN_SOURCE E<gt>= 500) && ! (_POSIX_C_SOURCE E<gt>= 200809L)\n"
145 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
146 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
147 " Antes de glibc 2.12:\n"
148 " _BSD_SOURCE || _XOPEN_SOURCE E<gt>= 500\n"
149
150 #. type: SH
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 #, no-wrap
154 msgid "DESCRIPTION"
155 msgstr "DESCRIPCIÓ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 ""
161 "These functions return a null-terminated string containing an absolute "
162 "pathname that is the current working directory of the calling process. The "
163 "pathname is returned as the function result and via the argument I<buf>, if "
164 "present."
165 msgstr ""
166
167 #. type: Plain text
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 msgid ""
171 "The B<getcwd>() function copies an absolute pathname of the current working "
172 "directory to the array pointed to by I<buf>, which is of length I<size>."
173 msgstr ""
174 "La función B<getcwd()> copia el nombre de camino absoluto del directorio de "
175 "trabajo en curso al vector apuntado por I<buf>, que tiene de longitud I<tam>."
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 #, fuzzy
181 #| msgid ""
182 #| "If the current absolute path name would require a buffer longer than "
183 #| "I<size> elements, B<NULL> is returned, and I<errno> is set to B<ERANGE>; "
184 #| "an application should check for this error, and allocate a larger buffer "
185 #| "if necessary."
186 msgid ""
187 "If the length of the absolute pathname of the current working directory, "
188 "including the terminating null byte, exceeds I<size> bytes, NULL is "
189 "returned, and I<errno> is set to B<ERANGE>; an application should check for "
190 "this error, and allocate a larger buffer if necessary."
191 msgstr ""
192 "Si el nombre de camino absoluto antedicho requiriera un búfer mayor de "
193 "I<tam> elementos, se devolvería B<NULL> y I<errno> tomaría el valor "
194 "B<ERANGE>; una aplicación debería comprobar si ha ocurrido este error, y "
195 "reservar un búfer más grande si fuera necesario."
196
197 #. type: Plain text
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 #, fuzzy
201 #| msgid ""
202 #| "As an extension to the POSIX.1 standard, Linux (libc4, libc5, glibc) "
203 #| "B<getcwd()> allocates the buffer dynamically using B<malloc()> if I<buf> "
204 #| "is B<NULL> on call. In this case, the allocated buffer has the length "
205 #| "I<size> unless I<size> is zero, when I<buf> is allocated as big as "
206 #| "necessary. It is possible (and, indeed, advisable) to B<free()> the "
207 #| "buffers if they have been obtained this way."
208 msgid ""
209 "As an extension to the POSIX.1-2001 standard, glibc's B<getcwd>() allocates "
210 "the buffer dynamically using B<malloc>(3) if I<buf> is NULL. In this case, "
211 "the allocated buffer has the length I<size> unless I<size> is zero, when "
212 "I<buf> is allocated as big as necessary. The caller should B<free>(3) the "
213 "returned buffer."
214 msgstr ""
215 "Como una extensión al estándar POSIX.1, B<getcwd()> reserva el búfer "
216 "dinámicamente empleando para ello B<malloc()> si I<buf> es B<NULL> a la hora "
217 "de la llamada. En este caso, el búfer reservado tiene la longitud I<tam> a "
218 "menos que I<tam> sea cero, situación en la que I<buf> se reservará con un "
219 "tamaño tan grande como sea necesario. Es posible (e, incluso, recomendable) "
220 "liberar con B<free()> los búferes si han sido obtenidos por esta vía."
221
222 #. type: Plain text
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 #, fuzzy
226 #| msgid ""
227 #| "B<get_current_dir_name>, which is only prototyped if B<_GNU_SOURCE> is "
228 #| "defined, will B<malloc>(3) an array big enough to hold the current "
229 #| "directory name. If the environment variable B<PWD> is set, and its value "
230 #| "is correct, then that value will be returned."
231 msgid ""
232 "B<get_current_dir_name>() will B<malloc>(3) an array big enough to hold "
233 "the absolute pathname of the current working directory. If the environment "
234 "variable B<PWD> is set, and its value is correct, then that value will be "
235 "returned. The caller should B<free>(3) the returned buffer."
236 msgstr ""
237 "B<get_current_dir_name>, cuyo prototipo sólo existe si está definida la "
238 "macro B<__USE_GNU>, obtendrá memoria con B<malloc>(3) para un vector lo "
239 "bastante grande como para alojar el nombre del directorio en curso. Si la "
240 "variable de entorno B<PWD> existe y tiene un valor correcto, se devuelve "
241 "este valor."
242
243 #. type: Plain text
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 #, fuzzy
247 #| msgid ""
248 #| "B<getwd>, which is only prototyped if B<_BSD_SOURCE> or "
249 #| "B<_XOPEN_SOURCE_EXTENDED> is defined, will not B<malloc>(3) any memory. "
250 #| "The I<buf> argument should be a pointer to an array at least B<PATH_MAX> "
251 #| "bytes long. B<getwd> does only return the first B<PATH_MAX> bytes of the "
252 #| "actual pathname. Note that B<PATH_MAX> need not be a compile-time "
253 #| "constant; it may depend on the filesystem and may even be unlimited. For "
254 #| "portability and security reasons, use of B<getwd> is deprecated."
255 msgid ""
256 "B<getwd>() does not B<malloc>(3) any memory. The I<buf> argument should "
257 "be a pointer to an array at least B<PATH_MAX> bytes long. If the length of "
258 "the absolute pathname of the current working directory, including the "
259 "terminating null byte, exceeds B<PATH_MAX> bytes, NULL is returned, and "
260 "I<errno> is set to B<ENAMETOOLONG>. (Note that on some systems, B<PATH_MAX> "
261 "may not be a compile-time constant; furthermore, its value may depend on the "
262 "filesystem, see B<pathconf>(3).) For portability and security reasons, use "
263 "of B<getwd>() is deprecated."
264 msgstr ""
265 "B<getwd>, cuyo prototipo sólo existe si está definida la macro B<__USE_BSD>, "
266 "no obtendrá memoria con B<malloc>(3) ni de ninguna otra forma. El argumento "
267 "I<buf> deberá ser un puntero a un vector de al menos B<PATH_MAX> bytes de "
268 "largo. B<getwd> solamente devuelve los primeros B<PATH_MAX> bytes del "
269 "nombre de camino real."
270
271 #. type: SH
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 #, no-wrap
275 msgid "RETURN VALUE"
276 msgstr "VALOR DEVUELTO"
277
278 #. type: Plain text
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 msgid ""
282 "On success, these functions return a pointer to a string containing the "
283 "pathname of the current working directory. In the case of B<getcwd>() and "
284 "B<getwd>() this is the same value as I<buf>."
285 msgstr ""
286
287 #. type: Plain text
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 #, fuzzy
291 #| msgid ""
292 #| "B<NULL> on failure with I<errno> set accordingly, and I<buf> on success. "
293 #| "The contents of the array pointed to by I<buf> is undefined on error."
294 msgid ""
295 "On failure, these functions return NULL, and I<errno> is set to indicate the "
296 "error. The contents of the array pointed to by I<buf> are undefined on "
297 "error."
298 msgstr ""
299 "B<NULL> en caso de fallo (por ejemplo, si el directorio en curso no es "
300 "legible), con un valor apropiado en I<errno>, y I<buf> en caso de acabar con "
301 "éxito."
302
303 #. type: SH
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "ERRORS"
308 msgstr "ERRORES"
309
310 #. type: TP
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid "B<EACCES>"
315 msgstr "B<EACCES>"
316
317 #. type: Plain text
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 msgid "Permission to read or search a component of the filename was denied."
321 msgstr ""
322
323 #. type: TP
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "B<EFAULT>"
328 msgstr "B<EFAULT>"
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 "I<buf> points to a bad address."
334 msgstr ""
335
336 #. type: TP
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 #, no-wrap
340 msgid "B<EINVAL>"
341 msgstr "B<EINVAL>"
342
343 #. type: Plain text
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 msgid "The I<size> argument is zero and I<buf> is not a null pointer."
347 msgstr ""
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 msgid "B<getwd>(): I<buf> is NULL."
353 msgstr ""
354
355 #. type: TP
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 #, no-wrap
359 msgid "B<ENAMETOOLONG>"
360 msgstr "B<ENAMETOOLONG>"
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 msgid ""
366 "B<getwd>(): The size of the null-terminated absolute pathname string exceeds "
367 "B<PATH_MAX> bytes."
368 msgstr ""
369
370 #. type: TP
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, no-wrap
374 msgid "B<ENOENT>"
375 msgstr "B<ENOENT>"
376
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 msgid "The current working directory has been unlinked."
381 msgstr ""
382
383 #. type: TP
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 #, no-wrap
387 msgid "B<ENOMEM>"
388 msgstr "B<ENOMEM>"
389
390 #. type: Plain text
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 msgid "Out of memory."
394 msgstr "Sin memoria."
395
396 #. type: TP
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "B<ERANGE>"
401 msgstr "B<ERANGE>"
402
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 msgid ""
407 "The I<size> argument is less than the length of the absolute pathname of the "
408 "working directory, including the terminating null byte. You need to "
409 "allocate a bigger array and try again."
410 msgstr ""
411
412 #. type: SH
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, no-wrap
416 msgid "ATTRIBUTES"
417 msgstr "ATRIBUTOS"
418
419 #. type: Plain text
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 msgid ""
423 "For an explanation of the terms used in this section, see B<attributes>(7)."
424 msgstr ""
425 "Para obtener una explicación de los términos usados en esta sección, véase "
426 "B<attributes>(7)."
427
428 #. type: tbl table
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 #, no-wrap
432 msgid "Interface"
433 msgstr "Interfaz"
434
435 #. type: tbl table
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 #, no-wrap
439 msgid "Attribute"
440 msgstr "Atributo"
441
442 #. type: tbl table
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "Value"
447 msgstr "Valor"
448
449 #. type: tbl table
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 #, no-wrap
453 msgid ".na\n"
454 msgstr ".na\n"
455
456 #. type: tbl table
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 #, no-wrap
460 msgid ".nh\n"
461 msgstr ".nh\n"
462
463 #. type: tbl table
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 #, no-wrap
467 msgid ""
468 "B<getcwd>(),\n"
469 "B<getwd>()"
470 msgstr ""
471 "B<getcwd>(),\n"
472 "B<getwd>()"
473
474 #. type: tbl table
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 #, no-wrap
478 msgid "Thread safety"
479 msgstr "Seguridad del hilo"
480
481 #. type: tbl table
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 #, no-wrap
485 msgid "MT-Safe"
486 msgstr "Multi-hilo seguro"
487
488 #. type: TP
489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
491 #, no-wrap
492 msgid "B<get_current_dir_name>()"
493 msgstr "B<get_current_dir_name>()"
494
495 #. type: tbl table
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 #, fuzzy, no-wrap
499 #| msgid "MT-Safe"
500 msgid "MT-Safe env"
501 msgstr "Multi-hilo seguro"
502
503 #. type: SH
504 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
505 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
506 #, no-wrap
507 msgid "VERSIONS"
508 msgstr "VERSIONES"
509
510 #. type: Plain text
511 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
512 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
513 msgid ""
514 "POSIX.1-2001 leaves the behavior of B<getcwd>() unspecified if I<buf> is "
515 "NULL."
516 msgstr ""
517
518 #. type: Plain text
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 msgid "POSIX.1-2001 does not define any errors for B<getwd>()."
522 msgstr ""
523
524 #. type: SS
525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
527 #, no-wrap
528 msgid "C library/kernel differences"
529 msgstr "Diferencias núcleo / biblioteca C"
530
531 #. commit 3272c544da48f8915a0e34189182aed029bd0f2b
532 #. type: Plain text
533 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
534 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
535 msgid ""
536 "On Linux, the kernel provides a B<getcwd>() system call, which the "
537 "functions described in this page will use if possible. The system call "
538 "takes the same arguments as the library function of the same name, but is "
539 "limited to returning at most B<PATH_MAX> bytes. (Before Linux 3.12, the "
540 "limit on the size of the returned pathname was the system page size. On "
541 "many architectures, B<PATH_MAX> and the system page size are both 4096 "
542 "bytes, but a few architectures have a larger page size.) If the length of "
543 "the pathname of the current working directory exceeds this limit, then the "
544 "system call fails with the error B<ENAMETOOLONG>. In this case, the library "
545 "functions fall back to a (slower) alternative implementation that returns "
546 "the full pathname."
547 msgstr ""
548
549 #. commit 8df9d1a4142311c084ffeeacb67cd34d190eff74
550 #. type: Plain text
551 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
552 #: opensuse-leap-16-1 opensuse-tumbleweed
553 msgid ""
554 "Following a change in Linux 2.6.36, the pathname returned by the "
555 "B<getcwd>() system call will be prefixed with the string \"(unreachable)\" "
556 "if the current directory is not below the root directory of the current "
557 "process (e.g., because the process set a new filesystem root using "
558 "B<chroot>(2) without changing its current directory into the new root). "
559 "Such behavior can also be caused by an unprivileged user by changing the "
560 "current directory into another mount namespace. When dealing with pathnames "
561 "from untrusted sources, callers of the functions described in this page "
562 "(before glibc 2.27) or the raw B<getcwd>() system call should consider "
563 "checking whether the returned pathname starts with '/' or '(' to avoid "
564 "misinterpreting an unreachable path as a relative pathname."
565 msgstr ""
566
567 #. type: SH
568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
570 #, no-wrap
571 msgid "STANDARDS"
572 msgstr "ESTÁNDARES"
573
574 #. type: TP
575 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
576 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
577 #, fuzzy, no-wrap
578 #| msgid "B<getwd>():"
579 msgid "B<getcwd>()"
580 msgstr "B<getwd>():"
581
582 #. type: Plain text
583 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
584 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
585 msgid "POSIX.1-2008."
586 msgstr "POSIX.1-2008."
587
588 #. type: Plain text
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 msgid "GNU."
592 msgstr "GNU."
593
594 #. type: TP
595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
597 #, fuzzy, no-wrap
598 #| msgid "B<getwd>():"
599 msgid "B<getwd>()"
600 msgstr "B<getwd>():"
601
602 #. type: Plain text
603 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
604 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
605 msgid "None."
606 msgstr ""
607
608 #. type: SH
609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
611 #, no-wrap
612 msgid "HISTORY"
613 msgstr "HISTORIAL"
614
615 #. type: Plain text
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 msgid "POSIX.1-2001."
619 msgstr "POSIX.1-2001."
620
621 #. type: Plain text
622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
624 msgid ""
625 "POSIX.1-2001, but marked LEGACY. Removed in POSIX.1-2008. Use B<getcwd>() "
626 "instead."
627 msgstr ""
628
629 #. type: Plain text
630 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
631 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
632 msgid ""
633 "Under Linux, these functions make use of the B<getcwd>() system call "
634 "(available since Linux 2.1.92). On older systems they would query I</proc/"
635 "self/cwd>. If both system call and proc filesystem are missing, a generic "
636 "implementation is called. Only in that case can these calls fail under "
637 "Linux with B<EACCES>."
638 msgstr ""
639
640 #. type: SH
641 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
642 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
643 #, no-wrap
644 msgid "NOTES"
645 msgstr "NOTAS"
646
647 #. type: Plain text
648 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
649 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
650 msgid ""
651 "These functions are often used to save the location of the current working "
652 "directory for the purpose of returning to it later. Opening the current "
653 "directory (\".\") and calling B<fchdir>(2) to return is usually a faster "
654 "and more reliable alternative when sufficiently many file descriptors are "
655 "available, especially on platforms other than Linux."
656 msgstr ""
657
658 #. type: SH
659 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
660 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
661 #, no-wrap
662 msgid "BUGS"
663 msgstr "ERRORES"
664
665 #. type: Plain text
666 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
667 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
668 msgid ""
669 "Since the Linux 2.6.36 change that added \"(unreachable)\" in the "
670 "circumstances described above, the glibc implementation of B<getcwd>() has "
671 "failed to conform to POSIX and returned a relative pathname when the API "
672 "contract requires an absolute pathname. With glibc 2.27 onwards this is "
673 "corrected; calling B<getcwd>() from such a pathname will now result in "
674 "failure with B<ENOENT>."
675 msgstr ""
676
677 #. type: SH
678 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
679 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
680 #, no-wrap
681 msgid "SEE ALSO"
682 msgstr "VÉASE TAMBIÉN"
683
684 #. type: Plain text
685 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
686 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
687 msgid ""
688 "B<pwd>(1), B<chdir>(2), B<fchdir>(2), B<open>(2), B<unlink>(2), B<free>(3), "
689 "B<malloc>(3)"
690 msgstr ""
691 "B<pwd>(1), B<chdir>(2), B<fchdir>(2), B<open>(2), B<unlink>(2), B<free>(3), "
692 "B<malloc>(3)"
693
694 #. type: TH
695 #: debian-trixie
696 #, no-wrap
697 msgid "2024-05-02"
698 msgstr "2 Mayo 2024"
699
700 #. type: TH
701 #: debian-trixie
702 #, no-wrap
703 msgid "Linux man-pages 6.9.1"
704 msgstr "Páginas de Manual de Linux 6.9.1"
705
706 #. type: Plain text
707 #: debian-trixie
708 msgid "Standard C library (I<libc>, I<-lc>)"
709 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
710
711 #. type: Plain text
712 #: debian-trixie fedora-44 fedora-rawhide
713 #, fuzzy, no-wrap
714 #| msgid "B<char *getcwd(char *>I<buf>B<, size_t >I<size>B<);>\n"
715 msgid ""
716 "B<char *getcwd(char >I<buf>B<[.>I<size>B<], size_t >I<size>B<);>\n"
717 "B<char *get_current_dir_name(void);>\n"
718 msgstr "B<char *getcwd(char *>I<buf>B<, size_t >I<tam>B<);>\n"
719
720 #. commit 8df9d1a4142311c084ffeeacb67cd34d190eff74
721 #. type: Plain text
722 #: debian-trixie
723 msgid ""
724 "Following a change in Linux 2.6.36, the pathname returned by the "
725 "B<getcwd>() system call will be prefixed with the string \"(unreachable)\" "
726 "if the current directory is not below the root directory of the current "
727 "process (e.g., because the process set a new filesystem root using "
728 "B<chroot>(2) without changing its current directory into the new root). "
729 "Such behavior can also be caused by an unprivileged user by changing the "
730 "current directory into another mount namespace. When dealing with pathname "
731 "from untrusted sources, callers of the functions described in this page "
732 "should consider checking whether the returned pathname starts with '/' or "
733 "'(' to avoid misinterpreting an unreachable path as a relative pathname."
734 msgstr ""
735
736 #. type: TH
737 #: fedora-44 fedora-rawhide
738 #, no-wrap
739 msgid "2025-02-20"
740 msgstr "20 Febrero 2025"
741
742 #. type: TH
743 #: fedora-44 fedora-rawhide
744 #, no-wrap
745 msgid "Linux man-pages 6.13"
746 msgstr "Páginas de Manual de Linux 6.13"
747
748 #. type: TH
749 #: mageia-cauldron
750 #, no-wrap
751 msgid "Linux man-pages 6.17"
752 msgstr "Páginas de Manual de Linux 6.17"
753
754 #. type: TH
755 #: opensuse-leap-16-1 opensuse-tumbleweed
756 #, no-wrap
757 msgid "Linux man-pages (unreleased)"
758 msgstr "Páginas de Manual de Linux (no publicadas)"