[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mozilla-rhapsody
Subject:    Mac OS X port of NSPR
From:       Wan-Teh Chang <wtc () netscape ! com>
Date:       2000-03-14 0:55:54
[Download RAW message or body]

I just checked in a patch based on the patch that Pavlov
sent to me to port NSPR to Mac OS X.  This patch was
checked in to the tip of NSPR (mozilla/nsprpub).  You
can get this patch in Bugzilla bug #31697
(http://bugzilla.mozilla.org/show_bug.cgi?id=31697)
as attachment 6497
(http://bugzilla.mozilla.org/showattachment.cgi?attach_id=6497).

Please feel free to add yourself to the cc list in that bug
report.

Current status:
1. By default NSPR uses the native pthreads.  If you want to
   use NSPR's user-level threads, build NSPR with CLASSIC_NSPR=1.
2. I added stubs for unimplemented functions: pthread_condattr_init,
   pthread_kill, and sigtimedwait.  These three missing functions do not

   affect the proper functioning of NSPR because they are only used by
   obsolete code (Java VM garbage collection support).
3. NSPR's interprocess shared memory and named semaphores are
   not implemented.  These are not used by Mozilla client.

Questions:
1. Do I need to specify some compiler flag or define some macro to
   compile for pthreads?  On most Unix platforms, I'd need to specify
   -pthread or -mt or define _REENTRANT.

2. What is the range (min. and max.) of pthread priorities on Mac OS X?

3. The following functions are not implemented: sched_get_priority_min,
   sched_get_priority_max, pthread_condattr_init, pthread_kill, and
   sigtimedwait.  Are they going to be implemented?

4. I propose that the headers <pthread.h> and <sched.h> be moved to
   /usr/lib.  Right now they are installed in a very hard to find
directory.

5. <sys/sem.h> doesn't exist, even though there is a man page for
semget.
   NSPR has interprocess shared memory and named semaphore functions.
   Either the System V or POSIX IPC API is fine.

Wan-Teh

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic