HomeSort by relevance Sort by last modified time
    Searched refs:fd (Results 501 - 525 of 9164) sorted by null

<<21222324252627282930>>

  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
38-1.c 25 int fd = 0, count = 0; local
27 while (fd != -1) {
28 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
  /external/python/cpython3/Lib/test/
tf_inherit_check.py 12 fd = int(sys.argv[2]) variable
15 os.write(fd, b"blat")
17 # Success -- could not write to fd.
21 sys.stderr.write("fd %d is open in child" % fd)
  /external/syslinux/com32/lib/sys/
read.c 41 ssize_t read(int fd, void *buf, size_t count)
43 struct file_info *fp = &__file_info[fd];
45 if (fd >= NFILES || !fp->iop) {
write.c 41 ssize_t write(int fd, void *buf, size_t count)
43 struct file_info *fp = &__file_info[fd];
45 if (fd >= NFILES || !fp->oop) {
  /frameworks/av/media/libmediaplayerservice/
ActivityManager.cpp 29 int fd = -1; local
35 fd = am->openContentUri(uri);
38 return fd;
  /hardware/ril/libril/
ril_event.h 18 // Max number of fd's we watch at any one time. Increase if necessary.
21 typedef void (*ril_event_cb)(int fd, short events, void *userdata);
27 int fd; member in struct:ril_event
39 void ril_event_set(struct ril_event * ev, int fd, bool persist, ril_event_cb func, void * param);
  /packages/services/Telephony/src/com/android/phone/
DumpsysHandler.java 16 public static void dump(Context context, FileDescriptor fd, PrintWriter writer,
18 PhoneGlobals.getInstance().dump(fd, writer, args);
20 VvmDumpHandler.dump(context, fd, writer, args);
  /bionic/libc/bionic/
fchmod.cpp 40 int fchmod(int fd, mode_t mode) {
42 int result = ___fchmod(fd, mode);
47 // fd could be an O_PATH file descriptor, and the kernel
49 // Use /proc/self/fd instead to emulate this support.
55 int fd_flag = fcntl(fd, F_GETFL);
62 result = chmod(FdPath(fd).c_str(), mode);
fchmodat.cpp 50 int fd = openat(dirfd, pathname, O_PATH | O_NOFOLLOW | O_CLOEXEC); local
51 if (fd == -1) {
60 int result = fchmod(fd, mode);
62 close(fd);
fgetxattr.cpp 40 ssize_t fgetxattr(int fd, const char *name, void *value, size_t size) {
42 ssize_t result = ___fgetxattr(fd, name, value, size);
48 // fd could be an O_PATH file descriptor, and the kernel
50 // Use /proc/self/fd instead to emulate this support.
51 int fd_flag = fcntl(fd, F_GETFL);
58 return getxattr(FdPath(fd).c_str(), name, value, size);
flistxattr.cpp 40 ssize_t flistxattr(int fd, char *list, size_t size) {
42 ssize_t result = ___flistxattr(fd, list, size);
47 // fd could be an O_PATH file descriptor, and the kernel
49 // Use /proc/self/fd instead to emulate this support.
50 int fd_flag = fcntl(fd, F_GETFL);
57 return listxattr(FdPath(fd).c_str(), list, size);
fsetxattr.cpp 40 int fsetxattr(int fd, const char* name, const void* value, size_t size, int flags) {
42 int result = ___fsetxattr(fd, name, value, size, flags);
47 // fd could be an O_PATH file descriptor, and the kernel
49 // Use /proc/self/fd instead to emulate this support.
50 int fd_flag = fcntl(fd, F_GETFL);
57 return setxattr(FdPath(fd).c_str(), name, value, size, flags);
  /device/generic/goldfish-opengl/system/OpenglSystemCommon/
qemu_pipe.h 33 static bool WriteFully(int fd, const void* data, size_t byte_count) {
37 ssize_t n = TEMP_FAILURE_RETRY(write(fd, p, remaining));
72 int fd, ret; local
81 fd = TEMP_FAILURE_RETRY(open("/dev/qemu_pipe", O_RDWR));
82 if (fd < 0 && errno == ENOENT)
83 fd = TEMP_FAILURE_RETRY(open("/dev/goldfish_pipe", O_RDWR));
84 if (fd < 0) {
92 if (!WriteFully(fd, buff, buffLen + 1)) {
97 return fd;
  /device/google/cuttlefish_common/guest/hals/gps/
gps_thread.h 44 int fd; member in struct:__anon2007
59 static inline int epoll_register(int epoll_fd, int fd) {
60 fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK);
64 ev.data.fd = fd;
68 ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev);
73 static inline int epoll_deregister(int epoll_fd, int fd) {
76 ret = epoll_ctl(epoll_fd, EPOLL_CTL_DEL, fd, NULL);
  /device/google/marlin/camera/QCamera2/stack/mm-camera-interface/inc/
mm_camera_sock.h 55 int fd,
61 int fd,
68 int fd,
73 void mm_camera_socket_close(int fd);
  /device/google/marlin/camera/QCamera2/stack/mm-camera-test/inc/
mm_qcamera_socket.h 37 #define __FD_SET(fd, fdsetp) \
38 (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] |= (1LU<<((fd) & 31)))
41 #define __FD_CLR(fd, fdsetp) \
42 (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] &= ~(1LU<<((fd) & 31)))
45 #define __FD_ISSET(fd, fdsetp) \
46 ((((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] & (1LU<<((fd) & 31))) != 0)
  /external/adhd/cras/examples/
cplay.c 17 int fd; member in struct:stream_data
34 nread = read(data->fd, playback_samples, frames * data->frame_bytes);
58 int fd; local
67 fd = open(argv[1], O_RDONLY);
68 if (fd < 0) {
76 close(fd);
81 data->fd = fd;
101 close(fd);
  /external/autotest/client/tests/selftest/
selftest.py 12 fd = file(name, 'w')
13 fd.write('0')
14 fd.close()
18 fd = file(name, 'r')
19 current = int(fd.readline())
20 fd.close()
23 fd = file(name + '.new', 'w')
24 fd.write('%d' % current)
25 fd.close()
  /external/compiler-rt/test/asan/TestCases/Posix/
readv.cc 26 int fd = open("/etc/hosts", O_RDONLY); local
27 assert(fd > 0);
28 readv(fd, iov, 2);
30 close(fd);
  /external/compiler-rt/test/msan/Linux/
ioctl_sound.cc 16 int fd = open("/dev/snd/controlC0", O_RDONLY); local
17 if (fd < 0) {
24 assert(ioctl(fd, SNDRV_CTL_IOCTL_CARD_INFO, info) >= 0);
26 close(fd);
  /external/conscrypt/common/src/jni/main/include/conscrypt/
compatibility_close_monitor.h 39 explicit CompatibilityCloseMonitor(int fd) : monitor(fd) {}
60 explicit CompatibilityCloseMonitor(int fd) {
62 asyncCloseMonitorConstructor(objBuffer, fd);
  /external/dhcpcd-6.8.2/compat/
dprintf.c 36 vdprintf(int fd, const char * __restrict fmt, va_list va)
41 if ((e = dup(fd)) == -1)
55 dprintf(int fd, const char * __restrict fmt, ...)
61 e = vdprintf(fd, fmt, va);
  /external/drm_hwcomposer/
autofd.h 27 UniqueFd(int fd) : fd_(fd) {
50 int Set(int fd) {
53 fd_ = fd;
73 OutputFd(int *fd) : fd_(fd) {
86 int Set(int fd) {
89 *fd_ = fd;
90 return fd;
  /external/e2fsprogs/contrib/
make-sparse.c 27 int full_read(int fd, char *buf, size_t count)
33 got = read(fd, buf, count);
54 int fd, got, i; local
62 fd = open(argv[1], O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0777);
63 if (fd < 0) {
76 lseek(fd, sizeof(buf), SEEK_CUR);
82 write(fd, buf, got);
85 lseek(fd, -1, SEEK_CUR);
87 write(fd, buf, 1);
  /external/e2fsprogs/e2fsck/
flushb.c 41 int fd; local
47 fd = open(argv[1], O_RDONLY, 0);
48 if (fd < 0) {
57 if (ioctl(fd, BLKFLSBUF, 0) < 0) {

Completed in 915 milliseconds

<<21222324252627282930>>