Query: remove
OS: osf1
Section: 3
Links: osf1 man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
remove(3) Library Functions Manual remove(3)NAMEremove - Removes a fileLIBRARYStandard C Library (libc.so, libc.a)SYNOPSIS#include <stdio.h> int remove( const char *path );STANDARDSInterfaces documented on this reference page conform to industry standards as follows: remove(): POSIX.1, XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about industry standards and associated tags.PARAMETERSPoints to the file to be removed.DESCRIPTIONThe remove() function causes a file named by the pathname pointed to by path to be no longer accessible by that name. A subsequent attempt to open that file using that name will fail unless it is created anew. If the path parameter names a directory, remove(path) is equivalent to calling the rmdir() function on that directory. If path does not name a directory, remove(path) is equivalent to unlink(path).NOTESIf the file operated upon by the remove() function has multiple hard links, the link count in the file is decremented and only the speci- fied file name is removed.RETURN VALUESUpon successful completion, the remove() function returns 0 (zero). Otherwise, a nonzero value is returned. Refer to the unlink() function and the rmdir() function for information on return values.ERRORSRefer to the unlink() function and the rmdir() function for information on error conditions.RELATED INFORMATIONFunctions: link(2), rename(2), rmdir(2), unlink(2) Standards: standards(5) delim off remove(3)
Related Man Pages |
---|
remove(3) - centos |
rmdir(2) - osf1 |
remove(3p) - suse |
remove(3c) - sunos |
remove(3p) - posix |