Home
last modified time | relevance | path

Searched refs:fsize (Results 1 – 25 of 51) sorted by relevance

123

/external/ltp/testcases/network/tcp_cmds/echo/
Dcreatefile.c22 int fsize; in main() local
27 for (fsize = 0; fsize < BUFSIZ; fsize++) { in main()
28 if ((fsize % 2) == 0) in main()
29 buf[fsize++] = 'U'; in main()
31 buf[fsize++] = '\n'; in main()
34 fsize = strtol(argv[1], NULL, 10); in main()
38 if (fsize >= BUFSIZ) { in main()
39 count = fsize / BUFSIZ; in main()
40 remain = fsize % BUFSIZ; in main()
42 remain = fsize; in main()
/external/elfutils/src/
Dxelf.h131 ? ({ 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 = sizeof (Elf32_Rel); break; \
[all …]
/external/ltp/testcases/kernel/mem/mtest06/
Dmmap2.c157 unsigned long fsize = 128; in main() local
198 fsize = atoi(optarg); in main()
199 if (fsize == 0) in main()
201 "fsize %lu MB\n", fsize = 128); in main()
218 "\tSize of temp file in MB: %lu\n", exec_time, fsize); in main()
222 if (fsize > avail_memory_mb) { in main()
245 fd = mkfile(fsize); in main()
255 memptr = mmap(0, (fsize * MB), PROT_READ | PROT_WRITE, in main()
264 memset(memptr, 'A', ((fsize * MB) / sizeof(char))); in main()
266 if (msync(memptr, ((fsize * MB) / sizeof(char)), in main()
[all …]
Dmmap3.c87 int fsize; in map_write_unmap() local
99 if ((fd = mkfile(&fsize)) == -1) in map_write_unmap()
102 addr = SAFE_MMAP(NULL, fsize, PROT_WRITE | PROT_READ, in map_write_unmap()
105 memset(addr, 'A', fsize); in map_write_unmap()
108 tid, addr, fsize/1024, i); in map_write_unmap()
112 SAFE_MUNMAP(addr, fsize); in map_write_unmap()
Dshmat1.c94 int fsize; /* size of the file to be created. */ variable
237 fsize = (1 + (int)(1000.0 * rand() / (RAND_MAX + 1.0))) * 4096; in shmat_shmdt()
239 if ((shmid = shmget(shmkey, fsize, IPC_CREAT | 0666)) == -1) { in shmat_shmdt()
245 STR_SHMAT, pthread_self(), fsize); in shmat_shmdt()
/external/ltp/testcases/misc/math/float/
Dthread_code.c45 size_t fsize; in read_file() local
66 fsize = bufstat.st_size; in read_file()
67 if (!fsize) { in read_file()
72 while ((buffer = malloc(fsize)) == NULL) { in read_file()
95 while (read(fd, buffer, fsize) != fsize) { in read_file()
112 return fsize; in read_file()
280 size_t fsize, fsize2, fsize3; in thread_code() local
284 fsize = read_file(th_data->th_func.din_fname, (void **)&din); in thread_code()
285 if (fsize == (size_t) 0) { in thread_code()
331 if (fsize2 != fsize) in thread_code()
[all …]
/external/python/cpython2/Demo/tkinter/ttk/
Dwidget_state.py23 fsize = str(self.tk.eval("font configure %s -size" % btn_font))
27 self.fsize_prefix = fsize[0] if fsize[0] == '-' else ''
28 self.base_fsize = int(fsize[1 if fsize[0] == '-' else 0:])
/external/curl/docs/examples/
Dftpupload.c72 curl_off_t fsize; in main() local
83 fsize = (curl_off_t)file_info.st_size; in main()
85 printf("Local file size: %" CURL_FORMAT_CURL_OFF_T " bytes.\n", fsize); in main()
120 (curl_off_t)fsize); in main()
/external/ltp/testcases/kernel/fs/doio/
Dgrowfiles.c1943 off_t fsize; /* current size of file */ in growfile() local
1963 fsize = stbuf.st_size; in growfile()
2008 Woffset = fsize; in growfile()
2092 random_range(min_lseek, fsize, 1, NULL); in growfile()
2096 random_range(min_lseek, fsize + grow_incr, in growfile()
2109 if (fsize <= min_lseek + grow_incr) in growfile()
2114 fsize - grow_incr, 1, in growfile()
2304 size_grew = (Woffset + Grow_incr) - fsize; in growfile()
2480 int fsize; in check_write() local
2513 if ((fsize = file_size(fd)) == -1) { in check_write()
[all …]
/external/curl/tests/
Ddirectories.pm206 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/
Dmalloc.c42 size_t fsize; in __malloc_from_block() local
45 fsize = fp->a.size; in __malloc_from_block()
48 if (fsize >= size + 2 * sizeof(struct arena_header)) { in __malloc_from_block()
54 nfp->a.size = fsize - size; in __malloc_from_block()
/external/ltp/testcases/kernel/syscalls/readahead/
Dreadahead02.c201 static void read_testfile(int do_readahead, const char *fname, size_t fsize, in read_testfile() argument
221 TEST(readahead(fd, offset, fsize - offset)); in read_testfile()
242 } while ((size_t)offset < fsize); in read_testfile()
261 p = mmap(NULL, fsize, PROT_READ, MAP_SHARED | MAP_POPULATE, fd, 0); in read_testfile()
267 for (i = 0; i < fsize; i += pagesize) in read_testfile()
276 if (munmap(p, fsize) == -1) in read_testfile()
/external/fio/engines/
Dpmemblk.c189 uint64_t fsize = 0; in pmb_open() local
191 pmb_parse_path(pathspec, &path, &bsize, &fsize); in pmb_open()
206 (flags & PMB_CREATE) && (0 < fsize) && (0 < bsize)) { in pmb_open()
208 pmemblk_create(path, bsize, fsize, 0644); in pmb_open()
409 uint64_t fsize = 0; in fio_pmemblk_unlink_file() local
417 pmb_parse_path(f->file_name, &path, &bsize, &fsize); in fio_pmemblk_unlink_file()
/external/elfutils/libelf/
Delf32_fsize.c43 elfw2(LIBELFBITS, fsize) (Elf_Type type, size_t count, unsigned int version) in elfw2() argument
68 local_strong_alias (elfw2(LIBELFBITS, fsize), __elfw2(LIBELFBITS, msize))
/external/libmicrohttpd/src/examples/
Dspdy_fileserver.c166 char *fsize; in standard_request_handler() local
204 if(-1 == asprintf(&fsize, "%zd", filesize) in standard_request_handler()
205 || SPDY_YES != SPDY_name_value_add(resp_headers,SPDY_HTTP_HEADER_CONTENT_LENGTH,fsize)) in standard_request_handler()
210 free(fsize); in standard_request_handler()
/external/autotest/client/site_tests/platform_FileSize/
Dplatform_FileSize.py45 fsize = os.path.getsize(fname)
47 return fsize
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.space/
Dspace.pass.cpp94 std::uintmax_t fsize = expect.f_frsize; in TEST_CASE() local
95 std::uintmax_t new_val = val * fsize; in TEST_CASE()
96 TEST_CHECK(new_val / fsize == val); // Test for overflow in TEST_CASE()
/external/syslinux/core/mem/
Dmalloc.c23 size_t fsize; in __malloc_from_block() local
27 fsize = ARENA_SIZE_GET(fp->a.attrs); in __malloc_from_block()
30 if ( fsize >= size+2*sizeof(struct arena_header) ) { in __malloc_from_block()
37 ARENA_SIZE_SET(nfp->a.attrs, fsize-size); in __malloc_from_block()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix.cc253 uptr fsize = internal_filesize(fd); in MapFileToMemory() local
254 CHECK_NE(fsize, (uptr)-1); in MapFileToMemory()
255 CHECK_GT(fsize, 0); in MapFileToMemory()
256 *buff_size = RoundUpTo(fsize, GetPageSizeCached()); in MapFileToMemory()
/external/ltp/testcases/kernel/sched/tool/
Dtrace_sched.c140 int fsize = -1; /* size of the /proc/<pid>/stat file. */ in get_proc_num() local
156 if ((fsize = read(fd, fbuff, 512)) == -1) { in get_proc_num()
163 return atoi(&fbuff[fsize - 2]); in get_proc_num()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_libc_test.cc111 uptr fsize = internal_filesize(fd); in TEST() local
112 EXPECT_EQ(len1 + len2, fsize); in TEST()
118 EXPECT_EQ(fsize, (uptr)st3.st_size); in TEST()
/external/libopus/tests/
Dtest_opus_encode.c137 int fsize; in run_test1() local
391 fsize=fast_rand()%31; in run_test1()
404 int frame_size=fsizes[db62[fsize]]; in run_test1()
447 fsize=(fsize+1)%36; in run_test1()
448 new_size=fsizes[db62[fsize]]; in run_test1()
/external/syslinux/gpxe/src/include/gpxe/
Dposix_io.h28 extern ssize_t fsize ( int fd );
/external/syslinux/core/fs/xfs/
Dxfs.c98 int fsize; in xfs_next_extent() local
134 fsize = XFS_DFORK_SIZE(core, fs, XFS_DATA_FORK); in xfs_next_extent()
135 pp = XFS_BMDR_PTR_ADDR(rblock, 1, xfs_bmdr_maxrecs(fsize, 0)); in xfs_next_extent()
/external/curl/lib/
Dftplistparser.c613 curl_off_t fsize; in Curl_ftp_parselist() local
615 fsize = curlx_strtoofft(finfo->b_data+parser->item_offset, &p, 10); in Curl_ftp_parselist()
616 if(p[0] == '\0' && fsize != CURL_OFF_T_MAX && in Curl_ftp_parselist()
617 fsize != CURL_OFF_T_MIN) { in Curl_ftp_parselist()
619 parser->file_data->size = fsize; in Curl_ftp_parselist()

123