testmycall.c (new user space source file to be created)

Implementing a System Call on Linux 2.6 for i386
Prev |  | Next

# 15. testmycall.c (new user space source file to be created)

testmycall.c

1. Create a C file called testmycall.c in the same directory as testmycall.h. The C file will look like:

/*---Start of C file------*/

#include<stdio.h>

#include "testmycall.h"

int main(void)

{

printf("%d\n", mycall(15));

}

/*---End of C file------*/

Prev | Home | Next
testmycall.h (new user space header file to be created) |  | _syscallN macro