summaryrefslogtreecommitdiffstats
path: root/libcutils/sockets_unix.cpp
Commit message (Collapse)AuthorAgeFilesLines
* libcutils: Simplify android_get_control_socket()Bernie Innocenti2018-05-281-14/+10
| | | | | | | | | | | | | | | | 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
* Move libcutils source to C++.Elliott Hughes2017-11-101-1/+2
| | | | | | | | | | | | | | | | | 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
* liblog: use log/log.h when utilizing ALOG macrosMark Salyzyn2017-01-111-1/+1
| | | | | | Test: compile Bug: 30465923 Change-Id: Id6d76510819ebd88c3f5003d00d73a0dbe85e943
* libcutils: sdk(mac) build error (part deux)Mark Salyzyn2016-11-171-0/+4
| | | | | | Test: Build Bug: 32450474 Change-Id: I92cca30217715779a9db6a60e2e4831a20cec3d4
* libcutils: move cutils/files.h to cutils/android_get_control_file.hMark Salyzyn2016-11-161-0/+29
| | | | | | | | | | 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
* system/core: preparation to pull back interfaces from android/log.hMark Salyzyn2016-10-201-0/+4
| | | | | | | | | | | | | | | | 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
* system/core Replace log/log.h with android/log.hMark Salyzyn2016-09-301-2/+1
| | | | | | | | | | | 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
* libcutils: Replace cutils/log.h with android/log.hMark Salyzyn2016-09-301-1/+1
| | | | | | | | | | | 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
* libcutils/fastboot: improve multi-buffer write.David Pursell2016-02-031-0/+79
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