| OLD | NEW |
| 1 | 1 |
| 2 # Generates the makefile "sysd-rules" given a list of sysdeps | 2 # Generates the makefile "sysd-rules" given a list of sysdeps |
| 3 # subdirectories (the sysdirs search path). For every basename that | 3 # subdirectories (the sysdirs search path). For every basename that |
| 4 # appears in the search path, e.g. "vfork", it picks the source file | 4 # appears in the search path, e.g. "vfork", it picks the source file |
| 5 # that appears first, e.g. "sysdeps/unix/sysv/linux/i386/vfork.S". | 5 # that appears first, e.g. "sysdeps/unix/sysv/linux/i386/vfork.S". |
| 6 | 6 |
| 7 # TODO(mseaborn): Handle check-inhibit-asm | 7 # TODO(mseaborn): Handle check-inhibit-asm |
| 8 # TODO(mseaborn): Handle rule for installing .h files | 8 # TODO(mseaborn): Handle rule for installing .h files |
| 9 | 9 |
| 10 import os | 10 import os |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 "nptl/pthread_spin_unlock.c", | 75 "nptl/pthread_spin_unlock.c", |
| 76 "nptl/sysdeps/unix/sysv/linux/ia64/pthread_once.c", | 76 "nptl/sysdeps/unix/sysv/linux/ia64/pthread_once.c", |
| 77 "nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c", | 77 "nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c", |
| 78 "nptl/sysdeps/unix/sysv/linux/lowlevellock.c", | 78 "nptl/sysdeps/unix/sysv/linux/lowlevellock.c", |
| 79 "nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c", | 79 "nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c", |
| 80 "nptl/sysdeps/unix/sysv/linux/sem_post.c", | 80 "nptl/sysdeps/unix/sysv/linux/sem_post.c", |
| 81 "nptl/sysdeps/unix/sysv/linux/sem_timedwait.c", | 81 "nptl/sysdeps/unix/sysv/linux/sem_timedwait.c", |
| 82 "nptl/sysdeps/unix/sysv/linux/sem_trywait.c", | 82 "nptl/sysdeps/unix/sysv/linux/sem_trywait.c", |
| 83 "nptl/sysdeps/unix/sysv/linux/sem_wait.c", | 83 "nptl/sysdeps/unix/sysv/linux/sem_wait.c", |
| 84 "posix/alarm.c", | 84 "posix/alarm.c", |
| 85 "posix/getegid.c", |
| 86 "posix/geteuid.c", |
| 87 "posix/getgid.c", |
| 85 "posix/getpid.c", | 88 "posix/getpid.c", |
| 89 "posix/getuid.c", |
| 86 "posix/glob.c", | 90 "posix/glob.c", |
| 87 "posix/pread.c", | 91 "posix/pread.c", |
| 88 "posix/pwrite.c", | 92 "posix/pwrite.c", |
| 89 "posix/vfork.c", | 93 "posix/vfork.c", |
| 90 "posix/wait.c", | 94 "posix/wait.c", |
| 91 "posix/waitid.c", | 95 "posix/waitid.c", |
| 92 "posix/waitpid.c", | 96 "posix/waitpid.c", |
| 93 "signal/sigaction.c", | 97 "signal/sigaction.c", |
| 94 "stdio-common/tmpfile.c", | 98 "stdio-common/tmpfile.c", |
| 95 "stdlib/add_n.c", | 99 "stdlib/add_n.c", |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 259 |
| 256 def main(args): | 260 def main(args): |
| 257 generator = RuleGenerator(args) | 261 generator = RuleGenerator(args) |
| 258 generator.scan_sysdirs() | 262 generator.scan_sysdirs() |
| 259 generator.put_override_warnings(sys.stdout) | 263 generator.put_override_warnings(sys.stdout) |
| 260 generator.put_rules(sys.stdout) | 264 generator.put_rules(sys.stdout) |
| 261 | 265 |
| 262 | 266 |
| 263 if __name__ == "__main__": | 267 if __name__ == "__main__": |
| 264 main(sys.argv[1:]) | 268 main(sys.argv[1:]) |
| OLD | NEW |