Lines Matching refs:os
78 import datetime, fnmatch, getopt, os, profile, io, subprocess
123 status = os.system("{ " + cmd + "; } >" +
125 returncode = os.WEXITSTATUS(status)
126 with os.fdopen(f, mode="r", errors="ignore") as tfile:
128 os.unlink(fpath)
254 os.system(cmd)
256 os.system(cmd)
275 os.unlink(tmp_od1)
276 os.unlink(tmp_od2)
307 len(os.path.commonprefix([fn, baseWsRoot])) == len(baseWsRoot)):
311 len(os.path.commonprefix([fn, ptchWsRoot])) == len(ptchWsRoot)):
334 if os.path.isfile(os.path.join(root, genunix)):
336 root = os.path.dirname(root)
469 if os.stat(f)[ST_SIZE] == 0 :
524 for path, subdirs, files in os.walk(d) :
527 yield os.path.join(path, name)
557 if os.path.islink(fn) :
567 if os.path.islink(fn) :
638 if os.path.exists(base + f) :
640 elif os.path.exists(base + "root_" + arch + "/" + f) :
646 if not os.path.exists(ptch + fn) :
649 if os.path.exists(ptch + f) :
651 elif os.path.exists(ptch + "root_" + arch + "/" + f) :
656 if os.path.islink(base + fn) : # ignore links
658 if os.path.islink(ptch + fn) :
668 if (os.path.islink(base + fn) and
669 os.path.islink(ptch + fn)) :
686 if os.path.exists(tool) :
692 if os.path.exists(location) :
696 if os.path.exists(location) :
778 os.path.isfile(os.path.join(baseWsRoot, genunix)) and
779 os.path.isfile(os.path.join(ptchWsRoot, genunix))):
780 diff_ctf.genunix1 = os.path.join(baseWsRoot, genunix)
781 diff_ctf.genunix2 = os.path.join(ptchWsRoot, genunix)
826 tmpFile1 = tmpDir1 + os.path.basename(f1) + t.name
827 tmpFile2 = tmpDir2 + os.path.basename(f2) + t.name
878 os.system(cmd1)
879 os.system(cmd2)
885 os.unlink(tmpFile1)
886 os.unlink(tmpFile2)
1050 if os.path.isdir(dir1) > 0 :
1053 if os.path.isdir(dir2) > 0 :
1068 ArchTmpDir1 = tmpDir1 + os.path.basename(base) + t.name
1069 ArchTmpDir2 = tmpDir2 + os.path.basename(base) + t.name
1079 os.makedirs(ArchTmpDir1)
1080 os.makedirs(ArchTmpDir2)
1117 os.system(baseCmd)
1118 os.system(ptchCmd)
1170 if quiet and os.stat(base)[ST_SIZE] != os.stat(ptch)[ST_SIZE] :
1210 tmpFile1 = tmpDir1 + os.path.basename(base) + t.name
1211 tmpFile2 = tmpDir2 + os.path.basename(ptch) + t.name
1228 os.system(baseCmd)
1229 os.system(ptchCmd)
1254 os.unlink(tmpFile1)
1255 os.unlink(tmpFile2)
1352 if os.path.isdir(tmpDir1) > 0 :
1355 if os.path.isdir(tmpDir2) > 0 :
1440 src = os.environ['SRC']
1473 baseRoot = os.path.abspath(baseRoot) + os.sep
1474 ptchRoot = os.path.abspath(ptchRoot) + os.sep
1476 if not os.path.exists(baseRoot) :
1480 if not os.path.exists(ptchRoot) :
1504 pid = os.getpid()
1508 os.makedirs(tmpDir1)
1509 os.makedirs(tmpDir2)
1559 max_threads = int(os.environ['DMAKE_MAX_JOBS'])
1561 max_threads = os.sysconf("SC_NPROCESSORS_ONLN")