Merge "Update the "adding a syscall" docs."

This commit is contained in:
Treehugger Robot 2016-05-26 21:41:20 +00:00 committed by Gerrit Code Review
commit fdedd86070
1 changed files with 6 additions and 3 deletions

View File

@ -153,10 +153,13 @@ Adding a system call usually involves:
the appropriate POSIX header file in libc/include/ includes the
relevant file or files.
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
and have the right declaration in the header file. (And strace(1) can
confirm that the correct system call is being made.)
and have the right declaration in the header file, and that you correctly
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