Lines Matching refs:self
384 def __init__(self): argument
385 self.old_stubs = []
386 self.new_stubs = []
387 self.other_files = []
388 self.syscalls = []
391 def process_file(self, input): argument
394 self.syscalls = parser.syscalls
397 for syscall in self.syscalls:
426 def scan_linux_unistd_h(self, fp, path): argument
437 def gen_glibc_syscalls_h(self): argument
447 self.scan_linux_unistd_h(glibc_fp, bionic_libc_root + "/kernel/uapi/asm-generic/unistd.h")
449 self.scan_linux_unistd_h(glibc_fp, bionic_libc_root + "/kernel/uapi/asm-arm/asm/unistd.h")
451 self.scan_linux_unistd_h(glibc_fp, bionic_libc_root + "/kernel/uapi/asm-mips/asm/unistd.h")
453 … self.scan_linux_unistd_h(glibc_fp, bionic_libc_root + "/kernel/uapi/asm-x86/asm/unistd_32.h")
455 … self.scan_linux_unistd_h(glibc_fp, bionic_libc_root + "/kernel/uapi/asm-x86/asm/unistd_64.h")
460 self.other_files.append(glibc_syscalls_h_path)
464 def gen_syscall_stubs(self): argument
465 for syscall in self.syscalls:
473 self.new_stubs.append(filename)
476 def regenerate(self): argument
486 self.old_stubs.append(f[bionic_libc_root_len:])
488 D("found %d stub files" % len(self.old_stubs))
496 self.gen_glibc_syscalls_h()
497 self.gen_syscall_stubs()
503 for stub in self.new_stubs + self.other_files:
515 for stub in self.old_stubs:
516 if not stub in self.new_stubs: