Merge "Update the "adding a syscall" docs."
This commit is contained in:
commit
fdedd86070
|
@ -153,10 +153,13 @@ Adding a system call usually involves:
|
||||||
the appropriate POSIX header file in libc/include/ includes the
|
the appropriate POSIX header file in libc/include/ includes the
|
||||||
relevant file or files.
|
relevant file or files.
|
||||||
4. Add function declarations to the appropriate header file.
|
4. Add function declarations to the appropriate header file.
|
||||||
5. Add at least basic tests. Even a test that deliberately supplies
|
5. Add the function name to the correct section in libc/libc.map.txt and
|
||||||
|
run `./libc/tools/genversion-scripts.py`.
|
||||||
|
6. Add at least basic tests. Even a test that deliberately supplies
|
||||||
an invalid argument helps check that we're generating the right symbol
|
an invalid argument helps check that we're generating the right symbol
|
||||||
and have the right declaration in the header file. (And strace(1) can
|
and have the right declaration in the header file, and that you correctly
|
||||||
confirm that the correct system call is being made.)
|
updated the maps in step 5. (You can use strace(1) to confirm that the
|
||||||
|
correct system call is being made.)
|
||||||
|
|
||||||
|
|
||||||
Updating kernel header files
|
Updating kernel header files
|
||||||
|
|
Loading…
Reference in New Issue