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

  man pages->NetBSD 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 is an alias for the unlink(2) system call.  It
     deletes the file referenced by path.

RETURN VALUES    [Toc]    [Back]

     Upon successful completion, remove() returns 0.  Otherwise, -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 routine unlink(2).

SEE ALSO    [Toc]    [Back]

      
      
     rmdir(2), unlink(2), symlink(7)

STANDARDS    [Toc]    [Back]

     The remove() function conforms to ANSI X3.159-1989 (``ANSI C'').

BSD                              June 4, 1993                              BSD
[ 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