From mboxrd@z Thu Jan 1 00:00:00 1970 From: der.herr@hofr.at (Nicholas Mc Guire) Date: Fri, 17 Aug 2018 00:49:53 +0000 Subject: System call vs POSIX call In-Reply-To: <137200.1534448689@turing-police.cc.vt.edu> References: <20180816162929.GA12967@osadl.at> <137200.1534448689@turing-police.cc.vt.edu> Message-ID: <20180817004953.GA11799@osadl.at> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Thu, Aug 16, 2018 at 03:44:49PM -0400, valdis.kletnieks at vt.edu wrote: > 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 yup - sorry - my bad - thats what I actually had in mind but did not check. thanks for your correction ! thx! hofrat