/external/e2fsprogs/misc/ |
H A D | partinfo.c | 29 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 D | arsymtest.c | 30 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 D | buildid.c | 45 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 D | debuglink.c | 43 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 D | dwarf-getstring.c | 40 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 D | scnnames.c | 31 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 D | test-elf_cntl_gelf_getshdr.c | 66 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 D | test-flag-nobits.c | 29 int fd = open64 (argv[1], O_RDONLY); local 30 Elf *stripped = elf_begin (fd, ELF_C_READ, NULL);
|
H A D | update1.c | 36 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 D | update2.c | 36 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 D | gfapi.h | 12 glfs_fd_t *fd; member in struct:gf_data
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
H A D | directory_reader_unittest.cc | 59 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 D | google_crashdump_uploader_test.cc | 82 int fd = mkstemp(tempfn); local 83 ASSERT_NE(fd, -1); 84 close(fd);
|
/external/iptables/include/libipq/ |
H A D | libipq.h | 50 int fd; member in struct:ipq_handle
|
/external/jemalloc/test/unit/ |
H A D | prof_idump.c | 14 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 D | exynos_drmif.h | 35 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 D | rockchip_drmif.h | 36 int fd; member in struct:rockchip_device 61 struct rockchip_device *rockchip_device_create(int fd);
|
/external/libdrm/tests/ |
H A D | gem_basic.c | 40 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 D | name_from_fd.c | 42 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 D | radeon_ttm.c | 35 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 D | rbo.h | 33 int fd; member in struct:rbo 42 struct rbo *rbo(int fd, unsigned handle, unsigned size,
|
/external/libdrm/tests/tegra/ |
H A D | openclose.c | 41 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 D | canonicalize_context.c | 18 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 D | compute_create.c | 21 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 D | get_initial_context.c | 19 int fd, ret; local 28 fd = open(path, O_RDONLY); 29 if (fd < 0) 39 ret = read(fd, buf, size - 1); 52 close(fd);
|