I dont want to use system() or exec .
I want to implement poweroff and reboot in C itself without the help of inbuilt system commands (poweroff or shutdown)
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy