From: Richard Henderson <rth@dot.cygnus.com>
Subject: Re: Help with threads, and an RPM suggestion
Date: Sat, 20 Dec 1997 13:56:31 -0800 [thread overview]
Message-ID: <d3b17f5d4c90c6a3383612c93f9e8ca3.axp-list@archive.invalid> (raw)
In-Reply-To: <Pine.GSO.3.96.971220000646.28870A-100000@yacht.ee.fit.edu>
On Sat, Dec 20, 1997 at 12:19:07AM -0500, Christopher Curtis wrote:
> /usr/include/sched.h:67: warning: `struct timespec' declared inside parameter list
> /usr/include/sched.h:67: warning: its scope is only this definition or declaration,
> /usr/include/sched.h:67: warning: which is probably not what you want.
> /usr/include/sched.h:68: warning: `struct timespec' declared inside parameter list
Doh. Silly bug, fix attached.
> /usr/include/pthread.h:431: parse error before `*'
Hmm, don't see anything likely; the only thing in that area is sigset_t,
but I don't get any errors either.
> Also, I've found pthread_t, and pthread_mutex_t, but what is the Posix
> implmentation for a semaphore?
sem_t is in <semaphore.h>, since it is not originally part of the
threads api (.1c) but part of real time api (.1b).
r~
Sat Dec 20 13:50:28 1997 Richard Henderson <rth@cygnus.com>
* posix/sched.h: timespec is in <time.h>.
--- glibc-2.0.6/posix/sched.h Fri Dec 20 20:13:18 1996
+++ glibc-2.0.6-good/posix/sched.h Sat Dec 20 13:49:06 1997
@@ -24,7 +24,9 @@
/* Get type definitions. */
#include <gnu/types.h>
-#include <sys/time.h> /* for struct timespec */
+
+#define __need_timespec
+#include <time.h>
/* Get system specific constant and data structure definitions. */
#include <schedbits.h>
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next parent reply other threads:[~1997-12-20 21:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.GSO.3.96.971220000646.28870A-100000@yacht.ee.fit.edu>
1997-12-20 21:56 ` Richard Henderson [this message]
1997-12-20 5:19 Help with threads, and an RPM suggestion Christopher Curtis
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox