/external/openssh/ |
roaming_dummy.c | 39 roaming_write(int fd, const void *buf, size_t count, int *cont) 41 return write(fd, buf, count); 45 roaming_read(int fd, void *buf, size_t count, int *cont) 49 return read(fd, buf, count);
|
/external/skia/src/utils/android/ |
ashmem.h | 18 int ashmem_set_prot_region(int fd, int prot); 19 int ashmem_pin_region(int fd, size_t offset, size_t len); 20 int ashmem_unpin_region(int fd, size_t offset, size_t len); 21 int ashmem_get_size_region(int fd);
|
/hardware/qcom/bt/libbt-vendor/src/ |
userial_vendor.c | 71 int fd; local 73 fd = bt_hci_init_transport_id(i); 74 if(fd < 0 ){ 77 pFd[i] = fd; 85 int fd = -1; local 91 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); 93 while ((-1 == fd) && (retry < 7)) { 97 fd = open(bt_hci_transport_device.name, (O_RDWR | O_NOCTTY)); 101 if (-1 == fd) 116 if (tcflush(fd, TCIOFLUSH) < 0 [all...] |
/libcore/luni/src/main/java/libcore/io/ |
AsynchronousCloseMonitor.java | 25 public static native void signalBlockedThreads(FileDescriptor fd);
|
/system/core/include/cutils/ |
ashmem.h | 20 int ashmem_set_prot_region(int fd, int prot); 21 int ashmem_pin_region(int fd, size_t offset, size_t len); 22 int ashmem_unpin_region(int fd, size_t offset, size_t len); 23 int ashmem_get_size_region(int fd);
|
/bionic/libc/bionic/ |
lseek64.c | 30 extern int __llseek(int fd, unsigned long offset_hi, unsigned long offset_lo, loff_t* result, int whence); 32 off64_t lseek64(int fd, off64_t off, int whence) 36 if ( __llseek(fd, (unsigned long)(off >> 32),(unsigned long)(off), &result, whence ) < 0 )
|
signalfd.cpp | 33 extern "C" int signalfd4(int fd, kernel_sigset_t* mask, size_t sizemask, int flags); 35 int signalfd(int fd, const sigset_t* mask, int flags) { 37 return signalfd4(fd, &in_set, sizeof(in_set), flags);
|
cpuacct.c | 38 int fd; local 44 fd = open(buf, O_RDWR | O_CREAT, 0666); 45 if (fd == -1) { 53 fd = open(buf, O_RDWR | O_CREAT, 0666); 55 if (fd == -1) 58 n = TEMP_FAILURE_RETRY(write(fd, "0", 1)); 64 if (TEMP_FAILURE_RETRY(close(fd)) == -1)
|
/device/lge/mako/camera/QCamera/stack/mm-camera-interface/inc/ |
mm_camera_sock.h | 43 int fd, 49 int fd, 54 void mm_camera_socket_close(int fd);
|
/device/lge/mako/camera/mm-camera-interface/ |
mm_camera_sock.h | 43 int fd, 49 int fd, 54 void mm_camera_socket_close(int fd);
|
/external/expat/xmlwf/ |
readfilemap.c | 49 int fd; local 54 fd = open(name, O_RDONLY|O_BINARY); 55 if (fd < 0) { 59 if (fstat(fd, &sb) < 0) { 61 close(fd); 66 close(fd); 74 close(fd); 80 close(fd); 83 n = read(fd, p, nbytes); 87 close(fd); [all...] |
/external/valgrind/main/memcheck/tests/ |
mmaptest.c | 9 int fd; local 12 fd = open("dir", O_RDONLY); 13 mmap(NULL, 4711, PROT_READ, MAP_PRIVATE, fd, 0);
|
/hardware/invensense/libsensors_iio/ |
MPLSupport.h | 27 int read_attribute_sensor(int fd, char* data, unsigned int size); 28 int enable_sysfs_sensor(int fd, int en); 29 int write_attribute_sensor(int fd, long data);
|
/system/core/adb/ |
adb_client.c | 92 static int switch_socket_transport(int fd) 124 if(writex(fd, tmp, 4) || writex(fd, service, len)) { 126 adb_close(fd); 131 if(adb_status(fd)) { 132 adb_close(fd); 140 int adb_status(int fd) 145 if(readx(fd, buf, 4)) { 161 if(readx(fd, buf, 4)) { 168 if(readx(fd, __adb_error, len)) 180 int fd; local 222 int fd = _adb_connect("host:version"); local 295 int fd = adb_connect(service); local 315 int fd = adb_connect(service); local [all...] |
remount_service.c | 36 int fd; local 43 fd = unix_open("/proc/mounts", O_RDONLY); 44 if (fd < 0) 48 size = adb_read(fd, buf, sizeof(buf) - 1); 49 adb_close(fd); 92 static void write_string(int fd, const char* str) 94 writex(fd, str, strlen(str)); 97 void remount_service(int fd, void *cookie) 102 write_string(fd, "remount succeeded\n"); 106 write_string(fd, buffer) [all...] |
/hardware/samsung_slsi/exynos5/libv4l2/ |
exynos_subdev.c | 48 int fd; local 53 fd = open(filename, oflag, mode); 55 return fd; 61 int fd; local 64 fd = __subdev_open(filename, oflag, ap); 67 return fd; 73 int fd = -1; local 120 fd = __subdev_open(filename, oflag, ap); 123 if (fd > 0) 131 return fd; [all...] |
/system/bluetooth/tools/ |
asocket_test.c | 52 int fd; member in struct:thread_args 82 printf("%d ", ufds[i].fd); 127 static int _close(int fd, int type) { 130 printf("%d: close(%d)\n", gettid(), fd); 131 ret = close(fd); 132 printf("%d: close(%d) = %d\n", gettid(), fd, ret); 138 static int _bind(int fd, int type) { 167 printf("%d: bind(%d)\n", gettid(), fd); 168 ret = bind(fd, addr, len); 169 printf("%d: bind(%d) = %d\n", gettid(), fd, ret) 325 int fd = (int)args; local 335 int fd = (int)args; local 342 int fd = (int)args; local 399 int fd; local 419 int fd; local 444 int fd; local 472 int fd; local 497 int fd; local 523 int fd; local 546 int fd; local 567 int fd; local 588 int fd; local 644 int fd; local [all...] |
/external/compiler-rt/lib/tsan/lit_tests/ |
race_on_read.cc | 9 int fd; variable 13 read(fd, &buf, 1); 18 fd = open("/dev/random", O_RDONLY); 19 if (fd < 0) return 1; 25 close(fd);
|
race_on_write.cc | 9 int fd; variable 19 write(fd, &buf, 1); 24 fd = open("/dev/null", O_WRONLY); 25 if (fd < 0) return 1; 32 close(fd);
|
/external/libselinux/src/ |
check_context.c | 15 int fd, ret; local 23 fd = open(path, O_RDWR); 24 if (fd < 0) 27 ret = write(fd, con, strlen(con) + 1); 28 close(fd);
|
disable.c | 14 int fd, ret; local 24 fd = open(path, O_WRONLY); 25 if (fd < 0) 30 ret = write(fd, buf, strlen(buf)); 31 close(fd);
|
getenforce.c | 14 int fd, ret, enforce = 0; local 24 fd = open(path, O_RDONLY); 25 if (fd < 0) 29 ret = read(fd, buf, sizeof buf - 1); 30 close(fd);
|
setenforce.c | 14 int fd, ret; local 24 fd = open(path, O_RDWR); 25 if (fd < 0) 29 ret = write(fd, buf, strlen(buf)); 30 close(fd);
|
/system/extras/tests/cpueater/ |
cpueater.c | 32 int fd; local 60 for (fd = 3; fd < 256; fd++) { 61 close(fd);
|
/external/openssh/openbsd-compat/ |
bsd-closefrom.c | 71 long fd, maxfd; local 78 /* Check for a /proc/$$/fd directory. */ 79 len = snprintf(fdpath, sizeof(fdpath), "/proc/%ld/fd", (long)getpid()); 82 fd = strtol(dent->d_name, &endp, 10); 84 fd >= 0 && fd < INT_MAX && fd >= lowfd && fd != dirfd(dirp)) 85 (void) close((int) fd); 94 * and then drop the rlimit such that it is below the open fd [all...] |