Didn't know they were that different... I always was under the impression (because I never had to deal with it) pth is a drop in posix threads implementation. If I remember correctly FreeBSD was requiring gnu pth2 with clamav.

LIB_DEPENDS= pth.20:${PORTSDIR}/devel/pth


pthread_mutex_t is referred to quite a bit in pthread.h
pthread.h.in:#define pthread_mutex_t __vendor_pthread_mutex_t
pthread.h.in:typedef int __vendor_pthread_mutex_t;
pthread.h.in:#undef pthread_mutex_t
pthread.h.in:typedef struct pthread_mutex_st *pthread_mutex_t;
pthread.h.in:#define PTHREAD_MUTEX_INITIALIZER (pthread_mutex_t)(NULL)
pthread.h.in:extern int pthread_mutex_init(pthread_mutex_t *, const pthread_mutexattr_t *);
pthread.h.in:extern int pthread_mutex_destroy(pthread_mutex_t *);
pthread.h.in:extern int pthread_mutex_setprioceiling(pthread_mutex_t *, int, int *);
pthread.h.in:extern int pthread_mutex_getprioceiling(pthread_mutex_t *, int *);
pthread.h.in:extern int pthread_mutex_lock(pthread_mutex_t *);
pthread.h.in:extern int pthread_mutex_trylock(pthread_mutex_t *);
pthread.h.in:extern int pthread_mutex_unlock(pthread_mutex_t *);
pthread.h.in:extern int pthread_cond_wait(pthread_cond_t *, pthread_mutex_t *);
pthread.h.in:extern int pthread_cond_timedwait(pthread_cond_t *, pthread_mutex_t *, const struct timespec *);

Regards,
Flinn


On Wednesday, September 10, 2003, at 04:06 AM, Oliver Egginger wrote:

Doesn't gnu-pth2 work under NetBSD for this purpose?

How should this work? Both of this implementations use different
primitives, structures and definitions. For example there is no
pthread_mutex_t definition in pth.h.

regards
oliver


Am Mit, 2003-09-10 um 00.04 schrieb Flinn Mueller:
Doesn't gnu-pth2 work under NetBSD for this purpose?


Regards,
Flinn


On Tuesday, September 9, 2003, at 02:08 PM, Oliver Egginger wrote:

Hello,

I need posix thread support under NetBSD, cause the clamd (an open
source virus scanner) needs pthreads. I tempted to use the mit-pthread
pachage from pkg-src but it's unfit for this task, cause required
pthread functions are'nt implemented yet.
;-(

At the moment I'am working with NetBSD 1.6.1. As I see there is a
native
pthread implementation in NetBSD-current, right? Is this pthread
implementation complete? Or will it (at least) comply with the
translation of the clamd?

Is there anyone of you who is running the clamd under NetBSD?

- oliver





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users
--
Oliver Egginger <[EMAIL PROTECTED]>
Fachhochschule Giessen-Friedberg



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to