Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
ccc538be
Commit
ccc538be
authored
24 years ago
by
Ove Kåven
Committed by
Alexandre Julliard
24 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Unix98 pthread_rwlock* stubs for glibc2.2 compatibility.
parent
45d31de3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scheduler/pthread.c
+80
-0
80 additions, 0 deletions
scheduler/pthread.c
with
80 additions
and
0 deletions
scheduler/pthread.c
+
80
−
0
View file @
ccc538be
...
...
@@ -8,6 +8,7 @@
*/
#include
"config.h"
#define _GNU_SOURCE
/* we may need to override some GNU extensions */
#include
<assert.h>
#include
<errno.h>
...
...
@@ -394,6 +395,85 @@ int pthread_condattr_destroy(pthread_condattr_t *attr)
return
0
;
}
#if (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 2)
/***** READ-WRITE LOCKS *****/
/* not implemented right now */
int
__pthread_rwlock_init
(
pthread_rwlock_t
*
rwlock
,
const
pthread_rwlockattr_t
*
rwlock_attr
)
{
P_OUTPUT
(
"FIXME:pthread_rwlock_init
\n
"
);
return
0
;
}
strong_alias
(
__pthread_rwlock_init
,
pthread_rwlock_init
);
int
__pthread_rwlock_destroy
(
pthread_rwlock_t
*
rwlock
)
{
P_OUTPUT
(
"FIXME:pthread_rwlock_destroy
\n
"
);
return
0
;
}
strong_alias
(
__pthread_rwlock_destroy
,
pthread_rwlock_destroy
);
int
__pthread_rwlock_rdlock
(
pthread_rwlock_t
*
rwlock
)
{
P_OUTPUT
(
"FIXME:pthread_rwlock_rdlock
\n
"
);
return
0
;
}
strong_alias
(
__pthread_rwlock_rdlock
,
pthread_rwlock_rdlock
);
int
__pthread_rwlock_tryrdlock
(
pthread_rwlock_t
*
rwlock
)
{
P_OUTPUT
(
"FIXME:pthread_rwlock_tryrdlock
\n
"
);
return
0
;
}
strong_alias
(
__pthread_rwlock_tryrdlock
,
pthread_rwlock_tryrdlock
);
int
__pthread_rwlock_wrlock
(
pthread_rwlock_t
*
rwlock
)
{
P_OUTPUT
(
"FIXME:pthread_wrlock_rdlock
\n
"
);
return
0
;
}
strong_alias
(
__pthread_rwlock_wrlock
,
pthread_rwlock_wrlock
);
int
__pthread_rwlock_trywrlock
(
pthread_rwlock_t
*
rwlock
)
{
P_OUTPUT
(
"FIXME:pthread_rwlock_trywrlock
\n
"
);
return
0
;
}
strong_alias
(
__pthread_rwlock_trywrlock
,
pthread_rwlock_trywrlock
);
int
__pthread_rwlock_unlock
(
pthread_rwlock_t
*
rwlock
)
{
P_OUTPUT
(
"FIXME:pthread_rwlock_unlock
\n
"
);
return
0
;
}
strong_alias
(
__pthread_rwlock_unlock
,
pthread_rwlock_unlock
);
/**** READ-WRITE LOCK ATTRIBUTES *****/
/* not implemented right now */
int
pthread_rwlockattr_init
(
pthread_rwlockattr_t
*
attr
)
{
return
0
;
}
int
__pthread_rwlockattr_destroy
(
pthread_rwlockattr_t
*
attr
)
{
return
0
;
}
strong_alias
(
__pthread_rwlockattr_destroy
,
pthread_rwlockattr_destroy
);
int
pthread_rwlockattr_getkind_np
(
const
pthread_rwlockattr_t
*
attr
,
int
*
pref
)
{
*
pref
=
0
;
return
0
;
}
int
pthread_rwlockattr_setkind_np
(
pthread_rwlockattr_t
*
attr
,
int
pref
)
{
return
0
;
}
#endif
/* glibc 2.2 */
/***** MISC *****/
pthread_t
pthread_self
(
void
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment