Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 508 Bytes

system_call.md

File metadata and controls

26 lines (17 loc) · 508 Bytes

System Call

system call is the programmatic way in which a computer program requests a service from the kernel of the operating system to be executed

#include <string>

std::string cmd="mkdir foo";
system(cmd.c_str());
}

or you can call mkdir directly"

#include <string>
#include <sys/stat.h>
#include <sys/types.h>

mkdir("foo", 0755);

Also check out fork Linux System Call Table: Here