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.
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);
}
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);