/external/ltp/testcases/network/stress/ns-tools/ |
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/ltp/testcases/network/stress/ftp/ |
ftp-upload-stress01-rmt | 31 filesize="$4" 47 echo -n "Z" | dd of=$filename bs=1 seek=$(($filesize - 1)) > /dev/null 2>&1 || \ 57 if [ "$send_filesize" != "size=$filesize" ]; then 58 tst_resm TINFO "Expected file size '$filesize'"
|
ftp-download-stress01-rmt | 29 filesize="$3" 45 if [ "$recv_filesize" != "size=$filesize" ]; then 46 tst_resm TINFO "Expected file size '$filesize'"
|
ftp-download-stress02-rmt | 31 filesize="$3" 70 if [ "$recv_filesize" != "size=$filesize" ]; then 71 tst_resm TINFO "Expected file size '$filesize'"
|
ftp-upload-stress02-rmt | 33 filesize="$4" 49 echo -n "Z" | dd of=$filename bs=1 seek=$(($filesize - 1)) > /dev/null 2>&1 || \ 83 if [ "$send_filesize" != "size=$filesize" ]; then 84 tst_resm TINFO "Expected file size '$filesize'"
|
/external/ltp/testcases/network/stress/http/ |
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'"
|
http-stress02-rmt | 35 filesize="$3" 71 if [ $recv_filesize != "size=$filesize" ]; then 72 tst_resm TINFO "expected file size '$filesize'"
|
/external/ltp/utils/ffsb-6.0-rc2/ |
fileops.c | 79 static uint64_t get_random_offset(randdata_t * rd, uint64_t filesize, 83 return getllrandom(rd, filesize); 85 filesize /= 4096; 86 return getllrandom(rd, filesize) * 4096; 95 uint64_t filesize; local 110 filesize = ffsb_get_filesize(curfile->name); 112 assert(filesize >= read_size); 116 uint64_t range = filesize - read_size; 136 if (minfilesize > filesize) { 141 read_skipsize, read_blocksize, filesize); 197 uint64_t filesize; local 228 uint64_t filesize; local 285 uint64_t filesize; local 295 uint64_t filesize; local 311 uint64_t filesize; local 344 uint64_t filesize; local 354 uint64_t filesize; local 400 uint64_t filesize; local 410 uint64_t filesize; local 469 uint64_t filesize; local 479 uint64_t filesize; local [all...] |
/external/u-boot/test/fs/ |
fs-test.sh | 234 printenv filesize 235 setenv filesize 238 printenv filesize 239 setenv filesize 244 printenv filesize 245 setenv filesize 253 printenv filesize 255 md5sum $addr \$filesize 256 setenv filesize 260 printenv filesize [all...] |
/external/curl/docs/examples/ |
ftpgetinfo.c | 47 double filesize = 0.0; local 75 &filesize); 76 if((CURLE_OK == res) && (filesize>0.0)) 77 printf("filesize %s: %0.0f bytes\n", filename, filesize);
|
/external/libmtp/examples/ |
sendfile.c | 51 uint64_t filesize; local 63 filesize = sb.st_size; 72 genfile->filesize = filesize;
|
files.c | 33 if (file->filesize == (uint32_t) -1) { 37 printf(" File size %llu (0x%016I64X) bytes\n", file->filesize, file->filesize); 40 (long long unsigned int) file->filesize, 41 (long long unsigned int) file->filesize);
|
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;
|
albumart.c | 50 uint64_t filesize; local 116 filesize = (uint64_t) statbuff.st_size; 117 imagedata = malloc(filesize * sizeof(uint8_t)); 128 ret = read(fd, imagedata, filesize); 142 albumart->size = filesize;
|
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
dio_sparse.c | 58 int dio_sparse(int fd, int align, int writesize, int filesize, int offset) 71 for (i = offset; i < filesize;) { 85 fprintf(stderr, "usage: dio_sparse [-d] [-n children] [-s filesize]" 98 int filesize = 100 * 1024 * 1024; local 119 filesize = strtol(optarg, &endp, 0); 120 filesize = scale_by_kmg(filesize, *endp); 143 dirty_freeblocks(filesize); 147 SAFE_FTRUNCATE(cleanup, fd, filesize); 155 read_sparse(filename, filesize); [all...] |
aiodio_sparse.c | 63 int aiodio_sparse(int fd, int align, int writesize, int filesize, int num_aio) 72 if ((num_aio * writesize) > filesize) 73 num_aio = filesize / writesize; 119 while (offset < filesize) { 125 "aiodio_sparse: offset %p filesize %d inflight %d", 126 &offset, filesize, aio_inflight); 202 fprintf(stderr, "usage: dio_sparse [-n children] [-s filesize]" 215 int filesize = 100 * 1024 * 1024; local 241 filesize = strtol(optarg, &endp, 0); 242 filesize [all...] |
/external/u-boot/tools/ |
mkenvimage.c | 75 unsigned int filesize = 0, envsize = 0, datasize = 0; local 164 filebuf = realloc(filebuf, filesize + readlen); 169 readbytes = read(txt_fd, filebuf + filesize, readlen); 175 filesize += readbytes; 194 filesize = txt_file_stat.st_size; 196 filebuf = mmap(NULL, sizeof(*envptr) * filesize, PROT_READ, 200 sizeof(*envptr) * filesize, 204 filebuf = malloc(sizeof(*envptr) * filesize); 205 ret = read(txt_fd, filebuf, sizeof(*envptr) * filesize); 206 if (ret != sizeof(*envptr) * filesize) { [all...] |
img2brec.sh | 64 FILESIZE=`filesize $INFILE` 123 printf "* Size : 0x%08X *\r\n" $FILESIZE 125 printf "0AFE0000CC0A0000000C000000%08X\r\n" $FILESIZE
|
/external/skia/infra/bots/buildstats/ |
buildstats_flutter.py | 118 filesize = int(parts[3]) 127 print '\t%-100s: %s' % (symbol, bytes_or_kb(filesize)) 128 sub_total += filesize 129 grand_total += filesize 154 filesize = int(parts[3]) 156 print '%-10s: %-80s in %s' % (bytes_or_kb(filesize), symbol, this_file)
|
/external/skqp/infra/bots/buildstats/ |
buildstats_flutter.py | 118 filesize = int(parts[3]) 127 print '\t%-100s: %s' % (symbol, bytes_or_kb(filesize)) 128 sub_total += filesize 129 grand_total += filesize 154 filesize = int(parts[3]) 156 print '%-10s: %-80s in %s' % (bytes_or_kb(filesize), symbol, this_file)
|
/external/autotest/client/site_tests/hardware_StorageTrim/ |
hardware_StorageTrim.py | 45 filesize=0, 59 filesize=0, 72 filesize=0,
|
/external/autotest/client/site_tests/hardware_StorageFio/ |
hardware_StorageFio.py | 70 def initialize(self, dev='', filesize=DEFAULT_FILE_SIZE): 76 @param filesize: size of the file. 0 means whole partition. 80 if filesize == 0: 84 self.__filesize = filesize 92 if filesize == 0: 97 elif filesize != 0: 109 if filesize != 0: 110 self.__filesize = min(self.__filesize, filesize) 115 logging.info('filesize: %d', self.__filesize) 174 'FILESIZE=' + str(self.__filesize) [all...] |
/external/linux-kselftest/tools/testing/selftests/powerpc/mm/ |
subpage_prot.c | 192 off_t filesize; local 204 filesize = lseek(fd, 0, SEEK_END); 205 if (filesize & 0xffff) 206 filesize &= ~0xfffful; 208 fileblock = mmap(NULL, filesize, PROT_READ | PROT_WRITE, 215 file_name, filesize, fileblock); 219 return run_test(fileblock, filesize);
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/EfiLdrImage/ |
EfiLdrImage.c | 126 UINT32 filesize, offset, length;
local 130 filesize = ftell(in);
135 while (offset < filesize) {
137 if (filesize-offset < length) {
138 length = filesize-offset;
146 return filesize;
169 UINT64 filesize;
local 295 filesize = FCopyFile (fpIn, fpOut);
302 EfiLdrImage[i].Length = (UINT32) filesize;
304 EfiLdrHeader.FileLength += (UINT32) filesize;
[all...] |
/external/vboot_reference/utility/ |
bmpblk_font.c | 172 size_t imgsize, filesize, diff; local 190 filesize = imgsize; 192 filesize = ((imgsize + 4) / 4) * 4; 193 diff = filesize - imgsize; 198 entry.info.original_size = filesize; 199 entry.info.compressed_size = filesize;
|