> I am not using kld to implement my system call. I am just using
> the old way.
>
> But I tried using pointers also. But I am not getting the correct
> returned values either...
The correct return value is probably "-1", with the value of 'z'
being undefined, for what you have now.
If you a
I am not using kld to implement my system call. I am just using the old way.
But I tried using pointers also. But I am not getting the correct returned
values either...
>= Original Message From Terry Lambert <[EMAIL PROTECTED]> =
>> I just try to add a simple system call for testing
> I just try to add a simple system call for testing:
>
> int my_call(int x, int y) {
>return (x + y);
> }
>
> In my user program:
>
> int main(int argc, char ** argv) {
>int x = 3;
>int y = 8;
>int z = 0;
>z = syscall(SYS_my_call, x, y);
>printf("%i + %i = %i\n", x, y,
3 matches
Mail list logo