From owner-freebsd-bugs Mon May 26 01:08:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA06188 for bugs-outgoing; Mon, 26 May 1997 01:08:32 -0700 (PDT) Received: from ghpc8.ihf.rwth-aachen.de (ghpc8.ihf.RWTH-Aachen.DE [134.130.90.8]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA06183 for ; Mon, 26 May 1997 01:08:28 -0700 (PDT) Received: from ghpc6.ihf.rwth-aachen.de (ghpc6.ihf.rwth-aachen.de [134.130.90.6]) by ghpc8.ihf.rwth-aachen.de (8.8.5/8.8.5) with ESMTP id KAA22979 for ; Mon, 26 May 1997 10:08:26 +0200 (CEST) Received: (from thomas@localhost) by ghpc6.ihf.rwth-aachen.de (8.8.5/8.8.5) id KAA16038; Mon, 26 May 1997 10:08:25 +0200 (CEST) To: bugs@freebsd.org Subject: changes to libc for threads From: Thomas Gellekum Date: 26 May 1997 10:08:24 +0200 Message-ID: <87zptiodtz.fsf@ghpc6.ihf.rwth-aachen.de> Lines: 78 X-Mailer: Gnus v5.4.37/XEmacs 19.15 Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Moin, while trying the threaded python interpreter I came across some bugs in libc. It looks like some functions from the thread library changed their names. Unfortunately, I can't reach John Birrell directly, so this goes out to the list. Could someone check the diffs and commit them to -current and RELENG_2_2? tg Index: gen/ttyname.c =================================================================== RCS file: /usr/local/cvs/src/lib/libc/gen/ttyname.c,v retrieving revision 1.5 diff -u -r1.5 ttyname.c --- ttyname.c 1996/08/20 08:19:50 1.5 +++ ttyname.c 1997/05/24 14:40:28 @@ -117,7 +117,7 @@ pthread_mutex_lock(&ttyname_lock); if (ttyname_init == 0) { - if (pthread_keycreate(&ttyname_key, free)) { + if (pthread_key_create(&ttyname_key, free)) { pthread_mutex_unlock(&ttyname_lock); return (NULL); } Index: stdtime/localtime.c =================================================================== RCS file: /usr/local/cvs/src/lib/libc/stdtime/localtime.c,v retrieving revision 1.10.2.3 diff -u -r1.10.2.3 localtime.c --- localtime.c 1997/02/02 18:12:29 1.10.2.3 +++ localtime.c 1997/05/24 14:40:47 @@ -1103,7 +1103,7 @@ pthread_mutex_lock(&localtime_mutex); if (localtime_key < 0) { - if (pthread_keycreate(&localtime_key, free) < 0) { + if (pthread_key_create(&localtime_key, free) < 0) { pthread_mutex_unlock(&localtime_mutex); return(NULL); } @@ -1187,7 +1187,7 @@ pthread_mutex_lock(&gmtime_mutex); if (gmtime_key < 0) { - if (pthread_keycreate(&gmtime_key, free) < 0) { + if (pthread_key_create(&gmtime_key, free) < 0) { pthread_mutex_unlock(&gmtime_mutex); return(NULL); } ------- Start of forwarded message ------- Date: Mon, 26 May 1997 17:44:08 +1000 (EST) From: Mail Delivery Subsystem Message-Id: <199705260744.RAA05797@y.physics.usyd.edu.au> To: Subject: Returned mail: Host unknown (Name server: freebsd1.cimlogic.com.au.: host not found) This is a MIME-encapsulated message --RAA05797.864632648/y.physics.usyd.edu.au The original message was received at Mon, 26 May 1997 17:44:03 +1000 (EST) from hub.FreeBSD.ORG [204.216.27.18] ----- The following addresses had permanent fatal errors ----- ----- Transcript of session follows ----- 550 ... Host unknown (Name server: freebsd1.cimlogic.com.au.: host not found) [...] ------- End of forwarded message -------