Barnacle Wes wes at obie.UUCP
Sat Jan 30 21:04:13 AEST 1988

On System V, directories are made with the system call mknod(2).
To make the directory '/usr/fool' with rwxrwxr-x permissions,
you would use:

	mknod("/usr/fool", 040775, 0);

The mode bits are: 040000: make directory, 0775: permission bits.

More information about the Comp.lang.c mailing list