summaryrefslogtreecommitdiff
path: root/libcutils/sockets_unix.cpp
AgeCommit message (Collapse)Author
2019-11-08libcutils: remove unused socket_set_receive_timeout().Elliott Hughes
Test: treehugger Change-Id: I834762fd83bdaa3b714c7531439bf9115a82e342
2019-03-21Clean up some mess by only building Android-specific code for the device.Elliott Hughes
Test: treehugger Change-Id: Id44721ccd1817d8c537b226f60a58b7cb691fb01
2018-10-25libcutils: lose socket_peer_is_trusted to ART, the only user.Elliott Hughes
Bug: N/A Test: builds Change-Id: I599270729c2037b2c06d7906a5e5f7362fbbaf08
2018-05-28libcutils: Simplify android_get_control_socket()Bernie Innocenti
1. TEMP_FAILURE_RETRY() isn't necessary with getsockname() because it's a synchronous syscall. 2. There's no need to allocate and free a temporary buffer for the full pathname of the socket. Test: Manually, as follows: - added temporary ALOG output - flashed and booted a device - checked expected output from all system daemons - removed log statements Change-Id: I4550a2d67fdffe6aff3c1050f8eeeaca0f985fb3
2017-11-10Move libcutils source to C++.Elliott Hughes
Just the minimial changes to get this to actually build, because otherwise we always bog down trying to rewrite everything (when the real answer is usually "stop using libcutils, it's awful"). This doesn't move a handful of files: two are basically just BSD libc source, a couple have outstanding code reviews, and one can be deleted (but I'll do that in a separate change). I'm also skipping the presubmit hooks because otherwise clang-format wants to reformat everything. I'll follow up with that... Bug: N/A Test: builds Change-Id: I06403f465b67c8e493bad466dd76b1151eed5993
2017-01-11liblog: use log/log.h when utilizing ALOG macrosMark Salyzyn
Test: compile Bug: 30465923 Change-Id: Id6d76510819ebd88c3f5003d00d73a0dbe85e943
2016-11-17libcutils: sdk(mac) build error (part deux)Mark Salyzyn
Test: Build Bug: 32450474 Change-Id: I92cca30217715779a9db6a60e2e4831a20cec3d4
2016-11-16libcutils: move cutils/files.h to cutils/android_get_control_file.hMark Salyzyn
files.[h|cpp] is bound to be abused with junk, replace with android_get_control_file.[h|cpp]. Plus some sundry cleanup. Test: gTest libcutils-tests, logd-unit-tests, liblog-unit-tests, logcat-unit-tests and init_tests Bug: 32450474 Change-Id: Ibd4a7aa4624ea19a43d1f98a3c71ac37805d36b5
2016-10-20system/core: preparation to pull back interfaces from android/log.hMark Salyzyn
Point to log/log.h where necessary, define LOG_TAG where necessary. Accept that private/android_logger.h is suitable replacement for log/logger.h and android/log.h. Correct liblog/README Effectively a cleanup and controlled select revert of 'system/core: drop or replace log/logger.h' and 'system/core: Replace log/log.h with android/log.h'. Test: compile Bug: 30465923 Change-Id: Ic2ad157bad6f5efe2c6af293a73bb753300b17a2
2016-09-30system/core Replace log/log.h with android/log.hMark Salyzyn
Should use android/log.h instead of log/log.h as a good example to all others. Adjust header order to comply with Android Coding standards. Test: Compile Bug: 26552300 Bug: 31289077 Change-Id: I33a8fb4e754d2dc4754d335660c450e0a67190fc
2016-09-30libcutils: Replace cutils/log.h with android/log.hMark Salyzyn
Replace references to cutils/log.h and log/log.h with android/log.h. Point cutils/log.h to android/log.h. Adjust header order to comply with Android Coding standards. Test: Compile Bug: 26552300 Bug: 31289077 Change-Id: I4b00c0dff3a0a50cbb54301fdc5a6c29c21dab65
2016-02-03libcutils/fastboot: improve multi-buffer write.David Pursell
Fixes libcutils multi-buffer write interface to be more friendly and hooks into it from the fastboot Socket class. Bug: http://b/26558551 Change-Id: Ibb3a8428fc379755602de52722c1260f9e345bc0