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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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
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
\
utils db-benchmark-test db-benchmark-test-cxx
...
...
buildheader/db.h_4_1
View file @
4e04fed3
...
...
@@ -254,11 +254,11 @@ struct __toku_dbt {
#ifdef _TOKUDB_WRAP_H
#define txn_begin txn_begin_tokudb
#endif
int db_env_create(DB_ENV **, u_int32_t);
int db_create(DB **, DB_ENV *, u_int32_t);
char *db_strerror(int);
const char *db_version(int*,int *,int *);
int log_compare (const DB_LSN*, const DB_LSN *);
int db_env_create(DB_ENV **, u_int32_t)
__attribute__((__visibility__("default")))
;
int db_create(DB **, DB_ENV *, u_int32_t)
__attribute__((__visibility__("default")))
;
char *db_strerror(int)
__attribute__((__visibility__("default")))
;
const char *db_version(int*,int *,int *)
__attribute__((__visibility__("default")))
;
int log_compare (const DB_LSN*, const DB_LSN *)
__attribute__((__visibility__("default")))
;
#if defined(__cplusplus)
}
#endif
...
...
buildheader/db.h_4_3
View file @
4e04fed3
...
...
@@ -270,11 +270,11 @@ struct __toku_dbt {
#ifdef _TOKUDB_WRAP_H
#define txn_begin txn_begin_tokudb
#endif
int db_env_create(DB_ENV **, u_int32_t);
int db_create(DB **, DB_ENV *, u_int32_t);
char *db_strerror(int);
const char *db_version(int*,int *,int *);
int log_compare (const DB_LSN*, const DB_LSN *);
int db_env_create(DB_ENV **, u_int32_t)
__attribute__((__visibility__("default")))
;
int db_create(DB **, DB_ENV *, u_int32_t)
__attribute__((__visibility__("default")))
;
char *db_strerror(int)
__attribute__((__visibility__("default")))
;
const char *db_version(int*,int *,int *)
__attribute__((__visibility__("default")))
;
int log_compare (const DB_LSN*, const DB_LSN *)
__attribute__((__visibility__("default")))
;
#if defined(__cplusplus)
}
#endif
...
...
buildheader/db.h_4_4
View file @
4e04fed3
...
...
@@ -272,11 +272,11 @@ struct __toku_dbt {
#ifdef _TOKUDB_WRAP_H
#define txn_begin txn_begin_tokudb
#endif
int db_env_create(DB_ENV **, u_int32_t);
int db_create(DB **, DB_ENV *, u_int32_t);
char *db_strerror(int);
const char *db_version(int*,int *,int *);
int log_compare (const DB_LSN*, const DB_LSN *);
int db_env_create(DB_ENV **, u_int32_t)
__attribute__((__visibility__("default")))
;
int db_create(DB **, DB_ENV *, u_int32_t)
__attribute__((__visibility__("default")))
;
char *db_strerror(int)
__attribute__((__visibility__("default")))
;
const char *db_version(int*,int *,int *)
__attribute__((__visibility__("default")))
;
int log_compare (const DB_LSN*, const DB_LSN *)
__attribute__((__visibility__("default")))
;
#if defined(__cplusplus)
}
#endif
...
...
buildheader/db.h_4_5
View file @
4e04fed3
...
...
@@ -272,11 +272,11 @@ struct __toku_dbt {
#ifdef _TOKUDB_WRAP_H
#define txn_begin txn_begin_tokudb
#endif
int db_env_create(DB_ENV **, u_int32_t);
int db_create(DB **, DB_ENV *, u_int32_t);
char *db_strerror(int);
const char *db_version(int*,int *,int *);
int log_compare (const DB_LSN*, const DB_LSN *);
int db_env_create(DB_ENV **, u_int32_t)
__attribute__((__visibility__("default")))
;
int db_create(DB **, DB_ENV *, u_int32_t)
__attribute__((__visibility__("default")))
;
char *db_strerror(int)
__attribute__((__visibility__("default")))
;
const char *db_version(int*,int *,int *)
__attribute__((__visibility__("default")))
;
int log_compare (const DB_LSN*, const DB_LSN *)
__attribute__((__visibility__("default")))
;
#if defined(__cplusplus)
}
#endif
...
...
buildheader/make_db_h.c
View file @
4e04fed3
...
...
@@ -10,6 +10,7 @@
#include <assert.h>
#include <string.h>
#define VISIBLE "__attribute__((__visibility__(\"default\")))"
void
print_dbtype
(
void
)
{
/* DBTYPE is mentioned by db_open.html */
...
...
@@ -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
]));
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_create(DB **, DB_ENV *, u_int32_t)
;
\n
"
);
printf
(
"char *db_strerror(int)
;
\n
"
);
printf
(
"const char *db_version(int*,int *,int *)
;
\n
"
);
printf
(
"int log_compare (const DB_LSN*, const DB_LSN *)
;
\n
"
);
printf
(
"int db_env_create(DB_ENV **, u_int32_t)
%s;
\n
"
,
VISIBLE
);
printf
(
"int db_create(DB **, DB_ENV *, u_int32_t)
%s;
\n
"
,
VISIBLE
);
printf
(
"char *db_strerror(int)
%s;
\n
"
,
VISIBLE
);
printf
(
"const char *db_version(int*,int *,int *)
%s;
\n
"
,
VISIBLE
);
printf
(
"int log_compare (const DB_LSN*, const DB_LSN *)
%s;
\n
"
,
VISIBLE
);
printf
(
"#if defined(__cplusplus)
\n
}
\n
#endif
\n
"
);
printf
(
"#endif
\n
"
);
return
0
;
...
...
include/db.h
View file @
4e04fed3
...
...
@@ -272,11 +272,11 @@ struct __toku_dbt {
#ifdef _TOKUDB_WRAP_H
#define txn_begin txn_begin_tokudb
#endif
int
db_env_create
(
DB_ENV
**
,
u_int32_t
);
int
db_create
(
DB
**
,
DB_ENV
*
,
u_int32_t
);
char
*
db_strerror
(
int
);
const
char
*
db_version
(
int
*
,
int
*
,
int
*
);
int
log_compare
(
const
DB_LSN
*
,
const
DB_LSN
*
);
int
db_env_create
(
DB_ENV
**
,
u_int32_t
)
__attribute__
((
__visibility__
(
"default"
)))
;
int
db_create
(
DB
**
,
DB_ENV
*
,
u_int32_t
)
__attribute__
((
__visibility__
(
"default"
)))
;
char
*
db_strerror
(
int
)
__attribute__
((
__visibility__
(
"default"
)))
;
const
char
*
db_version
(
int
*
,
int
*
,
int
*
)
__attribute__
((
__visibility__
(
"default"
)))
;
int
log_compare
(
const
DB_LSN
*
,
const
DB_LSN
*
)
__attribute__
((
__visibility__
(
"default"
)))
;
#if defined(__cplusplus)
}
#endif
...
...
newbrt/Makefile
View file @
4e04fed3
...
...
@@ -30,7 +30,7 @@ FPICFLAGS = -fPIC
DTOOL
=
valgrind
--quiet
--error-exitcode
=
1
--leak-check
=
yes
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)
CPPFLAGS
+=
-D_FILE_OFFSET_BITS
=
64
-D_LARGEFILE64_SOURCE
...
...
src/Makefile
View file @
4e04fed3
...
...
@@ -3,9 +3,12 @@
LIBNAME
=
libtokudb
EXPORTMAP
=
-Wl
,--version-script
=
export.map
VISIBILITY
=
-fvisibility
=
hidden
OPTFLAGS
=
-O2
# 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
+=
-D_GNU_SOURCE
-D_THREAD_SAFE
-D_FILE_OFFSET_BITS
=
64
-D_LARGEFILE64_SOURCE
...
...
@@ -18,6 +21,7 @@ CFLAGS+=-fno-common
else
LIBEXT
=
so
SHARED
=
-shared
SHARED
=
-shared
$(EXPORTMAP)
RPATHNAME
=
endif
...
...
src/lock_tree/Makefile
View file @
4e04fed3
...
...
@@ -13,9 +13,12 @@ else
GCOV_FLAGS
=
endif
VISIBILITY
=
-fvisibility
=
hidden
CFLAGS
=
-W
-Wall
-Wextra
-Werror
-fPIC
$(OPTFLAGS)
-g3
-ggdb3
$(GCOV_FLAGS)
CFLAGS
+=
-Wbad-function-cast
-Wcast-align
-Wconversion
-Waggregate-return
CFLAGS
+=
-Wmissing-noreturn
-Wmissing-format-attribute
CFLAGS
+=
$(VISIBILITY)
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
...
...
src/range_tree/Makefile
View file @
4e04fed3
...
...
@@ -13,9 +13,12 @@ else
GCOV_FLAGS
=
endif
VISIBILITY
=
-fvisibility
=
hidden
CFLAGS
=
-W
-Wall
-Wextra
-Werror
-fPIC
$(OPTFLAGS)
-g3
-ggdb3
$(GCOV_FLAGS)
CFLAGS
+=
-Wbad-function-cast
-Wcast-align
-Wconversion
-Waggregate-return
CFLAGS
+=
-Wmissing-noreturn
-Wmissing-format-attribute
CFLAGS
+=
$(VISIBILITY)
CPPFLAGS
=
-I
../../include
-I
../../newbrt
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