aboutsummaryrefslogtreecommitdiff
path: root/pthreads/pthread_cond_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthreads/pthread_cond_init.c')
-rw-r--r--pthreads/pthread_cond_init.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/pthreads/pthread_cond_init.c b/pthreads/pthread_cond_init.c
index f28fd67b4..b9379a373 100644
--- a/pthreads/pthread_cond_init.c
+++ b/pthreads/pthread_cond_init.c
@@ -9,10 +9,11 @@
*
* Pthreads-win32 - POSIX Threads Library for Win32
* Copyright(C) 1998 John E. Bossom
- * Copyright(C) 1999,2005 Pthreads-win32 contributors
- *
- * Contact Email: rpj@callisto.canberra.edu.au
- *
+ * Copyright(C) 1999,2012 Pthreads-win32 contributors
+ *
+ * Homepage1: http://sourceware.org/pthreads-win32/
+ * Homepage2: http://sourceforge.net/projects/pthreads4w/
+ *
* The current list of contributors is contained
* in the file CONTRIBUTORS included with the source
* code distribution. The list can also be seen at the
@@ -35,6 +36,10 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "pthread.h"
#include "implement.h"
@@ -101,13 +106,13 @@ pthread_cond_init (pthread_cond_t * cond, const pthread_condattr_t * attr)
if (sem_init (&(cv->semBlockLock), 0, 1) != 0)
{
- result = errno;
+ result = PTW32_GET_ERRNO();
goto FAIL0;
}
if (sem_init (&(cv->semBlockQueue), 0, 0) != 0)
{
- result = errno;
+ result = PTW32_GET_ERRNO();
goto FAIL1;
}