Searched defs:fd (Results 476 - 500 of 1450) sorted by relevance

<<11121314151617181920>>

/external/stressapptest/src/
H A Dlogger.cc98 void WriteToFile(const string& line, int fd) { argument
99 LOGGER_ASSERT(write(fd, line.data(), line.size()) ==
/external/valgrind/main/coregrind/
H A Dm_commandline.c59 SysRes fd; local
66 fd = VG_(open)(filename, 0, VKI_S_IRUSR);
67 if ( !sr_isError(fd) ) {
68 Int res = VG_(fstat)( sr_Res(fd), &stat_buf );
75 n = VG_(read)(sr_Res(fd), f_clo, stat_buf.size);
86 VG_(close)(sr_Res(fd));
/external/valgrind/main/coregrind/m_ume/
H A Dmain.c50 Int (*load_fn)(Int fd, const HChar *name, ExeInfo *info);
70 Int fd, ret, i; local
81 fd = sr_Res(res);
86 VG_(close)(fd);
99 fsz = (SizeT)VG_(fsize)(fd);
103 res = VG_(pread)(fd, buf, bufsz, 0);
105 VG_(close)(fd);
124 *out_fd = fd;
126 VG_(close)(fd);
140 Int fd; local
163 Int fd = sr_Res(res); local
179 Int fd = sr_Res(res); local
[all...]
/external/valgrind/main/none/tests/amd64/
H A Dfaultstatus.c92 int fd, i; local
103 fd = open("faultstatus.tmp", O_CREAT|O_TRUNC|O_EXCL, 0600);
104 if (fd == -1) {
109 ftruncate(fd, FILESIZE);
111 mapping = mmap(0, MAPSIZE, PROT_READ, MAP_PRIVATE, fd, 0);
112 close(fd);
/external/wpa_supplicant_8/hostapd/src/l2_packet/
H A Dl2_packet_none.c26 int fd; member in struct:l2_packet_data
86 l2->fd = -1;
87 if (l2->fd >= 0)
88 eloop_register_read_sock(l2->fd, l2_packet_receive, l2, NULL);
99 if (l2->fd >= 0) {
100 eloop_unregister_read_sock(l2->fd);
/external/wpa_supplicant_8/src/l2_packet/
H A Dl2_packet_none.c26 int fd; member in struct:l2_packet_data
86 l2->fd = -1;
87 if (l2->fd >= 0)
88 eloop_register_read_sock(l2->fd, l2_packet_receive, l2, NULL);
99 if (l2->fd >= 0) {
100 eloop_unregister_read_sock(l2->fd);
/external/wpa_supplicant_8/wpa_supplicant/src/l2_packet/
H A Dl2_packet_none.c26 int fd; member in struct:l2_packet_data
86 l2->fd = -1;
87 if (l2->fd >= 0)
88 eloop_register_read_sock(l2->fd, l2_packet_receive, l2, NULL);
99 if (l2->fd >= 0) {
100 eloop_unregister_read_sock(l2->fd);
/external/aac/libSYS/src/mips/
H A DgenericStds_mips.cpp125 static int fd; variable
131 fd = open("/dev/sram", 0);
132 if (fd < 0)
136 fd = -1;
142 ptr = (unsigned long *)mmap(NULL, MIPS_SRAM_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
147 close(fd);
149 fd = -1;
162 if (fd == -1)
171 close(fd);
/external/bison/lib/
H A Derror.c125 is_open (int fd) argument
132 return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE;
137 return 0 <= fcntl (fd, F_GETFL);
156 the fd of a FILE stream is stored as a field in its allocated memory. */
H A Dlocalcharset.c156 int fd; local
165 fd = open (file_name,
167 if (fd < 0)
174 fp = fdopen (fd, "r");
178 close (fd);
H A Dspawn-pipe.c64 nonintr_close (int fd) argument
69 retval = close (fd);
98 * parent -> fd[1] -> STDIN_FILENO -> child if pipe_stdin
99 * parent <- fd[0] <- STDOUT_FILENO <- child if pipe_stdout
115 int fd[2])
244 fd[0] = ifd[0];
246 fd[1] = ofd[1];
376 fd[0] = ifd[0];
378 fd[1] = ofd[1];
387 * parent -> fd[
109 create_pipe(const char *progname, const char *prog_path, char **prog_argv, bool pipe_stdin, bool pipe_stdout, const char *prog_stdin, const char *prog_stdout, bool null_stderr, bool slave_process, bool exit_on_error, int fd[2]) argument
393 create_pipe_bidi(const char *progname, const char *prog_path, char **prog_argv, bool null_stderr, bool slave_process, bool exit_on_error, int fd[2]) argument
414 create_pipe_in(const char *progname, const char *prog_path, char **prog_argv, const char *prog_stdin, bool null_stderr, bool slave_process, bool exit_on_error, int fd[1]) argument
438 create_pipe_out(const char *progname, const char *prog_path, char **prog_argv, const char *prog_stdout, bool null_stderr, bool slave_process, bool exit_on_error, int fd[1]) argument
[all...]
/external/blktrace/btt/
H A Dmisc.c168 int fd; local
171 fd = open(path, flags);
172 } while (fd < 0 && handle_open_failure());
174 return fd;
/external/bluetooth/bluedroid/btif/include/
H A Dbtif_hh.h65 int fd; member in struct:__anon1013
/external/bsdiff/
H A Dbspatch.c63 int fd; local
136 if(((fd=open(argv[1],O_RDONLY,0))<0) ||
137 ((oldsize=lseek(fd,0,SEEK_END))==-1) ||
139 (lseek(fd,0,SEEK_SET)!=0) ||
140 (read(fd,old,oldsize)!=oldsize) ||
141 (close(fd)==-1)) err(1,"%s",argv[1]);
202 if(((fd=open(argv[2],O_CREAT|O_TRUNC|O_WRONLY,0666))<0) ||
203 (write(fd,new,newsize)!=newsize) || (close(fd)==-1))
/external/checkpolicy/
H A Dcheckmodule.c52 int fd; local
57 fd = open(file, O_RDONLY);
58 if (fd < 0) {
63 if (fstat(fd, &sb) < 0) {
66 close(fd);
70 mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
71 close(fd);
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/
H A DAwPdfExporter.java45 public void exportToPdf(final ParcelFileDescriptor fd, PrintAttributes attributes, argument
48 if (fd == null) {
49 throw new IllegalArgumentException("fd cannot be null");
72 mFd = fd;
143 private native void nativeExportToPdf(long nativeAwPdfExporter, int fd, argument
/external/chromium_org/base/
H A Dlinux_util.cc162 int fd = open(buf, O_RDONLY); local
163 if (fd < 0)
167 bool read_ret = ReadFromFD(fd, syscall_data.get(), expected_data.length());
168 close(fd);
/external/chromium_org/base/message_loop/
H A Dmessage_pump_io_ios.cc51 int fd,
55 watcher_->OnFileCanReadWithoutBlocking(fd);
60 int fd,
64 watcher_->OnFileCanWriteWithoutBlocking(fd);
75 int fd,
80 DCHECK_GE(fd, 0);
104 kCFAllocatorDefault, fd, false, HandleFdIOEvent, &source_context));
128 if (CFFileDescriptorGetNativeDescriptor(fdref) != fd) {
131 << " != " << fd;
185 int fd local
50 OnFileCanReadWithoutBlocking( int fd, MessagePumpIOSForIO* pump) argument
59 OnFileCanWriteWithoutBlocking( int fd, MessagePumpIOSForIO* pump) argument
74 WatchFileDescriptor( int fd, bool persistent, int mode, FileDescriptorWatcher *controller, Watcher *delegate) argument
[all...]
/external/chromium_org/base/posix/
H A Dunix_domain_socket_linux.cc36 bool UnixDomainSocket::EnableReceiveProcessId(int fd) { argument
38 return setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &enable, sizeof(enable)) == 0;
42 bool UnixDomainSocket::SendMsg(int fd, argument
72 const ssize_t r = HANDLE_EINTR(sendmsg(fd, &msg, flags));
79 ssize_t UnixDomainSocket::RecvMsg(int fd, argument
83 return UnixDomainSocket::RecvMsgWithPid(fd, buf, length, fds, NULL);
87 ssize_t UnixDomainSocket::RecvMsgWithPid(int fd, argument
92 return UnixDomainSocket::RecvMsgWithFlags(fd, buf, length, 0, fds, pid);
96 ssize_t UnixDomainSocket::RecvMsgWithFlags(int fd, argument
114 const ssize_t r = HANDLE_EINTR(recvmsg(fd,
169 SendRecvMsg(int fd, uint8_t* reply, unsigned max_reply_len, int* result_fd, const Pickle& request) argument
180 SendRecvMsgWithFlags(int fd, uint8_t* reply, unsigned max_reply_len, int recvmsg_flags, int* result_fd, const Pickle& request) argument
[all...]
/external/chromium_org/chrome/browser/extensions/api/braille_display_private/
H A Dbrlapi_connection.cc51 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE {
55 virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE {}
86 int fd = libbrlapi_loader_->brlapi__openConnection(handle_.get(), NULL, NULL); local
87 if (fd < 0) {
138 fd, true, MessageLoopForIO::WATCH_READ, &fd_controller_, this)) {
139 LOG(ERROR) << "Couldn't watch file descriptor " << fd;
/external/chromium_org/chrome/browser/extensions/api/webcam_private/
H A Dwebcam_private_api_chromeos.cc50 void SetWebcamParameter(int fd, uint32_t control_id, int value) { argument
52 HANDLE_EINTR(ioctl(fd, VIDIOC_S_CTRL, &v4l2_ctrl));
55 bool GetWebcamParameter(int fd, uint32_t control_id, int* value) { argument
58 if (HANDLE_EINTR(ioctl(fd, VIDIOC_G_CTRL, &v4l2_ctrl)))
82 base::ScopedFD fd = local
84 if (!fd.is_valid()) {
90 SetWebcamParameter(fd.get(), V4L2_CID_PAN_ABSOLUTE,
110 SetWebcamParameter(fd.get(), V4L2_CID_PAN_SPEED, direction);
114 SetWebcamParameter(fd.get(), V4L2_CID_TILT_ABSOLUTE,
134 SetWebcamParameter(fd
158 base::ScopedFD fd = local
196 base::ScopedFD fd = local
[all...]
/external/chromium_org/chrome/utility/image_writer/
H A Dimage_writer_mac.cc128 int fd = -1; local
152 fd = *reinterpret_cast<int*>(CMSG_DATA(cmsg_socket_header));
156 device_file_ = base::File(fd);
/external/chromium_org/chromeos/process_proxy/
H A Dprocess_output_watcher.cc28 void CloseFd(int* fd) { argument
29 if (*fd >= 0) {
30 if (IGNORE_EINTR(close(*fd)) != 0)
31 DPLOG(WARNING) << "close fd " << *fd << " failed.";
33 *fd = -1;
109 void ProcessOutputWatcher::VerifyFileDescriptor(int fd) { argument
110 CHECK_LE(0, fd);
111 CHECK_GT(FD_SETSIZE, fd);
114 void ProcessOutputWatcher::ReadFromFd(ProcessOutputType type, int* fd) { argument
[all...]
/external/chromium_org/device/bluetooth/
H A Dbluetooth_socket_chromeos.h118 scoped_ptr<dbus::FileDescriptor> fd,
133 scoped_ptr<dbus::FileDescriptor> fd,
144 // Method run on the socket thread with a valid file descriptor |fd|, once
147 void DoConnect(scoped_ptr<dbus::FileDescriptor> fd,
198 scoped_ptr<dbus::FileDescriptor> fd; member in struct:chromeos::BluetoothSocketChromeOS::ConnectionRequest
/external/chromium_org/device/hid/
H A Dhid_connection_linux.cc146 void HidConnectionLinux::OnFileCanReadWithoutBlocking(int fd) { argument
148 DCHECK_EQ(fd, device_file_.GetPlatformFile());
179 void HidConnectionLinux::OnFileCanWriteWithoutBlocking(int fd) { argument

Completed in 1397 milliseconds

<<11121314151617181920>>