summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Makefile20
-rw-r--r--Makefile.in20
-rw-r--r--README30
-rw-r--r--attr.c18
-rw-r--r--cancel.c18
-rw-r--r--cleanup.c18
-rw-r--r--condvar.c18
-rw-r--r--create.c18
-rw-r--r--dll.c18
-rw-r--r--exit.c18
-rw-r--r--fork.c150
-rw-r--r--global.c18
-rw-r--r--implement.h18
-rw-r--r--misc.c18
-rw-r--r--mutex.c18
-rw-r--r--private.c18
-rw-r--r--pthread.h12
-rw-r--r--sched.c18
-rw-r--r--semaphore.c18
-rw-r--r--signal.c18
-rw-r--r--sync.c18
-rw-r--r--tsd.c20
23 files changed, 395 insertions, 149 deletions
diff --git a/ChangeLog b/ChangeLog
index d889525..8df6928 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Mar 16 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
+
+ * all: Add GNU LGPL and Copyright and Warranty.
+
Mon Mar 15 00:20:13 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* condvar.c (pthread_cond_init): fix possible uninitialised use
diff --git a/Makefile b/Makefile
index 4ee92b0..55228a9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,23 @@
+#
+# Pthreads-win32 - POSIX Threads Library for Win32
+# Copyright (C) 1998
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+# MA 02111-1307, USA
+#
+
RM = erase
CC = g++
diff --git a/Makefile.in b/Makefile.in
index 4ee92b0..55228a9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,3 +1,23 @@
+#
+# Pthreads-win32 - POSIX Threads Library for Win32
+# Copyright (C) 1998
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free
+# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+# MA 02111-1307, USA
+#
+
RM = erase
CC = g++
diff --git a/README b/README
index e83ca98..c0b7563 100644
--- a/README
+++ b/README
@@ -1,24 +1,30 @@
-This directory contains an implementation of pthreads for Win32.
+PTHREADS-WIN32
+==============
+
+Pthreads-win32 is free software, distributed under the GNU Library
+General Public License (LGPL). See the file 'COPYING.LIB' for terms
+and conditions.
Mailing list
------------
-There is a mailing list for discussing pthreads on Win32 which is
-managed by Majordomo. To subscribe, send mail to majordomo@air.net.au
-and place the fllowing text in the message body:
+There is a mailing list for discussing pthreads on Win32. To join, send
+enail to:
+
+ pthreads-win32-subscribe@sourceware.cygnus.com
+
- subscribe pthreads-win32
+Acknowledgements
+----------------
+Pthreads-win32 is based substantially on a Win32 Pthreads implementation
+contributed by John E. Bossom <jebossom@cognos.com>.
-Building the library with Cygwin or Mingw32
----------------------------------------------
-Feb 18, 1999
+See the 'MAINTAINERS' file for the list of contributors.
-If you have a suitable environment then you can run the configure script,
-otherwise you should edit "Makefile" and "config.h" as required.
-gcc cannot be used because the library requires C++ EH. g++ must be usedi
-(but see below).
+Why you cannot build the library with Cygwin or Mingw32
+-------------------------------------------------------
The DLL pthread.dll still cannot be built using g++ due to non thread-safe
exception handling in g++. Thanks to Kevin Ruland for researching this
diff --git a/attr.c b/attr.c
index edf6ff1..c3537b0 100644
--- a/attr.c
+++ b/attr.c
@@ -3,6 +3,24 @@
*
* Description:
* This translation unit implements operations on thread attribute objects.
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#include <memory.h>
diff --git a/cancel.c b/cancel.c
index 2e95b3d..8b93705 100644
--- a/cancel.c
+++ b/cancel.c
@@ -3,6 +3,24 @@
*
* Description:
* POSIX thread functions related to thread cancellation.
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#include "pthread.h"
diff --git a/cleanup.c b/cleanup.c
index df7dec3..d18afd6 100644
--- a/cleanup.c
+++ b/cleanup.c
@@ -4,6 +4,24 @@
* Description:
* This translation unit implements routines associated cleaning up
* threads.
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#if !defined(_MSC_VER) && !defined(__cplusplus) && defined(__GNUC__)
diff --git a/condvar.c b/condvar.c
index ce46ebf..2643413 100644
--- a/condvar.c
+++ b/condvar.c
@@ -3,6 +3,24 @@
*
* Description:
* This translation unit implements condition variables and their primitives.
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
/*
diff --git a/create.c b/create.c
index f87fa56..8d258f0 100644
--- a/create.c
+++ b/create.c
@@ -4,6 +4,24 @@
* Description:
* This translation unit implements routines associated with spawning a new
* thread.
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#include "pthread.h"
diff --git a/dll.c b/dll.c
index 25d89c3..add5832 100644
--- a/dll.c
+++ b/dll.c
@@ -3,6 +3,24 @@
*
* Description:
* This translation unit implements DLL initialisation.
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#include <malloc.h>
diff --git a/exit.c b/exit.c
index 7e72c7d..0498dbf 100644
--- a/exit.c
+++ b/exit.c
@@ -4,6 +4,24 @@
* Description:
* This translation unit implements routines associated with exiting from
* a thread.
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#include "pthread.h"
diff --git a/fork.c b/fork.c
index 61da545..9d74813 100644
--- a/fork.c
+++ b/fork.c
@@ -3,141 +3,27 @@
*
* Description:
* Implementation of fork() for POSIX threads.
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#include "pthread.h"
#include "implement.h"
-#if 0 /* Pre Bossom */
-
-int
-pthread_atfork(void (*prepare)(void),
- void (*parent)(void),
- void (*child)(void))
-{
- /* Push handlers (unless NULL) onto their respective stacks.
-
- Local implementation semantics:
- If we get an ENOMEM at any time in here then ALL handlers
- (including those from previous pthread_atfork() calls) will be
- popped off each of the three atfork stacks before we return. */
-
- int ret = 0;
-
- if (prepare != NULL)
- {
- /* Push prepare. */
- if (_pthread_handler_push(_PTHREAD_FORKPREPARE_STACK,
- _PTHREAD_HANDLER_POP_FIFO,
- (void (*)(void *)) prepare,
- NULL) == ENOMEM)
- {
- ret = ENOMEM;
- }
- }
-
- if (parent != NULL &&
- ret != ENOMEM)
- {
- /* Push parent. */
- if (_pthread_handler_push(_PTHREAD_FORKPARENT_STACK,
- _PTHREAD_HANDLER_POP_LIFO,
- (void (*)(void *)) parent,
- NULL) == ENOMEM)
- {
- ret = ENOMEM;
- }
- }
-
- if (child != NULL &&
- ret != ENOMEM)
- {
- /* Push child. */
- if (_pthread_handler_push(_PTHREAD_FORKCHILD_STACK,
- _PTHREAD_HANDLER_POP_LIFO,
- (void (*)(void *)) child,
- NULL) == ENOMEM)
- {
- ret = ENOMEM;
- }
- }
-
- if (ret == ENOMEM)
- {
- /* Pop all handlers without executing them before we return
- the error. */
- _pthread_handler_pop_all(_PTHREAD_FORKPREPARE_STACK,
- _PTHREAD_HANDLER_NOEXECUTE);
-
- _pthread_handler_pop_all(_PTHREAD_FORKPARENT_STACK,
- _PTHREAD_HANDLER_NOEXECUTE);
-
- _pthread_handler_pop_all(_PTHREAD_FORKCHILD_STACK,
- _PTHREAD_HANDLER_NOEXECUTE);
- }
-
- return ret;
-}
-
-/* It looks like the GNU linker is capable of selecting this version of
- fork() over a version provided in more primitive libraries further down
- the linker command line. */
-
-#if HAVE_PID_T && HAVE_FORK
-
-pid_t
-fork()
-{
- pid_t pid;
-
- /* Pop prepare handlers here. */
- _pthread_handler_pop_all(_PTHREAD_FORKPREPARE_STACK,
- _PTHREAD_HANDLER_EXECUTE);
-
- /* Now call the real fork(). */
-
- if ((pid = _fork()) > 0)
- {
- /* PARENT */
- /* Clear the child handler stack. */
- _pthread_handler_pop_all(_PTHREAD_FORKCHILD_STACK,
- _PTHREAD_HANDLER_NOEXECUTE);
-
- /* Pop parent handlers and execute them. */
- _pthread_handler_pop_all(_PTHREAD_FORKPARENT_STACK,
- _PTHREAD_HANDLER_EXECUTE);
-
- /* At this point all three atfork stacks are empty. */
- return pid;
- }
- else
- {
- /* CHILD */
- /* Clear the parent handler stack. */
- _pthread_handler_pop_all(_PTHREAD_FORKPARENT_STACK,
- _PTHREAD_HANDLER_NOEXECUTE);
-
- /* Pop child handlers and execute them. */
- _pthread_handler_pop_all(_PTHREAD_FORKCHILD_STACK,
- _PTHREAD_HANDLER_EXECUTE);
-
- /* At this point all three atfork stacks are empty. */
-
- /* Terminate all threads except pthread_self() using
- pthread_cancel(). */
- _pthread_cancel_all_not_self();
-
- /* Wait for them to finish before we continue. */
- _pthread_join_all_not_self();
-
- return 0;
- }
-
- /* Not reached. */
- return 0;
-}
-
-#endif /* HAVE_PID_T && HAVE_FORK */
-
-#endif /* Pre Bossom */
diff --git a/global.c b/global.c
index ecc3d27..9db308a 100644
--- a/global.c
+++ b/global.c
@@ -4,6 +4,24 @@
* Description:
* This translation unit instantiates data associated with the implementation
* as a whole.
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#include "pthread.h"
diff --git a/implement.h b/implement.h
index 6b7ae7a..3e9ff50 100644
--- a/implement.h
+++ b/implement.h
@@ -4,6 +4,24 @@
* Definitions that don't need to be public.
*
* Keeps all the internals out of pthread.h
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#ifndef _IMPLEMENT_H
diff --git a/misc.c b/misc.c
index b5cbecf..cdf6ec8 100644
--- a/misc.c
+++ b/misc.c
@@ -3,6 +3,24 @@
*
* Description:
* This translation unit implements miscellaneous thread functions.
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#include "pthread.h"
diff --git a/mutex.c b/mutex.c
index da4a196..6a24d6f 100644
--- a/mutex.c
+++ b/mutex.c
@@ -3,6 +3,24 @@
*
* Description:
* This translation unit implements mutual exclusion (mutex) primitives.
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#include <errno.h>
diff --git a/private.c b/private.c
index 56062a1..a4cdcda 100644
--- a/private.c
+++ b/private.c
@@ -4,6 +4,24 @@
* Description:
* This translation unit implements routines which are private to
* the implementation and may be used throughout it.
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#if !defined(_MSC_VER) && !defined(__cplusplus) && defined(__GNUC__)
diff --git a/pthread.h b/pthread.h
index 8f66e48..9deff4d 100644
--- a/pthread.h
+++ b/pthread.h
@@ -1,18 +1,22 @@
/* This is the POSIX thread API (POSIX 1003).
*
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#if !defined( PTHREAD_H )
diff --git a/sched.c b/sched.c
index 4680b8f..c07698b 100644
--- a/sched.c
+++ b/sched.c
@@ -3,6 +3,24 @@
*
* Description:
* POSIX thread functions that deal with thread scheduling.
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#define ENOSUP 0
diff --git a/semaphore.c b/semaphore.c
index 5f7d083..4cb0a80 100644
--- a/semaphore.c
+++ b/semaphore.c
@@ -33,6 +33,24 @@
* ---------------
*
* -------------------------------------------------------------
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#include <sys/timeb.h>
diff --git a/signal.c b/signal.c
index 1588649..504b235 100644
--- a/signal.c
+++ b/signal.c
@@ -3,6 +3,24 @@
*
* Description:
* Thread-aware signal functions.
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#include <errno.h>
diff --git a/sync.c b/sync.c
index aadd4f8..fd66065 100644
--- a/sync.c
+++ b/sync.c
@@ -4,6 +4,24 @@
* Description:
* This translation unit implements functions related to thread
* synchronisation.
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
#include "pthread.h"
diff --git a/tsd.c b/tsd.c
index b43f4c9..3a20d7d 100644
--- a/tsd.c
+++ b/tsd.c
@@ -3,8 +3,26 @@
*
* Description:
* POSIX thread functions which implement thread-specific data (TSD).
+ *
+ * Pthreads-win32 - POSIX Threads Library for Win32
+ * Copyright (C) 1998
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*/
-
+
#include "pthread.h"
#include "implement.h"