/external/autotest/client/profilers/powertop/src/ |
usb.c | 40 char filename[PATH_MAX]; local 49 sprintf(filename, "/sys/bus/usb/devices/%s/power/autosuspend", dirent->d_name); 50 file = fopen(filename, "w"); 55 sprintf(filename, "/sys/bus/usb/devices/%s/power/level", dirent->d_name); 56 file = fopen(filename, "w"); 71 char filename[PATH_MAX]; local 83 sprintf(filename, "/sys/bus/usb/devices/%s/power/autosuspend", dirent->d_name); 84 file = fopen(filename, "r"); 98 sprintf(filename, "/sys/bus/usb/devices/%s/power/level", dirent->d_name); 99 file = fopen(filename, "r") [all...] |
/external/icu/icu4c/source/tools/genrb/ |
rbutil.c | 31 const char *filename) 33 const char *lastSlash = uprv_strrchr(filename, U_FILE_SEP_CHAR) + 1; 35 if(lastSlash>filename) { 36 uprv_strncpy(dirname, filename, (lastSlash - filename)); 37 *(dirname + (lastSlash - filename)) = '\0'; 46 const char *filename) 49 const char *lastSlash = uprv_strrchr(filename, U_FILE_SEP_CHAR) + 1; 52 if(lastSlash>filename) { 55 uprv_strcpy(basename, filename); [all...] |
/external/perf_data_converter/src/quipper/ |
perf_protobuf_io.cc | 15 bool SerializeFromFile(const string& filename, PerfDataProto* perf_data_proto) { 16 return SerializeFromFileWithOptions(filename, PerfParserOptions(), 20 bool SerializeFromFileWithOptions(const string& filename, 24 if (!reader.ReadFile(filename)) return false; 37 const string& filename) { 39 return reader.Deserialize(perf_data_proto) && reader.WriteFile(filename); 43 const string& filename) { 47 return BufferToFile(filename, output); 51 const string& filename) { 53 if (!FileToBuffer(filename, &buffer)) return false [all...] |
/external/v8/tools/testrunner/server/ |
signatures.py | 34 def ReadFileAndSignature(filename): 35 with open(filename, "rb") as f: 37 signature_file = filename + ".signature" 39 os.path.getmtime(signature_file) < os.path.getmtime(filename)): 42 (signature_file, private_key, filename), 50 def VerifySignature(filename, file_contents, signature, pubkeyfile): 51 with open(filename, "wb") as f: 53 signature_file = filename + ".foreign_signature" 57 (pubkeyfile, signature_file, filename), 62 os.remove(filename) [all...] |
/prebuilts/jdk/jdk8/darwin-x86/sample/dtrace/helpers/ |
dtrace_helper.d | 71 self->filename = arg0; 76 /self->filename && basename(copyinstr(self->filename)) == "libjvm.so"/ 78 printf(" loaded %s\n", basename(copyinstr(self->filename))); 79 self->filename = 0;
|
/toolchain/binutils/binutils-2.27/libiberty/ |
lrealpath.c | 28 version of the filename. Symlinks will be resolved, and ``.'' and ``..'' 76 lrealpath (const char *filename) 78 /* Method 1: The system has a compile time upper bound on a filename 85 const char *rp = realpath (filename, buf); 87 rp = filename; 97 char *rp = canonicalize_file_name (filename); 99 return strdup (filename); 123 rp = realpath (filename, buf); 124 ret = strdup (rp ? rp : filename); 141 DWORD len = GetFullPathName (filename, MAX_PATH, buf, &basename) [all...] |
/external/ltp/testcases/kernel/security/tomoyo/ |
tomoyo_new_file_test.c | 101 char *filename = ""; local 239 filename = "/tmp/mknod_fifo_test"; 240 show_result(mknod(filename, S_IFIFO | 0644, 0), 1); 242 unlink2(filename); 243 show_result(mknod(filename, S_IFIFO | 0644, 0), 0); 247 filename = "/dev/null"; 248 stat(filename, &sbuf); 249 snprintf(pbuffer, sizeof(pbuffer) - 1, "allow_write %s", filename); 252 fd = open(filename, O_WRONLY); 257 fd = open(filename, O_WRONLY) [all...] |
/external/doclava/src/com/google/doclava/ |
DocFile.java | 31 public static String readFile(String filename) { 33 File f = new File(filename); 58 public static String getPathRoot(String filename) { 62 int langStart = filename.indexOf("/" + t + "/"); 64 int langEnd = filename.indexOf("/", langStart + 1); 65 filename = filename.substring(langEnd + 1); 69 return filename; 183 String filename = outfile; local 187 filename = filename.replaceFirst("^en/", "") [all...] |
/bionic/tests/ |
TemporaryFile.h | 42 unlink(filename); 47 fd = open(filename, O_RDWR); 51 char filename[1024]; member in class:GenericTemporaryFile 57 snprintf(filename, sizeof(filename), "%s/TemporaryFile-XXXXXX", tmp_dir); 58 fd = mk_fn(filename);
|
/build/kati/ |
file.cc | 29 Makefile::Makefile(const string& filename) 30 : mtime_(0), filename_(filename), exists_(false) { 31 int fd = open(filename.c_str(), O_RDONLY); 38 PERROR("fstat failed for %s", filename.c_str()); 48 PERROR("read failed for %s", filename.c_str()); 53 PERROR("close failed for %s", filename.c_str());
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/ |
eptags.py | 24 def treat_file(filename, outfp):
25 """Append tags found in file named 'filename' to the open file 'outfp'"""
27 fp = open(filename, 'r')
29 sys.stderr.write('Cannot open %s\n'%filename)
46 outfp.write('\f\n%s,%d\n' % (filename,size))
52 for filename in sys.argv[1:]:
53 treat_file(filename, outfp)
|
/external/eigen/scripts/ |
relicense.py | 55 print 'SKIPPED', filename 57 filename = os.path.join(root, basename) 58 fo = file(filename) 64 fo = file(filename, "w") 67 print 'UPDATED', filename 69 print ' ', filename
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/wiki_samples/ |
TestFileToken.java | 38 private final String filename; field in class:TestFileToken 40 public TestFileToken(String filename) { 41 this.filename = filename; 43 try (InputStream i = getClass().getResourceAsStream("TestFile.java"); OutputStream o = new FileOutputStream(filename)) { 55 boolean deleted = new File(filename).delete();
|
/external/ltp/testcases/kernel/syscalls/dup/ |
dup01.c | 126 char filename[255]; variable 149 filename, TEST_ERRNO, strerror(TEST_ERRNO)); 152 filename, TEST_RETURN); 174 sprintf(filename, "dupfile"); 175 if ((fd = open(filename, O_RDWR | O_CREAT, 0700)) == -1) 183 tst_resm(TWARN | TERRNO, "closing %s failed", filename);
|
/external/ltp/testcases/kernel/syscalls/listxattr/ |
listxattr03.c | 43 static const char * const filename[] = {"testfile1", "testfile2"}; variable 57 const char *name = filename[n]; 73 SAFE_TOUCH(filename[0], 0644, NULL); 75 SAFE_TOUCH(filename[1], 0644, NULL); 77 SAFE_SETXATTR(filename[1], SECURITY_KEY, VALUE, VALUE_SIZE, XATTR_CREATE); 84 .tcnt = ARRAY_SIZE(filename),
|
/external/ltp/testcases/kernel/syscalls/llistxattr/ |
llistxattr03.c | 42 static const char *filename[] = {"testfile1", "testfile2"}; variable 56 const char *name = filename[n]; 72 SAFE_TOUCH(filename[0], 0644, NULL); 74 SAFE_TOUCH(filename[1], 0644, NULL); 76 SAFE_LSETXATTR(filename[1], SECURITY_KEY, VALUE, VALUE_SIZE, XATTR_CREATE); 83 .tcnt = ARRAY_SIZE(filename),
|
/external/python/cpython2/Tools/scripts/ |
eptags.py | 24 def treat_file(filename, outfp): 25 """Append tags found in file named 'filename' to the open file 'outfp'""" 27 fp = open(filename, 'r') 29 sys.stderr.write('Cannot open %s\n'%filename) 46 outfp.write('\f\n%s,%d\n' % (filename,size)) 52 for filename in sys.argv[1:]: 53 treat_file(filename, outfp)
|
/external/python/cpython3/Tools/scripts/ |
eptags.py | 24 def treat_file(filename, outfp): 25 """Append tags found in file named 'filename' to the open file 'outfp'""" 27 fp = open(filename, 'r') 29 sys.stderr.write('Cannot open %s\n'%filename) 46 outfp.write('\f\n%s,%d\n' % (filename,size)) 52 for filename in sys.argv[1:]: 53 treat_file(filename, outfp)
|
/external/tensorflow/tensorflow/core/platform/posix/ |
load_library.cc | 44 string filename; local 47 filename = "lib" + name + ".dylib"; 49 filename = "lib" + name + "." + version + ".dylib"; 53 filename = "lib" + name + ".so"; 55 filename = "lib" + name + ".so" + "." + version; 58 return filename;
|
/external/expat/xmlwf/ |
xmlfile.c | 80 processStream(const XML_Char *filename, XML_Parser parser); 83 reportError(XML_Parser parser, const XML_Char *filename) 93 filename, 98 ftprintf(stderr, T("%s: (unknown message %d)\n"), filename, code); 104 const XML_Char *filename, void *args) 109 reportError(parser, filename); 165 const XML_Char *filename; local 171 filename = resolveSystemId(base, systemId, &s); 172 XML_SetBase(entParser, filename); 173 filemapRes = filemap(filename, processFile, &args) 242 const XML_Char *filename; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
codeop.py | 4 function compile(), which take program text, a filename and a 'mode'
39 compile_command(source, filename, symbol):
68 def _maybe_compile(compiler, source, filename, symbol):
82 code = compiler(source, filename, symbol)
87 code1 = compiler(source + "\n", filename, symbol)
92 code2 = compiler(source + "\n\n", filename, symbol)
101 def _compile(source, filename, symbol):
102 return compile(source, filename, symbol, PyCF_DONT_IMPLY_DEDENT)
104 def compile_command(source, filename="<input>", symbol="single"):
110 filename -- optional filename from which source was read; default [all...] |
whichdb.py | 17 def whichdb(filename):
32 f = open(filename + os.extsep + "pag", "rb")
36 f = open(filename + os.extsep + "dir", "rb")
43 f = open(filename + os.extsep + "db", "rb")
49 d = dbm.open(filename)
58 os.stat(filename + os.extsep + "dat")
59 size = os.stat(filename + os.extsep + "dir").st_size
63 f = open(filename + os.extsep + "dir", "rb")
74 f = open(filename, "rb")
116 for filename in sys.argv[1:]: [all...] |
/external/honggfuzz/examples/badcode/targets/ |
badcode1.c | 4 int output(char * filename) 9 if((fp = fopen(filename, "r")) == NULL) { 10 printf("Cannot open file %s.\n", filename);
|
/external/llvm/utils/lint/ |
generic_lint.py | 12 def RunOnFile(self, filename, lines): 13 common_lint.VerifyLineLength(filename, lines, 15 common_lint.VerifyTrailingWhitespace(filename, lines)
|
/external/ltp/testcases/network/stress/ftp/ |
ftp-upload-stress01-rmt | 30 filename="$3" 37 rm -f $filename 46 echo -n "A" > $filename 47 echo -n "Z" | dd of=$filename bs=1 seek=$(($filesize - 1)) > /dev/null 2>&1 || \ 48 tst_brkm TBROK "Failed to create $filename" 50 out=$(curl --noproxy '*' -sS -u anonymous:ftp@ltp-ns.org -T $filename \
|