Lines Matching refs:os

74 import datetime, fnmatch, getopt, os, profile, io, subprocess
126 status = os.system("{ " + cmd + "; } >" +
128 returncode = os.WEXITSTATUS(status)
129 with os.fdopen(f, "r") as tfile:
131 os.unlink(fpath)
256 os.system(cmd)
258 os.system(cmd)
268 os.unlink(tmp_od1)
272 os.unlink(tmp_od2)
423 if os.stat(f)[ST_SIZE] == 0 :
478 for path, subdirs, files in os.walk(d) :
481 yield os.path.join(path, name)
511 if os.path.islink(fn) :
521 if os.path.islink(fn) :
592 if os.path.exists(base + f) :
594 elif os.path.exists(base + "root_" + arch + "/" + f) :
600 if not os.path.exists(ptch + fn) :
603 if os.path.exists(ptch + f) :
605 elif os.path.exists(ptch + "root_" + arch + "/" + f) :
610 if os.path.islink(base + fn) : # ignore links
612 if os.path.islink(ptch + fn) :
622 if (os.path.islink(base + fn) and
623 os.path.islink(ptch + fn)) :
640 if os.path.exists(tool) :
646 if os.path.exists(location) :
650 if os.path.exists(location) :
723 tmpFile1 = tmpDir1 + os.path.basename(f1) + t.getName()
724 tmpFile2 = tmpDir2 + os.path.basename(f2) + t.getName()
767 os.system(cmd1)
768 os.system(cmd2)
774 os.unlink(tmpFile1)
778 os.unlink(tmpFile2)
930 if os.path.isdir(dir1) > 0 :
933 if os.path.isdir(dir2) > 0 :
948 ArchTmpDir1 = tmpDir1 + os.path.basename(base) + t.getName()
949 ArchTmpDir2 = tmpDir2 + os.path.basename(base) + t.getName()
959 os.makedirs(ArchTmpDir1)
964 os.makedirs(ArchTmpDir2)
1001 os.system(baseCmd)
1002 os.system(ptchCmd)
1054 if quiet and os.stat(base)[ST_SIZE] != os.stat(ptch)[ST_SIZE] :
1094 tmpFile1 = tmpDir1 + os.path.basename(base) + t.getName()
1095 tmpFile2 = tmpDir2 + os.path.basename(ptch) + t.getName()
1112 os.system(baseCmd)
1113 os.system(ptchCmd)
1138 os.unlink(tmpFile1)
1142 os.unlink(tmpFile2)
1238 if os.path.isdir(tmpDir1) > 0 :
1241 if os.path.isdir(tmpDir2) > 0 :
1324 src = os.environ['SRC']
1360 if not os.path.exists(baseRoot) :
1364 if not os.path.exists(ptchRoot) :
1379 pid = os.getpid()
1383 os.makedirs(tmpDir1)
1387 os.makedirs(tmpDir2)
1437 max_threads = int(os.environ['DMAKE_MAX_JOBS'])
1439 max_threads = os.sysconf("SC_NPROCESSORS_ONLN")