Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
4e04fed3
Commit
4e04fed3
authored
Mar 05, 2008
by
Bradley C. Kuszmaul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce symbol visibility. Fixes #467.
git-svn-id:
file:///svn/tokudb@2541
c7de825b-a66e-492c-adef-691d508d4ae1
parent
a29e5b60
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
44 additions
and
33 deletions
+44
-33
Makefile
Makefile
+1
-1
buildheader/db.h_4_1
buildheader/db.h_4_1
+5
-5
buildheader/db.h_4_3
buildheader/db.h_4_3
+5
-5
buildheader/db.h_4_4
buildheader/db.h_4_4
+5
-5
buildheader/db.h_4_5
buildheader/db.h_4_5
+5
-5
buildheader/make_db_h.c
buildheader/make_db_h.c
+6
-5
include/db.h
include/db.h
+5
-5
newbrt/Makefile
newbrt/Makefile
+1
-1
src/Makefile
src/Makefile
+5
-1
src/lock_tree/Makefile
src/lock_tree/Makefile
+3
-0
src/range_tree/Makefile
src/range_tree/Makefile
+3
-0
No files found.
Makefile
View file @
4e04fed3
TAGS
:
*/*.c */*.h
TAGS
:
*/*.c */*.h
etags
*
/
*
.c
*
/
*
.h
etags
*
/
*
.c
*
/
*
.h
src/lock_tree/
*
.c src/lock_tree/
*
.h src/range_tree/
*
.c src/range_tree/
*
.h
SRCDIRS
=
newbrt src src/tests src/range_tree src/range_tree/tests src/lock_tree src/lock_tree/tests cxx cxx/tests
\
SRCDIRS
=
newbrt src src/tests src/range_tree src/range_tree/tests src/lock_tree src/lock_tree/tests cxx cxx/tests
\
utils db-benchmark-test db-benchmark-test-cxx
utils db-benchmark-test db-benchmark-test-cxx
...
...
buildheader/db.h_4_1
View file @
4e04fed3
...
@@ -254,11 +254,11 @@ struct __toku_dbt {
...
@@ -254,11 +254,11 @@ struct __toku_dbt {
#ifdef _TOKUDB_WRAP_H
#ifdef _TOKUDB_WRAP_H
#define txn_begin txn_begin_tokudb
#define txn_begin txn_begin_tokudb
#endif
#endif
int db_env_create(DB_ENV **, u_int32_t);
int db_env_create(DB_ENV **, u_int32_t)
__attribute__((__visibility__("default")))
;
int db_create(DB **, DB_ENV *, u_int32_t);
int db_create(DB **, DB_ENV *, u_int32_t)
__attribute__((__visibility__("default")))
;
char *db_strerror(int);
char *db_strerror(int)
__attribute__((__visibility__("default")))
;
const char *db_version(int*,int *,int *);
const char *db_version(int*,int *,int *)
__attribute__((__visibility__("default")))
;
int log_compare (const DB_LSN*, const DB_LSN *);
int log_compare (const DB_LSN*, const DB_LSN *)
__attribute__((__visibility__("default")))
;
#if defined(__cplusplus)
#if defined(__cplusplus)
}
}
#endif
#endif
...
...
buildheader/db.h_4_3
View file @
4e04fed3
...
@@ -270,11 +270,11 @@ struct __toku_dbt {
...
@@ -270,11 +270,11 @@ struct __toku_dbt {
#ifdef _TOKUDB_WRAP_H
#ifdef _TOKUDB_WRAP_H
#define txn_begin txn_begin_tokudb
#define txn_begin txn_begin_tokudb
#endif
#endif
int db_env_create(DB_ENV **, u_int32_t);
int db_env_create(DB_ENV **, u_int32_t)
__attribute__((__visibility__("default")))
;
int db_create(DB **, DB_ENV *, u_int32_t);
int db_create(DB **, DB_ENV *, u_int32_t)
__attribute__((__visibility__("default")))
;
char *db_strerror(int);
char *db_strerror(int)
__attribute__((__visibility__("default")))
;
const char *db_version(int*,int *,int *);
const char *db_version(int*,int *,int *)
__attribute__((__visibility__("default")))
;
int log_compare (const DB_LSN*, const DB_LSN *);
int log_compare (const DB_LSN*, const DB_LSN *)
__attribute__((__visibility__("default")))
;
#if defined(__cplusplus)
#if defined(__cplusplus)
}
}
#endif
#endif
...
...
buildheader/db.h_4_4
View file @
4e04fed3
...
@@ -272,11 +272,11 @@ struct __toku_dbt {
...
@@ -272,11 +272,11 @@ struct __toku_dbt {
#ifdef _TOKUDB_WRAP_H
#ifdef _TOKUDB_WRAP_H
#define txn_begin txn_begin_tokudb
#define txn_begin txn_begin_tokudb
#endif
#endif
int db_env_create(DB_ENV **, u_int32_t);
int db_env_create(DB_ENV **, u_int32_t)
__attribute__((__visibility__("default")))
;
int db_create(DB **, DB_ENV *, u_int32_t);
int db_create(DB **, DB_ENV *, u_int32_t)
__attribute__((__visibility__("default")))
;
char *db_strerror(int);
char *db_strerror(int)
__attribute__((__visibility__("default")))
;
const char *db_version(int*,int *,int *);
const char *db_version(int*,int *,int *)
__attribute__((__visibility__("default")))
;
int log_compare (const DB_LSN*, const DB_LSN *);
int log_compare (const DB_LSN*, const DB_LSN *)
__attribute__((__visibility__("default")))
;
#if defined(__cplusplus)
#if defined(__cplusplus)
}
}
#endif
#endif
...
...
buildheader/db.h_4_5
View file @
4e04fed3
...
@@ -272,11 +272,11 @@ struct __toku_dbt {
...
@@ -272,11 +272,11 @@ struct __toku_dbt {
#ifdef _TOKUDB_WRAP_H
#ifdef _TOKUDB_WRAP_H
#define txn_begin txn_begin_tokudb
#define txn_begin txn_begin_tokudb
#endif
#endif
int db_env_create(DB_ENV **, u_int32_t);
int db_env_create(DB_ENV **, u_int32_t)
__attribute__((__visibility__("default")))
;
int db_create(DB **, DB_ENV *, u_int32_t);
int db_create(DB **, DB_ENV *, u_int32_t)
__attribute__((__visibility__("default")))
;
char *db_strerror(int);
char *db_strerror(int)
__attribute__((__visibility__("default")))
;
const char *db_version(int*,int *,int *);
const char *db_version(int*,int *,int *)
__attribute__((__visibility__("default")))
;
int log_compare (const DB_LSN*, const DB_LSN *);
int log_compare (const DB_LSN*, const DB_LSN *)
__attribute__((__visibility__("default")))
;
#if defined(__cplusplus)
#if defined(__cplusplus)
}
}
#endif
#endif
...
...
buildheader/make_db_h.c
View file @
4e04fed3
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <string.h>
#define VISIBLE "__attribute__((__visibility__(\"default\")))"
void
print_dbtype
(
void
)
{
void
print_dbtype
(
void
)
{
/* DBTYPE is mentioned by db_open.html */
/* DBTYPE is mentioned by db_open.html */
...
@@ -297,11 +298,11 @@ int main (int argc __attribute__((__unused__)), char *argv[] __attribute__((__un
...
@@ -297,11 +298,11 @@ int main (int argc __attribute__((__unused__)), char *argv[] __attribute__((__un
print_struct
(
"dbt"
,
0
,
dbt_fields32
,
dbt_fields64
,
sizeof
(
dbt_fields32
)
/
sizeof
(
dbt_fields32
[
0
]));
print_struct
(
"dbt"
,
0
,
dbt_fields32
,
dbt_fields64
,
sizeof
(
dbt_fields32
)
/
sizeof
(
dbt_fields32
[
0
]));
printf
(
"#ifdef _TOKUDB_WRAP_H
\n
#define txn_begin txn_begin_tokudb
\n
#endif
\n
"
);
printf
(
"#ifdef _TOKUDB_WRAP_H
\n
#define txn_begin txn_begin_tokudb
\n
#endif
\n
"
);
printf
(
"int db_env_create(DB_ENV **, u_int32_t)
;
\n
"
);
printf
(
"int db_env_create(DB_ENV **, u_int32_t)
%s;
\n
"
,
VISIBLE
);
printf
(
"int db_create(DB **, DB_ENV *, u_int32_t)
;
\n
"
);
printf
(
"int db_create(DB **, DB_ENV *, u_int32_t)
%s;
\n
"
,
VISIBLE
);
printf
(
"char *db_strerror(int)
;
\n
"
);
printf
(
"char *db_strerror(int)
%s;
\n
"
,
VISIBLE
);
printf
(
"const char *db_version(int*,int *,int *)
;
\n
"
);
printf
(
"const char *db_version(int*,int *,int *)
%s;
\n
"
,
VISIBLE
);
printf
(
"int log_compare (const DB_LSN*, const DB_LSN *)
;
\n
"
);
printf
(
"int log_compare (const DB_LSN*, const DB_LSN *)
%s;
\n
"
,
VISIBLE
);
printf
(
"#if defined(__cplusplus)
\n
}
\n
#endif
\n
"
);
printf
(
"#if defined(__cplusplus)
\n
}
\n
#endif
\n
"
);
printf
(
"#endif
\n
"
);
printf
(
"#endif
\n
"
);
return
0
;
return
0
;
...
...
include/db.h
View file @
4e04fed3
...
@@ -272,11 +272,11 @@ struct __toku_dbt {
...
@@ -272,11 +272,11 @@ struct __toku_dbt {
#ifdef _TOKUDB_WRAP_H
#ifdef _TOKUDB_WRAP_H
#define txn_begin txn_begin_tokudb
#define txn_begin txn_begin_tokudb
#endif
#endif
int
db_env_create
(
DB_ENV
**
,
u_int32_t
);
int
db_env_create
(
DB_ENV
**
,
u_int32_t
)
__attribute__
((
__visibility__
(
"default"
)))
;
int
db_create
(
DB
**
,
DB_ENV
*
,
u_int32_t
);
int
db_create
(
DB
**
,
DB_ENV
*
,
u_int32_t
)
__attribute__
((
__visibility__
(
"default"
)))
;
char
*
db_strerror
(
int
);
char
*
db_strerror
(
int
)
__attribute__
((
__visibility__
(
"default"
)))
;
const
char
*
db_version
(
int
*
,
int
*
,
int
*
);
const
char
*
db_version
(
int
*
,
int
*
,
int
*
)
__attribute__
((
__visibility__
(
"default"
)))
;
int
log_compare
(
const
DB_LSN
*
,
const
DB_LSN
*
);
int
log_compare
(
const
DB_LSN
*
,
const
DB_LSN
*
)
__attribute__
((
__visibility__
(
"default"
)))
;
#if defined(__cplusplus)
#if defined(__cplusplus)
}
}
#endif
#endif
...
...
newbrt/Makefile
View file @
4e04fed3
...
@@ -30,7 +30,7 @@ FPICFLAGS = -fPIC
...
@@ -30,7 +30,7 @@ FPICFLAGS = -fPIC
DTOOL
=
valgrind
--quiet
--error-exitcode
=
1
--leak-check
=
yes
DTOOL
=
valgrind
--quiet
--error-exitcode
=
1
--leak-check
=
yes
endif
endif
CFLAGS
=
-Wall
-W
$(OPTFLAGS)
-g3
-ggdb3
$(GCOV_FLAGS)
$(PROF_FLAGS)
-Werror
$(FPICFLAGS)
-Wshadow
CFLAGS
=
-Wall
-W
$(OPTFLAGS)
-g3
-ggdb3
$(GCOV_FLAGS)
$(PROF_FLAGS)
-Werror
$(FPICFLAGS)
-Wshadow
-fvisibility
=
hidden
LDFLAGS
=
$(OPTFLAGS)
-g
$(GCOV_FLAGS)
$(PROF_FLAGS)
LDFLAGS
=
$(OPTFLAGS)
-g
$(GCOV_FLAGS)
$(PROF_FLAGS)
CPPFLAGS
+=
-D_FILE_OFFSET_BITS
=
64
-D_LARGEFILE64_SOURCE
CPPFLAGS
+=
-D_FILE_OFFSET_BITS
=
64
-D_LARGEFILE64_SOURCE
...
...
src/Makefile
View file @
4e04fed3
...
@@ -3,9 +3,12 @@
...
@@ -3,9 +3,12 @@
LIBNAME
=
libtokudb
LIBNAME
=
libtokudb
EXPORTMAP
=
-Wl
,--version-script
=
export.map
VISIBILITY
=
-fvisibility
=
hidden
OPTFLAGS
=
-O2
OPTFLAGS
=
-O2
# GCOV_FLAGS = -fprofile-arcs -ftest-coverage
# GCOV_FLAGS = -fprofile-arcs -ftest-coverage
CFLAGS
=
-W
-Wall
-Werror
-g3
-ggdb3
-fPIC
$(OPTFLAGS)
$(GCOV_FLAGS)
CFLAGS
=
-W
-Wall
-Werror
-g3
-ggdb3
-fPIC
$(OPTFLAGS)
$(GCOV_FLAGS)
$(VISIBILITY)
CPPFLAGS
=
-I
../include
-I
../newbrt
-I
./lock_tree/
-I
./range_tree/
CPPFLAGS
=
-I
../include
-I
../newbrt
-I
./lock_tree/
-I
./range_tree/
CPPFLAGS
+=
-D_GNU_SOURCE
-D_THREAD_SAFE
-D_FILE_OFFSET_BITS
=
64
-D_LARGEFILE64_SOURCE
CPPFLAGS
+=
-D_GNU_SOURCE
-D_THREAD_SAFE
-D_FILE_OFFSET_BITS
=
64
-D_LARGEFILE64_SOURCE
...
@@ -18,6 +21,7 @@ CFLAGS+=-fno-common
...
@@ -18,6 +21,7 @@ CFLAGS+=-fno-common
else
else
LIBEXT
=
so
LIBEXT
=
so
SHARED
=
-shared
SHARED
=
-shared
SHARED
=
-shared
$(EXPORTMAP)
RPATHNAME
=
RPATHNAME
=
endif
endif
...
...
src/lock_tree/Makefile
View file @
4e04fed3
...
@@ -13,9 +13,12 @@ else
...
@@ -13,9 +13,12 @@ else
GCOV_FLAGS
=
GCOV_FLAGS
=
endif
endif
VISIBILITY
=
-fvisibility
=
hidden
CFLAGS
=
-W
-Wall
-Wextra
-Werror
-fPIC
$(OPTFLAGS)
-g3
-ggdb3
$(GCOV_FLAGS)
CFLAGS
=
-W
-Wall
-Wextra
-Werror
-fPIC
$(OPTFLAGS)
-g3
-ggdb3
$(GCOV_FLAGS)
CFLAGS
+=
-Wbad-function-cast
-Wcast-align
-Wconversion
-Waggregate-return
CFLAGS
+=
-Wbad-function-cast
-Wcast-align
-Wconversion
-Waggregate-return
CFLAGS
+=
-Wmissing-noreturn
-Wmissing-format-attribute
CFLAGS
+=
-Wmissing-noreturn
-Wmissing-format-attribute
CFLAGS
+=
$(VISIBILITY)
CPPFLAGS
=
-I
.
-I
..
-I
../range_tree
-I
../../include
-I
../../newbrt
-L
../range_tree
CPPFLAGS
=
-I
.
-I
..
-I
../range_tree
-I
../../include
-I
../../newbrt
-L
../range_tree
CPPFLAGS
+=
-D_GNU_SOURCE
-D_THREAD_SAFE
-D_FILE_OFFSET_BITS
=
64
-D_LARGEFILE64_SOURCE
CPPFLAGS
+=
-D_GNU_SOURCE
-D_THREAD_SAFE
-D_FILE_OFFSET_BITS
=
64
-D_LARGEFILE64_SOURCE
...
...
src/range_tree/Makefile
View file @
4e04fed3
...
@@ -13,9 +13,12 @@ else
...
@@ -13,9 +13,12 @@ else
GCOV_FLAGS
=
GCOV_FLAGS
=
endif
endif
VISIBILITY
=
-fvisibility
=
hidden
CFLAGS
=
-W
-Wall
-Wextra
-Werror
-fPIC
$(OPTFLAGS)
-g3
-ggdb3
$(GCOV_FLAGS)
CFLAGS
=
-W
-Wall
-Wextra
-Werror
-fPIC
$(OPTFLAGS)
-g3
-ggdb3
$(GCOV_FLAGS)
CFLAGS
+=
-Wbad-function-cast
-Wcast-align
-Wconversion
-Waggregate-return
CFLAGS
+=
-Wbad-function-cast
-Wcast-align
-Wconversion
-Waggregate-return
CFLAGS
+=
-Wmissing-noreturn
-Wmissing-format-attribute
CFLAGS
+=
-Wmissing-noreturn
-Wmissing-format-attribute
CFLAGS
+=
$(VISIBILITY)
CPPFLAGS
=
-I
../../include
-I
../../newbrt
CPPFLAGS
=
-I
../../include
-I
../../newbrt
CPPFLAGS
+=
-D_GNU_SOURCE
-D_THREAD_SAFE
-D_FILE_OFFSET_BITS
=
64
-D_LARGEFILE64_SOURCE
CPPFLAGS
+=
-D_GNU_SOURCE
-D_THREAD_SAFE
-D_FILE_OFFSET_BITS
=
64
-D_LARGEFILE64_SOURCE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment