diff options
author | Kevin Ryde <user42@zip.com.au> | 2004-07-31 01:13:29 +0000 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2004-07-31 01:13:29 +0000 |
commit | 3572cd6b8f6c6c9cc6549ab67a179563d89e2ae0 (patch) | |
tree | 7345625f9aaffce4e746b3b253d24c1b936411d7 /libguile/filesys.c | |
parent | fd08c23657f0e660ee29ca4ff625e1536b2e24f9 (diff) | |
download | guile-3572cd6b8f6c6c9cc6549ab67a179563d89e2ae0.tar.gz |
* 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.
* filesys.c (scm_stat, scm_lstat): Ditto.
Diffstat (limited to 'libguile/filesys.c')
-rw-r--r-- | libguile/filesys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/filesys.c b/libguile/filesys.c index 79cfa0131..e27bdca99 100644 --- a/libguile/filesys.c +++ b/libguile/filesys.c @@ -640,7 +640,7 @@ SCM_DEFINE (scm_stat, "stat", 1, 0, 0, int en = errno; SCM_SYSERROR_MSG ("~A: ~S", - scm_list_2 (scm_makfrom0str (strerror (errno)), + scm_list_2 (scm_strerror (scm_from_int (en)), object), en); } @@ -1393,7 +1393,7 @@ SCM_DEFINE (scm_lstat, "lstat", 1, 0, 0, int en = errno; SCM_SYSERROR_MSG ("~A: ~S", - scm_list_2 (scm_makfrom0str (strerror (errno)), str), + scm_list_2 (scm_strerror (scm_from_int (en)), str), en); } return scm_stat2scm(&stat_temp); |