Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
David Coutadeur
OpenLDAP
Commits
7855c1dd
Commit
7855c1dd
authored
26 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Added patch to fix LWP on SunOS56
parent
59a66633
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/lthread.h
+6
-0
6 additions, 0 deletions
include/lthread.h
libraries/liblthread/thread.c
+4
-0
4 additions, 0 deletions
libraries/liblthread/thread.c
with
10 additions
and
0 deletions
include/lthread.h
+
6
−
0
View file @
7855c1dd
...
...
@@ -66,9 +66,11 @@ typedef void *(*VFP)();
/* sunos5 threads are preemptive */
#define PTHREAD_PREEMPTIVE 1
#if !defined(__SunOS_5_6)
/* thread attributes and thread type */
typedef
int
pthread_attr_t
;
typedef
thread_t
pthread_t
;
#endif
/* ! sunos56 */
/* default attr states */
#define pthread_mutexattr_default NULL
...
...
@@ -81,17 +83,21 @@ typedef thread_t pthread_t;
#define PTHREAD_SCOPE_PROCESS 0
#define PTHREAD_SCOPE_SYSTEM THR_BOUND
#if !defined(__SunOS_5_6)
/* mutex attributes and mutex type */
typedef
int
pthread_mutexattr_t
;
typedef
mutex_t
pthread_mutex_t
;
#endif
/* ! sunos56 */
/* mutex and condition variable scope - process or system */
#define PTHREAD_SHARE_PRIVATE USYNC_THREAD
#define PTHREAD_SHARE_PROCESS USYNC_PROCESS
#if !defined(__SunOS_5_6)
/* condition variable attributes and condition variable type */
typedef
int
pthread_condattr_t
;
typedef
cond_t
pthread_cond_t
;
#endif
/* ! sunos56 */
#else
/* end sunos5 */
...
...
This diff is collapsed.
Click to expand it.
libraries/liblthread/thread.c
+
4
−
0
View file @
7855c1dd
...
...
@@ -178,6 +178,7 @@ pthread_cond_broadcast( pthread_cond_t *cv )
* *
***********************************************************************/
#if !defined(__SunOS_5_6)
int
pthread_attr_init
(
pthread_attr_t
*
attr
)
{
...
...
@@ -217,6 +218,7 @@ pthread_create(
{
return
(
thr_create
(
NULL
,
0
,
func
,
arg
,
attr
,
tid
)
);
}
#endif
/* ! sunos56 */
void
pthread_yield
()
...
...
@@ -224,6 +226,7 @@ pthread_yield()
thr_yield
();
}
#if !defined(__SunOS_5_6)
void
pthread_exit
()
{
...
...
@@ -302,6 +305,7 @@ pthread_cond_broadcast( pthread_cond_t *cv )
{
return
(
cond_broadcast
(
cv
)
);
}
#endif
/* ! sunos56 */
#else
/* end sunos5 threads */
...
...
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