system

Dave Sill dsill at NSWC-OAS.arpa
Fri Jan 29 06:14:10 AEST 1988


In article <1670009 at otter.HP.COM> Christopher Dollin <kers at otter.HP.COM> writes:
>If -mkdir- (in a program) isn't a system call, how does -mkdir- (the program)
>work?

It uses mknod to make the directory, its dot ".", and its dot-dot "..".

>How come it wasn't a system call anyway?

Because mknod must be run by the super-user.  It's purpose is creating
special files.



More information about the Comp.lang.c mailing list