It's possible the OP means writing code that interfaces directly with the system kernel and core libraries. In any case we don't know either what system the wants to program for.

Regardless, I find the question annoyingly generic, when a Search for "[YourOSOfChoice] System Programming" on Google is basically all one really needs to answer it.