+1998-04-11 Ulrich Drepper <drepper@cygnus.com>
+
+ * rt/aio_suspend.c (aio_suspend): Use PTHREAD_COND_INITIALIZER
+ instead of call to pthread_cond_init.
+ * rt/lio_listio.c (lio_listio): Likewise.
+ * rt/lio_listio64.c (lio_listio64): Likewise.
+
+ * nis/nis_findserv.c: Include sys/socket.h.
+
1998-04-11 09:33 Ulrich Drepper <drepper@cygnus.com>
* Makeconfig (rtobjdir): New variable.
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1997.
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
+#include <sys/socket.h>
#include <rpc/pmap_prot.h>
#include <rpc/pmap_clnt.h>
#include <rpcsvc/nis.h>
{
struct waitlist waitlist[nent];
struct requestlist *requestlist[nent];
- pthread_cond_t cond;
+ pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
int cnt;
int result = 0;
int dummy;
{
int oldstate;
- /* Initialize the conditional variable. */
- pthread_cond_init (&cond, NULL);
-
/* Since `pthread_cond_wait'/`pthread_cond_timedwait' are cancelation
points we must be careful. We added entries to the waiting lists
which we must remove. So defer cancelation for now. */
}
else if (mode == LIO_WAIT)
{
- pthread_cond_t cond;
+ pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
struct waitlist waitlist[nent];
int oldstate;
- /* Initialize the conditional variable. */
- pthread_cond_init (&cond, NULL);
-
total = 0;
for (cnt = 0; cnt < nent; ++cnt)
if (list[cnt] != NULL && list[cnt]->aio_lio_opcode != LIO_NOP
}
else if (mode == LIO_WAIT)
{
- pthread_cond_t cond;
+ pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
struct waitlist waitlist[nent];
int oldstate;
- /* Initialize the conditional variable. */
- pthread_cond_init (&cond, NULL);
-
total = 0;
for (cnt = 0; cnt < nent; ++cnt)
if (list[cnt] != NULL && list[cnt]->aio_lio_opcode != LIO_NOP