ruby-changes:6721
From: nobu <ko1@a...>
Date: Mon, 28 Jul 2008 14:32:56 +0900 (JST)
Subject: [ruby-changes:6721] Ruby:r18237 (trunk): * dln.c (load_lib): use dln_find_file_r instead of dln_find_file.
nobu 2008-07-28 14:29:56 +0900 (Mon, 28 Jul 2008) New Revision: 18237 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18237 Log: * dln.c (load_lib): use dln_find_file_r instead of dln_find_file. Modified files: trunk/ChangeLog trunk/dln.c Index: ChangeLog =================================================================== --- ChangeLog (revision 18236) +++ ChangeLog (revision 18237) @@ -1,3 +1,7 @@ +Mon Jul 28 14:29:54 2008 Nobuyoshi Nakada <nobu@r...> + + * dln.c (load_lib): use dln_find_file_r instead of dln_find_file. + Mon Jul 28 00:18:47 2008 Yusuke Endoh <mame@t...> * vm_core.h, thread.c: It is now prohibited to use Data_Get_Struct in Index: dln.c =================================================================== --- dln.c (revision 18236) +++ dln.c (revision 18237) @@ -911,7 +911,7 @@ static int load_lib(const char *lib) { - char *path, *file; + char *path, *file, fbuf[MAXPATHLEN]; char armagic[SARMAG]; int fd, size; struct ar_hdr ahdr; @@ -942,7 +942,7 @@ path = getenv("DLN_LIBRARY_PATH"); if (path == NULL) path = dln_librrb_ary_path; - file = dln_find_file(lib, path); + file = dln_find_file_r(lib, path, fbuf, sizeof(fbuf)); fd = open(file, O_RDONLY); if (fd == -1) goto syserr; size = read(fd, armagic, SARMAG); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/