REMOVE(2)
NAME
remove − remove a file from the file system
SYNOPSIS
int remove(filename, key)
char ∗filename;
int key;
DESCRIPTION
Remove takes a file name as an argument and destroys the named file (i.e., removes it from the file system). Argument filename specifies the name of a file to remove, and the optional argument key gives a one-word protection key.
Remove uses the namespace to map the given file name to a new name, and invokes CONTROL(2) on the underlying device to destroy the file. It returns SYSERR if the name is illegal or cannot be mapped to an underlying device. It returns whatever CONTROL(2) returns otherwise.
SEE ALSO
control(2), nammap(2), namespace(4)
December 01, 1986 — Xinu Programmer’s Manual