Merge "liblog: use libbase_headers for TEMP_FAILURE_RETRY"

This commit is contained in:
Tom Cherry 2020-01-15 16:09:45 +00:00 committed by Gerrit Code Review
commit 2ea787137f
14 changed files with 2 additions and 32 deletions

View file

@ -36,7 +36,6 @@
#include <utils/FastStrcmp.h>
#include <utils/RWLock.h>
#include "log_portability.h"
#include "logd_reader.h"
#define OUT_TAG "EventTagMap"

View file

@ -36,7 +36,6 @@
#include <log/log_id.h>
#include <log/logprint.h>
#include "log_portability.h"
#include "logger.h"
#define kMaxTagLen 16 /* from the long-dead utils/Log.cpp */

View file

@ -25,8 +25,6 @@
#include <log/log_event_list.h>
#include <private/android_logger.h>
#include "log_portability.h"
#define MAX_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - sizeof(int32_t))
enum ReadWriteFlag {

View file

@ -20,8 +20,6 @@
#include <log/log.h>
#include <log/log_event_list.h>
#include "log_portability.h"
#define MAX_SUBTAG_LEN 32
int __android_log_error_write(int tag, const char* subTag, int32_t uid, const char* data,

View file

@ -31,17 +31,3 @@
#define __END_DECLS
#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

View file

@ -21,8 +21,6 @@
#include <private/android_logger.h>
#include "log_portability.h"
const char log_time::default_format[] = "%m-%d %H:%M:%S.%q";
const timespec log_time::EPOCH = {0, 0};

View file

@ -37,7 +37,6 @@
#include <private/android_filesystem_config.h>
#include <private/android_logger.h>
#include "log_portability.h"
#include "logger.h"
#include "rwlock.h"
#include "uio.h"

View file

@ -17,6 +17,7 @@
#pragma once
#include <stdatomic.h>
#include <sys/cdefs.h>
#include <log/log.h>

View file

@ -19,8 +19,6 @@
#include <log/log.h>
#include "log_portability.h"
/* In the future, we would like to make this list extensible */
static const char* LOG_NAME[LOG_ID_MAX] = {
/* clang-format off */

View file

@ -28,7 +28,6 @@
#include <android/log.h>
#include "log_portability.h"
#include "logd_reader.h"
#include "logger.h"
#include "pmsg_reader.h"

View file

@ -23,10 +23,10 @@
#include <android/set_abort_message.h>
#endif
#include <android-base/macros.h>
#include <private/android_filesystem_config.h>
#include <private/android_logger.h>
#include "log_portability.h"
#include "logger.h"
#include "uio.h"

View file

@ -40,8 +40,6 @@
#include <log/logprint.h>
#include <private/android_logger.h>
#include "log_portability.h"
#define MS_PER_NSEC 1000000
#define US_PER_NSEC 1000

View file

@ -28,7 +28,6 @@
#include <log/log_properties.h>
#include <private/android_logger.h>
#include "log_portability.h"
#include "logger.h"
#include "rwlock.h"
#include "uio.h"

View file

@ -26,8 +26,6 @@
#include <private/android_logger.h>
#include "log_portability.h"
static pthread_mutex_t lock_loggable = PTHREAD_MUTEX_INITIALIZER;
static int lock() {