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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 "posix/alarm.c", | 84 "posix/alarm.c", |
85 "posix/getpid.c", | 85 "posix/getpid.c", |
86 "posix/glob.c", | 86 "posix/glob.c", |
87 "posix/pread.c", | 87 "posix/pread.c", |
88 "posix/pwrite.c", | 88 "posix/pwrite.c", |
89 "posix/vfork.c", | 89 "posix/vfork.c", |
90 "posix/wait.c", | 90 "posix/wait.c", |
91 "posix/waitid.c", | 91 "posix/waitid.c", |
92 "posix/waitpid.c", | 92 "posix/waitpid.c", |
93 "signal/sigaction.c", | 93 "signal/sigaction.c", |
94 "socket/accept.c", | 94 # "socket/accept.c", |
pasko-google - do not use
2012/04/13 08:44:26
commenting code is not a good way forward, just re
| |
95 "socket/bind.c", | 95 # "socket/bind.c", |
96 "socket/connect.c", | 96 # "socket/connect.c", |
97 "socket/getpeername.c", | 97 # "socket/getpeername.c", |
98 "socket/getsockname.c", | 98 # "socket/getsockname.c", |
99 "socket/getsockopt.c", | 99 # "socket/getsockopt.c", |
100 "socket/listen.c", | 100 # "socket/listen.c", |
101 "socket/recv.c", | 101 # "socket/recv.c", |
102 "socket/recvfrom.c", | 102 # "socket/recvfrom.c", |
103 "socket/recvmsg.c", | 103 # "socket/recvmsg.c", |
104 "socket/send.c", | 104 # "socket/send.c", |
105 "socket/sendmsg.c", | 105 # "socket/sendmsg.c", |
106 "socket/sendto.c", | 106 # "socket/sendto.c", |
107 "socket/setsockopt.c", | 107 # "socket/setsockopt.c", |
108 "socket/shutdown.c", | 108 # "socket/shutdown.c", |
109 "socket/socket.c", | 109 # "socket/socket.c", |
110 "socket/socketpair.c", | 110 # "socket/socketpair.c", |
111 "stdio-common/tmpfile.c", | 111 "stdio-common/tmpfile.c", |
112 "stdlib/add_n.c", | 112 "stdlib/add_n.c", |
113 "stdlib/addmul_1.c", | 113 "stdlib/addmul_1.c", |
114 "stdlib/getcontext.c", | 114 "stdlib/getcontext.c", |
115 "stdlib/lshift.c", | 115 "stdlib/lshift.c", |
116 "stdlib/makecontext.c", | 116 "stdlib/makecontext.c", |
117 "stdlib/mul_1.c", | 117 "stdlib/mul_1.c", |
118 "stdlib/rshift.c", | 118 "stdlib/rshift.c", |
119 "stdlib/setcontext.c", | 119 "stdlib/setcontext.c", |
120 "stdlib/sub_n.c", | 120 "stdlib/sub_n.c", |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
271 | 271 |
272 def main(args): | 272 def main(args): |
273 generator = RuleGenerator(args) | 273 generator = RuleGenerator(args) |
274 generator.scan_sysdirs() | 274 generator.scan_sysdirs() |
275 generator.put_override_warnings(sys.stdout) | 275 generator.put_override_warnings(sys.stdout) |
276 generator.put_rules(sys.stdout) | 276 generator.put_rules(sys.stdout) |
277 | 277 |
278 | 278 |
279 if __name__ == "__main__": | 279 if __name__ == "__main__": |
280 main(sys.argv[1:]) | 280 main(sys.argv[1:]) |
OLD | NEW |