diff options
author | Tom Cherry <tomcherry@google.com> | 2019-01-16 14:17:08 -0800 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2019-01-16 14:26:36 -0800 |
commit | 6f6ef39b481d8b3f7fb24536b3e28327a48fcec4 (patch) | |
tree | 20e2e866d28f09ba1fac35b28e10f9e9b9aa1f0a /liblog/include | |
parent | 4f8246122f9324b1f19fad97a4b3e6362b8d6ee2 (diff) | |
download | system_core-6f6ef39b481d8b3f7fb24536b3e28327a48fcec4.tar.gz system_core-6f6ef39b481d8b3f7fb24536b3e28327a48fcec4.tar.bz2 system_core-6f6ef39b481d8b3f7fb24536b3e28327a48fcec4.zip |
Remove liblog/uio.c and <log/uio.h>
readv() isn't used by anyone, writev() has one easily replaced user.
uio.h can be left as a private header for windows compatibility with
struct iovec.
Test: build
Change-Id: I33d4c6bdee6fd818271f78ae06abdd2aa09430f2
Diffstat (limited to 'liblog/include')
-rw-r--r-- | liblog/include/log/log.h | 1 | ||||
-rw-r--r-- | liblog/include/log/uio.h | 47 |
2 files changed, 0 insertions, 48 deletions
diff --git a/liblog/include/log/log.h b/liblog/include/log/log.h index df5affb4a..6f93396aa 100644 --- a/liblog/include/log/log.h +++ b/liblog/include/log/log.h @@ -34,7 +34,6 @@ #include <log/log_safetynet.h> #include <log/log_system.h> #include <log/log_time.h> -#include <log/uio.h> /* helper to define iovec for portability */ #ifdef __cplusplus extern "C" { diff --git a/liblog/include/log/uio.h b/liblog/include/log/uio.h deleted file mode 100644 index 7feb5527f..000000000 --- a/liblog/include/log/uio.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2007-2014 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#pragma once - -#if !defined(_WIN32) - -#include <sys/uio.h> - -#else - -#ifdef __cplusplus -extern "C" { -#endif - -// -// Implementation of sys/uio.h for Win32. -// - -#include <stddef.h> - -struct iovec { - void* iov_base; - size_t iov_len; -}; - -extern int readv(int fd, struct iovec* vecs, int count); -extern int writev(int fd, const struct iovec* vecs, int count); - -#ifdef __cplusplus -} -#endif - -#endif |