Home
last modified time | relevance | path

Searched refs:fstat (Results 1 – 25 of 87) sorted by relevance

1234

/kernel/liteos_m/testsuites/unittest/posix/src/fs/api/
Dposix_fs_fstat_test.c48 ret = fstat(fd, &buf);
69 int32_t ret = fstat(-1, &buf); /* -1, bad fd */
85 int32_t ret = fstat(ERROR_CONFIG_NFILE_DESCRIPTORS, &buf);
101 int32_t ret = fstat(0, &buf); /* 0, used for stdin */
105 ret = fstat(1, &buf); /* 1, used for stdout */
109 ret = fstat(2, &buf); /* 2, used for stderr */
130 ret = fstat(fd, buf);
159 ret = fstat(fd, &buf);
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dd_path.c84 fstat(pipefd[0], &fileStat); in trigger_fstat_events()
85 fstat(pipefd[1], &fileStat); in trigger_fstat_events()
86 fstat(sockfd, &fileStat); in trigger_fstat_events()
87 fstat(procfd, &fileStat); in trigger_fstat_events()
88 fstat(devfd, &fileStat); in trigger_fstat_events()
89 fstat(localfd, &fileStat); in trigger_fstat_events()
90 fstat(indicatorfd, &fileStat); in trigger_fstat_events()
/kernel/linux/linux-5.10/tools/testing/selftests/proc/
Dfd-002-posix-eq.c43 rv = fstat(fd0, &st0); in main()
45 rv = fstat(fd1, &st1); in main()
47 rv = fstat(fd2, &st2); in main()
/kernel/linux/build/test/kernel_ltp/syscalls/fstat/
DBUILD.gn19 sources = [ "//third_party/ltp/testcases/kernel/syscalls/fstat/fstat02.c" ]
24 sources = [ "//third_party/ltp/testcases/kernel/syscalls/fstat/fstat03.c" ]
/kernel/linux/linux-5.10/tools/testing/selftests/timens/
Dprocfs.c48 if (fstat(parent_ns, &st1)) in init_namespaces()
58 if (fstat(child_ns, &st2)) in init_namespaces()
Dtimens.c71 if (fstat(parent_ns, &st1)) in init_namespaces()
81 if (fstat(child_ns, &st2)) in init_namespaces()
/kernel/linux/linux-5.10/tools/bootconfig/
Dmain.c140 ret = fstat(fd, &stat); in load_xbc_file()
165 ret = fstat(fd, &stat); in load_xbc_from_initrd()
327 ret = fstat(fd, &stat); in delete_xbc()
401 if (fstat(fd, &stat) < 0) { in apply_xbc()
/kernel/linux/linux-5.10/tools/testing/selftests/splice/
Dsplice_read.c34 if (fstat(fd, &statbuf) < 0) { in main()
/kernel/linux/linux-5.10/tools/perf/util/
Ddata.c155 if (fstat(file->fd, &st)) in perf_data__update_dir()
172 if (!fstat(fd, &st) && S_ISFIFO(st.st_mode)) in check_pipe()
247 if (fstat(fd, &st) < 0) in open_file_read()
Dzlib.c36 if (fstat(input_fd, &stbuf) < 0) in gzip_decompress_to_file()
Dsrccode.c115 if (fd < 0 || fstat(fd, &st) < 0) { in find_srcfile()
/kernel/linux/linux-5.10/tools/testing/selftests/nsfs/
Dpidns.c67 if (fstat(pns, &st1)) in main()
Downer.c64 if (fstat(uns, &st1)) in main()
/kernel/linux/linux-5.10/tools/build/
Dfixdep.c133 if (fstat(fd, &st) < 0) { in print_deps()
/kernel/linux/linux-5.10/scripts/
Dinsert-sys-cert.c212 if (fstat(fd, &st)) { in map_file()
239 if (fstat(fd, &st)) { in read_file()
/kernel/linux/build/test/kernel_ltp/syscalls/
DBUILD.gn199 "fstat:fstat02",
200 "fstat:fstat03",
/kernel/linux/linux-5.10/tools/perf/pmu-events/
Djson.c59 err = fstat(fd, &st); in mapfile()
/kernel/linux/linux-5.10/tools/vm/
Dpage_owner_sort.c110 fstat(fileno(fin), &st); in main()
/kernel/linux/linux-5.10/drivers/spi/
Dspi-lantiq-ssc.c212 u32 fstat = lantiq_ssc_readl(spi, LTQ_SPI_FSTAT); in tx_fifo_level() local
214 return (fstat >> LTQ_SPI_FSTAT_TXFFL_S) & hwcfg->fifo_size_mask; in tx_fifo_level()
220 u32 fstat = lantiq_ssc_readl(spi, LTQ_SPI_FSTAT); in rx_fifo_level() local
222 return (fstat >> LTQ_SPI_FSTAT_RXFFL_S) & hwcfg->fifo_size_mask; in rx_fifo_level()
/kernel/linux/linux-5.10/arch/arm/vdso/
Dvdsomunge.c142 if (fstat(infd, &stat) != 0) in main()
/kernel/uniproton/src/fs/
Dfs.c122 int fstat(int fd, struct stat *buf) in fstat() function
/kernel/linux/linux-5.10/tools/io_uring/
Dio_uring-cp.c51 if (fstat(fd, &st) < 0) in get_file_size()
/kernel/linux/linux-5.10/arch/mips/tools/
Dloongson3-llsc-check.c257 err = fstat(vmlinux_fd, &st); in main()
/kernel/linux/linux-5.10/arch/alpha/boot/tools/
Dobjstrip.c118 if (fstat(fd, &st) == -1) { in main()
/kernel/linux/linux-5.10/scripts/basic/
Dfixdep.c273 if (fstat(fd, &st) < 0) { in read_file()

1234