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

1 2 3 4 5 67 8 91011>>

  /external/perfetto/src/base/
temp_file_unittest.cc 35 int fd; local
39 fd = tf.fd();
41 ASSERT_GE(fd, 0);
43 ASSERT_GE(write(fd, "foo", 4), 0);
47 ASSERT_EQ(-1, tf.fd());
49 ASSERT_EQ(fd, moved_tf.fd());
50 ASSERT_GE(write(moved_tf.fd(), "foo", 4), 0);
54 ASSERT_EQ(-1, moved_tf.fd());
67 int fd; local
79 ScopedFile fd; local
88 ScopedFile fd; local
    [all...]
  /external/ltp/testcases/kernel/security/tomoyo/
tomoyo_new_file_test.c 96 int fd; local
190 fd = open("/dev/null", O_RDONLY);
191 show_result(fd, 1);
192 if (fd != EOF)
193 close(fd);
195 fd = open("/dev/null", O_RDONLY);
196 show_result(fd, 0);
197 if (fd != EOF)
198 close(fd);
202 fd = open("/dev/null", O_RDONLY)
    [all...]
  /external/mesa3d/src/gallium/auxiliary/target-helpers/
drm_helper.h 13 pipe_i915_create_screen(int fd)
18 iws = i915_drm_winsys_create(fd);
29 pipe_i915_create_screen(int fd)
42 pipe_ilo_create_screen(int fd)
47 iws = intel_winsys_create_for_fd(fd);
58 pipe_ilo_create_screen(int fd)
70 pipe_nouveau_create_screen(int fd)
74 screen = nouveau_drm_screen_create(fd);
81 pipe_nouveau_create_screen(int fd)
95 pipe_r300_create_screen(int fd)
    [all...]
  /bionic/libc/include/sys/
select.h 49 #define __FDELT(fd) ((fd) / NFDBITS)
50 #define __FDMASK(fd) (1UL << ((fd) % NFDBITS))
66 #define __FD_CLR(fd, set) (__FDS_BITS(fd_set*,set)[__FDELT(fd)] &= ~__FDMASK(fd))
67 #define __FD_SET(fd, set) (__FDS_BITS(fd_set*,set)[__FDELT(fd)] |= __FDMASK(fd))
    [all...]
  /system/core/adb/
set_verity_enable_state_service.cpp 49 static bool set_verity_enabled_state(int fd, const char* block_device, const char* mount_point,
52 WriteFdFmt(fd, "Could not make block device %s writable (%s).\n",
60 WriteFdFmt(fd, "Could not open block device %s (%s).\n", block_device, strerror(errno));
61 WriteFdFmt(fd, "Maybe run adb root?\n");
68 WriteFdFmt(fd, "Couldn't find verity metadata!\n");
73 WriteFdFmt(fd, "Verity already disabled on %s\n", mount_point);
78 WriteFdFmt(fd, "Verity already enabled on %s\n", mount_point);
83 WriteFdFmt(fd, "Could not set verity %s flag on device %s with error %s\n",
89 WriteFdFmt(fd, "Verity %s on %s\n", enable ? "enabled" : "disabled", mount_point);
106 static bool set_avb_verity_enabled_state(int fd, AvbOps* ops, bool enable_verity)
    [all...]
  /bionic/tests/
eventfd_test.cpp 39 int fd = eventfd(initial_value, O_NONBLOCK); local
40 ASSERT_NE(fd, -1);
43 ASSERT_EQ(0, eventfd_read(fd, &value));
47 ASSERT_EQ(-1, eventfd_read(fd, &value));
51 ASSERT_EQ(0, eventfd_write(fd, 1));
52 ASSERT_EQ(0, eventfd_write(fd, 1));
53 ASSERT_EQ(0, eventfd_write(fd, 1));
55 ASSERT_EQ(0, eventfd_read(fd, &value));
58 close(fd);
  /external/autotest/client/site_tests/platform_TraceClockMonotonic/src/
ftrace-clock-monotonic.c 17 static int write_marker(int fd, char *name)
36 ret = write(fd, buf, size);
47 int ret, fd; local
49 fd = open(TRACE_PATH "trace_marker", O_WRONLY);
50 if (fd < 0) {
54 ret = write_marker(fd, "start");
58 ret = write_marker(fd, "middle");
62 ret = write_marker(fd, "end");
65 close(fd);
  /external/ltp/testcases/kernel/syscalls/flistxattr/
flistxattr03.c 44 static int fd[] = {0, 0}; variable
58 TEST(flistxattr(fd[n], NULL, 0));
64 if (check_suitable_buf(fd[n], TEST_RETURN))
72 fd[0] = SAFE_OPEN("testfile1", O_RDWR | O_CREAT, 0644);
74 fd[1] = SAFE_OPEN("testfile2", O_RDWR | O_CREAT, 0644);
76 SAFE_FSETXATTR(fd[1], SECURITY_KEY, VALUE, VALUE_SIZE, XATTR_CREATE);
81 SAFE_CLOSE(fd[1]);
82 SAFE_CLOSE(fd[0]);
89 .tcnt = ARRAY_SIZE(fd),
  /external/ltp/testcases/kernel/syscalls/ioctl/
ioctl05.c 31 static int fd; variable
40 fd = SAFE_OPEN(tst_device->dev, O_RDONLY);
42 SAFE_IOCTL(fd, BLKGETSIZE, &size);
43 SAFE_IOCTL(fd, BLKGETSIZE64, &size64);
54 if (lseek(fd, size * 512, SEEK_SET) != (off_t)size * 512) {
61 ret = read(fd, &buf, 1);
71 SAFE_CLOSE(fd);
76 if (fd > 0)
77 SAFE_CLOSE(fd);
  /external/ltp/testcases/kernel/syscalls/mq_timedsend/
mq_timedsend01.c 27 static int fd, fd_root, fd_nonblock, fd_maxint = INT_MAX - 1, fd_invalid = -1; variable
34 .fd = &fd,
40 .fd = &fd,
46 .fd = &fd,
52 .fd = &fd,
59 .fd = &fd
    [all...]
  /external/syslinux/efi/
fio.c 145 EFI_FILE_HANDLE fd = NULL; local
153 &fd,
157 return fd;
171 size_t efi_xpread(EFI_FILE_HANDLE fd, void *buf, size_t count, off_t offset)
173 ASSERT(fd);
174 efi_errno = uefi_call_wrapper(fd->SetPosition,
176 fd,
179 efi_errno = uefi_call_wrapper(fd->Read,
181 fd,
189 size_t efi_xpwrite(EFI_FILE_HANDLE fd, void *buf, size_t count, off_t offset
    [all...]
  /system/core/trusty/libtrusty/
trusty.c 34 int fd; local
37 fd = open(dev_name, O_RDWR);
38 if (fd < 0) {
45 rc = ioctl(fd, TIPC_IOC_CONNECT, srv_name);
50 close(fd);
54 ALOGV("%s: connected to \"%s\" fd %d\n", __func__, srv_name, fd);
55 return fd;
58 void tipc_close(int fd)
60 close(fd);
    [all...]
  /toolchain/binutils/binutils-2.27/gas/testsuite/gas/rx/
mvfc.d 9 0: fd 6a 00 mvfc psw, r0
10 3: fd 6a 0f mvfc psw, r15
11 6: fd 6a 30 mvfc fpsw, r0
12 9: fd 6a 3f mvfc fpsw, r15
13 c: fd 6a 20 mvfc usp, r0
14 f: fd 6a 2f mvfc usp, r15
15 12: fd 6a a0 mvfc isp, r0
16 15: fd 6a af mvfc isp, r15
17 18: fd 6a c0 mvfc intb, r0
18 1b: fd 6a cf mvfc intb, r1
    [all...]
  /external/compiler-rt/lib/tsan/rtl/
tsan_fd.h 42 void FdAcquire(ThreadState *thr, uptr pc, int fd);
43 void FdRelease(ThreadState *thr, uptr pc, int fd);
44 void FdAccess(ThreadState *thr, uptr pc, int fd);
45 void FdClose(ThreadState *thr, uptr pc, int fd, bool write = true);
46 void FdFileCreate(ThreadState *thr, uptr pc, int fd);
49 void FdEventCreate(ThreadState *thr, uptr pc, int fd);
50 void FdSignalCreate(ThreadState *thr, uptr pc, int fd);
51 void FdInotifyCreate(ThreadState *thr, uptr pc, int fd);
52 void FdPollCreate(ThreadState *thr, uptr pc, int fd);
53 void FdSocketCreate(ThreadState *thr, uptr pc, int fd);
    [all...]
  /external/strace/tests/
netlink_selinux.c 37 test_nlmsg_type(const int fd)
46 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0);
50 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc));
54 test_selnl_msg_unspec(const int fd)
58 TEST_NETLINK_(fd, nlh0,
66 test_selnl_msg_setenforce(const int fd)
73 TEST_NETLINK_OBJECT(fd, nlh0,
80 test_selnl_msg_policyload(const int fd)
87 TEST_NETLINK_OBJECT(fd, nlh0,
95 skip_if_unavailable("/proc/self/fd/");
97 int fd = create_nl_socket(NETLINK_SELINUX); local
    [all...]
  /external/strace/tests-m32/
netlink_selinux.c 37 test_nlmsg_type(const int fd)
46 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0);
50 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc));
54 test_selnl_msg_unspec(const int fd)
58 TEST_NETLINK_(fd, nlh0,
66 test_selnl_msg_setenforce(const int fd)
73 TEST_NETLINK_OBJECT(fd, nlh0,
80 test_selnl_msg_policyload(const int fd)
87 TEST_NETLINK_OBJECT(fd, nlh0,
95 skip_if_unavailable("/proc/self/fd/");
97 int fd = create_nl_socket(NETLINK_SELINUX); local
    [all...]
  /external/strace/tests-mx32/
netlink_selinux.c 37 test_nlmsg_type(const int fd)
46 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0);
50 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc));
54 test_selnl_msg_unspec(const int fd)
58 TEST_NETLINK_(fd, nlh0,
66 test_selnl_msg_setenforce(const int fd)
73 TEST_NETLINK_OBJECT(fd, nlh0,
80 test_selnl_msg_policyload(const int fd)
87 TEST_NETLINK_OBJECT(fd, nlh0,
95 skip_if_unavailable("/proc/self/fd/");
97 int fd = create_nl_socket(NETLINK_SELINUX); local
    [all...]
  /hardware/qcom/gps/loc_api/libloc_api_50001/
loc_eng_dmn_conn_glue_pipe.c 63 int fd; local
82 fd = open(pipe_name, mode);
83 if (fd <= 0)
87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name);
88 return fd;
98 fd - fd for the pipe
110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd)
112 close(fd);
    [all...]
  /hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/
loc_eng_dmn_conn_glue_pipe.c 63 int fd; local
82 fd = open(pipe_name, mode);
83 if (fd <= 0)
87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name);
88 return fd;
98 fd - fd for the pipe
110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd)
112 close(fd);
    [all...]
  /hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/
loc_eng_dmn_conn_glue_pipe.c 63 int fd; local
82 fd = open(pipe_name, mode);
83 if (fd <= 0)
87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name);
88 return fd;
98 fd - fd for the pipe
110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd)
112 close(fd);
    [all...]
  /hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/
loc_eng_dmn_conn_glue_pipe.c 63 int fd; local
82 fd = open(pipe_name, mode);
83 if (fd <= 0)
87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name);
88 return fd;
98 fd - fd for the pipe
110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd)
112 close(fd);
    [all...]
  /hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/
loc_eng_dmn_conn_glue_pipe.c 63 int fd; local
82 fd = open(pipe_name, mode);
83 if (fd <= 0)
87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name);
88 return fd;
98 fd - fd for the pipe
110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd)
112 close(fd);
    [all...]
  /hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/
loc_eng_dmn_conn_glue_pipe.c 63 int fd; local
82 fd = open(pipe_name, mode);
83 if (fd <= 0)
87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name);
88 return fd;
98 fd - fd for the pipe
110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd)
112 close(fd);
    [all...]
  /system/core/qemu_pipe/
qemu_pipe.cpp 44 int fd = TEMP_FAILURE_RETRY(open("/dev/qemu_pipe", O_RDWR)); local
45 if (fd < 0) {
53 if (WriteFully(fd, pipeName, pipeNameLen + 1U)) {
54 return fd;
61 if (WriteFully(fd, pipe_prefix, strlen(pipe_prefix)) &&
62 WriteFully(fd, pipeName, pipeNameLen + 1U)) {
63 return fd;
67 close(fd);
71 int qemu_pipe_frame_send(int fd, const void* buff, size_t len) {
74 if (!WriteFully(fd, header, 4))
    [all...]
  /external/google-breakpad/src/client/windows/sender/
crash_report_sender.cc 53 FILE *fd; local
54 if (OpenCheckpointFile(L"r", &fd) == 0) {
55 ReadCheckpoint(fd);
56 fclose(fd);
85 void CrashReportSender::ReadCheckpoint(FILE *fd) {
87 if (!fgets(buf, sizeof(buf), fd) ||
92 if (fscanf_s(fd, "%d\n", &last_sent_date_) != 1) {
96 if (fscanf_s(fd, "%d\n", &reports_sent_) != 1) {
111 FILE *fd; local
112 if (OpenCheckpointFile(L"w", &fd) == 0)
    [all...]

Completed in 381 milliseconds

1 2 3 4 5 67 8 91011>>