Skip to content

Why can a program not write to disk itself?

A C program calls fopen and fwrite. Underneath, both end in a system call rather than the program driving the disk controller directly.

Why is the program not allowed to do it itself?