logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

VOP_REMOVE, VOP_RMDIR — remove a file or directory

Authors

       This manual page was written by Doug Rabson.

Debian                                            July 24, 1996                                    VOP_REMOVE(9)

Description

       These entry points remove files and directories respectively.

       The arguments are:

       dvp  The vnode of the directory.

       vp   The vnode of the file to be removed.

       cnp  Pathname information about the file.

Errors

       [EPERM]            The file is immutable.

       [ENOTEMPTY]        An attempt was made to remove a directory which is not empty.

Locks

       Both dvp and vp should be locked on entry and remain locked on return.

Name

       VOP_REMOVE, VOP_RMDIR — remove a file or directory

Return Values

       Zero is returned on success, otherwise an error code is returned.

See Also

vnode(9), VOP_LOOKUP(9)

Synopsis

#include<sys/param.h>#include<sys/vnode.h>intVOP_REMOVE(structvnode*dvp, structvnode*vp, structcomponentname*cnp);

       intVOP_RMDIR(structvnode*dvp, structvnode*vp, structcomponentname*cnp);

See Also