You generally do not want to invoke sys_calls
directly; there are library functions or utility programs that are designed specifically to be used in place of sys_calls
and you really want to use those instead (they all have manual pages that explain how to use them).
For example, the clone()
function is explained in the manual page, man clone
; the manual page also includes a description of sys_clone
call -- carefully read the manual page(s) before you start experimenting.
In most cases, the Linux library functions or utility programs are also supported on other platforms (notably Unix platforms); however:
The clone() and sys_clone calls are Linux-specific and should not be used in pro‐
grams intended to be portable.
Thus, the use of either should be avoided both for portability reasons and that they may
not be available in future versions of Linux.
Take a look at the manual pages for the functions you're interested in (such as man clone
, man setdomainname
You may also find it useful to use Google to find examples of their use.
Hope this helps some.