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
c6c775c9
Commit
c6c775c9
authored
Aug 09, 2000
by
tim@localhost.polyesthetic.msg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add const to [my_]sigwait() arg, to make all declarations match.
parent
3b17e897
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
include/my_pthread.h
include/my_pthread.h
+2
-2
mysys/my_pthread.c
mysys/my_pthread.c
+1
-1
No files found.
include/my_pthread.h
View file @
c6c775c9
...
...
@@ -169,7 +169,7 @@ void * my_pthread_getspecific_imp(pthread_key_t key);
#define pthread_sigmask(A,B,C) thr_sigsetmask((A),(B),(C))
extern
int
my_sigwait
(
sigset_t
*
set
,
int
*
sig
);
extern
int
my_sigwait
(
const
sigset_t
*
set
,
int
*
sig
);
#define pthread_detach_this_thread() pthread_dummy(0)
...
...
@@ -309,7 +309,7 @@ extern int my_pthread_cond_init(pthread_cond_t *mp,
#endif
#if !defined(HAVE_SIGWAIT) && !defined(HAVE_mit_thread) && !defined(HAVE_rts_threads) && !defined(sigwait) && !defined(alpha_linux_port) && !defined(HAVE_NONPOSIX_SIGWAIT) && !defined(HAVE_DEC_3_2_THREADS) && !defined(_AIX)
int
sigwait
(
sigset_t
*
setp
,
int
*
sigp
);
/* Use our implemention */
int
sigwait
(
const
sigset_t
*
setp
,
int
*
sigp
);
/* Use our implemention */
#endif
#if !defined(HAVE_SIGSET) && !defined(HAVE_mit_thread) && !defined(sigset)
#define sigset(A,B) do { struct sigaction s; sigset_t set; \
...
...
mysys/my_pthread.c
View file @
c6c775c9
...
...
@@ -100,7 +100,7 @@ int my_pthread_create_detached=1;
#if defined(HAVE_NONPOSIX_SIGWAIT) || defined(HAVE_DEC_3_2_THREADS)
int
my_sigwait
(
sigset_t
*
set
,
int
*
sig
)
int
my_sigwait
(
const
sigset_t
*
set
,
int
*
sig
)
{
int
signal
=
sigwait
(
set
);
if
(
signal
<
0
)
...
...
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