System call vs POSIX call

valdis.kletnieks at vt.edu valdis.kletnieks at vt.edu
Thu Aug 16 15:44:49 EDT 2018


On Thu, 16 Aug 2018 16:29:29 -0000, Nicholas Mc Guire said:

> Note that you can do system calls directly with system() but that is
> generaly not how you do it - you to through the glibc calls
> which do some checks before invoking the actual system call.

system() does a fork/exec of a process.

syscall() issues an arbitrary system call, but all marshalling of
parameters and return codes becomes your problem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 486 bytes
Desc: not available
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180816/7802975b/attachment.sig>


More information about the Kernelnewbies mailing list