Thread (4 messages) 4 messages, 4 authors, 2014-06-07

Invoking a system using syscall()

From: Dipanjan Das <hidden>
Date: 2014-06-07 05:50:04

Hi,

I want to invoke getpid() system call using syscall. Here's the code
snippet below. But, I can't find anything in dmesg|tail output.

#include <sys/types.h>

int main()
{
       pid_tret = syscall(20);
       return 0;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140607/70795bf3/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help