Searched defs:fd (Results 126 - 150 of 1197) sorted by relevance

1234567891011>>

/external/e2fsprogs/misc/
H A Dpartinfo.c29 int fd, i; local
47 fd = open(argv[i], O_RDONLY);
49 if (fd < 0) {
55 if (ioctl(fd, HDIO_GETGEO, &loc) < 0) {
58 close(fd);
63 if (ioctl(fd, BLKGETSIZE, &size) < 0) {
66 close(fd);
74 close(fd);
/external/elfutils/src/tests/
H A Darsymtest.c30 int fd; local
40 fd = open (argv[1], O_RDONLY);
41 if (fd == -1)
59 elf = elf_begin (fd, ELF_C_READ, NULL);
97 subelf = elf_begin (fd, ELF_C_READ, elf);
132 close (fd);
H A Dbuildid.c45 int fd = open (file, O_RDONLY); local
46 if (fd < 0)
49 Elf *elf = elf_begin (fd, ELF_C_READ, NULL);
53 close (fd);
77 close (fd);
H A Ddebuglink.c43 int fd = open (file, O_RDONLY); local
44 if (fd < 0)
47 Elf *elf = elf_begin (fd, ELF_C_READ, NULL);
60 close (fd);
H A Ddwarf-getstring.c40 int fd = open64 (argv[cnt], O_RDONLY); local
41 if (fd == -1)
47 Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);
51 close (fd);
73 close (fd);
H A Dscnnames.c31 int fd; local
42 fd = open (argv[1], O_RDONLY);
43 if (fd == -1)
51 elf = elf_begin (fd, ELF_C_READ, NULL);
H A Dtest-elf_cntl_gelf_getshdr.c66 int fd = open (argv[2], O_RDONLY); local
67 if (fd < 0)
74 Elf *elf = elf_begin (fd, do_mmap ? ELF_C_READ_MMAP : ELF_C_READ, NULL);
90 close (fd);
H A Dtest-flag-nobits.c29 int fd = open64 (argv[1], O_RDONLY); local
30 Elf *stripped = elf_begin (fd, ELF_C_READ, NULL);
H A Dupdate1.c36 int fd; local
41 fd = open (fname, O_RDWR | O_CREAT | O_TRUNC, 0666);
42 if (fd == -1)
50 elf = elf_begin (fd, ELF_C_WRITE, NULL);
H A Dupdate2.c36 int fd; local
42 fd = open (fname, O_RDWR | O_CREAT | O_TRUNC, 0666);
43 if (fd == -1)
51 elf = elf_begin (fd, ELF_C_WRITE, NULL);
/external/fio/engines/
H A Dgfapi.h12 glfs_fd_t *fd; member in struct:gf_data
/external/google-breakpad/src/client/linux/minidump_writer/
H A Ddirectory_reader_unittest.cc59 const int fd = open("/proc/self", O_DIRECTORY | O_RDONLY); local
60 ASSERT_GE(fd, 0);
62 DirectoryReader dir_reader(fd);
77 close(fd);
/external/google-breakpad/src/common/linux/
H A Dgoogle_crashdump_uploader_test.cc82 int fd = mkstemp(tempfn); local
83 ASSERT_NE(fd, -1);
84 close(fd);
/external/iptables/include/libipq/
H A Dlibipq.h50 int fd; member in struct:ipq_handle
/external/jemalloc/test/unit/
H A Dprof_idump.c14 int fd; local
18 fd = open("/dev/null", O_WRONLY);
19 assert_d_ne(fd, -1, "Unexpected open() failure");
21 return (fd);
/external/libdrm/exynos/
H A Dexynos_drmif.h35 int fd; member in struct:exynos_device
60 struct exynos_device * exynos_device_create(int fd);
76 int *fd);
77 int exynos_prime_fd_to_handle(struct exynos_device *dev, int fd,
/external/libdrm/rockchip/
H A Drockchip_drmif.h36 int fd; member in struct:rockchip_device
61 struct rockchip_device *rockchip_device_create(int fd);
/external/libdrm/tests/
H A Dgem_basic.c40 test_bad_close(int fd) argument
48 ret = ioctl(fd, DRM_IOCTL_GEM_CLOSE, &close);
54 test_create_close(int fd) argument
64 ret = ioctl(fd, DRM_IOCTL_I915_GEM_CREATE, &create);
68 ret = ioctl(fd, DRM_IOCTL_GEM_CLOSE, &close);
72 test_create_fd_close(int fd) argument
81 ret = ioctl(fd, DRM_IOCTL_I915_GEM_CREATE, &create);
84 close(fd);
89 int fd; local
91 fd
[all...]
H A Dname_from_fd.c42 int fd, ret; local
47 fd = open("/dev/dri/card0", O_RDWR);
48 if (fd == -1)
51 v = drmGetDeviceNameFromFd(fd);
52 close(fd);
/external/libdrm/tests/radeon/
H A Dradeon_ttm.c35 void ttm_starve_kernel_private_memory(int fd) argument
44 bo = rbo(fd, 0, 4096, 0, NULL);
69 fprintf(stderr, "failed to open radeon fd\n");
H A Drbo.h33 int fd; member in struct:rbo
42 struct rbo *rbo(int fd, unsigned handle, unsigned size,
/external/libdrm/tests/tegra/
H A Dopenclose.c41 int err, fd; local
48 fd = open(device, O_RDWR);
49 if (fd < 0)
52 version = drmGetVersion(fd);
63 err = drm_tegra_new(&tegra, fd);
68 close(fd);
/external/libselinux/src/
H A Dcanonicalize_context.c18 int fd, ret; local
26 fd = open(path, O_RDWR);
27 if (fd < 0)
38 ret = write(fd, buf, strlen(buf) + 1);
43 ret = read(fd, buf, size - 1);
59 close(fd);
H A Dcompute_create.c21 int fd, ret; local
29 fd = open(path, O_RDWR);
30 if (fd < 0)
41 ret = write(fd, buf, strlen(buf));
46 ret = read(fd, buf, size - 1);
59 close(fd);
H A Dget_initial_context.c19 int fd, ret; local
28 fd = open(path, O_RDONLY);
29 if (fd < 0)
39 ret = read(fd, buf, size - 1);
52 close(fd);

Completed in 450 milliseconds

1234567891011>>