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

  man pages->FreeBSD man pages -> remove (3)              
Title
Content
Arch
Section
 

REMOVE(3)

Contents


NAME    [Toc]    [Back]

     remove -- remove directory entry

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <stdio.h>

     int
     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 unlink(path).

RETURN VALUES    [Toc]    [Back]

     The remove() function returns the value 0 if successful; otherwise the
     value -1 is returned and the global variable errno is set to indicate the
     error.

ERRORS    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]

      
      
     rmdir(2), unlink(2)

STANDARDS    [Toc]    [Back]

     The remove() function conforms to ISO/IEC 9899:1990 (``ISO C89'') and
     X/Open Portability Guide Issue 4.2 (``XPG4.2'').


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