Home
last modified time | relevance | path

Searched refs:st_size (Results 1 – 25 of 109) sorted by relevance

12345

/linux/arch/x86/include/uapi/asm/
H A Dstat.h18 unsigned long st_size; member
57 long long st_size; member
93 __kernel_long_t st_size; member
126 unsigned long st_size; member
131 unsigned int st_size; member
/linux/arch/sparc/include/uapi/asm/
H A Dstat.h17 long st_size; member
37 long st_size; member
60 long st_size; member
89 long long st_size; member
/linux/arch/arm/vdso/
H A Dvdsomunge.c145 inbuf = mmap(NULL, stat.st_size, PROT_READ, MAP_PRIVATE, infd, 0); in main()
183 if (ftruncate(outfd, stat.st_size) != 0) in main()
186 outbuf = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, in main()
193 memcpy(outbuf, inbuf, stat.st_size); in main()
203 if (msync(outbuf, stat.st_size, MS_SYNC) != 0) in main()
/linux/tools/build/
H A Dfixdep.c138 if (st.st_size == 0) { in print_deps()
143 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in print_deps()
150 parse_dep_file(map, st.st_size); in print_deps()
152 munmap(map, st.st_size); in print_deps()
/linux/scripts/
H A Drecordmcount.c81 munmap(file_map, sb.st_size); in mmap_cleanup()
99 file_ptr = file_map + (sb.st_size - offset); in ulseek()
184 sb.st_size = 0; in mmap_file()
199 file_map = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_PRIVATE, in mmap_file()
203 file_map = umalloc(sb.st_size); in mmap_file()
208 if (read(fd_map, file_map, sb.st_size) != sb.st_size) { in mmap_file()
220 file_end = file_map + sb.st_size; in mmap_file()
349 n = write(fd_map, file_map, sb.st_size); in write_file()
350 if (n != sb.st_size) { in write_file()
/linux/arch/sh/include/uapi/asm/
H A Dstat.h13 unsigned long st_size; member
27 unsigned long st_size; member
59 long long st_size; member
/linux/arch/m68k/include/uapi/asm/
H A Dstat.h13 unsigned long st_size; member
29 unsigned long st_size; member
61 long long st_size; member
/linux/arch/arm/include/uapi/asm/
H A Dstat.h13 unsigned long st_size; member
39 unsigned long st_size; member
72 long long st_size; member
/linux/arch/powerpc/include/uapi/asm/
H A Dstat.h23 unsigned long st_size; member
43 long st_size; member
69 long long st_size; /* Size of file, in bytes. */ member
/linux/tools/bootconfig/
H A Dmain.c171 ret = load_xbc_fd(fd, buf, stat.st_size); in load_xbc_file()
196 if (stat.st_size < BOOTCONFIG_FOOTER_SIZE) in load_xbc_from_initrd()
221 if (stat.st_size < size + BOOTCONFIG_FOOTER_SIZE) { in load_xbc_from_initrd()
226 if (lseek(fd, stat.st_size - (size + BOOTCONFIG_FOOTER_SIZE), in load_xbc_from_initrd()
316 if (ret == 0 && st.st_size <= XBC_DATA_MAX) { in show_xbc()
356 ret = ftruncate(fd, stat.st_size in delete_xbc()
440 total_size = stat.st_size + size + BOOTCONFIG_FOOTER_SIZE; in apply_xbc()
473 if (ftruncate(fd, stat.st_size) < 0) { in apply_xbc()
/linux/arch/mips/include/uapi/asm/
H A Dstat.h29 long st_size; member
67 long long st_size; member
108 long st_size; member
/linux/tools/perf/util/
H A Dzlib.c39 ptr = mmap(NULL, stbuf.st_size, PROT_READ, MAP_PRIVATE, input_fd, 0); in gzip_decompress_to_file()
47 zs.avail_in = stbuf.st_size; in gzip_decompress_to_file()
76 munmap(ptr, stbuf.st_size); in gzip_decompress_to_file()
H A Ddata.c144 file->size = st.st_size; in perf_data__open_dir()
207 if (!stat(data->path, &st) && st.st_size) { in check_backup()
268 if (!st.st_size) { in open_file_read()
274 data->file.size = st.st_size; in open_file_read()
H A Dcopyfile.c104 if (st.st_size == 0) { /* /proc? do it slowly... */ in copyfile_mode_ns()
120 err = copyfile_offset(fromfd, 0, tofd, 0, st.st_size); in copyfile_mode_ns()
/linux/tools/testing/selftests/drivers/sdsi/
H A Dsdsi_test.py106 assert st.st_size == 72
109 assert st.st_size == 1024
112 assert st.st_size == 1024
115 assert st.st_size == 4096
223 assert os.stat('/sys/kernel/debug/kmemleak').st_size == 0
/linux/scripts/basic/
H A Dfixdep.c230 buf = xmalloc(st.st_size + 1); in read_file()
231 if (read(fd, buf, st.st_size) != st.st_size) { in read_file()
235 buf[st.st_size] = '\0'; in read_file()
/linux/arch/alpha/include/uapi/asm/
H A Dstat.h13 long st_size; member
30 long st_size; member
/linux/arch/xtensa/include/uapi/asm/
H A Dstat.h25 long st_size; member
46 long long st_size; /* Size of file, in bytes. */ member
/linux/include/uapi/asm-generic/
H A Dstat.h33 long st_size; /* Size of file, in bytes. */ member
58 long long st_size; /* Size of file, in bytes. */ member
/linux/arch/parisc/include/uapi/asm/
H A Dstat.h15 signed int st_size; member
55 signed long long st_size; member
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dverify_pkcs7_sig.c153 if (st.st_size > sizeof(data_item->sig)) { in populate_data_item_str()
158 data_item->sig_len = st.st_size; in populate_data_item_str()
217 modlen = st.st_size; in populate_data_item_mod()
224 mod = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in populate_data_item_mod()
260 munmap(mod, st.st_size); in populate_data_item_mod()
418 return st.st_size; in get_signature_size()
/linux/tools/testing/selftests/splice/
H A Dsplice_read.c39 if (statbuf.st_size > INT_MAX) { in main()
44 size = statbuf.st_size; in main()
/linux/arch/sparc/include/asm/
H A Dcompat.h40 compat_off_t st_size; member
67 long long st_size; member
/linux/arch/sparc/vdso/
H A Dvma.c128 osym->st_size = nsym->st_size; in patchsym64()
196 osym->st_size = nsym->st_size; in patchsym32()
/linux/tools/power/acpi/tools/pfrut/
H A Dpfrut.c346 addr_map_capsule = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, in main()
357 ret = write(fd_update, (char *)addr_map_capsule, st.st_size); in main()
363 munmap(addr_map_capsule, st.st_size); in main()
371 munmap(addr_map_capsule, st.st_size); in main()

12345