Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (2) — Plan9 4th Edition

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(2)

remove(5)

open(2)

REMOVE(2)

NAME

remove − remove a file

SYNOPSIS

­#include <u.h>
­#include <libc.h>

int remove(char ∗file)

DESCRIPTION

­Remove removes ­file from the directory containing it and discards the contents of the file.  The user must have write permission in the containing directory.  If ­file is a directory, it must be empty. 

SOURCE

­/sys/src/libc/9syscall

SEE ALSO

intro(2), remove(5), the description of ­ORCLOSE in open(2).

DIAGNOSTICS

Sets errstr.

Plan 9  —  May 13, 2000

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026