z/OS UNIX System Services File System Interface Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Deleting files

z/OS UNIX System Services File System Interface Reference
SA23-2285-00

File hierarchy objects are deleted with the vn_remove, vn_rmdir, and vn_rename calls. The vn_rename function causes the deletion of the new_name file when it exists.

The interface for all these operations includes the object's:
  • Parent directory vnode, as a token structure
  • Name, as a character string
  • PFS file token

Serialization: An exclusive latch is obtained for the parent directory vnode and the object's vnode. For vn_rename, an exclusive latch is held on both parent directories, the old object vnode, and the new object vnode, if it exists.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014