* cuserid thread safety
@ 2004-02-21 21:57 Kevin Ryde
0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2004-02-21 21:57 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 79 bytes --]
* posix.c (scm_cuserid): Use a private result buffer, for reentrancy.
[-- Attachment #2: posix.c.cuserid.diff --]
[-- Type: text/plain, Size: 362 bytes --]
--- posix.c.~1.124.~ 2004-02-21 09:19:52.000000000 +1000
+++ posix.c 2004-02-22 07:54:37.000000000 +1000
@@ -1498,9 +1498,10 @@
"information cannot be obtained.")
#define FUNC_NAME s_scm_cuserid
{
+ char buf[L_cuserid];
char * p;
- p = cuserid (NULL);
+ p = cuserid (buf);
if (!p || !*p)
return SCM_BOOL_F;
return scm_makfrom0str (p);
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-02-21 21:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-21 21:57 cuserid thread safety Kevin Ryde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).