/external/linux-kselftest/tools/testing/selftests/rcutorture/bin/ |
parse-torture.sh | 4 # The "file" is a pathname on the local system, and "title" is 7 # The file must contain torture output, but can be interspersed 10 # Usage: parse-torture.sh file title 31 file="$1" 38 # check for presence of torture output file. 40 if test -f "$file" -a -r "$file" 44 echo $title unreadable torture output file: $file 50 if grep -q FAILURE $file || grep -q -e '-torture.*!!!' $fil [all...] |
/external/python/cpython2/Tools/scripts/ |
xxci.py | 22 for file in os.listdir(os.curdir): 23 if not skipfile(file): 24 list.append((getmtime(file), file)) 31 for mtime, file in list: args.append(file) 34 def getmtime(file): 36 st = os.stat(file) 60 def skipfile(file): 62 if fnmatch.fnmatch(file, p): return [all...] |
/external/syslinux/gpxe/src/core/ |
posix_io.c | 30 /** @file 39 /** An open file */ 45 /** File descriptor */ 56 /** File size */ 66 * Free open file 71 struct posix_file *file = local 76 list_for_each_entry_safe ( iobuf, tmp, &file->data, list ) { 80 free ( file ); 84 * Terminate file data transfer 86 * @v file POSIX fil 102 struct posix_file *file = local 120 struct posix_file *file = local 156 struct posix_file *file; local 188 struct posix_file *file; local 242 struct posix_file *file; local 278 struct posix_file *file; local 324 struct posix_file *file; local 341 struct posix_file *file; local [all...] |
/external/syslinux/core/fs/ |
readdir.c | 14 struct file *file; local 20 file = handle_to_file(rv); 22 if (file->inode->mode != DT_DIR) { 23 _close_file(file); 27 return (DIR *)file; 36 struct file *dd_dir = (struct file *)dir; 53 struct file *dd_dir = (struct file *)dir [all...] |
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/ |
remove.c | 1 /** @file
57 remove(const char *file)
61 _DIAGASSERT(file != NULL);
63 if (lstat(file, &sb) < 0)
67 * The file system may prohibit using unlink(2) on directories,
71 return (rmdir(file));
73 return (unlink(file));
|
/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/ |
RandomAccessFileInputStreamFactory.java | 4 // you may not use this file except in compliance with the License. 17 import java.io.File; 28 * Argument for {@link RandomAccessFileInputStream#RandomAccessFileInputStream(File, long, long)}. 30 private final File file; field in class:RandomAccessFileInputStreamFactory 33 * Argument for {@link RandomAccessFileInputStream#RandomAccessFileInputStream(File, long, long)}. 38 * Argument for {@link RandomAccessFileInputStream#RandomAccessFileInputStream(File, long, long)}. 45 * @param file the file to use in {@link #newStream()} 49 public RandomAccessFileInputStreamFactory(File file, long rangeOffset, long rangeLength) [all...] |
/external/pcre/dist2/ |
Detrail | 6 # This subroutine does the work for one file. 9 my($file) = $_[0]; 11 open(IN, "$file") || die "Can't open $file for input"; 24 open(OUT, ">$file") || die "Can't open $file for output";
|
/external/swiftshader/src/OpenGL/compiler/preprocessor/ |
SourceLocation.h | 4 // you may not use this file except in compliance with the License. 23 SourceLocation() : file(0), line(0) {} 24 SourceLocation(int f, int l) : file(f), line(l) {} 28 return (file == other.file) && (line == other.line); 31 int file; member in struct:pp::SourceLocation
|
/prebuilts/go/darwin-x86/test/ |
errchk | 4 # license that can be found in the LICENSE file. 35 @file = @ARGV[$_+1 .. @ARGV-1]; 42 unless(@file) { 45 @file = glob($ARGV[$_] . "/*.go"); 51 foreach $file (@file) { 52 open(SRC, $file) || die "BUG: errchk: open $file: $!"; 53 $src{$file} = [<SRC>]; 96 my $file = shift [all...] |
/prebuilts/go/linux-x86/test/ |
errchk | 4 # license that can be found in the LICENSE file. 35 @file = @ARGV[$_+1 .. @ARGV-1]; 42 unless(@file) { 45 @file = glob($ARGV[$_] . "/*.go"); 51 foreach $file (@file) { 52 open(SRC, $file) || die "BUG: errchk: open $file: $!"; 53 $src{$file} = [<SRC>]; 96 my $file = shift [all...] |
/toolchain/binutils/binutils-2.27/gold/testsuite/ |
script_test_14.sh | 8 # This file is part of gold. 25 file="script_test_14.stdout" 31 found=`fgrep "Contents of section $section:" -A1 $file | tail -n 1` 33 echo "Section \"$section\" not found in file $file" 36 cat "$file" 45 cat "$file"
|
/external/deqp/scripts/src_util/ |
check_license.py | 10 # you may not use this file except in compliance with the License. 33 # \note Defined this way to avoid triggering license check error on this file 40 def readFile (file): 41 f = open(file, 'rb') 46 def getFileLicense (file): 47 contents = readFile(file) 59 def checkFileLicense (file): 60 license = getFileLicense(file) 63 print "%s: contains MIT license" % file 65 print "%s: contains multiple licenses" % file [all...] |
/external/libopus/celt/dump_modes/ |
dump_modes_arm_ne10.c | 48 static FILE *file; variable 54 file = fopen(ARM_NE10_ARCH_FILE_NAME, "w"); 55 fprintf(file, "/* The contents of this file was automatically generated by\n"); 56 fprintf(file, " * dump_mode_arm_ne10.c with arguments:"); 60 fprintf(file, " %d %d",mode->Fs,mode->shortMdctSize*mode->nbShortMdcts); 62 fprintf(file, "\n * It contains static definitions for some pre-defined modes. */\n"); 63 fprintf(file, "#include <NE10_types.h>\n\n"); 68 fclose(file); [all...] |
/external/libchrome/base/third_party/dynamic_annotations/ |
dynamic_annotations.c | 32 # error "This file should be built as pure C to avoid name mangling" 74 const char *file, int line, const volatile void *lock) 78 const char *file, int line, const volatile void *lock) 82 const char *file, int line, const volatile void *lock, long is_w) 86 const char *file, int line, const volatile void *lock, long is_w) 90 const char *file, int line, const volatile void *barrier, long count, 95 const char *file, int line, const volatile void *barrier) 99 const char *file, int line, const volatile void *barrier) 103 const char *file, int line, const volatile void *barrier) 107 const char *file, int line, const volatile void *cv [all...] |
/libcore/ojluni/src/test/java/nio/file/attribute/ |
PosixFileAttributeViewTest.java | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 12 * version 2 for more details (a copy is included in the LICENSE file that 26 * @summary Unit test for java.nio.file.attribute.PosixFileAttributeView 30 // jdk/test/java/nio/file/attribute/PosixFileAttributeView/Basic.java 32 package test.java.nio.file.attribute; 34 import test.java.nio.file.TestUtil; 36 import java.nio.file.*; 37 import static java.nio.file.LinkOption.*; 38 import java.nio.file.attribute.*; 54 static void testPermissions(Path file, String mode) throws IOException 137 Path file = dir.resolve("foo"); local 208 Path file = dir.resolve("foo"); local 244 Path file = dir.resolve("gus"); local [all...] |
/external/boringssl/src/crypto/ |
thread.c | 63 const char *file, int line)) {} 66 const char *file, int line) { 71 const char *file, int line)) {} 88 *dyn_create_function)(const char *file, int line)) {} 91 int mode, struct CRYPTO_dynlock_value *l, const char *file, int line)) {} 94 struct CRYPTO_dynlock_value *l, const char *file, int line)) {} 97 const char *file, int line) { 103 const char *file, int line) { 108 struct CRYPTO_dynlock_value *l, const char *file, int line) {
|
/external/clang/utils/TestUtils/ |
pch-test.pl | 5 # compilable Clang test and build a PCH file from that test, then read 6 # and dump the contents of the PCH file just created. 18 foreach $file (@files) { 19 chomp($file); 20 my $code = system("clang -fsyntax-only -x $language $file > /dev/null 2>&1"); 23 $code = system("clang -cc1 -emit-pch -x $language -o $file.pch $file > /dev/null 2>&1"); 25 $code = system("clang -cc1 -include-pch $file.pch -x $language -ast-dump /dev/null > /dev/null 2>&1"); 31 print("\n---Failed to dump AST file for \"$file\"---\n") [all...] |
/external/libffi/src/ |
debug.c | 41 void ffi_assert(char *expr, char *file, int line) 43 fprintf(stderr, "ASSERTION FAILURE: %s at %s:%d\n", expr, file, line); 50 void ffi_type_test(ffi_type *a, char *file, int line) 52 FFI_ASSERT_AT(a != NULL, file, line); 54 FFI_ASSERT_AT(a->type <= FFI_TYPE_LAST, file, line); 55 FFI_ASSERT_AT(a->type == FFI_TYPE_VOID || a->size > 0, file, line); 56 FFI_ASSERT_AT(a->type == FFI_TYPE_VOID || a->alignment > 0, file, line); 58 || a->elements != NULL, file, line); 62 file, line);
|
/external/proguard/src/proguard/io/ |
FileDataEntry.java | 28 * This <code>DataEntry</code> represents a file. 34 private final File directory; 35 private final File file; field in class:FileDataEntry 39 public FileDataEntry(File directory, 40 File file) 43 this.file = file; 51 // Chop the directory name from the file name and get the right separators [all...] |
/external/python/cpython3/Tools/freeze/ |
bkfile.py | 3 def open(file, mode='r', bufsize=-1): 5 return _orig_open(file, mode, bufsize) 7 backup = file + '~' 13 os.rename(file, backup) 15 return _orig_open(file, mode, bufsize) 16 f = _orig_open(file, mode, bufsize) 21 if filecmp.cmp(backup, file, shallow=False): 23 os.unlink(file) 24 os.rename(backup, file)
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
OpenRandomFileTest.java | 2 * contributor license agreements. See the NOTICE file distributed with 4 * The ASF licenses this file to You under the Apache License, Version 2.0 5 * (the "License"); you may not use this file except in compliance with 19 import java.io.File; 37 File file = File.createTempFile("test", "tmp"); local 38 assertTrue(file.exists()); 39 file.deleteOnExit(); 40 FileOutputStream fos = new FileOutputStream(file); 50 File file = File.createTempFile("test", "tmp"); local [all...] |
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/ |
FileSystemWriteTest.java | 5 * you may not use this file except in compliance with the License. 25 import java.io.File; 38 File file = new File("/data/misc/bluetooth/test.file"); local 39 Assert.assertTrue("File not created", file.createNewFile()); 40 file.delete(); 42 Assert.fail("Exception creating file /data/misc/bluetooth/test.file: " + e) 49 File file = new File("\/data\/misc\/bluedroid\/test.file"); local 60 File file = new File("\/data\/misc\/bluetooth\/logs\/test.file"); local [all...] |
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
MapItem.java | 5 * you may not use this file except in compliance with the License. 46 public void read(DexRandomAccessFile file) throws IOException { 47 type = file.readUShort(); 48 file.readUShort(); // Unused padding. 49 size = file.readUInt(); 51 offset = file.getOffsetTracker().getNewHeaderOffset(file.readUInt()); 53 offset = file.getOffsetTracker().getNewOffset(file.readUInt()); 58 public void write(DexRandomAccessFile file) throws IOException [all...] |
/dalvik/dx/src/com/android/dex/util/ |
FileUtils.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 24 * File I/O utilities. 31 * Reads the named file, translating {@link IOException} to a 34 * @param fileName {@code non-null;} name of the file to read 35 * @return {@code non-null;} contents of the file 38 File file = new File(fileName); local 39 return readFile(file); [all...] |
/external/autotest/client/profilers/powertop/src/ |
config.c | 4 * This file is part of PowerTOP 6 * This program file is free software; you can redistribute it and/or modify it 16 * along with this program in a file named COPYING; if not, write to the 41 FILE *file; local 47 file = popen("zcat /proc/config.gz 2> /dev/null", "r"); 48 while (file && !feof(file)) { 50 if (fgets(line, 100, file) == NULL) 54 pclose(file); [all...] |