From fd08c23657f0e660ee29ca4ff625e1536b2e24f9 Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Sat, 31 Jul 2004 01:12:24 +0000 Subject: [PATCH] * error.c (scm_strerror): Use scm_i_misc_mutex around strerror since it's not thread safe. (scm_syserror): Use scm_strerror rather than SCM_I_STRERROR, to take advantage of this. * fports.c (scm_open_file): Use scm_strerror likewise. --- libguile/fports.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libguile/fports.c b/libguile/fports.c index 3cdf110b3..cb824db17 100644 --- a/libguile/fports.c +++ b/libguile/fports.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2002, 2003 Free Software Foundation, Inc. +/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2002, 2003, 2004 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -336,7 +336,7 @@ SCM_DEFINE (scm_open_file, "open-file", 2, 0, 0, int en = errno; SCM_SYSERROR_MSG ("~A: ~S", - scm_cons (scm_makfrom0str (strerror (en)), + scm_cons (scm_strerror (scm_from_int (en)), scm_cons (filename, SCM_EOL)), en); } port = scm_fdes_to_port (fdes, md, filename);