hpux man page for rmdirp

Query: rmdirp

OS: hpux

Section: 3g

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

mkdirp(3G)																mkdirp(3G)

NAME
mkdirp(), rmdirp() - create, remove directories in a path
SYNOPSIS
DESCRIPTION
creates all the missing directories in the given path with the given mode (see chmod(2) for the values of mode.) The protection part of the mode argument is modified by the process's file creation mask (see umask(2)). rmdirp removes directories in path d. This removal starts at the end of the path and moves back toward the root as far as possible. If an error occurs, the remaining path is stored in d1. returns a 0 only if it is able to remove every directory in the path. To use these interfaces, link in the libgen library by specifying For example:
RETURN VALUE
If a needed directory cannot be created, returns -1 and sets to one of the error numbers. If all the directories are created, or existed to begin with, it returns zero.
EXAMPLES
WARNINGS
uses to allocate temporary space for the string. returns if a "" or "" is in the path. It returns if an attempt is made to remove the current directory. If an error occurs other than one of these two errors, returns
SEE ALSO
chmod(2), mkdir(2), rmdir(2), umask(2), thread_safety(5). mkdirp(3G)
Related Man Pages
mkdir(2) - sunos
mkdirp(3gen) - sunos
rmdirp(3gen) - opensolaris
rmdirp(3g) - hpux
rmdirp(3gen) - sunos
Similar Topics in the Unix Linux Community
How to list only directories?
Finding relative path of a file
check if multiple directories exist else create missing directories
Function to remove the directories from PATH variable
Search for a file in all directories and place the file in that directory