Home
last modified time | relevance | path

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

123456

/kernel/liteos_a/testsuites/unittest/basic/exc/full/
Dit_test_fexecve_001.cpp69 printf("shm_fd=%d,st.st_size=%lld\n", shmFd, st.st_size); in TestCase()
70 rc = ftruncate(shmFd, st.st_size); in TestCase()
77 p = mmap(nullptr, st.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, shmFd, 0); in TestCase()
88 munmap(p, st.st_size); in TestCase()
93 rc = read(fd, p, st.st_size); in TestCase()
96 munmap(p, st.st_size); in TestCase()
100 if (rc != st.st_size) { in TestCase()
102 munmap(p, st.st_size); in TestCase()
107 munmap(p, st.st_size); in TestCase()
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-x86/asm/
Dstat.h32 unsigned long st_size; member
57 long long st_size; member
80 __kernel_long_t st_size; member
103 unsigned long st_size; member
108 unsigned int st_size; member
/kernel/linux/linux-5.10/arch/x86/include/uapi/asm/
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
/kernel/linux/linux-5.10/arch/s390/include/uapi/asm/
Dstat.h20 unsigned long st_size; member
36 unsigned long st_size; member
63 long long st_size; member
88 unsigned long st_size; member
/kernel/linux/linux-5.10/arch/sparc/include/uapi/asm/
Dstat.h17 long st_size; member
37 long st_size; member
60 long st_size; member
89 long long st_size; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-arm/asm/
Dstat.h29 unsigned long st_size; member
43 unsigned long st_size; member
66 long long st_size; member
/kernel/linux/linux-5.10/arch/sh/include/uapi/asm/
Dstat.h13 unsigned long st_size; member
27 unsigned long st_size; member
59 long long st_size; member
/kernel/linux/linux-5.10/tools/build/
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()
/kernel/linux/linux-5.10/arch/m68k/include/uapi/asm/
Dstat.h13 unsigned long st_size; member
29 unsigned long st_size; member
61 long long st_size; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/asm-arm/asm/
Dstat.h16 unsigned long st_size; member
40 unsigned long st_size; member
63 long long st_size; member
/kernel/linux/linux-5.10/arch/arm/include/uapi/asm/
Dstat.h13 unsigned long st_size; member
39 unsigned long st_size; member
72 long long st_size; member
/kernel/linux/linux-5.10/arch/arm/vdso/
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()
/kernel/linux/linux-5.10/arch/powerpc/include/uapi/asm/
Dstat.h23 unsigned long st_size; member
43 long st_size; member
69 long long st_size; /* Size of file, in bytes. */ member
/kernel/linux/linux-5.10/scripts/
Drecordmcount.c73 munmap(file_map, sb.st_size); in mmap_cleanup()
91 file_ptr = file_map + (sb.st_size - offset); in ulseek()
172 sb.st_size = 0; in mmap_file()
187 file_map = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_PRIVATE, in mmap_file()
191 file_map = umalloc(sb.st_size); in mmap_file()
196 if (read(fd_map, file_map, sb.st_size) != sb.st_size) { in mmap_file()
208 file_end = file_map + sb.st_size; in mmap_file()
337 n = write(fd_map, file_map, sb.st_size); in write_file()
338 if (n != sb.st_size) { in write_file()
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-mips/asm/
Dstat.h34 long st_size; member
56 long long st_size; member
79 long st_size; member
/kernel/linux/linux-5.10/arch/mips/include/uapi/asm/
Dstat.h29 long st_size; member
67 long long st_size; member
108 long st_size; member
/kernel/linux/linux-5.10/tools/bootconfig/
Dmain.c144 ret = load_xbc_fd(fd, buf, stat.st_size); in load_xbc_file()
169 if (stat.st_size < 8 + BOOTCONFIG_MAGIC_LEN) in load_xbc_from_initrd()
194 if (stat.st_size < size + 8 + BOOTCONFIG_MAGIC_LEN) { in load_xbc_from_initrd()
199 if (lseek(fd, stat.st_size - (size + 8 + BOOTCONFIG_MAGIC_LEN), in load_xbc_from_initrd()
289 if (ret == 0 && st.st_size <= XBC_DATA_MAX) { in show_xbc()
329 ret = ftruncate(fd, stat.st_size in delete_xbc()
408 total_size = stat.st_size + size + sizeof(u32) * 2 + BOOTCONFIG_MAGIC_LEN; in apply_xbc()
445 if (ftruncate(fd, stat.st_size) < 0) { in apply_xbc()
/kernel/linux/linux-5.10/tools/perf/util/
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()
/kernel/linux/linux-5.10/arch/alpha/include/uapi/asm/
Dstat.h13 long st_size; member
30 long st_size; member
/kernel/linux/linux-5.10/arch/ia64/include/uapi/asm/
Dstat.h19 unsigned long st_size; member
42 unsigned long st_size; member
/kernel/linux/linux-5.10/arch/xtensa/include/uapi/asm/
Dstat.h25 long st_size; member
46 long long st_size; /* Size of file, in bytes. */ member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-generic/
Dstat.h32 long st_size; member
55 long long st_size; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/asm-generic/
Dstat.h19 long st_size; member
42 long long st_size; member
/kernel/linux/linux-5.10/include/uapi/asm-generic/
Dstat.h33 long st_size; /* Size of file, in bytes. */ member
58 long long st_size; /* Size of file, in bytes. */ member
/kernel/linux/linux-5.10/arch/parisc/include/uapi/asm/
Dstat.h15 signed int st_size; member
55 signed long long st_size; member

123456