[#9437] ruby 1.1c4 released — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

17 messages 1998/09/03

[#9570] ruby-gtk-0.11 — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

16 messages 1998/09/16

[#9573] filter — gotoken@... (GOTO Kentaro)

ごとけんです

34 messages 1998/09/16
[#9575] Re: filter — Shin-ichro Hara <sinara@...> 1998/09/17

原です。

[#9577] Re: filter — Shin-ichro Hara <sinara@...> 1998/09/17

原です。

[#9613] can't clone Fixnum — Kikutani Makoto <kikutani@...>

前田さんのruby-jedパッチをJed 0.98.7+J0.5.3に無理やりあてて

27 messages 1998/09/19
[#9622] Re: can't clone Fixnum — shugo@... (MAEDA Shugo) 1998/09/21

前田です。

[#9633] Re: can't clone Fixnum — Kikutani Makoto <kikutani@...> 1998/09/22

Mon, Sep 21, 1998 at 06:44:30PM +0900 において

[#9635] Re: can't clone Fixnum — matz@... (Yukihiro Matsumoto) 1998/09/22

まつもと ゆきひろです

[#9637] Re: can't clone Fixnum — Kikutani Makoto <kikutani@...> 1998/09/22

回答どうもです。

[#9640] Re: can't clone Fixnum — matz@... (Yukihiro Matsumoto) 1998/09/22

まつもと ゆきひろです

[#9647] Re: can't clone Fixnum — Kikutani Makoto <kikutani@...> 1998/09/22

Tue, Sep 22, 1998 at 01:07:22PM +0900 において

[#9650] Re: can't clone Fixnum — matz@... (Yukihiro Matsumoto) 1998/09/22

まつもと ゆきひろです

[#9626] nif.rb (ver0.14) — Wakou Aoyama <wakou@...>

青山です。

35 messages 1998/09/21
[#9628] Re: nif.rb (ver0.14) — WATANABE Tetsuya <tetsu@...> 1998/09/22

渡辺哲也です。

[#9638] Re: nif.rb (ver0.14) — SHUDOH Kazuyuki <shudoh@...> 1998/09/22

渡辺哲也さん wrote:

[#9642] Re: nif.rb (ver0.14) — Kikutani Makoto <kikutani@...> 1998/09/22

Tue, Sep 22, 1998 at 12:58:23PM +0900 において

[#9703] Re: nif.rb (ver0.14) — hisanori@... 1998/09/24

松尾です。

[#9704] Re: nif.rb (ver0.14) — matz@... (Yukihiro Matsumoto) 1998/09/24

まつもと ゆきひろです

[#9705] Re: nif.rb (ver0.14) — hisanori@... 1998/09/24

松尾です。こんばんは。

[#9706] Re: nif.rb (ver0.14) — matz@... (Yukihiro Matsumoto) 1998/09/24

まつもと ゆきひろです

[#9723] Re: nif.rb (ver0.14) — hisanori@... 1998/09/25

松尾です。こんにちは。

[#9724] pstore.rb(Re: Re: nif.rb (ver0.14)) — matz@... (Yukihiro Matsumoto) 1998/09/25

まつもと ゆきひろです

[#9670] how to create a instance dinamically using String class. — Masato Taruishi <taru@...>

18 messages 1998/09/22
[#9671] Re: how to create a instance dinamically using String class. — ttate@... 1998/09/22

立石です。

[#9677] Re: how to create a instance dinamically using String class. — keiju@... (Keiju ISHITSUKA) 1998/09/23

けいじゅ@日本ラショナルソフトウェアです.

[#9678] Re: how to create a instance dinamically using String class. — Masato Taruishi <taru@...> 1998/09/23

[#9702] [HAMATTA!] != — Shin-ichro Hara <sinara@...>

原です。

16 messages 1998/09/24

[#9770] ruby-jed SEGV — Kikutani Makoto <kikutani@...>

きくたにです。

16 messages 1998/09/29

[ruby-list:9742] ruby-1.1c5 on NetBSD patch

From: Ryo HAYASAKA <hayasaka@...>
Date: 1998-09-26 10:04:26 UTC
List: ruby-list #9742
 早坂@会津大学です。

 ruby-1.1c5 を NetBSD1.3.2/i386 で、gcc に -Werror を付
けて compile しても OK. なパッチを作ってみました。
 もしよろしければ、取り込んで下さい。

-------
Name   :  HAYASAKA Ryo  (早坂 良)
E-mail :  hayasaka@cheer.u-aizu.ac.jp
URL    :  http://www.u-aizu.ac.jp/%7Es1041140/
Computer Science and Engineering Lab., The University of Aizu

Attachments (1)

ruby-1.1c5_netbsd.patch (2.08 KB, text/x-diff)
diff -Nruw ruby-1.1c5.orig/dln.c ruby-1.1c5/dln.c
--- ruby-1.1c5.orig/dln.c	Tue Sep  8 18:17:31 1998
+++ ruby-1.1c5/dln.c	Sat Sep 26 02:05:29 1998
@@ -1257,7 +1257,7 @@
 # endif
 
 	/* Load file */
-	if ((handle = dlopen(file, RTLD_LAZY|RTLD_GLOBAL)) == NULL) {
+	if ((handle = (void *)dlopen(file, RTLD_LAZY|RTLD_GLOBAL)) == NULL) {
 	    goto failed;
 	}
 
diff -Nruw ruby-1.1c5.orig/process.c ruby-1.1c5/process.c
--- ruby-1.1c5.orig/process.c	Mon Aug 10 14:41:18 1998
+++ ruby-1.1c5/process.c	Sat Sep 26 02:07:32 1998
@@ -917,11 +917,11 @@
     int uid;
 
     uid = NUM2INT(id);
-#ifdef HAVE_SETRUID
-    setruid(uid);
-#else
 #ifdef HAVE_SETREUID
     setreuid(uid, -1);
+#else
+#ifdef HAVE_SETRUID
+    setruid(uid);
 #else
     {
 	if (geteuid() == uid)
diff -Nruw ruby-1.1c5.orig/ruby.c ruby-1.1c5/ruby.c
--- ruby-1.1c5.orig/ruby.c	Thu Sep  3 16:43:41 1998
+++ ruby-1.1c5/ruby.c	Sat Sep 26 02:38:05 1998
@@ -41,7 +41,7 @@
 char *strstr _((char*,char*));
 #endif
 
-char *ruby_mktemp _((void));
+char *ruby_mktemp _((int *));
 
 char *getenv();
 
@@ -245,15 +245,18 @@
 
 	  case 'e':
 	    forbid_setid("-e");
+			{
+				int fd;
 	    if (!e_fp) {
-		e_tmpname = ruby_mktemp();
+					e_tmpname = ruby_mktemp(&fd);
 		if (!e_tmpname) Fatal("Can't mktemp");
-		e_fp = fopen(e_tmpname, "w");
+					e_fp = fdopen(fd, "w");
 		if (!e_fp) {
 		    Fatal("Cannot open temporary file: %s", e_tmpname);
 		}
 		if (script == 0) script = e_tmpname;
 	    }
+			}
 	    if (argv[1]) {
 		fputs(argv[1], e_fp);
 		argc--, argv++;
diff -Nruw ruby-1.1c5.orig/util.c ruby-1.1c5/util.c
--- ruby-1.1c5.orig/util.c	Tue Sep  8 18:17:44 1998
+++ ruby-1.1c5/util.c	Sat Sep 26 02:35:01 1998
@@ -123,7 +123,7 @@
 }
 
 char *
-ruby_mktemp()
+ruby_mktemp(int *fd)
 {
     char *dir;
     char *buf;
@@ -134,10 +134,13 @@
 
     buf = ALLOC_N(char,strlen(dir)+10);
     sprintf(buf, "%s/rbXXXXXX", dir);
-    dir = mktemp(buf);
-    if (dir == NULL) free(buf);
+		*fd = mkstemp(buf);
+		if (*fd == -1) {
+			free(buf);
+			buf = NULL;

+		}
 
-    return dir;
+    return buf;
 }
 
 #if defined(MSDOS) || defined(__CYGWIN32__) || defined(NT)

In This Thread

Prev Next