Date: 26 May 1997 10:08:24 +0200 From: Thomas Gellekum <tg@ihf.rwth-aachen.de> To: bugs@freebsd.org Subject: changes to libc for threads Message-ID: <87zptiodtz.fsf@ghpc6.ihf.rwth-aachen.de>
next in thread | raw e-mail | index | archive | help
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 <MAILER-DAEMON@y.physics.usyd.edu.au> Message-Id: <199705260744.RAA05797@y.physics.usyd.edu.au> To: <thomas@ghpc8.ihf.rwth-aachen.de> 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 ----- <jb@freebsd1.cimlogic.com.au> ----- Transcript of session follows ----- 550 <jb@freebsd1.cimlogic.com.au>... Host unknown (Name server: freebsd1.cimlogic.com.au.: host not found) [...] ------- End of forwarded message -------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87zptiodtz.fsf>