

#include <sys/types.h> #include <sys/stat.h> int mkdir(char *pathname, mode_t mode);
mkdir creates a new OpenEdition directory and pathname is the
directory name. mode is the set of file permission bits
for the new directory. The owner ID of pathname is set to the
effective user ID of the process. The group ID of pathname is
set to the owning directory's group ID.
The pathname must specify an OpenEdition HFS filename. For programs
not compiled with the posix option, a style prefix may be
required. For more information on specifying OpenEdition filenames,
see Low-level and Standard I/O .
mkdir returns 0 if it is successful and
- 1 if it is not successful; it does not create a new directory.
rewinddir also illustrates the use
of mkdir.
creat, rmdir, umask
Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.