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
a7c93338
Commit
a7c93338
authored
Oct 19, 2010
by
Davi Arnaut
Browse files
Options
Browse Files
Download
Plain Diff
Merge of mysql-5.1-bugteam into mysql-5.5-bugteam.
parents
a6df37db
be170c21
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
13 deletions
+30
-13
BUILD/SETUP.sh
BUILD/SETUP.sh
+1
-1
cmd-line-utils/readline/terminal.c
cmd-line-utils/readline/terminal.c
+4
-4
mysys/my_gethostbyname.c
mysys/my_gethostbyname.c
+4
-2
mysys/my_sync.c
mysys/my_sync.c
+15
-2
storage/innobase/os/os0file.c
storage/innobase/os/os0file.c
+6
-4
No files found.
BUILD/SETUP.sh
View file @
a7c93338
...
...
@@ -111,7 +111,7 @@ else
# C++ warnings
cxx_warnings
=
"
$warnings
-Wno-unused-parameter"
# cxx_warnings="$cxx_warnings -Woverloaded-virtual -Wsign-promo"
cxx_warnings
=
"
$cxx_warnings
-W
ctor-dtor-privacy -W
non-virtual-dtor"
cxx_warnings
=
"
$cxx_warnings
-Wnon-virtual-dtor"
debug_extra_cflags
=
"-O0 -g3 -gdwarf-2"
fi
...
...
cmd-line-utils/readline/terminal.c
View file @
a7c93338
...
...
@@ -268,7 +268,7 @@ _rl_get_screen_size (tty, ignore_env)
#if !defined (__DJGPP__)
if
(
_rl_screenwidth
<=
0
&&
term_string_buffer
)
_rl_screenwidth
=
tgetnum
(
"co"
);
_rl_screenwidth
=
tgetnum
(
(
char
*
)
"co"
);
#endif
}
...
...
@@ -284,7 +284,7 @@ _rl_get_screen_size (tty, ignore_env)
#if !defined (__DJGPP__)
if
(
_rl_screenheight
<=
0
&&
term_string_buffer
)
_rl_screenheight
=
tgetnum
(
"li"
);
_rl_screenheight
=
tgetnum
(
(
char
*
)
"li"
);
#endif
}
...
...
@@ -516,7 +516,7 @@ _rl_init_terminal_io (terminal_name)
if
(
!
_rl_term_cr
)
_rl_term_cr
=
"
\r
"
;
_rl_term_autowrap
=
tgetflag
(
"am"
)
&&
tgetflag
(
"xn"
);
_rl_term_autowrap
=
tgetflag
(
(
char
*
)
"am"
)
&&
tgetflag
((
char
*
)
"xn"
);
/* Allow calling application to set default height and width, using
rl_set_screen_size */
...
...
@@ -531,7 +531,7 @@ _rl_init_terminal_io (terminal_name)
/* Check to see if this terminal has a meta key and clear the capability
variables if there is none. */
term_has_meta
=
(
tgetflag
(
"km"
)
||
tgetflag
(
"MT"
));
term_has_meta
=
(
tgetflag
(
(
char
*
)
"km"
)
||
tgetflag
((
char
*
)
"MT"
));
if
(
!
term_has_meta
)
_rl_term_mm
=
_rl_term_mo
=
(
char
*
)
NULL
;
...
...
mysys/my_gethostbyname.c
View file @
a7c93338
...
...
@@ -92,8 +92,10 @@ extern mysql_mutex_t LOCK_gethostbyname_r;
*/
struct
hostent
*
my_gethostbyname_r
(
const
char
*
name
,
struct
hostent
*
result
,
char
*
buffer
,
int
buflen
,
int
*
h_errnop
)
struct
hostent
*
res
__attribute__
((
unused
)),
char
*
buffer
__attribute__
((
unused
)),
int
buflen
__attribute__
((
unused
)),
int
*
h_errnop
)
{
struct
hostent
*
hp
;
mysql_mutex_lock
(
&
LOCK_gethostbyname_r
);
...
...
mysys/my_sync.c
View file @
a7c93338
...
...
@@ -89,6 +89,8 @@ int my_sync(File fd, myf my_flags)
static
const
char
cur_dir_name
[]
=
{
FN_CURLIB
,
0
};
/*
Force directory information to disk.
...
...
@@ -100,7 +102,9 @@ static const char cur_dir_name[]= {FN_CURLIB, 0};
RETURN
0 if ok, !=0 if error
*/
#ifdef NEED_EXPLICIT_SYNC_DIR
int
my_sync_dir
(
const
char
*
dir_name
,
myf
my_flags
)
{
File
dir_fd
;
...
...
@@ -125,12 +129,15 @@ int my_sync_dir(const char *dir_name, myf my_flags)
res
=
1
;
DBUG_RETURN
(
res
);
}
#else
/* NEED_EXPLICIT_SYNC_DIR */
int
my_sync_dir
(
const
char
*
dir_name
__attribute__
((
unused
)),
myf
my_flags
__attribute__
((
unused
)))
myf
my_flags
__attribute__
((
unused
)))
{
return
0
;
}
#endif
/* NEED_EXPLICIT_SYNC_DIR */
...
...
@@ -145,7 +152,9 @@ int my_sync_dir(const char *dir_name __attribute__((unused)),
RETURN
0 if ok, !=0 if error
*/
#ifdef NEED_EXPLICIT_SYNC_DIR
int
my_sync_dir_by_file
(
const
char
*
file_name
,
myf
my_flags
)
{
char
dir_name
[
FN_REFLEN
];
...
...
@@ -153,10 +162,14 @@ int my_sync_dir_by_file(const char *file_name, myf my_flags)
dirname_part
(
dir_name
,
file_name
,
&
dir_name_length
);
return
my_sync_dir
(
dir_name
,
my_flags
);
}
#else
/* NEED_EXPLICIT_SYNC_DIR */
int
my_sync_dir_by_file
(
const
char
*
file_name
__attribute__
((
unused
)),
myf
my_flags
__attribute__
((
unused
)))
myf
my_flags
__attribute__
((
unused
)))
{
return
0
;
}
#endif
/* NEED_EXPLICIT_SYNC_DIR */
storage/innobase/os/os0file.c
View file @
a7c93338
...
...
@@ -1295,10 +1295,12 @@ UNIV_INTERN
void
os_file_set_nocache
(
/*================*/
int
fd
,
/*!< in: file descriptor to alter */
const
char
*
file_name
,
/*!< in: file name, used in the
diagnostic message */
const
char
*
operation_name
)
/*!< in: "open" or "create"; used in the
int
fd
/*!< in: file descriptor to alter */
__attribute__
((
unused
)),
const
char
*
file_name
/*!< in: used in the diagnostic message */
__attribute__
((
unused
)),
const
char
*
operation_name
__attribute__
((
unused
)))
/*!< in: "open" or "create"; used in the
diagnostic message */
{
/* some versions of Solaris may not have DIRECTIO_ON */
...
...
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