rmdir

Removes (deletes) the specified directory

Local Servers:blocking
Remote Servers:blocking
Classification:POSIX
Platform:NLM
Service:File System

Syntax

   #include <unistd.h>  
    
   int rmdir  (  
      const char  *pathname);
   

Parameters

pathname

(IN) Specifies either the absolute or relative directory path containing the directory to delete.

Return Values

Returns a value of 0 if successful, nonzero otherwise. If an error occurs, errno and NetWareErrno are set.

Remarks

rmdir also works on the DOS partition.

The directory must not contain any files or directories.

The SetCurrentNameSpace function sets the name space which is used for parsing the path input to rmdir.

NOTE:For NetWare versions before 4.x, rmdir works with only the DOS name space for remote servers.

See Also

chdir, getcwd, mkdir