diff --git a/src/README.sources b/src/README.sources index 04756c1..5589157 100644 --- a/src/README.sources +++ b/src/README.sources @@ -96,7 +96,9 @@ crc32.c rwlock.c A schoolbook pthread rwlock implementation for systems lacking one (Solaris 2.6 to name one). - + From the book "Programming with POSIX Threads", by + David R. Butenhof. Appears in modified and GPL'ed form in at + least the Bacula sources. inet_ntop.c, inet_pton.c, getnameinfo.c, gai_strerror.c: Backup instances of IPv4/IPv6 agnostic resolver library just diff --git a/src/rwlock.c b/src/rwlock.c index 7464f44..f5ce5e6 100644 --- a/src/rwlock.c +++ b/src/rwlock.c @@ -1,22 +1,7 @@ /* - * aprsc - * - * (c) Heikki Hannikainen, OH7LZB - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * This code is from the book "Programming with POSIX Threads", by + * David R. Butenhof. Appears in modified and GPL'ed form in at least + * the Bacula sources. */ /* diff --git a/src/rwlock.h b/src/rwlock.h index ec63b3a..ff327d5 100644 --- a/src/rwlock.h +++ b/src/rwlock.h @@ -1,22 +1,7 @@ /* - * aprsc - * - * (c) Heikki Hannikainen, OH7LZB - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * This code is from the book "Programming with POSIX Threads", by + * David R. Butenhof. Appears in modified and GPL'ed form in at least + * the Bacula sources. */ #ifndef RWLOCK_H @@ -72,7 +57,7 @@ typedef struct rwlock_tag { #define RWLOCK_VALID 0xfacade /* - * Support static initialization of barriers + * Support static initialization of read-write locks. */ #define RWL_INITIALIZER \ {PTHREAD_MUTEX_INITIALIZER, PTHREAD_COND_INITIALIZER, \