| Main index | Section 9 | 日本語 | Options |
#include <sys/param.h>
#include <sys/vnode.h>
Its arguments are:
| fdvp | |
| The vnode of the old parent directory. | |
| fvp | |
| The vnode of the file to be renamed. | |
| fcnp | |
| Pathname information about the file's current name. | |
| tdvp | |
| The vnode of the new parent directory. | |
| tvp | |
| The vnode of the target file (if it exists). | |
| tcnp | |
| Pathname information about the file's new name. | |
The destination directory and file are locked as well as having their ref count bumped. The VOP routine is expected to vput(9) both prior to returning.
| [EPERM] | |
| The file is immutable. | |
| [EXDEV] | |
| It is not possible to rename a file between different file systems. | |
| [EINVAL] | |
| An attempt was made to rename amp;. or .., or to perform an operation which would break the directory tree structure. | |
| [ENOTDIR] | |
| An attempt was made to rename a directory to a file or vice versa. | |
| [ENOTEMPTY] | |
| An attempt was made to remove a directory which is not empty. | |
| VOP_RENAME (9) | July 24, 1996 |
| Main index | Section 9 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | If you sat a monkey down in front of a keyboard, the first thing typed would be a unix command. | ” |
| — Bill Lye | ||