Debian Codegraph @

templates/man2/rename.2.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:39+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: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "rename"
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 "rename, renameat, renameat2 - change the name or location of a file"
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>stdio.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 "B<int rename(const char *>I<oldpath>B<, const char *>I<newpath>B<);>\n"
84 msgstr ""
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid ""
91 "B<#include E<lt>fcntl.hE<gt> >/* Definition of B<AT_*> constants */\n"
92 "B<#include E<lt>stdio.hE<gt>>\n"
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 #, no-wrap
99 msgid ""
100 "B<int renameat(int >I<olddirfd>B<, const char *>I<oldpath>B<,>\n"
101 "B< int >I<newdirfd>B<, const char *>I<newpath>B<);>\n"
102 "B<int renameat2(int >I<olddirfd>B<, const char *>I<oldpath>B<,>\n"
103 "B< int >I<newdirfd>B<, const char *>I<newpath>B<, unsigned int >I<flags>B<);>\n"
104 msgstr ""
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 msgid ""
110 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
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 #, no-wrap
117 msgid ""
118 "B<renameat>():\n"
119 " Since glibc 2.10:\n"
120 " _POSIX_C_SOURCE E<gt>= 200809L\n"
121 " Before glibc 2.10:\n"
122 " _ATFILE_SOURCE\n"
123 msgstr ""
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 #, no-wrap
129 msgid ""
130 "B<renameat2>():\n"
131 " _GNU_SOURCE\n"
132 msgstr ""
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 "B<rename>() renames a file, moving it between directories if required. Any "
146 "other hard links to the file (as created using B<link>(2)) are unaffected. "
147 "Open file descriptors for I<oldpath> are also unaffected."
148 msgstr ""
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid ""
154 "Various restrictions determine whether or not the rename operation succeeds: "
155 "see ERRORS below."
156 msgstr ""
157
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 msgid ""
162 "If I<newpath> already exists, it will be atomically replaced, so that there "
163 "is no point at which another process attempting to access I<newpath> will "
164 "find it missing. However, there will probably be a window in which both "
165 "I<oldpath> and I<newpath> refer to the file being renamed."
166 msgstr ""
167
168 #. type: Plain text
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 msgid ""
172 "If I<oldpath> and I<newpath> are existing hard links referring to the same "
173 "file, then B<rename>() does nothing, and returns a success status."
174 msgstr ""
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid ""
180 "If I<newpath> exists but the operation fails for some reason, B<rename>() "
181 "guarantees to leave an instance of I<newpath> in place."
182 msgstr ""
183
184 #. type: Plain text
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 msgid ""
188 "I<oldpath> can specify a directory. In this case, I<newpath> must either "
189 "not exist, or it must specify an empty directory."
190 msgstr ""
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid ""
196 "If I<oldpath> refers to a symbolic link, the link is renamed; if I<newpath> "
197 "refers to a symbolic link, the link will be overwritten."
198 msgstr ""
199
200 #. type: SS
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid "renameat()"
205 msgstr ""
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 msgid ""
211 "The B<renameat>() system call operates in exactly the same way as "
212 "B<rename>(), except for the differences described here."
213 msgstr ""
214
215 #. type: Plain text
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 msgid ""
219 "If the pathname given in I<oldpath> is relative, then it is interpreted "
220 "relative to the directory referred to by the file descriptor I<olddirfd> "
221 "(rather than relative to the current working directory of the calling "
222 "process, as is done by B<rename>() for a relative pathname)."
223 msgstr ""
224
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 msgid ""
229 "If I<oldpath> is relative and I<olddirfd> is the special value B<AT_FDCWD>, "
230 "then I<oldpath> is interpreted relative to the current working directory of "
231 "the calling process (like B<rename>())."
232 msgstr ""
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid "If I<oldpath> is absolute, then I<olddirfd> is ignored."
238 msgstr ""
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 msgid ""
244 "The interpretation of I<newpath> is as for I<oldpath>, except that a "
245 "relative pathname is interpreted relative to the directory referred to by "
246 "the file descriptor I<newdirfd>."
247 msgstr ""
248
249 #. type: Plain text
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 msgid "See B<openat>(2) for an explanation of the need for B<renameat>()."
253 msgstr ""
254
255 #. type: SS
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 #, no-wrap
259 msgid "renameat2()"
260 msgstr ""
261
262 #. type: Plain text
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 msgid ""
266 "B<renameat2>() has an additional I<flags> argument. A B<renameat2>() call "
267 "with a zero I<flags> argument is equivalent to B<renameat>()."
268 msgstr ""
269
270 #. type: Plain text
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 msgid ""
274 "The I<flags> argument is a bit mask consisting of zero or more of the "
275 "following flags:"
276 msgstr ""
277
278 #. type: TP
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 #, no-wrap
282 msgid "B<RENAME_EXCHANGE>"
283 msgstr ""
284
285 #. type: Plain text
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 msgid ""
289 "Atomically exchange I<oldpath> and I<newpath>. Both pathnames must exist "
290 "but may be of different types (e.g., one could be a non-empty directory and "
291 "the other a symbolic link)."
292 msgstr ""
293
294 #. type: TP
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid "B<RENAME_NOREPLACE>"
299 msgstr ""
300
301 #. type: Plain text
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 msgid ""
305 "Don't overwrite I<newpath> of the rename. Return an error if I<newpath> "
306 "already exists."
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 "B<RENAME_NOREPLACE> can't be employed together with B<RENAME_EXCHANGE>."
313 msgstr ""
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 msgid ""
319 "B<RENAME_NOREPLACE> requires support from the underlying filesystem. "
320 "Support for various filesystems was added as follows:"
321 msgstr ""
322
323 #. type: IP
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "\\[bu]"
328 msgstr ""
329
330 #. ext4: commit 0a7c3937a1f23f8cb5fc77ae01661e9968a51d0c
331 #. type: Plain text
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 msgid "ext4 (Linux 3.15);"
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 "btrfs, tmpfs, and cifs (Linux 3.17);"
341 msgstr ""
342
343 #
344 #. btrfs: commit 80ace85c915d0f41016f82917218997b72431258
345 #. tmpfs: commit 3b69ff51d087d265aa4af3a532fc4f20bf33e718
346 #. cifs: commit 7c33d5972ce382bcc506d16235f1e9b7d22cbef8
347 #. gfs2 in Linux 4.2?
348 #. type: Plain text
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 msgid "xfs (Linux 4.0);"
352 msgstr ""
353
354 #. Also affs, bfs, exofs, hfs, hfsplus, jffs2, logfs, msdos,
355 #. nilfs2, omfs, sysvfs, ubifs, udf, ufs
356 #. hugetlbfs, ramfs
357 #. local filesystems: commit f03b8ad8d38634d13e802165cc15917481b47835
358 #. libfs: commit e0e0be8a835520e2f7c89f214dfda570922a1b90
359 #. type: Plain text
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 msgid ""
363 "Support for many other filesystems was added in Linux 4.9, including ext2, "
364 "minix, reiserfs, jfs, vfat, and bpf."
365 msgstr ""
366
367 #. type: TP
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 #, no-wrap
371 msgid "B<RENAME_WHITEOUT> (since Linux 3.18)"
372 msgstr ""
373
374 #. commit 0d7a855526dd672e114aff2ac22b60fc6f155b08
375 #. commit 787fb6bc9682ec7c05fb5d9561b57100fbc1cc41
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid ""
380 "This operation makes sense only for overlay/union filesystem implementations."
381 msgstr ""
382
383 #. type: Plain text
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 msgid ""
387 "Specifying B<RENAME_WHITEOUT> creates a \"whiteout\" object at the source of "
388 "the rename at the same time as performing the rename. The whole operation "
389 "is atomic, so that if the rename succeeds then the whiteout will also have "
390 "been created."
391 msgstr ""
392
393 #. type: Plain text
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 msgid ""
397 "A \"whiteout\" is an object that has special meaning in union/overlay "
398 "filesystem constructs. In these constructs, multiple layers exist and only "
399 "the top one is ever modified. A whiteout on an upper layer will effectively "
400 "hide a matching file in the lower layer, making it appear as if the file "
401 "didn't exist."
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 "When a file that exists on the lower layer is renamed, the file is first "
409 "copied up (if not already on the upper layer) and then renamed on the "
410 "upper, read-write layer. At the same time, the source file needs to be "
411 "\"whiteouted\" (so that the version of the source file in the lower layer is "
412 "rendered invisible). The whole operation needs to be done atomically."
413 msgstr ""
414
415 #. https://www.freebsd.org/cgi/man.cgi?query=mount_unionfs&manpath=FreeBSD+11.0-RELEASE
416 #. type: Plain text
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 msgid ""
420 "When not part of a union/overlay, the whiteout appears as a character device "
421 "with a {0,0} device number. (Note that other union/overlay implementations "
422 "may employ different methods for storing whiteout entries; specifically, BSD "
423 "union mount employs a separate inode type, B<DT_WHT>, which, while supported "
424 "by some filesystems available in Linux, such as CODA and XFS, is ignored by "
425 "the kernel's whiteout support code, as of Linux 4.19, at least.)"
426 msgstr ""
427
428 #. type: Plain text
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 msgid ""
432 "B<RENAME_WHITEOUT> requires the same privileges as creating a device node "
433 "(i.e., the B<CAP_MKNOD> capability)."
434 msgstr ""
435
436 #. type: Plain text
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 msgid "B<RENAME_WHITEOUT> can't be employed together with B<RENAME_EXCHANGE>."
440 msgstr ""
441
442 #. tmpfs: commit 46fdb794e3f52ef18b859ebc92f0a9d7db21c5df
443 #. ext4: commit cd808deced431b66b5fa4e5c193cb7ec0059eaff
444 #. XFS: commit 7dcf5c3e4527cfa2807567b00387cf2ed5e07f00
445 #. f2fs: commit 7e01e7ad746bc8198a8b46163ddc73a1c7d22339
446 #. btrfs: commit cdd1fedf8261cd7a73c0596298902ff4f0f04492
447 #. ubifs: commit 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798
448 #. type: Plain text
449 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
450 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
451 msgid ""
452 "B<RENAME_WHITEOUT> requires support from the underlying filesystem. Among "
453 "the filesystems that support it are tmpfs (since Linux 3.18), ext4 (since "
454 "Linux 3.18), XFS (since Linux 4.1), f2fs (since Linux 4.2), btrfs (since "
455 "Linux 4.7), and ubifs (since Linux 4.9)."
456 msgstr ""
457
458 #. type: SH
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 #, no-wrap
462 msgid "RETURN VALUE"
463 msgstr ""
464
465 #. type: Plain text
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 msgid ""
469 "On success, zero is returned. On error, -1 is returned, and I<errno> is set "
470 "to indicate the error."
471 msgstr ""
472
473 #. type: SH
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 #, no-wrap
477 msgid "ERRORS"
478 msgstr ""
479
480 #. type: TP
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 #, no-wrap
484 msgid "B<EACCES>"
485 msgstr ""
486
487 #. type: Plain text
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 msgid ""
491 "Write permission is denied for the directory containing I<oldpath> or "
492 "I<newpath>, or, search permission is denied for one of the directories in "
493 "the path prefix of I<oldpath> or I<newpath>, or I<oldpath> is a directory "
494 "and does not allow write permission (needed to update the I<..> entry). "
495 "(See also B<path_resolution>(7).)"
496 msgstr ""
497
498 #. type: TP
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 #, no-wrap
502 msgid "B<EBUSY>"
503 msgstr ""
504
505 #. type: Plain text
506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
508 msgid ""
509 "The rename fails because I<oldpath> or I<newpath> is a directory that is in "
510 "use by some process (perhaps as current working directory, or as root "
511 "directory, or because it was open for reading) or is in use by the system "
512 "(for example as a mount point), while the system considers this an error. "
513 "(Note that there is no requirement to return B<EBUSY> in such cases\\"
514 "[em]there is nothing wrong with doing the rename anyway\\[em]but it is "
515 "allowed to return B<EBUSY> if the system cannot otherwise handle such "
516 "situations.)"
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 #, no-wrap
523 msgid "B<EDQUOT>"
524 msgstr ""
525
526 #. type: Plain text
527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
529 msgid "The user's quota of disk blocks on the filesystem has been exhausted."
530 msgstr ""
531
532 #. type: TP
533 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
534 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
535 #, no-wrap
536 msgid "B<EFAULT>"
537 msgstr ""
538
539 #. type: Plain text
540 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
541 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
542 msgid "I<oldpath> or I<newpath> points outside your accessible address space."
543 msgstr ""
544
545 #. type: TP
546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
548 #, no-wrap
549 msgid "B<EINVAL>"
550 msgstr ""
551
552 #. type: Plain text
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 msgid ""
556 "The new pathname contained a path prefix of the old, or, more generally, an "
557 "attempt was made to make a directory a subdirectory of itself."
558 msgstr ""
559
560 #. type: TP
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 #, no-wrap
564 msgid "B<EISDIR>"
565 msgstr ""
566
567 #. type: Plain text
568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
570 msgid "I<newpath> is an existing directory, but I<oldpath> is not a directory."
571 msgstr ""
572
573 #. type: TP
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 #, no-wrap
577 msgid "B<ELOOP>"
578 msgstr ""
579
580 #. type: Plain text
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 msgid ""
584 "Too many symbolic links were encountered in resolving I<oldpath> or "
585 "I<newpath>."
586 msgstr ""
587
588 #. type: TP
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 #, no-wrap
592 msgid "B<EMLINK>"
593 msgstr ""
594
595 #. type: Plain text
596 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
597 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
598 msgid ""
599 "I<oldpath> already has the maximum number of links to it, or it was a "
600 "directory and the directory containing I<newpath> has the maximum number of "
601 "links."
602 msgstr ""
603
604 #. type: TP
605 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
606 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
607 #, no-wrap
608 msgid "B<ENAMETOOLONG>"
609 msgstr ""
610
611 #. type: Plain text
612 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
613 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
614 msgid "I<oldpath> or I<newpath> was too long."
615 msgstr ""
616
617 #. type: TP
618 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
619 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
620 #, no-wrap
621 msgid "B<ENOENT>"
622 msgstr ""
623
624 #. type: Plain text
625 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
626 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
627 msgid ""
628 "The link named by I<oldpath> does not exist; or, a directory component in "
629 "I<newpath> does not exist; or, I<oldpath> or I<newpath> is an empty string."
630 msgstr ""
631
632 #. type: TP
633 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
634 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
635 #, no-wrap
636 msgid "B<ENOMEM>"
637 msgstr ""
638
639 #. type: Plain text
640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
642 msgid "Insufficient kernel memory was available."
643 msgstr ""
644
645 #. type: TP
646 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
647 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
648 #, no-wrap
649 msgid "B<ENOSPC>"
650 msgstr ""
651
652 #. type: Plain text
653 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
654 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
655 msgid "The device containing the file has no room for the new directory entry."
656 msgstr ""
657
658 #. type: TP
659 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
660 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
661 #, no-wrap
662 msgid "B<ENOTDIR>"
663 msgstr ""
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 "A component used as a directory in I<oldpath> or I<newpath> is not, in fact, "
670 "a directory. Or, I<oldpath> is a directory, and I<newpath> exists but is "
671 "not a directory."
672 msgstr ""
673
674 #. type: TP
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 #, no-wrap
678 msgid "B<ENOTEMPTY> or B<EEXIST>"
679 msgstr ""
680
681 #. type: Plain text
682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
684 msgid ""
685 "I<newpath> is a nonempty directory, that is, contains entries other than \"."
686 "\" and \"..\"."
687 msgstr ""
688
689 #. type: TP
690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
692 #, no-wrap
693 msgid "B<EPERM> or B<EACCES>"
694 msgstr ""
695
696 #. type: Plain text
697 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
698 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
699 msgid ""
700 "The directory containing I<oldpath> has the sticky bit (B<S_ISVTX>) set and "
701 "the process's effective user ID is neither the user ID of the file to be "
702 "deleted nor that of the directory containing it, and the process is not "
703 "privileged (Linux: does not have the B<CAP_FOWNER> capability); or "
704 "I<newpath> is an existing file and the directory containing it has the "
705 "sticky bit set and the process's effective user ID is neither the user ID of "
706 "the file to be replaced nor that of the directory containing it, and the "
707 "process is not privileged (Linux: does not have the B<CAP_FOWNER> "
708 "capability); or the filesystem containing I<oldpath> does not support "
709 "renaming of the type requested."
710 msgstr ""
711
712 #. type: TP
713 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
714 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
715 #, no-wrap
716 msgid "B<EROFS>"
717 msgstr ""
718
719 #. type: Plain text
720 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
721 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
722 msgid "The file is on a read-only filesystem."
723 msgstr ""
724
725 #. type: TP
726 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
727 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
728 #, no-wrap
729 msgid "B<EXDEV>"
730 msgstr ""
731
732 #. type: Plain text
733 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
734 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
735 msgid ""
736 "I<oldpath> and I<newpath> are not on the same mounted filesystem. (Linux "
737 "permits a filesystem to be mounted at multiple points, but B<rename>() does "
738 "not work across different mount points, even if the same filesystem is "
739 "mounted on both.)"
740 msgstr ""
741
742 #. type: Plain text
743 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
744 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
745 msgid ""
746 "The following additional errors can occur for B<renameat>() and "
747 "B<renameat2>():"
748 msgstr ""
749
750 #. type: TP
751 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
752 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
753 #, no-wrap
754 msgid "B<EBADF>"
755 msgstr ""
756
757 #. type: Plain text
758 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
759 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
760 msgid ""
761 "I<oldpath> (I<newpath>) is relative but I<olddirfd> (I<newdirfd>) is not a "
762 "valid file descriptor."
763 msgstr ""
764
765 #. type: Plain text
766 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
767 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
768 msgid ""
769 "I<oldpath> is relative and I<olddirfd> is a file descriptor referring to a "
770 "file other than a directory; or similar for I<newpath> and I<newdirfd>"
771 msgstr ""
772
773 #. type: Plain text
774 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
775 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
776 msgid "The following additional errors can occur for B<renameat2>():"
777 msgstr ""
778
779 #. type: TP
780 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
781 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
782 #, no-wrap
783 msgid "B<EEXIST>"
784 msgstr ""
785
786 #. type: Plain text
787 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
788 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
789 msgid "I<flags> contains B<RENAME_NOREPLACE> and I<newpath> already exists."
790 msgstr ""
791
792 #. type: Plain text
793 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
794 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
795 msgid "An invalid flag was specified in I<flags>."
796 msgstr ""
797
798 #. type: Plain text
799 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
800 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
801 msgid ""
802 "Both B<RENAME_NOREPLACE> and B<RENAME_EXCHANGE> were specified in I<flags>."
803 msgstr ""
804
805 #. type: Plain text
806 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
807 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
808 msgid ""
809 "Both B<RENAME_WHITEOUT> and B<RENAME_EXCHANGE> were specified in I<flags>."
810 msgstr ""
811
812 #. type: Plain text
813 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
814 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
815 msgid "The filesystem does not support one of the flags in I<flags>."
816 msgstr ""
817
818 #. type: Plain text
819 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
820 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
821 msgid "I<flags> contains B<RENAME_EXCHANGE> and I<newpath> does not exist."
822 msgstr ""
823
824 #. type: TP
825 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
826 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
827 #, no-wrap
828 msgid "B<EPERM>"
829 msgstr ""
830
831 #. type: Plain text
832 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
833 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
834 msgid ""
835 "B<RENAME_WHITEOUT> was specified in I<flags>, but the caller does not have "
836 "the B<CAP_MKNOD> capability."
837 msgstr ""
838
839 #. type: SH
840 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
841 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
842 #, no-wrap
843 msgid "STANDARDS"
844 msgstr ""
845
846 #. type: TP
847 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
848 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
849 #, no-wrap
850 msgid "B<rename>()"
851 msgstr ""
852
853 #. type: Plain text
854 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
855 #: opensuse-tumbleweed
856 msgid "C11, POSIX.1-2024."
857 msgstr ""
858
859 #. type: TP
860 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
861 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
862 #, no-wrap
863 msgid "B<renameat>()"
864 msgstr ""
865
866 #. type: Plain text
867 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
868 #: opensuse-tumbleweed
869 msgid "POSIX.1-2024."
870 msgstr ""
871
872 #. type: TP
873 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
874 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
875 #, no-wrap
876 msgid "B<renameat2>()"
877 msgstr ""
878
879 #. type: Plain text
880 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
881 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
882 msgid "Linux."
883 msgstr ""
884
885 #. type: SH
886 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
887 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
888 #, no-wrap
889 msgid "HISTORY"
890 msgstr ""
891
892 #. type: Plain text
893 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
894 #: opensuse-tumbleweed
895 msgid "C89, POSIX.1-2001, 4.3BSD."
896 msgstr ""
897
898 #. type: Plain text
899 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
900 #: opensuse-tumbleweed
901 msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
902 msgstr ""
903
904 #. type: Plain text
905 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
906 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
907 msgid "Linux 3.15, glibc 2.28."
908 msgstr ""
909
910 #. type: SS
911 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
912 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
913 #, no-wrap
914 msgid "glibc notes"
915 msgstr ""
916
917 #. type: Plain text
918 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
919 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
920 msgid ""
921 "On older kernels where B<renameat>() is unavailable, the glibc wrapper "
922 "function falls back to the use of B<rename>(). When I<oldpath> and "
923 "I<newpath> are relative pathnames, glibc constructs pathnames based on the "
924 "symbolic links in I</proc/self/fd> that correspond to the I<olddirfd> and "
925 "I<newdirfd> arguments."
926 msgstr ""
927
928 #. type: SH
929 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
930 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
931 #, no-wrap
932 msgid "BUGS"
933 msgstr ""
934
935 #. type: Plain text
936 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
937 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
938 msgid ""
939 "On NFS filesystems, you can not assume that if the operation failed, the "
940 "file was not renamed. If the server does the rename operation and then "
941 "crashes, the retransmitted RPC which will be processed when the server is up "
942 "again causes a failure. The application is expected to deal with this. See "
943 "B<link>(2) for a similar problem."
944 msgstr ""
945
946 #. type: SH
947 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
948 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
949 #, no-wrap
950 msgid "SEE ALSO"
951 msgstr ""
952
953 #. type: Plain text
954 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
955 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
956 msgid ""
957 "B<mv>(1), B<rename>(1), B<chmod>(2), B<link>(2), B<symlink>(2), "
958 "B<unlink>(2), B<path_resolution>(7), B<symlink>(7)"
959 msgstr ""
960
961 #. type: TH
962 #: debian-trixie
963 #, no-wrap
964 msgid "2024-05-02"
965 msgstr ""
966
967 #. type: TH
968 #: debian-trixie
969 #, no-wrap
970 msgid "Linux man-pages 6.9.1"
971 msgstr ""
972
973 #. type: Plain text
974 #: debian-trixie
975 msgid "Standard C library (I<libc>, I<-lc>)"
976 msgstr ""
977
978 #. type: Plain text
979 #: debian-trixie fedora-44 fedora-rawhide
980 msgid "C11, POSIX.1-2008."
981 msgstr ""
982
983 #. type: Plain text
984 #: debian-trixie fedora-44 fedora-rawhide
985 msgid "POSIX.1-2008."
986 msgstr ""
987
988 #. type: Plain text
989 #: debian-trixie fedora-44 fedora-rawhide
990 msgid "4.3BSD, C89, POSIX.1-2001."
991 msgstr ""
992
993 #. type: Plain text
994 #: debian-trixie fedora-44 fedora-rawhide
995 msgid "Linux 2.6.16, glibc 2.4."
996 msgstr ""
997
998 #. type: TH
999 #: fedora-44 fedora-rawhide
1000 #, no-wrap
1001 msgid "2024-07-23"
1002 msgstr ""
1003
1004 #. type: TH
1005 #: fedora-44 fedora-rawhide
1006 #, no-wrap
1007 msgid "Linux man-pages 6.13"
1008 msgstr ""
1009
1010 #. type: TH
1011 #: mageia-cauldron
1012 #, no-wrap
1013 msgid "Linux man-pages 6.17"
1014 msgstr ""
1015
1016 #. type: TH
1017 #: opensuse-leap-16-1 opensuse-tumbleweed
1018 #, no-wrap
1019 msgid "Linux man-pages (unreleased)"
1020 msgstr ""