/external/ltp/testcases/network/tcp_cmds/echo/ |
H A D | createfile.c | 22 int fsize; local 27 for (fsize = 0; fsize < BUFSIZ; fsize++) { 28 if ((fsize % 2) == 0) 29 buf[fsize++] = 'U'; 31 buf[fsize++] = '\n'; 34 fsize = strtol(argv[1], NULL, 10); 38 if (fsize >= BUFSIZ) { 39 count = fsize / BUFSI [all...] |
/external/elfutils/src/ |
H A D | xelf.h | 131 ? ({ size_t fsize; \ 134 case ELF_T_BYTE: fsize = 1; break; \ 135 case ELF_T_ADDR: fsize = sizeof (Elf32_Addr); break; \ 136 case ELF_T_DYN: fsize = sizeof (Elf32_Dyn); break; \ 137 case ELF_T_EHDR: fsize = sizeof (Elf32_Ehdr); break; \ 138 case ELF_T_HALF: fsize = sizeof (Elf32_Half); break; \ 139 case ELF_T_OFF: fsize = sizeof (Elf32_Off); break; \ 140 case ELF_T_PHDR: fsize = sizeof (Elf32_Phdr); break; \ 141 case ELF_T_RELA: fsize = sizeof (Elf32_Rela); break; \ 142 case ELF_T_REL: fsize [all...] |
/external/elfutils/libelf/ |
H A D | elf32_fsize.c | 43 elfw2(LIBELFBITS, fsize) (Elf_Type type, size_t count, unsigned int version) 68 local_strong_alias (elfw2(LIBELFBITS, fsize), __elfw2(LIBELFBITS, msize))
|
/external/ltp/testcases/kernel/mem/mtest06/ |
H A D | mmap2.c | 157 unsigned long fsize = 128; local 198 fsize = atoi(optarg); 199 if (fsize == 0) 201 "fsize %lu MB\n", fsize = 128); 218 "\tSize of temp file in MB: %lu\n", exec_time, fsize); 222 if (fsize > avail_memory_mb) { 245 fd = mkfile(fsize); 255 memptr = mmap(0, (fsize * MB), PROT_READ | PROT_WRITE, 264 memset(memptr, 'A', ((fsize * M [all...] |
H A D | mmap3.c | 202 int fsize; /* size of the file to be created. */ local 211 if ((fd = mkfile(&fsize)) == -1) { 222 mmap(0, (size_t) fsize, PROT_WRITE | PROT_READ, map_type, 229 memset(map_address, 'A', fsize); 235 if (munmap(map_address, (size_t) fsize) == -1) {
|
H A D | shmat1.c | 94 int fsize; /* size of the file to be created. */ variable 237 fsize = (1 + (int)(1000.0 * rand() / (RAND_MAX + 1.0))) * 4096; 239 if ((shmid = shmget(shmkey, fsize, IPC_CREAT | 0666)) == -1) { 245 STR_SHMAT, pthread_self(), fsize);
|
/external/autotest/client/site_tests/platform_FileSize/ |
H A D | platform_FileSize.py | 45 fsize = os.path.getsize(fname) 47 return fsize
|
/external/curl/docs/examples/ |
H A D | ftpupload.c | 72 curl_off_t fsize; local 83 fsize = (curl_off_t)file_info.st_size; 85 printf("Local file size: %" CURL_FORMAT_CURL_OFF_T " bytes.\n", fsize); 120 (curl_off_t)fsize);
|
/external/ltp/testcases/misc/math/float/ |
H A D | thread_code.c | 45 size_t fsize; local 66 fsize = bufstat.st_size; 67 if (!fsize) { 72 while ((buffer = malloc(fsize)) == NULL) { 95 while (read(fd, buffer, fsize) != fsize) { 112 return fsize; 280 size_t fsize, fsize2, fsize3; local 284 fsize = read_file(th_data->th_func.din_fname, (void **)&din); 285 if (fsize [all...] |
/external/curl/tests/ |
H A D | directories.pm | 206 my $fsize = ""; 208 $fsize = $file{'size'} ? sprintf("%7s", $file{'size'}) : sprintf("%7d", 4096); 211 $fsize = sprintf("%7d", length $file{'content'}); 215 push(@contentlist, "$ftype$fperm $fhlink $fuser $fgroup $fsize $ftime $file{'name'}$eol");
|
/external/syslinux/dos/ |
H A D | malloc.c | 42 size_t fsize; local 45 fsize = fp->a.size; 48 if (fsize >= size + 2 * sizeof(struct arena_header)) { 54 nfp->a.size = fsize - size;
|
/external/syslinux/gpxe/src/include/gpxe/ |
H A D | posix_io.h | 28 extern ssize_t fsize ( int fd );
|
/external/ltp/testcases/kernel/syscalls/readahead/ |
H A D | readahead02.c | 196 * @fsize: how many bytes to read/mmap 198 * @usec: returns how many microsecond it took to go over fsize bytes 201 static void read_testfile(int do_readahead, const char *fname, size_t fsize, argument 221 TEST(readahead(fd, offset, fsize - offset)); 242 } while ((size_t)offset < fsize); 261 p = mmap(NULL, fsize, PROT_READ, MAP_SHARED | MAP_POPULATE, fd, 0); 267 for (i = 0; i < fsize; i += pagesize) 276 if (munmap(p, fsize) == -1)
|
/external/ltp/testcases/kernel/fs/doio/ |
H A D | growfiles.c | 1943 off_t fsize; /* current size of file */ local 1963 fsize = stbuf.st_size; 2008 Woffset = fsize; 2092 random_range(min_lseek, fsize, 1, NULL); 2096 random_range(min_lseek, fsize + grow_incr, 2109 if (fsize <= min_lseek + grow_incr) 2114 fsize - grow_incr, 1, 2302 * fsize - holds size of file before write 2304 size_grew = (Woffset + Grow_incr) - fsize; 2480 int fsize; local 2683 int fsize; local [all...] |
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.space/ |
H A D | space.pass.cpp | 94 std::uintmax_t fsize = expect.f_frsize; 95 std::uintmax_t new_val = val * fsize; 96 TEST_CHECK(new_val / fsize == val); // Test for overflow
|
/external/libmicrohttpd/src/examples/ |
H A D | spdy_fileserver.c | 166 char *fsize; local 204 if(-1 == asprintf(&fsize, "%zd", filesize) 205 || SPDY_YES != SPDY_name_value_add(resp_headers,SPDY_HTTP_HEADER_CONTENT_LENGTH,fsize)) 210 free(fsize);
|
/external/syslinux/core/mem/ |
H A D | malloc.c | 23 size_t fsize; local 27 fsize = ARENA_SIZE_GET(fp->a.attrs); 30 if ( fsize >= size+2*sizeof(struct arena_header) ) { 37 ARENA_SIZE_SET(nfp->a.attrs, fsize-size);
|
/external/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_posix.cc | 253 uptr fsize = internal_filesize(fd); local 254 CHECK_NE(fsize, (uptr)-1); 255 CHECK_GT(fsize, 0); 256 *buff_size = RoundUpTo(fsize, GetPageSizeCached());
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_libc_test.cc | 111 uptr fsize = internal_filesize(fd); local 112 EXPECT_EQ(len1 + len2, fsize); 118 EXPECT_EQ(fsize, (uptr)st3.st_size);
|
/external/ltp/testcases/kernel/sched/tool/ |
H A D | trace_sched.c | 140 int fsize = -1; /* size of the /proc/<pid>/stat file. */ local 156 if ((fsize = read(fd, fbuff, 512)) == -1) { 163 return atoi(&fbuff[fsize - 2]);
|
/external/libopus/tests/ |
H A D | test_opus_encode.c | 137 int fsize; local 391 fsize=fast_rand()%31; 404 int frame_size=fsizes[db62[fsize]]; 447 fsize=(fsize+1)%36; 448 new_size=fsizes[db62[fsize]];
|
/external/ltp/testcases/kernel/fs/fs-bench/ |
H A D | random-del-create.c | 73 int fsize; local
|
/external/toybox/toys/ |
H A D | e2fs.h | 103 uint8_t fsize; // Fragment size member in struct:ext2_inode
|
/external/valgrind/coregrind/ |
H A D | pub_core_libcfile.h | 50 extern Long VG_(fsize) ( Int fd );
|
/external/syslinux/core/fs/xfs/ |
H A D | xfs.c | 98 int fsize; local 134 fsize = XFS_DFORK_SIZE(core, fs, XFS_DATA_FORK); 135 pp = XFS_BMDR_PTR_ADDR(rblock, 1, xfs_bmdr_maxrecs(fsize, 0));
|