[EMAIL PROTECTED] wrote:

> The syntax for mkdir is :
> 
>   #include <sys/mode.h>
>   #include <sys/stat.h>
>   
>   int mkdir (Path, Mode)
>   const char *Path;
>   mode_t Mode;
> 
> I don't understand the mode_t structure. Can somebody mail me an example of
> how to use this function in a C-program ?

mode_t is an integral type. You would typically use either a octal
literals (e.g. 0755) or use the macros from sys/stat.h, e.g.

        S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to