Searched defs:fd (Results 301 - 325 of 1450) sorted by relevance

<<11121314151617181920>>

/external/qemu/distrib/libselinux/src/
H A Dcompute_av.c22 int fd, ret; local
30 fd = open(path, O_RDWR);
31 if (fd < 0)
44 ret = write(fd, buf, strlen(buf));
49 ret = read(fd, buf, len - 1);
69 close(fd);
/external/sepolicy/tools/sepolicy-analyze/
H A Dutils.c27 int fd; local
32 fd = open(filename, O_RDONLY);
33 if (fd < 0) {
37 if (fstat(fd, &sb) < 0) {
39 close(fd);
42 map = mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
45 close(fd);
55 close(fd);
62 close(fd);
/external/skia/src/ports/
H A DSkOSFile_none.cpp20 void* sk_fdmmap(int fd, size_t* size) { argument
/external/strace/test/
H A Dmtd.c10 int fd = open("/dev/null", 0); local
27 ioctl(fd, MEMGETINFO, &minfo);
29 ioctl(fd, MEMERASE, &einfo);
30 ioctl(fd, MEMERASE64, &einfo64);
32 ioctl(fd, MEMGETBADBLOCK, &f);
34 ioctl(fd, OTPSELECT, &i);
35 ioctl(fd, MEMSETBADBLOCK, &f);
37 ioctl(fd, MEMREADOOB, &mbuf);
38 ioctl(fd, MEMREADOOB64, &mbuf64);
40 ioctl(fd, MEMGETREGIONINF
[all...]
H A Dx32_mmap.c34 (long) (0), // fd
41 int fd = open(buf, O_RDONLY); local
42 if (fd > 0) {
43 int sz = read(fd, buf, sizeof(buf));
/external/strace/tests/
H A Dscm_rights.c17 int fd; local
31 while ((fd = open("/dev/null", O_RDWR)) < 3)
32 assert(fd >= 0);
46 assert((fd = open("/dev/null", O_RDWR)) == 3);
51 cmsg->cmsg_len = CMSG_LEN(sizeof fd);
52 memcpy(CMSG_DATA(cmsg), &fd, sizeof fd); local
/external/valgrind/main/coregrind/m_ume/
H A Dscript.c80 Int VG_(load_script)(Int fd, const HChar* name, ExeInfo* info) argument
92 res = VG_(pread)(fd, hdr, len, 0);
94 VG_(close)(fd);
/external/valgrind/main/memcheck/tests/
H A Dfile_locking.c24 static int lock_file(const int fd) argument
33 return fcntl(fd, F_SETLK, &fl) >= 0;
39 int fd; local
42 fd = open(filename, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
43 if (fd < 0)
49 flags = fcntl(fd, F_GETFD);
51 if (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0)
55 if (! lock_file(fd))
62 if (mmap(NULL, 1, PROT_WRITE, MAP_SHARED, fd, 0) == 0)
71 close(fd);
[all...]
H A Dwritev1.c18 static int fd; variable
35 if ((fd = open(f_name, O_WRONLY | O_CREAT, 0666)) < 0) {
39 } else if ((nbytes = write(fd, buf_list[1], K_1)) != K_1) {
44 if (close(fd) < 0) {
49 if ((fd = open(f_name, O_RDWR, 0666)) < 0) {
55 lseek(fd, 0, 0);
56 if (writev(fd, wr_iovec, 2) < 0) {
61 lseek(fd, K_1, 0);
62 if ((nbytes = read(fd, buf_list[0], CHUNK)) != 0)
68 if (writev(fd, wr_iove
[all...]
/external/valgrind/main/memcheck/tests/linux/
H A Dsyscalls-2007.c38 int fd, fd2; local
45 fd = signalfd (-1, &mask, 0);
47 fd = signalfd (fd, &mask, 0);
50 pfd[0].fd = fd;
52 pfd[1].fd = fd2;
/external/valgrind/main/none/tests/
H A Dprocfs-cmdline-exe.c23 int fd, n; local
27 fd = open(path, 0);
28 if (fd >= 0)
30 while ((n = read(fd, &ch, 1)) > 0)
42 close(fd);
H A Dpth_cancel2.c26 #define async_cancel_safe_read(fd,buf,amt) \
30 if (read(fd,buf,amt) < 0) \
37 #define async_cancel_safe_write(fd,buf,amt) \
41 if (write(fd,buf,amt) < 0) \
48 static int fd; variable
79 if ((fd = open(".ktemp",O_CREAT | O_RDWR, 0666)) < 0)
85 (void *)&fd);
95 if ((close(fd)) < 0)
/external/bison/lib/
H A Dfd-hook.c21 #include "fd-hook.h"
35 int fd)
39 return primary (fd);
42 primary, fd);
46 execute_all_close_hooks (gl_close_fn primary, int fd) argument
48 return execute_close_hooks (anchor.private_next, primary, fd);
53 int fd, int request, void *arg)
57 return primary (fd, request, arg);
60 primary, fd, request, arg);
65 int fd, in
34 execute_close_hooks(const struct fd_hook *remaining_list, gl_close_fn primary, int fd) argument
52 execute_ioctl_hooks(const struct fd_hook *remaining_list, gl_ioctl_fn primary, int fd, int request, void *arg) argument
64 execute_all_ioctl_hooks(gl_ioctl_fn primary, int fd, int request, void *arg) argument
[all...]
/external/bluetooth/bluedroid/bta/include/
H A Dbta_fs_ci.h39 int fd; member in struct:__anon753
48 int fd; member in struct:__anon754
57 int fd; member in struct:__anon755
107 ** Parameters fd - file descriptor passed to the stack in the
116 BTA_API extern void bta_fs_ci_write(int fd, tBTA_FS_CO_STATUS status, UINT16 evt);
128 ** Parameters fd - file descriptor passed to the stack in the
141 BTA_API extern void bta_fs_ci_read(int fd, UINT16 num_bytes_read,
151 ** Parameters fd - file descriptor passed to the stack in the
165 BTA_API extern void bta_fs_ci_open(int fd, tBTA_FS_CO_STATUS status,
233 ** Parameters fd
[all...]
/external/chromium_org/chrome/renderer/pepper/
H A Dpepper_flash_font_file_host.cc56 int fd = fd_.get(); local
57 if (fd != -1) {
59 if (content::GetFontTable(fd, table, 0 /* offset */, NULL, &length)) {
64 fd, table, 0 /* offset */, contents_ptr, &length)) {
/external/chromium_org/components/metrics/serialization/
H A Dserialization_utils.cc35 bool ReadMessage(int fd, std::string* message) { argument
42 result = HANDLE_EINTR(read(fd, &message_size, sizeof(message_size)));
61 if (HANDLE_EINTR(lseek(fd, message_size - 4, SEEK_CUR)) == -1) {
73 if (!base::ReadFromFD(fd, buffer, message_size)) {
134 base::ScopedFD fd(open(filename.c_str(), O_RDWR));
135 if (fd.get() < 0) {
139 result = flock(fd.get(), LOCK_EX);
150 if (!ReadMessage(fd.get(), &message))
158 result = ftruncate(fd.get(), 0);
162 result = flock(fd
[all...]
/external/chromium_org/components/nacl/loader/nonsfi/
H A Dirt_memory.cc49 int fd, nacl_abi_off_t off) {
55 *addr, len, host_prot & ~PROT_EXEC, NaClFlagsToFlags(flags), fd, off);
48 IrtMMap(void** addr, size_t len, int prot, int flags, int fd, nacl_abi_off_t off) argument
/external/chromium_org/ipc/
H A Dfile_descriptor_set_posix.cc34 bool FileDescriptorSet::AddToBorrow(base::PlatformFile fd) { argument
42 descriptors_.push_back(fd);
46 bool FileDescriptorSet::AddToOwn(base::ScopedFD fd) { argument
54 descriptors_.push_back(fd.get());
55 owned_descriptors_.push_back(new base::ScopedFD(fd.Pass()));
76 // actually sent two in an attempt to fill our fd table and kill us. By
/external/chromium_org/ppapi/nacl_irt/
H A Dmanifest_service.cc82 bool ManifestService::OpenResource(const char* file, int* fd) { argument
103 *fd = -1;
119 // a reply, the file doesn't exist, so provide an fd of -1.
122 *fd = ipc_fd.descriptor().fd;
124 *fd = -1;
128 int IrtOpenResource(const char* file, int* fd) { argument
135 !manifest_service->OpenResource(file, fd)) {
138 return (*fd == -1) ? NACL_ABI_ENOENT : 0;
/external/chromium_org/sandbox/linux/services/
H A Dscoped_process_unittest.cc105 void SleepInMsAndWriteOneByte(int time_to_sleep, int fd) { argument
107 CHECK(1 == write(fd, "1", 1));
/external/chromium_org/third_party/libxml/src/
H A DtestRelax.c89 int fd; local
94 if ((fd = open(argv[i], O_RDONLY)) < 0)
97 MAP_SHARED, fd, 0) ;
H A DtestSchemas.c85 int fd; local
90 if ((fd = open(argv[i], O_RDONLY)) < 0)
93 MAP_SHARED, fd, 0) ;
/external/chromium_org/third_party/mesa/src/src/egl/drivers/dri2/
H A Dcommon.c46 dri2_udev_device_new_from_fd(struct udev *udev, int fd) argument
51 if (fstat(fd, &buf) < 0) {
52 _eglLog(_EGL_WARNING, "EGL-DRI2: failed to stat fd %d", fd);
59 "EGL-DRI2: could not create udev device for fd %d", fd);
67 dri2_get_device_name_for_fd(int fd) argument
75 device = dri2_udev_device_new_from_fd(udev, fd);
92 dri2_get_driver_for_fd(int fd) argument
101 device = dri2_udev_device_new_from_fd(udev, fd);
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/winsys/i915/drm/
H A Di915_drm_winsys.h24 int fd; /**< Drm file discriptor */ member in struct:i915_drm_winsys
/external/chromium_org/third_party/mesa/src/src/gallium/winsys/radeon/drm/
H A Dradeon_drm_winsys.h45 int fd; /* DRM file descriptor */ member in struct:radeon_drm_winsys

Completed in 8582 milliseconds

<<11121314151617181920>>