summaryrefslogtreecommitdiff
path: root/libc/kernel/tools/update_all.py
diff options
context:
space:
mode:
Diffstat (limited to 'libc/kernel/tools/update_all.py')
-rwxr-xr-xlibc/kernel/tools/update_all.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/kernel/tools/update_all.py b/libc/kernel/tools/update_all.py
index 9d5b02dee..cef24dd4c 100755
--- a/libc/kernel/tools/update_all.py
+++ b/libc/kernel/tools/update_all.py
@@ -110,7 +110,9 @@ def GenerateGlibcSyscallsHeader(updater):
content += ' #define SYS_%s %s\n' % (syscall, nr_name)
content += '#endif\n'
- updater.editFile('%s/include/bits/glibc-syscalls.h' % libc_root, content)
+ syscall_file = os.path.join(libc_root, 'include/bits/glibc-syscalls.h')
+ updater.readFile(syscall_file)
+ updater.editFile(syscall_file, content)
try: