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)
279 os.unlink(tmp_od2)
454 if os.stat(f)[ST_SIZE] == 0 :
509 for path, subdirs, files in os.walk(d) :
512 yield os.path.join(path, name)
542 if os.path.islink(fn) :
552 if os.path.islink(fn) :
623 if os.path.exists(base + f) :
625 elif os.path.exists(base + "root_" + arch + "/" + f) :
631 if not os.path.exists(ptch + fn) :
634 if os.path.exists(ptch + f) :
636 elif os.path.exists(ptch + "root_" + arch + "/" + f) :
641 if os.path.islink(base + fn) : # ignore links
643 if os.path.islink(ptch + fn) :
653 if (os.path.islink(base + fn) and
654 os.path.islink(ptch + fn)) :
671 if os.path.exists(tool) :
677 if os.path.exists(location) :
681 if os.path.exists(location) :
764 if (d1 and d2 and os.path.isfile(d1 + genunix) and
765 os.path.isfile(d2 + genunix)):
812 tmpFile1 = tmpDir1 + os.path.basename(f1) + t.getName()
813 tmpFile2 = tmpDir2 + os.path.basename(f2) + t.getName()
863 os.system(cmd1)
864 os.system(cmd2)
870 os.unlink(tmpFile1)
874 os.unlink(tmpFile2)
1038 if os.path.isdir(dir1) > 0 :
1041 if os.path.isdir(dir2) > 0 :
1056 ArchTmpDir1 = tmpDir1 + os.path.basename(base) + t.getName()
1057 ArchTmpDir2 = tmpDir2 + os.path.basename(base) + t.getName()
1067 os.makedirs(ArchTmpDir1)
1072 os.makedirs(ArchTmpDir2)
1109 os.system(baseCmd)
1110 os.system(ptchCmd)
1162 if quiet and os.stat(base)[ST_SIZE] != os.stat(ptch)[ST_SIZE] :
1202 tmpFile1 = tmpDir1 + os.path.basename(base) + t.getName()
1203 tmpFile2 = tmpDir2 + os.path.basename(ptch) + t.getName()
1220 os.system(baseCmd)
1221 os.system(ptchCmd)
1246 os.unlink(tmpFile1)
1250 os.unlink(tmpFile2)
1347 if os.path.isdir(tmpDir1) > 0 :
1350 if os.path.isdir(tmpDir2) > 0 :
1435 src = os.environ['SRC']
1474 if not os.path.exists(baseRoot) :
1478 if not os.path.exists(ptchRoot) :
1493 pid = os.getpid()
1497 os.makedirs(tmpDir1)
1501 os.makedirs(tmpDir2)
1551 max_threads = int(os.environ['DMAKE_MAX_JOBS'])
1553 max_threads = os.sysconf("SC_NPROCESSORS_ONLN")