Changeset View
Changeset View
Standalone View
Standalone View
lib/libsys/rename.2
| Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | |||||
| .Bl -tag -width AT_RENAME_NOREPLACE | .Bl -tag -width AT_RENAME_NOREPLACE | ||||
| .It Dv AT_RENAME_NOREPLACE | .It Dv AT_RENAME_NOREPLACE | ||||
| If the path specified by | If the path specified by | ||||
| .Fa tofd | .Fa tofd | ||||
| and | and | ||||
| .Fa to | .Fa to | ||||
| exists, the request fails with the error | exists, the request fails with the error | ||||
| .Er EEXIST . | .Er EEXIST . | ||||
| .It Dv AT_RENAME_EXCHANGE | |||||
| Atomically exchange the files pointed to by the | |||||
| .Fa from | |||||
| and | |||||
| .Fa to | |||||
| names. | |||||
markj: Which error number is returned if the filesystem does not support this? It should be documented. | |||||
kibAuthorUnsubmitted Done Inline ActionsIt is already documented below, in the renameat2() error section. It was done when renameat2() was added. kib: It is already documented below, in the renameat2() error section. It was done when renameat2()… | |||||
| .El | .El | ||||
| .Sh RETURN VALUES | .Sh RETURN VALUES | ||||
| .Rv -std rename | .Rv -std rename | ||||
| .Sh ERRORS | .Sh ERRORS | ||||
| The | The | ||||
| .Fn rename | .Fn rename | ||||
| system call | system call | ||||
| will fail and neither of the argument files will be | will fail and neither of the argument files will be | ||||
| ▲ Show 20 Lines • Show All 229 Lines • Show Last 20 Lines | |||||
Which error number is returned if the filesystem does not support this? It should be documented.