Searched defs:fd (Results 51 - 75 of 337) sorted by relevance

1234567891011>>

/system/security/keystore/
H A Dkeystore_utils.cpp30 size_t readFully(int fd, uint8_t* data, size_t size) { argument
33 ssize_t n = TEMP_FAILURE_RETRY(read(fd, data, remaining));
43 size_t writeFully(int fd, uint8_t* data, size_t size) { argument
46 ssize_t n = TEMP_FAILURE_RETRY(write(fd, data, remaining));
/system/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);
/system/update_engine/payload_consumer/
H A Dbzip_extent_writer.cc27 bool BzipExtentWriter::Init(FileDescriptorPtr fd, argument
37 return next_->Init(fd, extents, block_size);
H A Dfile_writer.h78 int fd() const { return fd_; } function in class:chromeos_update_engine::DirectFileWriter
H A Dxz_extent_writer.cc57 bool XzExtentWriter::Init(FileDescriptorPtr fd, argument
62 return underlying_writer_->Init(fd, extents, block_size);
/system/vold/
H A DAutoCloseFD.h31 fd{TEMP_FAILURE_RETRY(open(path, flags | O_CLOEXEC, mode))} {}
35 if (fd != -1) {
37 if (close(fd) == -1) {
45 explicit operator bool() {return fd != -1;}
46 int get() const {return fd;}
48 const int fd; member in class:AutoCloseFD
/system/bt/osi/test/
H A Dfixed_queue_test.cpp22 // Test whether a file descriptor |fd| is readable.
24 static bool is_fd_readable(int fd) argument
32 FD_SET(fd, &rfds);
37 return FD_ISSET(fd, &rfds);
/system/connectivity/shill/
H A Deap_listener.cc98 void EapListener::ReceiveRequest(int fd) { argument
H A Devent_dispatcher.cc60 int fd,
64 fd, input_callback, error_callback);
71 int fd,
75 fd, mode, ready_callback);
59 CreateInputHandler( int fd, const IOHandler::InputCallback& input_callback, const IOHandler::ErrorCallback& error_callback) argument
70 CreateReadyHandler( int fd, IOHandler::ReadyMode mode, const Callback<void(int)>& ready_callback) argument
/system/core/adb/
H A Dconsole.cpp101 int fd = network_loopback_client(port, SOCK_STREAM, &error); local
102 if (fd == -1) {
107 return fd;
111 int fd = connect_to_console(serial); local
112 if (fd == -1) {
125 if (!WriteFdExactly(fd, commands)) {
128 adb_close(fd);
140 result = adb_read(fd, buf, sizeof(buf));
151 adb_close(fd);
H A Dsocket.h62 ** us to our fd event system. For remote asockets
66 int fd; member in struct:asocket
109 asocket *create_local_socket(int fd);
/system/core/healthd/
H A DBatteryPropertiesRegistrar.cpp80 status_t BatteryPropertiesRegistrar::dump(int fd, const Vector<String16>& /*args*/) { argument
89 healthd_dump_battery_state(fd);
/system/core/include/cutils/
H A Dsockets.h69 int fd = strtol(val, NULL, 10); local
74 return fd;
113 int socket_local_client_connect(int fd, const char *name, int namespaceId,
173 extern bool socket_peer_is_trusted(int fd);
/system/core/include/utils/
H A DCompat.h28 static inline off64_t lseek64(int fd, off64_t offset, int whence) { argument
29 return lseek(fd, offset, whence);
32 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { argument
33 return pread(fd, buf, nbytes, offset);
36 static inline ssize_t pwrite64(int fd, const void* buf, size_t nbytes, off64_t offset) { argument
37 return pwrite(fd, buf, nbytes, offset);
/system/core/libmemunreachable/
H A DScopedPipe.h76 void SetReceiver(int fd) { pipefd_[0] = fd; }; argument
77 void SetSender(int fd) { pipefd_[1] = fd; }; argument
/system/core/libsync/
H A Dsync_test.c32 int fd[2]; member in struct:sync_thread_data
43 err = sync_wait(sync_data->fd[i], 10000);
52 info = sync_fence_info(sync_data->fd[i]);
96 int fd = sw_sync_fence_create(sync_timeline_fd, str, val); local
97 if (fd < 0) {
101 sync_data[i].fd[j] = fd;
102 printf("sync_data[%d].fd[%d] = %d;\n", i, j, fd);
110 sync_data[3].fd[
[all...]
/system/core/libutils/
H A DCallStack.cpp58 void CallStack::dump(int fd, int indent, const char* prefix) const { argument
59 FdPrinter printer(fd, indent, prefix);
/system/core/metricsd/
H A Dpersistent_integer.cc61 int fd = HANDLE_EINTR(open(backing_file_path_.value().c_str(), local
64 PCHECK(fd >= 0) << "cannot open " << backing_file_path_.value()
66 PCHECK((HANDLE_EINTR(write(fd, &version_, sizeof(version_))) ==
68 (HANDLE_EINTR(write(fd, &value_, sizeof(value_))) ==
71 close(fd);
76 int fd = HANDLE_EINTR(open(backing_file_path_.value().c_str(), O_RDONLY)); local
77 if (fd < 0) {
85 if (HANDLE_EINTR(read(fd, &version, sizeof(version))) == sizeof(version) &&
87 HANDLE_EINTR(read(fd, &value, sizeof(value))) == sizeof(value)) {
92 close(fd);
[all...]
/system/extras/tests/pagingtest/
H A Dpageinout_test.c12 int fd; local
26 fd = create_tmp_file(tmpname, file_size);
27 if (fd < 0) {
36 buf = mmap(NULL, file_size, PROT_READ, MAP_PRIVATE, fd, 0);
63 posix_fadvise(fd, 0, file_size, POSIX_FADV_DONTNEED);
90 close(fd);
/system/extras/tests/storage/
H A Dwipe_blkdev.c38 static u64 get_block_device_size(int fd) argument
43 ret = ioctl(fd, BLKGETSIZE64, &size);
51 static int wipe_block_device(int fd, u64 len, int secure) argument
65 ret = ioctl(fd, req, &range);
84 int fd; local
104 fd = open(devname, O_RDWR);
105 if (fd < 0) {
110 if (fstat(fd, &statbuf) < 0) {
120 len = get_block_device_size(fd);
127 ret = wipe_block_device(fd, le
[all...]
/system/media/brillo/audio/audioservice/
H A Daudio_daemon.cpp47 int fd = file.GetPlatformFile(); local
54 message_loop->WatchFileDescriptor(fd, MessageLoop::kWatchRead,
/system/bt/btif/src/
H A Dbtif_debug_conn.c79 void btif_debug_conn_dump(int fd) { argument
85 dprintf(fd, "\nConnection Events:\n");
87 dprintf(fd, " None\n");
91 dprintf(fd, " %s %s %s",
97 dprintf(fd, " reason=%d", evt->disconnect_reason);
98 dprintf(fd,"\n");
H A Dbtif_sock.c40 static void btsock_signaled(int fd, int type, int flags, uint32_t user_id);
178 static void btsock_signaled(int fd, int type, int flags, uint32_t user_id) { argument
181 btsock_rfc_signaled(fd, flags, user_id);
184 btsock_l2cap_signaled(fd, flags, user_id);
/system/bt/hci/src/
H A Dbtsnoop_net.c35 static void safe_close_(int *fd);
147 static void safe_close_(int *fd) { argument
148 assert(fd != NULL);
149 if (*fd != -1) {
150 close(*fd);
151 *fd = -1;
/system/bt/osi/src/
H A Dmetrics_linux.cpp54 void metrics_write(int fd, bool clear) { argument
58 void metrics_print(int fd, bool clear) { argument

Completed in 618 milliseconds

1234567891011>>