Home
Search all pages
Subjects
By activity
Professions, Sciences, Humanities, Business, ...
User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...
Text Strings
Conversions, tests, processing, manipulation,...
Math
Integer, Floating point, Matrix, Statistics, Boolean, ...
Processing
Algorithms, Memory, Process control, Debugging, ...
Stored Data
Data storage, Integrity, Encryption, Compression, ...
Communications
Networks, protocols, Interprocess, Remote, Client Server, ...
Hard World Timing, Calendar and Clock, Audio, Video, Printer, Controls...
File System
Management, Filtering, File & Directory access, Viewers, ...
|
|
|
RocketLink!--> Man page versions:
OpenBSD
FreeBSD
RedHat
Solaris
Others
[ANSI C X3.159-1989]
REMOVE(3) OpenBSD Programmer's Manual REMOVE(3)
NAME
remove - remove a file or directory
SYNOPSIS
#include <stdio.h>
int
remove(const char *path);
DESCRIPTION
The remove() function removes the file or directory specified by path.
If path specifies a directory, remove(path) is the equivalent of
rmdir(path). Otherwise, it is the equivalent of unlink(path).
RETURN VALUES
Upon successful completion, remove() returns 0. Otherwise, -1 is re-
turned and the global variable errno is set to indicate the error.
ERRORS
The remove() function may fail and set errno for any of the errors speci-
fied for the routines rmdir(2) or unlink(2).
SEE ALSO
rmdir(2), unlink(2)
STANDARDS
The remove() function conforms to ANSI X3.159-1989 (``ANSI C'') and
X/Open Portability Guide Issue 4.2 (``XPG4.2'').
OpenBSD 2.6 October 7, 1997 1
Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts Institute of Technology, Free Software Foundation, FreeBSD Inc., and others. |
(Corrections, notes, and links courtesy of RocketAware.com)
FreeBSD Sources for remove(3) functions OpenBSD sources for remove(3)
Up to: File Access - Operations affecting a file as a whole. (delete files, rename, truncate, etc.)
RocketLink!--> Man page versions:
OpenBSD
FreeBSD
RedHat
Solaris
Others
[ANSI C X3.159-1989]
Rapid-Links:
Search | About | Comments | Submit Path: RocketAware > man pages >
remove.3/
RocketAware.com is a service of Mib Software Copyright 1999, Forrest J. Cavalier III. All Rights Reserved. We welcome submissions and comments
|