/external/ltp/utils/ffsb-6.0-rc2/ |
D | fileops.c | 79 static uint64_t get_random_offset(randdata_t * rd, uint64_t filesize, in get_random_offset() argument 83 return getllrandom(rd, filesize); in get_random_offset() 85 filesize /= 4096; in get_random_offset() 86 return getllrandom(rd, filesize) * 4096; in get_random_offset() 95 uint64_t filesize; in ffsb_readfile() local 110 filesize = ffsb_get_filesize(curfile->name); in ffsb_readfile() 112 assert(filesize >= read_size); in ffsb_readfile() 116 uint64_t range = filesize - read_size; in ffsb_readfile() 136 if (minfilesize > filesize) { in ffsb_readfile() 141 read_skipsize, read_blocksize, filesize); in ffsb_readfile() [all …]
|
/external/skia/src/utils/win/ |
D | SkDWriteFontFileStream.cpp | 39 size_t fileSize = this->getLength(); in read() local 41 if (fPos + size > fileSize) { in read() 42 size_t skipped = fileSize - fPos; in read() 43 fPos = fileSize; in read() 62 size_t fileSize = this->getLength(); in read() local 63 if (fPos + size <= fileSize) { in read() 68 size_t read = fileSize - fPos; in read() 73 fPos = fileSize; in read() 128 UINT64 fileSize; in getMemoryBase() local 129 HRNM(fFontFileStream->GetFileSize(&fileSize), "Could not get file size"); in getMemoryBase() [all …]
|
/external/lzma/CPP/Common/ |
D | ListFileUtils.cpp | 33 UInt64 fileSize; in ReadNamesFromListFile() local 34 if (!file.GetLength(fileSize)) in ReadNamesFromListFile() 36 if (fileSize >= ((UInt32)1 << 31) - 32) in ReadNamesFromListFile() 41 if ((fileSize & 1) != 0) in ReadNamesFromListFile() 43 CByteArr buf((size_t)fileSize); in ReadNamesFromListFile() 45 if (!file.Read(buf, (UInt32)fileSize, processed)) in ReadNamesFromListFile() 47 if (processed != fileSize) in ReadNamesFromListFile() 50 unsigned num = (unsigned)fileSize / 2; in ReadNamesFromListFile() 74 char *p = s.GetBuf((unsigned)fileSize); in ReadNamesFromListFile() 76 if (!file.Read(p, (UInt32)fileSize, processed)) in ReadNamesFromListFile() [all …]
|
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
D | aiodio_sparse.c | 60 int aiodio_sparse(int fd, int align, int writesize, int filesize, int num_aio) in aiodio_sparse() argument 69 if ((num_aio * writesize) > filesize) in aiodio_sparse() 70 num_aio = filesize / writesize; in aiodio_sparse() 116 while (offset < filesize) { in aiodio_sparse() 122 "aiodio_sparse: offset %p filesize %d inflight %d", in aiodio_sparse() 123 &offset, filesize, aio_inflight); in aiodio_sparse() 199 fprintf(stderr, "usage: dio_sparse [-n children] [-s filesize]" in usage() 212 int filesize = 100 * 1024 * 1024; in main() local 238 filesize = strtol(optarg, &endp, 0); in main() 239 filesize = in main() [all …]
|
D | dio_sparse.c | 58 int dio_sparse(int fd, int align, int writesize, int filesize, int offset) in dio_sparse() argument 71 for (i = offset; i < filesize;) { in dio_sparse() 85 fprintf(stderr, "usage: dio_sparse [-d] [-n children] [-s filesize]" in usage() 98 int filesize = 100 * 1024 * 1024; in main() local 119 filesize = strtol(optarg, &endp, 0); in main() 120 filesize = scale_by_kmg(filesize, *endp); in main() 143 dirty_freeblocks(filesize); in main() 147 SAFE_FTRUNCATE(cleanup, fd, filesize); in main() 155 read_sparse(filename, filesize); in main() 168 ret = dio_sparse(fd, alignment, writesize, filesize, offset); in main()
|
/external/llvm/lib/Support/ |
D | MemoryBuffer.cpp | 105 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize, 169 MemoryBuffer::getFileOrSTDIN(const Twine &Filename, int64_t FileSize, in getFileOrSTDIN() argument 176 return getFile(Filename, FileSize, RequiresNullTerminator); in getFileOrSTDIN() 256 MemoryBuffer::getFile(const Twine &Filename, int64_t FileSize, in getFile() argument 258 return getFileAux(Filename, FileSize, FileSize, 0, in getFile() 263 getOpenFileImpl(int FD, const Twine &Filename, uint64_t FileSize, 268 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize, in getFileAux() argument 276 getOpenFileImpl(FD, Filename, FileSize, MapSize, Offset, in getFileAux() 283 size_t FileSize, in shouldUseMmap() argument 308 if (FileSize == size_t(-1)) { in shouldUseMmap() [all …]
|
/external/autotest/client/site_tests/hardware_StorageFio/ |
D | hardware_StorageFio.py | 62 def initialize(self, dev='', filesize=DEFAULT_FILE_SIZE): argument 68 @param filesize: size of the file. 0 means whole partition. 72 if filesize == 0: 76 self.__filesize = filesize 84 if filesize == 0: 89 elif filesize != 0: 101 if filesize != 0: 102 self.__filesize = min(self.__filesize, filesize) 107 logging.info('filesize: %d', self.__filesize) 166 'FILESIZE=' + str(self.__filesize), [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | MemoryBuffer.cpp | 105 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize, 169 MemoryBuffer::getFileOrSTDIN(const Twine &Filename, int64_t FileSize, in getFileOrSTDIN() argument 176 return getFile(Filename, FileSize, RequiresNullTerminator); in getFileOrSTDIN() 256 MemoryBuffer::getFile(const Twine &Filename, int64_t FileSize, in getFile() argument 258 return getFileAux(Filename, FileSize, FileSize, 0, in getFile() 263 getOpenFileImpl(int FD, const Twine &Filename, uint64_t FileSize, 268 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize, in getFileAux() argument 276 getOpenFileImpl(FD, Filename, FileSize, MapSize, Offset, in getFileAux() 283 size_t FileSize, in shouldUseMmap() argument 308 if (FileSize == size_t(-1)) { in shouldUseMmap() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | MemoryBuffer.cpp | 160 int64_t FileSize) { in getFileOrSTDIN() argument 163 return getFile(Filename, result, FileSize); in getFileOrSTDIN() 168 int64_t FileSize) { in getFileOrSTDIN() argument 171 return getFile(Filename, result, FileSize); in getFileOrSTDIN() 207 int64_t FileSize, in getFile() argument 211 return MemoryBuffer::getFile(PathBuf.c_str(), result, FileSize, in getFile() 217 int64_t FileSize, in getFile() argument 227 error_code ret = getOpenFile(FD, Filename, result, FileSize, FileSize, in getFile() 234 size_t FileSize, in shouldUseMmap() argument 252 if (FileSize == size_t(-1)) { in shouldUseMmap() [all …]
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress01.c | 64 * tmnoextend -p nprocs [-t minutes -f filesize -S sparseoffset 73 * -f filesize - initial filesize (defaults to FILESIZE) 77 * filesize. Useful for testing large files. 92 #define FILESIZE 4096 /* initial filesize set up by parent */ macro 110 "-p nprocs [-t minutes -f filesize -S sparseoffset -r -o -m -l -d]"; 124 off64_t filesize = FILESIZE; variable 127 off_t filesize = FILESIZE; variable 185 filesize = atoll(optarg); 187 filesize = atoi(optarg); 189 if (filesize < 0) { [all …]
|
D | mmapstress10.c | 68 * mmapstress10 -p nprocs [-t minutes -w nbytes -s secs -f filesize 83 * -f filesize - initial filesize (defaults to FILESIZE) 87 * filesize. Useful for testing large files. 104 #define FILESIZE 4096 /* initial filesize set up by parent */ macro 141 off64_t filesize = FILESIZE; variable 144 off_t filesize = FILESIZE; variable 229 filesize = atoll(optarg); 231 filesize = atoi(optarg); 233 if (filesize < 0) { 235 "filesize\n"); [all …]
|
/external/syslinux/gpxe/src/util/ |
D | modrom.pl | 153 my $filesize = read(R, $rom, MAXROMSIZE+1); 155 defined($filesize) and $filesize >= 3 or die "Cannot get first 3 bytes of file\n"; 156 print "$filesize bytes read\n" if $opts{'v'}; 168 $romsize = ($filesize + 511) & ~511 176 $romsize > MINROMSIZE and $romsize >= 2*$filesize; 180 if ($filesize > $romsize) { 183 $romsize = ($filesize + 511) & ~511; 210 my $filesize = read(R, $rom, MAXROMSIZE+1); 212 defined($filesize) and $filesize >= 3 or die "Cannot get first 3 bytes of file\n"; 213 print "$filesize bytes read\n" if $opts{'v'};
|
D | makerom.pl | 155 my $filesize = read(R, $rom, MAXROMSIZE+1); 157 defined($filesize) and $filesize >= 3 or die "Cannot get first 3 bytes of file\n"; 158 print "$filesize bytes read\n" if $opts{'v'}; 170 $romsize = ($filesize + 511) & ~511 175 $romsize > MINROMSIZE and $romsize >= 2*$filesize; 178 if ($filesize > $romsize) { 181 $romsize = ($filesize + 511) & ~511; 216 my $filesize = read(R, $rom, MAXROMSIZE+1); 218 defined($filesize) and $filesize >= 3 or die "Cannot get first 3 bytes of file\n"; 219 print "$filesize bytes read\n" if $opts{'v'};
|
/external/llvm/test/tools/llvm-readobj/ |
D | program-headers.test | 16 ELF-I386-NEXT: FileSize: 308 29 ELF-I386-NEXT: FileSize: 0 45 ELF-X86-64-NEXT: FileSize: 312 58 ELF-X86-64-NEXT: FileSize: 20 70 ELF-X86-64-NEXT: FileSize: 0 90 ELF-MIPS-NEXT: FileSize: 24 102 ELF-MIPS-NEXT: FileSize: 24 114 ELF-MIPS-NEXT: FileSize: 224 134 ELF-MIPS64-NEXT: FileSize: 136
|
/external/lz4/programs/ |
D | lz4io.c | 324 unsigned long long filesize = 0; in LZ4IO_compressFilename_Legacy() local 359 filesize += inSize; in LZ4IO_compressFilename_Legacy() 364 …AYUPDATE(2, "\rRead : %i MB ==> %.2f%% ", (int)(filesize>>20), (double)compressedfilesize/files… in LZ4IO_compressFilename_Legacy() 376 filesize += !filesize; /* avoid division by zero (ratio) */ in LZ4IO_compressFilename_Legacy() 379 filesize, compressedfilesize, (double)compressedfilesize / filesize * 100); in LZ4IO_compressFilename_Legacy() 381 …DISPLAYLEVEL(4,"Done in %.2f s ==> %.2f MB/s\n", seconds, (double)filesize / seconds / 1024 / 1024… in LZ4IO_compressFilename_Legacy() 439 unsigned long long filesize = 0; in LZ4IO_compressFilename_extRess() local 466 U64 const fileSize = UTIL_getFileSize(srcFileName); in LZ4IO_compressFilename_extRess() local 467 prefs.frameInfo.contentSize = fileSize; /* == 0 if input == stdin */ in LZ4IO_compressFilename_extRess() 468 if (fileSize==0) in LZ4IO_compressFilename_extRess() [all …]
|
/external/llvm/test/ObjectYAML/MachO/ |
D | load_commands.yaml | 20 filesize: 0 31 filesize: 8192 42 filesize: 4096 53 filesize: 2508 146 #CHECK: filesize: 0 157 #CHECK: filesize: 8192 168 #CHECK: filesize: 4096 179 #CHECK: filesize: 2508
|
/external/ltp/testcases/network/stress/ns-tools/ |
D | create_file | 32 # $2: filesize 51 echo "Usage: create_file filename filesize" >&2 55 filesize=$2 57 if [ $filesize -le 0 ]; then 58 echo "The filesize should be bigger than 0" >&2 63 echo -n "Z" | dd of=$filename bs=1 seek=`expr $filesize - 1` >/dev/null 2>&1
|
/external/linux-kselftest/tools/testing/selftests/powerpc/mm/ |
D | subpage_prot.c | 180 off_t filesize; in test_file() local 190 filesize = lseek(fd, 0, SEEK_END); in test_file() 191 if (filesize & 0xffff) in test_file() 192 filesize &= ~0xfffful; in test_file() 194 fileblock = mmap(NULL, filesize, PROT_READ | PROT_WRITE, in test_file() 201 file_name, filesize, fileblock); in test_file() 205 return run_test(fileblock, filesize); in test_file()
|
/external/valgrind/coregrind/m_ume/ |
D | macho.c | 131 vki_size_t filesize; in open_dylinker() local 153 filesize = sb.size; in open_dylinker() 155 err = load_mach_file(fd, 0, filesize, MH_DYLINKER, filename, out_info); in open_dylinker() 180 vki_size_t filesize; // page-aligned in load_segment() local 212 if (segcmd->fileoff == 0 && segcmd->filesize != 0) { in load_segment() 222 if (segcmd->fileoff + segcmd->filesize > size) { in load_segment() 243 filesize = VG_PGROUNDUP(segcmd->filesize); in load_segment() 245 if (filesize > 0) { in load_segment() 247 VG_(debugLog)(2, "ume", "mmap fixed (file) (%#lx, %lu)\n", addr, filesize); in load_segment() 248 res = VG_(am_mmap_named_file_fixed_client)(addr, filesize, prot, fd, in load_segment() [all …]
|
/external/lzma/C/ |
D | Bcj2.h | 116 We use (mod 4 GB) check for fileSize. 117 Use fileSize up to 2 GB, if you want to support 32-bit and 64-bit code conversion. */ 119 UInt32 fileSize; /* (fileSize <= ((UInt32)1 << 31)), 0 means no_limit */ member 141 /* limit for CBcj2Enc::fileSize variable */
|
/external/syslinux/gpxe/src/arch/i386/interface/pxe/ |
D | pxe_file.c | 177 * @ret s_PXENV_GET_FILE_SIZE::FileSize Size of file 181 ssize_t filesize; in pxenv_get_file_size() local 185 filesize = fsize ( get_file_size->FileHandle ); in pxenv_get_file_size() 186 if ( filesize < 0 ) { in pxenv_get_file_size() 187 get_file_size->Status = PXENV_STATUS ( filesize ); in pxenv_get_file_size() 191 DBG ( " is %zd", ( ( size_t ) filesize ) ); in pxenv_get_file_size() 193 get_file_size->FileSize = filesize; in pxenv_get_file_size()
|
/external/libmtp/examples/ |
D | thumb.c | 49 uint64_t filesize; local 84 filesize = statbuff.st_size; 85 imagedata = malloc(filesize); 95 ret = read(fd, imagedata, filesize); 109 thumb->size = filesize;
|
/external/ltp/testcases/network/stress/http/ |
D | http-stress01-rmt | 30 [ $# -ne 3 ] && tst_brkm TBROK "Usage: $0 server_ipaddr filename filesize" 34 filesize="$3" 47 if [ $recv_filesize != "size=$filesize" ]; then 48 tst_resm TINFO "expected file size '$filesize'"
|
/external/curl/docs/examples/ |
D | ftpgetinfo.c | 47 double filesize = 0.0; in main() local 75 &filesize); in main() 76 if((CURLE_OK == res) && (filesize>0.0)) in main() 77 printf("filesize %s: %0.0f bytes\n", filename, filesize); in main()
|
/external/icu/icu4c/source/samples/layout/ |
D | UnicodeReader.cpp | 33 int32_t fileSize; in readFile() local 51 fileSize = ftell(f); in readFile() 85 fileSize -= signatureLength; in readFile() 87 byteBuffer = new char[fileSize]; in readFile() 96 fread(byteBuffer, sizeof(char), fileSize, f); in readFile() 106 UnicodeString myText(byteBuffer, fileSize, cp); in readFile()
|