Rename util_malloc to malloc.

This commit is contained in:
Nick Mathewson 2018-07-10 15:16:57 -04:00
parent 9ec80909ec
commit 41640b6573
56 changed files with 59 additions and 59 deletions

View File

@ -47,7 +47,7 @@
#include "lib/log/escape.h"
#include "lib/log/ratelim.h"
#include "lib/log/util_bug.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/net/address.h"
#include "lib/net/inaddr.h"
#include "lib/net/socket.h"

View File

@ -32,7 +32,7 @@
#include "lib/compress/compress_zlib.h"
#include "lib/compress/compress_zstd.h"
#include "lib/intmath/cmp.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/thread/threads.h"
/** Total number of bytes allocated for compression state overhead. */

View File

@ -17,7 +17,7 @@
#include "lib/compress/compress_lzma.h"
#include "lib/log/torlog.h"
#include "lib/log/util_bug.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/thread/threads.h"
#ifdef HAVE_LZMA

View File

@ -15,7 +15,7 @@
#include "orconfig.h"
#include <string.h>
#include "lib/cc/torint.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#if SIZEOF_INT == 4
#define BITARRAY_SHIFT 5

View File

@ -10,7 +10,7 @@
#include <stdlib.h>
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/container/bloomfilt.h"
#include "lib/intmath/bits.h"
#include "lib/log/util_bug.h"

View File

@ -30,7 +30,7 @@
#include "lib/log/torlog.h"
#include "lib/log/util_bug.h"
#include "lib/ctime/di_ops.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/string/printf.h"
#include "lib/time/compat_time.h"

View File

@ -52,7 +52,7 @@
#include "orconfig.h"
#include "lib/log/util_bug.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#define HANDLE_ENTRY(name, structname) \
struct name ## _handle_head_t *handle_head

View File

@ -14,7 +14,7 @@
#include "lib/ctime/di_ops.h"
#include "lib/defs/digest_sizes.h"
#include "lib/string/util_string.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/log/util_bug.h"

View File

@ -17,7 +17,7 @@
#include "lib/container/smartlist.h"
#include "lib/err/torerr.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/defs/digest_sizes.h"
#include "lib/ctime/di_ops.h"
#include "lib/string/compat_ctype.h"

View File

@ -14,7 +14,7 @@
*/
#include "lib/cc/torint.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
typedef struct aes_cnt_cipher aes_cnt_cipher_t;

View File

@ -15,7 +15,7 @@
#include "lib/cc/torint.h"
#include "lib/defs/digest_sizes.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
/** Length of a sha1 message digest when encoded in base32 with trailing =
* signs removed. */

View File

@ -28,7 +28,7 @@
#include "lib/intmath/weakrng.h"
#include "lib/log/torlog.h"
#include "lib/log/util_bug.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/sandbox/sandbox.h"
#include "lib/string/compat_string.h"
#include "lib/string/util_string.h"

View File

@ -9,7 +9,7 @@
#include "orconfig.h"
#include "lib/ctime/di_ops.h"
#include "lib/err/torerr.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include <string.h>

View File

@ -19,7 +19,7 @@
#include "lib/cc/torint.h"
#include "lib/string/compat_ctype.h"
#include "lib/intmath/muldiv.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include <stddef.h>
#include <string.h>

View File

@ -19,7 +19,7 @@
#include "lib/encoding/cstring.h"
#include "lib/log/torlog.h"
#include "lib/log/util_bug.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/string/compat_ctype.h"
#include "lib/string/compat_string.h"
#include "lib/string/util_string.h"

View File

@ -13,7 +13,7 @@
#include "lib/encoding/cstring.h"
#include "lib/log/torlog.h"
#include "lib/log/util_bug.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/string/compat_ctype.h"
#include <string.h>

View File

@ -18,7 +18,7 @@
#include "lib/log/torlog.h"
#include "lib/log/escape.h"
#include "lib/log/util_bug.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/string/printf.h"
#include "lib/string/scanf.h"
#include "lib/wallclock/tm_cvt.h"

View File

@ -11,7 +11,7 @@
#include "orconfig.h"
#include "lib/testsupport/testsupport.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
void configure_libevent_logging(void);
void suppress_libevent_log_msg(const char *msg);

View File

@ -11,7 +11,7 @@
#include "lib/log/torlog.h"
#include "lib/log/util_bug.h"
#include "lib/log/win32err.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/string/parse_int.h"
#ifdef HAVE_SIGNAL_H

View File

@ -36,7 +36,7 @@
#include "lib/intmath/muldiv.h"
#include "lib/log/torlog.h"
#include "lib/log/util_bug.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/time/compat_time.h"
#ifdef _WIN32

View File

@ -18,7 +18,7 @@
#include "lib/fs/files.h"
#include "lib/fs/path.h"
#include "lib/log/torlog.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/string/printf.h"
static smartlist_t *config_get_file_list(const char *path,

View File

@ -19,7 +19,7 @@
#include "lib/log/win32err.h"
#include "lib/container/smartlist.h"
#include "lib/sandbox/sandbox.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/string/printf.h"
#include "lib/string/compat_string.h"

View File

@ -20,7 +20,7 @@
#include "lib/log/util_bug.h"
#include "lib/log/escape.h"
#include "lib/err/torerr.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/sandbox/sandbox.h"
#include "lib/string/printf.h"
#include "lib/string/util_string.h"

View File

@ -15,7 +15,7 @@
#include "lib/fs/lockfile.h"
#include "lib/log/torlog.h"
#include "lib/log/util_bug.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>

View File

@ -15,7 +15,7 @@
#include "lib/log/util_bug.h"
#include "lib/log/win32err.h"
#include "lib/string/compat_string.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#ifdef HAVE_MMAP
#include <sys/mman.h>

View File

@ -10,7 +10,7 @@
**/
#include "lib/fs/path.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/log/torlog.h"
#include "lib/log/util_bug.h"
#include "lib/string/printf.h"

View File

@ -22,7 +22,7 @@
#include "lib/log/escape.h"
#include "lib/log/torlog.h"
#include "lib/log/util_bug.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/memarea/memarea.h"
#include "lib/sandbox/sandbox.h"
#include "lib/string/printf.h"

View File

@ -12,7 +12,7 @@
#include "lib/fs/userdb.h"
#ifndef _WIN32
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/log/torlog.h"
#include "lib/log/util_bug.h"

View File

@ -10,7 +10,7 @@
**/
#include "lib/lock/compat_mutex.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
/** Return a newly allocated, ready-for-use mutex. */
tor_mutex_t *

View File

@ -14,7 +14,7 @@
#include "orconfig.h"
#include "lib/cc/torint.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#if defined(HAVE_PTHREAD_H) && !defined(_WIN32)
#include <pthread.h>

View File

@ -12,7 +12,7 @@
#include "lib/log/util_bug.h"
#include "lib/string/compat_ctype.h"
#include "lib/string/printf.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
/** Allocate and return a new string representing the contents of <b>s</b>,
* surrounded by quotes and using standard C escapes.

View File

@ -9,7 +9,7 @@
**/
#include "lib/log/ratelim.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/string/printf.h"
/** If the rate-limiter <b>lim</b> is ready at <b>now</b>, return the number

View File

@ -41,7 +41,7 @@
#include "lib/intmath/bits.h"
#include "lib/string/compat_string.h"
#include "lib/string/printf.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/string/util_string.h"
#include "lib/wallclock/tor_gettimeofday.h"
#include "lib/wallclock/approx_time.h"

View File

@ -15,7 +15,7 @@
#include "lib/smartlist_core/smartlist_core.h"
#include "lib/smartlist_core/smartlist_foreach.h"
#endif
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/string/printf.h"
#include <string.h>

View File

@ -11,7 +11,7 @@
#ifdef _WIN32
#include "orconfig.h"
#include "lib/log/win32err.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include <tchar.h>
#include <windows.h>

View File

@ -6,7 +6,7 @@ noinst_LIBRARIES += src/lib/libtor-malloc-testing.a
endif
src_lib_libtor_malloc_a_SOURCES = \
src/lib/malloc/util_malloc.c
src/lib/malloc/malloc.c
if USE_OPENBSD_MALLOC
src_lib_libtor_malloc_a_SOURCES += src/ext/OpenBSD_malloc_Linux.c
@ -18,4 +18,4 @@ src_lib_libtor_malloc_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
src_lib_libtor_malloc_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
noinst_HEADERS += \
src/lib/malloc/util_malloc.h
src/lib/malloc/malloc.h

View File

@ -4,7 +4,7 @@
/* See LICENSE for licensing information */
/**
* \file util_malloc.c
* \file malloc.c
* \brief Wrappers for C malloc code, and replacements for items that
* may be missing.
**/
@ -16,7 +16,7 @@
#include "lib/testsupport/testsupport.h"
#define UTIL_MALLOC_PRIVATE
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/cc/torint.h"
#include "lib/err/torerr.h"

View File

@ -4,7 +4,7 @@
/* See LICENSE for licensing information */
/**
* \file util_malloc.h
* \file malloc.h
* \brief Headers for util_malloc.c
**/

View File

@ -19,7 +19,7 @@
#include "lib/container/smartlist.h"
#include "lib/log/torlog.h"
#include "lib/log/util_bug.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#ifndef DISABLE_MEMORY_SENTINELS

View File

@ -16,7 +16,7 @@
#include "lib/cc/torint.h"
#include "lib/fs/files.h"
#include "lib/log/torlog.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>

View File

@ -44,7 +44,7 @@
#include "lib/ctime/di_ops.h"
#include "lib/log/torlog.h"
#include "lib/log/escape.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/net/inaddr.h"
#include "lib/string/compat_ctype.h"
#include "lib/string/compat_string.h"

View File

@ -12,7 +12,7 @@
#include "lib/net/address.h"
#include "lib/net/inaddr.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/string/parse_int.h"
#include "lib/string/util_string.h"

View File

@ -11,12 +11,12 @@
#include "orconfig.h"
#include "lib/process/env.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/ctime/di_ops.h"
#include "lib/container/smartlist.h"
#include "lib/log/util_bug.h"
#include "lib/log/torlog.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>

View File

@ -19,7 +19,7 @@
#include "lib/fs/userdb.h"
#include "lib/log/torlog.h"
#include "lib/log/util_bug.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>

View File

@ -16,7 +16,7 @@
#include "lib/log/torlog.h"
#include "lib/log/util_bug.h"
#include "lib/log/win32err.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/process/env.h"
#include "lib/process/waitpid.h"
#include "lib/string/compat_ctype.h"

View File

@ -15,7 +15,7 @@
#include "lib/process/waitpid.h"
#include "lib/log/torlog.h"
#include "lib/log/util_bug.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "ht.h"
#ifdef HAVE_SYS_WAIT_H

View File

@ -39,7 +39,7 @@
#include "lib/log/torlog.h"
#include "lib/cc/torint.h"
#include "lib/net/resolve.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/string/scanf.h"
#include "tor_queue.h"

View File

@ -11,7 +11,7 @@
**/
#include "lib/err/torerr.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/smartlist_core/smartlist_core.h"
#include <stdlib.h>

View File

@ -14,7 +14,7 @@
#include "lib/err/torerr.h"
#include "lib/string/util_string.h"
#include "lib/string/compat_ctype.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include <string.h>

View File

@ -11,7 +11,7 @@
#include "lib/string/printf.h"
#include "lib/err/torerr.h"
#include "lib/cc/torint.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include <stdlib.h>
#include <stdio.h>

View File

@ -11,7 +11,7 @@
#include "lib/term/getpass.h"
#include "lib/log/util_bug.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#ifdef _WIN32
#include <windows.h>

View File

@ -5,7 +5,7 @@
#include "lib/crypt_ops/crypto_util.h"
#include "lib/intmath/cmp.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include <string.h>
#include <stdio.h>

View File

@ -10,7 +10,7 @@
#include "lib/crypt_ops/compat_openssl.h"
#include "lib/crypt_ops/crypto_rand.h"
#include "lib/encoding/binascii.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "test/test.h"
#include <openssl/evp.h>

View File

@ -39,7 +39,7 @@ ENABLE_GCC_WARNING(redundant-decls)
#include "lib/encoding/time_fmt.h"
#include "lib/fs/files.h"
#include "lib/log/torlog.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/net/address.h"
#include "lib/net/inaddr.h"
#include "lib/net/resolve.h"

View File

@ -7,7 +7,7 @@
#include "lib/arch/bytes.h"
#include "lib/log/torlog.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/net/address.h"
#include "lib/net/resolve.h"
#include "lib/net/socket.h"

View File

@ -3,7 +3,7 @@
#define TRUNNEL_LOCAL_H_INCLUDED
#include "lib/crypt_ops/crypto_util.h"
#include "lib/malloc/util_malloc.h"
#include "lib/malloc/malloc.h"
#include "lib/log/util_bug.h"
#define trunnel_malloc tor_malloc