Merge "liblog: use libbase_headers for TEMP_FAILURE_RETRY"
This commit is contained in:
commit
2ea787137f
14 changed files with 2 additions and 32 deletions
|
|
@ -36,7 +36,6 @@
|
||||||
#include <utils/FastStrcmp.h>
|
#include <utils/FastStrcmp.h>
|
||||||
#include <utils/RWLock.h>
|
#include <utils/RWLock.h>
|
||||||
|
|
||||||
#include "log_portability.h"
|
|
||||||
#include "logd_reader.h"
|
#include "logd_reader.h"
|
||||||
|
|
||||||
#define OUT_TAG "EventTagMap"
|
#define OUT_TAG "EventTagMap"
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@
|
||||||
#include <log/log_id.h>
|
#include <log/log_id.h>
|
||||||
#include <log/logprint.h>
|
#include <log/logprint.h>
|
||||||
|
|
||||||
#include "log_portability.h"
|
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
|
|
||||||
#define kMaxTagLen 16 /* from the long-dead utils/Log.cpp */
|
#define kMaxTagLen 16 /* from the long-dead utils/Log.cpp */
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,6 @@
|
||||||
#include <log/log_event_list.h>
|
#include <log/log_event_list.h>
|
||||||
#include <private/android_logger.h>
|
#include <private/android_logger.h>
|
||||||
|
|
||||||
#include "log_portability.h"
|
|
||||||
|
|
||||||
#define MAX_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - sizeof(int32_t))
|
#define MAX_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - sizeof(int32_t))
|
||||||
|
|
||||||
enum ReadWriteFlag {
|
enum ReadWriteFlag {
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,6 @@
|
||||||
#include <log/log.h>
|
#include <log/log.h>
|
||||||
#include <log/log_event_list.h>
|
#include <log/log_event_list.h>
|
||||||
|
|
||||||
#include "log_portability.h"
|
|
||||||
|
|
||||||
#define MAX_SUBTAG_LEN 32
|
#define MAX_SUBTAG_LEN 32
|
||||||
|
|
||||||
int __android_log_error_write(int tag, const char* subTag, int32_t uid, const char* data,
|
int __android_log_error_write(int tag, const char* subTag, int32_t uid, const char* data,
|
||||||
|
|
|
||||||
|
|
@ -31,17 +31,3 @@
|
||||||
#define __END_DECLS
|
#define __END_DECLS
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* possible missing definitions in unistd.h */
|
|
||||||
|
|
||||||
#ifndef TEMP_FAILURE_RETRY
|
|
||||||
/* Used to retry syscalls that can return EINTR. */
|
|
||||||
#define TEMP_FAILURE_RETRY(exp) \
|
|
||||||
({ \
|
|
||||||
__typeof__(exp) _rc; \
|
|
||||||
do { \
|
|
||||||
_rc = (exp); \
|
|
||||||
} while (_rc == -1 && errno == EINTR); \
|
|
||||||
_rc; \
|
|
||||||
})
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,6 @@
|
||||||
|
|
||||||
#include <private/android_logger.h>
|
#include <private/android_logger.h>
|
||||||
|
|
||||||
#include "log_portability.h"
|
|
||||||
|
|
||||||
const char log_time::default_format[] = "%m-%d %H:%M:%S.%q";
|
const char log_time::default_format[] = "%m-%d %H:%M:%S.%q";
|
||||||
const timespec log_time::EPOCH = {0, 0};
|
const timespec log_time::EPOCH = {0, 0};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@
|
||||||
#include <private/android_filesystem_config.h>
|
#include <private/android_filesystem_config.h>
|
||||||
#include <private/android_logger.h>
|
#include <private/android_logger.h>
|
||||||
|
|
||||||
#include "log_portability.h"
|
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
#include "rwlock.h"
|
#include "rwlock.h"
|
||||||
#include "uio.h"
|
#include "uio.h"
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdatomic.h>
|
#include <stdatomic.h>
|
||||||
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#include <log/log.h>
|
#include <log/log.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,6 @@
|
||||||
|
|
||||||
#include <log/log.h>
|
#include <log/log.h>
|
||||||
|
|
||||||
#include "log_portability.h"
|
|
||||||
|
|
||||||
/* In the future, we would like to make this list extensible */
|
/* In the future, we would like to make this list extensible */
|
||||||
static const char* LOG_NAME[LOG_ID_MAX] = {
|
static const char* LOG_NAME[LOG_ID_MAX] = {
|
||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@
|
||||||
|
|
||||||
#include <android/log.h>
|
#include <android/log.h>
|
||||||
|
|
||||||
#include "log_portability.h"
|
|
||||||
#include "logd_reader.h"
|
#include "logd_reader.h"
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
#include "pmsg_reader.h"
|
#include "pmsg_reader.h"
|
||||||
|
|
|
||||||
|
|
@ -23,10 +23,10 @@
|
||||||
#include <android/set_abort_message.h>
|
#include <android/set_abort_message.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <android-base/macros.h>
|
||||||
#include <private/android_filesystem_config.h>
|
#include <private/android_filesystem_config.h>
|
||||||
#include <private/android_logger.h>
|
#include <private/android_logger.h>
|
||||||
|
|
||||||
#include "log_portability.h"
|
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
#include "uio.h"
|
#include "uio.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,6 @@
|
||||||
#include <log/logprint.h>
|
#include <log/logprint.h>
|
||||||
#include <private/android_logger.h>
|
#include <private/android_logger.h>
|
||||||
|
|
||||||
#include "log_portability.h"
|
|
||||||
|
|
||||||
#define MS_PER_NSEC 1000000
|
#define MS_PER_NSEC 1000000
|
||||||
#define US_PER_NSEC 1000
|
#define US_PER_NSEC 1000
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@
|
||||||
#include <log/log_properties.h>
|
#include <log/log_properties.h>
|
||||||
#include <private/android_logger.h>
|
#include <private/android_logger.h>
|
||||||
|
|
||||||
#include "log_portability.h"
|
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
#include "rwlock.h"
|
#include "rwlock.h"
|
||||||
#include "uio.h"
|
#include "uio.h"
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,6 @@
|
||||||
|
|
||||||
#include <private/android_logger.h>
|
#include <private/android_logger.h>
|
||||||
|
|
||||||
#include "log_portability.h"
|
|
||||||
|
|
||||||
static pthread_mutex_t lock_loggable = PTHREAD_MUTEX_INITIALIZER;
|
static pthread_mutex_t lock_loggable = PTHREAD_MUTEX_INITIALIZER;
|
||||||
|
|
||||||
static int lock() {
|
static int lock() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue