OSDN Git Service

Update the "adding a syscall" docs.
authorElliott Hughes <enh@google.com>
Thu, 26 May 2016 20:55:37 +0000 (13:55 -0700)
committerElliott Hughes <enh@google.com>
Thu, 26 May 2016 20:55:37 +0000 (13:55 -0700)
Change-Id: I78adafb1c1c491f641a82a02ad7f03cd3f8c7d1e

README.md

index c6b9278..7fd903a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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