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
8aadfb40
Commit
8aadfb40
authored
Apr 13, 2011
by
Davi Arnaut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some leftovers from the removal of the gethostbyname wrappers.
parent
8b22d8c2
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
0 additions
and
73 deletions
+0
-73
cmake/os/WindowsCache.cmake
cmake/os/WindowsCache.cmake
+0
-3
config.h.cmake
config.h.cmake
+0
-3
configure.cmake
configure.cmake
+0
-39
include/my_global.h
include/my_global.h
+0
-3
mysys/my_init.c
mysys/my_init.c
+0
-7
mysys/my_thr_init.c
mysys/my_thr_init.c
+0
-10
mysys/mysys_priv.h
mysys/mysys_priv.h
+0
-4
sql/mysqld.cc
sql/mysqld.cc
+0
-4
No files found.
cmake/os/WindowsCache.cmake
View file @
8aadfb40
...
@@ -76,9 +76,6 @@ SET(HAVE_FTRUNCATE CACHE INTERNAL "")
...
@@ -76,9 +76,6 @@ SET(HAVE_FTRUNCATE CACHE INTERNAL "")
SET
(
HAVE_GETADDRINFO 1 CACHE INTERNAL
""
)
SET
(
HAVE_GETADDRINFO 1 CACHE INTERNAL
""
)
SET
(
HAVE_GETCWD 1 CACHE INTERNAL
""
)
SET
(
HAVE_GETCWD 1 CACHE INTERNAL
""
)
SET
(
HAVE_GETHOSTBYADDR_R CACHE INTERNAL
""
)
SET
(
HAVE_GETHOSTBYADDR_R CACHE INTERNAL
""
)
SET
(
HAVE_GETHOSTBYNAME_R CACHE INTERNAL
""
)
SET
(
HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE CACHE INTERNAL
""
)
SET
(
HAVE_GETHOSTBYNAME_R_RETURN_INT CACHE INTERNAL
""
)
SET
(
HAVE_GETHRTIME CACHE INTERNAL
""
)
SET
(
HAVE_GETHRTIME CACHE INTERNAL
""
)
SET
(
HAVE_GETLINE CACHE INTERNAL
""
)
SET
(
HAVE_GETLINE CACHE INTERNAL
""
)
SET
(
HAVE_GETNAMEINFO CACHE INTERNAL
""
)
SET
(
HAVE_GETNAMEINFO CACHE INTERNAL
""
)
...
...
config.h.cmake
View file @
8aadfb40
...
@@ -157,7 +157,6 @@
...
@@ -157,7 +157,6 @@
#cmakedefine HAVE_GETADDRINFO 1
#cmakedefine HAVE_GETADDRINFO 1
#cmakedefine HAVE_GETCWD 1
#cmakedefine HAVE_GETCWD 1
#cmakedefine HAVE_GETHOSTBYADDR_R 1
#cmakedefine HAVE_GETHOSTBYADDR_R 1
#cmakedefine HAVE_GETHOSTBYNAME_R 1
#cmakedefine HAVE_GETHRTIME 1
#cmakedefine HAVE_GETHRTIME 1
#cmakedefine HAVE_GETLINE 1
#cmakedefine HAVE_GETLINE 1
#cmakedefine HAVE_GETNAMEINFO 1
#cmakedefine HAVE_GETNAMEINFO 1
...
@@ -448,8 +447,6 @@
...
@@ -448,8 +447,6 @@
#cmakedefine HAVE_SOLARIS_STYLE_GETHOST 1
#cmakedefine HAVE_SOLARIS_STYLE_GETHOST 1
#cmakedefine HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE 1
#cmakedefine HAVE_GETHOSTBYNAME_R_RETURN_INT 1
#cmakedefine MY_ATOMIC_MODE_DUMMY 1
#cmakedefine MY_ATOMIC_MODE_DUMMY 1
#cmakedefine MY_ATOMIC_MODE_RWLOCKS 1
#cmakedefine MY_ATOMIC_MODE_RWLOCKS 1
...
...
configure.cmake
View file @
8aadfb40
...
@@ -350,7 +350,6 @@ CHECK_FUNCTION_EXISTS (fseeko HAVE_FSEEKO)
...
@@ -350,7 +350,6 @@ CHECK_FUNCTION_EXISTS (fseeko HAVE_FSEEKO)
CHECK_FUNCTION_EXISTS
(
fsync HAVE_FSYNC
)
CHECK_FUNCTION_EXISTS
(
fsync HAVE_FSYNC
)
CHECK_FUNCTION_EXISTS
(
getcwd HAVE_GETCWD
)
CHECK_FUNCTION_EXISTS
(
getcwd HAVE_GETCWD
)
CHECK_FUNCTION_EXISTS
(
gethostbyaddr_r HAVE_GETHOSTBYADDR_R
)
CHECK_FUNCTION_EXISTS
(
gethostbyaddr_r HAVE_GETHOSTBYADDR_R
)
CHECK_FUNCTION_EXISTS
(
gethostbyname_r HAVE_GETHOSTBYNAME_R
)
CHECK_FUNCTION_EXISTS
(
gethrtime HAVE_GETHRTIME
)
CHECK_FUNCTION_EXISTS
(
gethrtime HAVE_GETHRTIME
)
CHECK_FUNCTION_EXISTS
(
getnameinfo HAVE_GETNAMEINFO
)
CHECK_FUNCTION_EXISTS
(
getnameinfo HAVE_GETNAMEINFO
)
CHECK_FUNCTION_EXISTS
(
getpass HAVE_GETPASS
)
CHECK_FUNCTION_EXISTS
(
getpass HAVE_GETPASS
)
...
@@ -921,44 +920,6 @@ CHECK_CXX_SOURCE_COMPILES("
...
@@ -921,44 +920,6 @@ CHECK_CXX_SOURCE_COMPILES("
"
"
HAVE_SOLARIS_STYLE_GETHOST
)
HAVE_SOLARIS_STYLE_GETHOST
)
CHECK_CXX_SOURCE_COMPILES
(
"
#undef inline
#if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT)
#define _REENTRANT
#endif
#include <pthread.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
int main()
{
int ret = gethostbyname_r((const char *) 0,
(struct hostent*) 0, (char*) 0, 0, (struct hostent **) 0, (int *) 0);
return 0;
}"
HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE
)
CHECK_CXX_SOURCE_COMPILES
(
"
#undef inline
#if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT)
#define _REENTRANT
#endif
#include <pthread.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
int main()
{
int ret = gethostbyname_r((const char *) 0, (struct hostent*) 0, (struct hostent_data*) 0);
return 0;
}"
HAVE_GETHOSTBYNAME_R_RETURN_INT
)
# Use of ALARMs to wakeup on timeout on sockets
# Use of ALARMs to wakeup on timeout on sockets
#
#
# This feature makes use of a mutex and is a scalability hog we
# This feature makes use of a mutex and is a scalability hog we
...
...
include/my_global.h
View file @
8aadfb40
...
@@ -301,9 +301,6 @@ C_MODE_END
...
@@ -301,9 +301,6 @@ C_MODE_END
#undef HAVE_PWRITE
#undef HAVE_PWRITE
#endif
#endif
#ifdef UNDEF_HAVE_GETHOSTBYNAME_R
/* For OSF4.x */
#undef HAVE_GETHOSTBYNAME_R
#endif
#ifdef UNDEF_HAVE_INITGROUPS
/* For AIX 4.3 */
#ifdef UNDEF_HAVE_INITGROUPS
/* For AIX 4.3 */
#undef HAVE_INITGROUPS
#undef HAVE_INITGROUPS
#endif
#endif
...
...
mysys/my_init.c
View file @
8aadfb40
...
@@ -467,10 +467,6 @@ PSI_mutex_key key_my_file_info_mutex;
...
@@ -467,10 +467,6 @@ PSI_mutex_key key_my_file_info_mutex;
PSI_mutex_key
key_LOCK_localtime_r
;
PSI_mutex_key
key_LOCK_localtime_r
;
#endif
/* !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R) */
#endif
/* !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R) */
#ifndef HAVE_GETHOSTBYNAME_R
PSI_mutex_key
key_LOCK_gethostbyname_r
;
#endif
/* HAVE_GETHOSTBYNAME_R */
PSI_mutex_key
key_BITMAP_mutex
,
key_IO_CACHE_append_buffer_lock
,
PSI_mutex_key
key_BITMAP_mutex
,
key_IO_CACHE_append_buffer_lock
,
key_IO_CACHE_SHARE_mutex
,
key_KEY_CACHE_cache_lock
,
key_LOCK_alarm
,
key_IO_CACHE_SHARE_mutex
,
key_KEY_CACHE_cache_lock
,
key_LOCK_alarm
,
key_my_thread_var_mutex
,
key_THR_LOCK_charset
,
key_THR_LOCK_heap
,
key_my_thread_var_mutex
,
key_THR_LOCK_charset
,
key_THR_LOCK_heap
,
...
@@ -487,9 +483,6 @@ static PSI_mutex_info all_mysys_mutexes[]=
...
@@ -487,9 +483,6 @@ static PSI_mutex_info all_mysys_mutexes[]=
#if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R)
#if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R)
{
&
key_LOCK_localtime_r
,
"LOCK_localtime_r"
,
PSI_FLAG_GLOBAL
},
{
&
key_LOCK_localtime_r
,
"LOCK_localtime_r"
,
PSI_FLAG_GLOBAL
},
#endif
/* !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R) */
#endif
/* !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R) */
#ifndef HAVE_GETHOSTBYNAME_R
{
&
key_LOCK_gethostbyname_r
,
"LOCK_gethostbyname_r"
,
PSI_FLAG_GLOBAL
},
#endif
/* HAVE_GETHOSTBYNAME_R */
{
&
key_BITMAP_mutex
,
"BITMAP::mutex"
,
0
},
{
&
key_BITMAP_mutex
,
"BITMAP::mutex"
,
0
},
{
&
key_IO_CACHE_append_buffer_lock
,
"IO_CACHE::append_buffer_lock"
,
0
},
{
&
key_IO_CACHE_append_buffer_lock
,
"IO_CACHE::append_buffer_lock"
,
0
},
{
&
key_IO_CACHE_SHARE_mutex
,
"IO_CACHE::SHARE_mutex"
,
0
},
{
&
key_IO_CACHE_SHARE_mutex
,
"IO_CACHE::SHARE_mutex"
,
0
},
...
...
mysys/my_thr_init.c
View file @
8aadfb40
...
@@ -34,9 +34,6 @@ uint my_thread_end_wait_time= 5;
...
@@ -34,9 +34,6 @@ uint my_thread_end_wait_time= 5;
#if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R)
#if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R)
mysql_mutex_t
LOCK_localtime_r
;
mysql_mutex_t
LOCK_localtime_r
;
#endif
#endif
#ifndef HAVE_GETHOSTBYNAME_R
mysql_mutex_t
LOCK_gethostbyname_r
;
#endif
#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
pthread_mutexattr_t
my_fast_mutexattr
;
pthread_mutexattr_t
my_fast_mutexattr
;
#endif
#endif
...
@@ -222,10 +219,6 @@ my_bool my_thread_global_init(void)
...
@@ -222,10 +219,6 @@ my_bool my_thread_global_init(void)
#if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R)
#if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R)
mysql_mutex_init
(
key_LOCK_localtime_r
,
&
LOCK_localtime_r
,
MY_MUTEX_INIT_SLOW
);
mysql_mutex_init
(
key_LOCK_localtime_r
,
&
LOCK_localtime_r
,
MY_MUTEX_INIT_SLOW
);
#endif
#endif
#ifndef HAVE_GETHOSTBYNAME_R
mysql_mutex_init
(
key_LOCK_gethostbyname_r
,
&
LOCK_gethostbyname_r
,
MY_MUTEX_INIT_SLOW
);
#endif
#ifdef _MSC_VER
#ifdef _MSC_VER
install_sigabrt_handler
();
install_sigabrt_handler
();
...
@@ -289,9 +282,6 @@ void my_thread_global_end(void)
...
@@ -289,9 +282,6 @@ void my_thread_global_end(void)
#if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R)
#if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R)
mysql_mutex_destroy
(
&
LOCK_localtime_r
);
mysql_mutex_destroy
(
&
LOCK_localtime_r
);
#endif
#endif
#ifndef HAVE_GETHOSTBYNAME_R
mysql_mutex_destroy
(
&
LOCK_gethostbyname_r
);
#endif
my_thread_global_init_done
=
0
;
my_thread_global_init_done
=
0
;
}
}
...
...
mysys/mysys_priv.h
View file @
8aadfb40
...
@@ -36,10 +36,6 @@ extern PSI_mutex_key key_my_file_info_mutex;
...
@@ -36,10 +36,6 @@ extern PSI_mutex_key key_my_file_info_mutex;
extern
PSI_mutex_key
key_LOCK_localtime_r
;
extern
PSI_mutex_key
key_LOCK_localtime_r
;
#endif
/* !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R) */
#endif
/* !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R) */
#ifndef HAVE_GETHOSTBYNAME_R
extern
PSI_mutex_key
key_LOCK_gethostbyname_r
;
#endif
/* HAVE_GETHOSTBYNAME_R */
extern
PSI_mutex_key
key_BITMAP_mutex
,
key_IO_CACHE_append_buffer_lock
,
extern
PSI_mutex_key
key_BITMAP_mutex
,
key_IO_CACHE_append_buffer_lock
,
key_IO_CACHE_SHARE_mutex
,
key_KEY_CACHE_cache_lock
,
key_LOCK_alarm
,
key_IO_CACHE_SHARE_mutex
,
key_KEY_CACHE_cache_lock
,
key_LOCK_alarm
,
key_my_thread_var_mutex
,
key_THR_LOCK_charset
,
key_THR_LOCK_heap
,
key_my_thread_var_mutex
,
key_THR_LOCK_charset
,
key_THR_LOCK_heap
,
...
...
sql/mysqld.cc
View file @
8aadfb40
...
@@ -245,11 +245,7 @@ inline void setup_fpu()
...
@@ -245,11 +245,7 @@ inline void setup_fpu()
#define MYSQL_KILL_SIGNAL SIGTERM
#define MYSQL_KILL_SIGNAL SIGTERM
#ifdef HAVE_GLIBC2_STYLE_GETHOSTBYNAME_R
#include <sys/types.h>
#else
#include <my_pthread.h> // For thr_setconcurency()
#include <my_pthread.h> // For thr_setconcurency()
#endif
#ifdef SOLARIS
#ifdef SOLARIS
extern
"C"
int
gethostname
(
char
*
name
,
int
namelen
);
extern
"C"
int
gethostname
(
char
*
name
,
int
namelen
);
...
...
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