*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> remove (3)              



NAME    [Toc]    [Back]

     remove - remove a file or directory

SYNOPSIS    [Toc]    [Back]

     #include <stdio.h>

     remove(const char *path);

DESCRIPTION    [Toc]    [Back]

     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

RETURN VALUES    [Toc]    [Back]

     Upon  successful completion, remove() returns 0.  Otherwise,
-1 is returned
 and the global variable errno is set to indicate  the

ERRORS    [Toc]    [Back]

     The  remove() function may fail and set errno for any of the
errors specified
 for the routines rmdir(2) or unlink(2).

SEE ALSO    [Toc]    [Back]

     rmdir(2), unlink(2)

STANDARDS    [Toc]    [Back]

     The remove() function conforms to ANSI  X3.159-1989  (``ANSI
C'') and
     X/Open Portability Guide Issue 4.2 (``XPG4.2'').

OpenBSD      3.6                          October     7,     1997
[ Back ]
 Similar pages
Name OS Title
rmdir HP-UX remove a directory file
rmdir Tru64 Remove a directory file
rmdir OpenBSD remove a directory file
rmdir FreeBSD remove a directory file
rmdir NetBSD remove a directory file
unlink HP-UX remove directory entry; delete file
efi_rmdir HP-UX remove an EFI directory
rmdir IRIX remove a directory
remove NetBSD remove directory entry
rm FreeBSD remove directory entries
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service