lkml.org 
[lkml]   [1999]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: System Call
Hi,

On 21 Apr 1999 13:35:06 -0300, "Livia Catarina Soares"
<liviacatarina@zipmail.com.br> said:

> I also used in the headers : "<linux/unistd.h>".

Make sure you include the linux headers from the new version of the
kernel you just built. Either ensure that the /usr/include/linux
symlink resolves to that kernel tree or compile with the
"-I<new-linux-tree-directory>/include" compiler flag/

> I could not understand why I need to use "syscall3".

Because the _syscall* macros need to know how many arguments to pass to
the CPU mechanism used to invoke the system call.

> If I have another system with two, one or other value different from
> three. How I must proceed ??

Just use "_syscall2", "_syscall1" or some other syscall* different from
"_syscall3".

--Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.040 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site