Lines Matching refs:os
12 import os.path
29 bionic_libc_root = os.path.join(os.path.dirname(os.path.abspath(__file__)),
37 path = os.path.abspath(path)
38 if not os.path.exists(path):
39 parent = os.path.dirname(path)
42 os.mkdir(path)
46 full_path = os.path.join(bionic_temp, relpath)
47 dir = os.path.dirname(full_path)
596 for line in open(os.path.join(bionic_libc_root, unistd_h)):
636 logging.info("scanning " + os.path.join(bionic_libc_root, arch_dir))
637 rel_path = os.path.join(arch_dir, "syscalls")
638 for file in os.listdir(os.path.join(bionic_libc_root, rel_path)):
640 self.old_stubs.append(os.path.join(rel_path, file))
644 if not os.path.exists(bionic_temp):
658 tmp_file = os.path.join(bionic_temp, stub)
659 libc_file = os.path.join(bionic_libc_root, stub)
660 if not os.path.exists(libc_file):
674 deletes.append(os.path.join(bionic_libc_root, stub))
683 shutil.copyfile(os.path.join(bionic_temp, file),
684 os.path.join(bionic_libc_root, file))
685 …commands.getoutput("git add " + " ".join((os.path.join(bionic_libc_root, file)) for file in edits))
687 commands.getoutput("git add %s" % (os.path.join(bionic_libc_root, "SYSCALLS.TXT")))
698 state.process_file(os.path.join(bionic_libc_root, "SYSCALLS.TXT"))