/external/elfutils/tests/ |
arls.c | 30 int fd = open (fname, O_RDONLY); local 31 if (fd == -1) 37 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); 42 close (fd); 50 close (fd); 57 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) 66 close (fd); 88 close (fd);
|
arsymtest.c | 38 int fd; local 48 fd = open (argv[1], O_RDONLY); 49 if (fd == -1) 67 elf = elf_begin (fd, ELF_C_READ, NULL); 105 subelf = elf_begin (fd, ELF_C_READ, elf); 140 close (fd);
|
scnnames.c | 39 int fd; local 50 fd = open (argv[1], O_RDONLY); 51 if (fd == -1) 59 elf = elf_begin (fd, ELF_C_READ, NULL);
|
/external/iptables/include/libipq/ |
libipq.h | 50 int fd; member in struct:ipq_handle
|
/external/libselinux/src/ |
enabled.c | 75 int fd, ret, enabled = 0; local 81 fd = open(path, O_RDONLY); 82 if (fd < 0) 88 ret = read(fd, buf, sizeof buf - 1); 90 close(fd);
|
/external/qemu/android/config/ |
check-esd.c | 43 int fd; local
|
check-pulseaudio.c | 44 int fd; local
|
/external/qemu/android/ |
core-init-utils.c | 39 int fd; local 50 fd = socket_loopback_client(ui_port, SOCKET_STREAM); 51 if (fd == -1) { 56 socket_send(fd, msg, strlen(msg) + 1); 57 socket_close(fd);
|
/external/valgrind/main/memcheck/tests/ |
pointer-trace.c | 21 int fd; local 64 fd = open("./pointer-trace-test-file", O_RDWR | O_CREAT | O_EXCL, 0600); 66 map = mmap(0, stepsize * 2, PROT_WRITE|PROT_READ, MAP_PRIVATE, fd, 0);
|
/frameworks/av/media/libmediaplayerservice/ |
ActivityManager.cpp | 33 int fd = -1; local 45 // Success is indicated here by a nonzero int followed by the fd; 48 fd = dup(reply.readFileDescriptor()); 58 return fd;
|
/frameworks/compile/mclinker/unittests/ |
FileHandleTest.cpp | 66 int fd = ::open(path.native().c_str(), O_RDONLY); local 68 ASSERT_TRUE(m_pTestee->delegate(fd, FileHandle::ReadOnly)); 82 int close_result = ::close(fd);
|
/hardware/akm/AK8975_FS/libsensors/ |
SensorBase.cpp | 72 int fd, amt; local 74 fd = open(path, O_WRONLY); 75 if (fd < 0) { 81 amt = write(fd, value, bytes); 85 close(fd); 116 int fd = -1; 134 fd = open(devname, O_RDONLY); 135 if (fd>=0) { 137 if (ioctl(fd, EVIOCGNAME(sizeof(name) - 1), &name) < 1) { 144 close(fd); [all...] |
/hardware/libhardware_legacy/qemu_tracing/ |
qemu_tracing.c | 42 int fd = open(SYS_QEMU_TRACE_STATE, O_WRONLY); local 43 if (fd < 0) 44 return fd; 45 write(fd, "1\n", 2); 46 close(fd); 52 int fd = open(SYS_QEMU_TRACE_STATE, O_WRONLY); local 53 if (fd < 0) 54 return fd; 55 write(fd, "0\n", 2); 56 close(fd); 66 int fd = open(SYS_QEMU_TRACE_SYMBOL, O_WRONLY); local 79 int fd = open(SYS_QEMU_TRACE_SYMBOL, O_WRONLY); local [all...] |
/hardware/libhardware_legacy/vibrator/ |
vibrator.c | 28 int fd; local 36 fd = open(THE_DEVICE, O_RDWR); 37 if(fd < 0) 39 close(fd); 45 int nwr, ret, fd; local 54 fd = open(THE_DEVICE, O_RDWR); 55 if(fd < 0) 59 ret = write(fd, value, nwr); 61 close(fd);
|
/hardware/ti/wpan/bluedroid_wilink/ |
libbt-vendor-ti.c | 67 int fd; local 74 fd = open("/dev/hci_tty", O_RDWR); 75 if (fd < 0) { 79 fd_array[CH_CMD] = fd; 80 hci_tty_fd = fd; /* for userial_close op */ 81 return 1; /* CMD/EVT/ACL on same fd */
|
/libcore/luni/src/main/java/libcore/io/ |
StructPollfd.java | 27 public FileDescriptor fd; field in class:StructPollfd 30 * The events we're interested in. POLLIN corresponds to being in select(2)'s read fd set, 31 * POLLOUT to the write fd set. 40 * their fd belongs to. This is used by Selector, for example, to associate each 46 return "StructPollfd[fd=" + fd + ",events=" + events + ",revents=" + revents + "]";
|
/system/core/libcutils/ |
ashmem-dev.c | 44 int fd, ret; local 46 fd = open(ASHMEM_DEVICE, O_RDWR); 47 if (fd < 0) 48 return fd; 54 ret = ioctl(fd, ASHMEM_SET_NAME, buf); 59 ret = ioctl(fd, ASHMEM_SET_SIZE, size); 63 return fd; 66 close(fd); 70 int ashmem_set_prot_region(int fd, int prot) 72 return ioctl(fd, ASHMEM_SET_PROT_MASK, prot) [all...] |
process_name.c | 85 int fd = open(PROCESS_NAME_DEVICE, O_RDWR); local 86 if (fd < 0) 88 write(fd, process_name, strlen(process_name) + 1); 89 close(fd);
|
/system/core/libpixelflinger/codeflinger/ |
blending.cpp | 73 int fd = component==GGLFormat::ALPHA ? mBlendDstA : mBlendDst; local 76 const int blending = blending_codes(fs, fd); 101 (fs==GGL_DST_COLOR && fd==GGL_ONE_MINUS_DST_COLOR) || 102 (fs==GGL_SRC_COLOR && fd==GGL_ONE_MINUS_SRC_COLOR) || 103 (fs==GGL_DST_ALPHA && fd==GGL_ONE_MINUS_DST_ALPHA) || 104 (fs==GGL_SRC_ALPHA && fd==GGL_ONE_MINUS_SRC_ALPHA); 107 (fs==GGL_ONE_MINUS_DST_COLOR && fd==GGL_DST_COLOR) || 108 (fs==GGL_ONE_MINUS_SRC_COLOR && fd==GGL_SRC_COLOR) || 109 (fs==GGL_ONE_MINUS_DST_ALPHA && fd==GGL_DST_ALPHA) || 110 (fs==GGL_ONE_MINUS_SRC_ALPHA && fd==GGL_SRC_ALPHA) [all...] |
/system/core/sh/ |
eval.h | 44 int fd; /* file descriptor to read from */ member in struct:backcmd
|
/system/core/toolbox/ |
rotatefb.c | 18 int fd; local 43 fd = open(fbdev, O_RDWR); 44 if(fd < 0) { 49 res = ioctl(fd, FBIOGET_VSCREENINFO, &fbinfo); 64 res = ioctl(fd, FBIOPUT_VSCREENINFO, &fbinfo);
|
setkey.c | 23 int fd; local 31 fd = open(TTYDEV, O_RDWR | O_SYNC); 32 if (fd < 0) { 53 ret = ioctl(fd, KDSKBENT, &kbe); 63 ret = ioctl(fd, KDGKBENT, &kbe);
|
/system/extras/tests/cpueater/ |
daemonize.c | 33 int pid, fd, mode; local 96 for (fd = 3; fd < 256; fd++) { 97 close(fd);
|
/system/extras/tests/crypto/ |
get_dm_versions.c | 30 int fd; local 32 fd = open("/dev/device-mapper", O_RDWR); 33 if (fd < 0) { 42 if (ioctl(fd, DM_LIST_VERSIONS, io)) { 54 close(fd);
|
/system/extras/tests/ext4/ |
corrupt_gdt_free_blocks.c | 15 int fd; local 27 fd = open(argv[1], O_RDWR); 29 if (fd < 0) { 34 if (lseek(fd, SB_OFFSET, SEEK_SET) == -1) { 39 if (read(fd, &sb, sizeof(sb)) != sizeof(sb)) { 67 if (lseek(fd, block_size, SEEK_SET) == -1) { 75 if (read(fd, &gd, sizeof(gd)) != sizeof(gd)) { 86 if (lseek(fd, -sizeof(gd), SEEK_CUR) == -1) { 91 if (write(fd, &gd, sizeof(gd)) != sizeof(gd)) { 96 close(fd); [all...] |