[#10661] bmingw package — WATANABE Hirofumi <eban@...>

わたなべです.

49 messages 2000/08/21
[#10664] Re: bmingw package — "Nobuyoshi.Nakada" <nobu.nakada@...> 2000/08/21

なかだです。

[#10665] Re: bmingw package — "Nobuyoshi.Nakada" <nobu.nakada@...> 2000/08/21

なかだです。

[#10667] Re: bmingw package — WATANABE Hirofumi <eban@...> 2000/08/21

わたなべです.

[#10668] Re: bmingw package — "Nobuyoshi.Nakada" <nobu.nakada@...> 2000/08/22

なかだです。

[#10670] Re: bmingw package — WATANABE Hirofumi <eban@...> 2000/08/22

わたなべです.

[#10671] Re: bmingw package — nobu.nakada@... 2000/08/22

なかだです。

[#10673] Re: bmingw package — WATANABE Hirofumi <eban@...> 2000/08/23

わたなべです.

[#10675] Re: bmingw package — "Nobuyoshi.Nakada" <nobu.nakada@...> 2000/08/23

なかだです。

[#10693] Re: bmingw package — WATANABE Hirofumi <eban@...> 2000/08/28

わたなべです.

[#10707] Re: bmingw package — nobu.nakada@... 2000/08/28

なかだです。

[#10713] Re: bmingw package — WATANABE Hirofumi <eban@...> 2000/08/29

わたなべです.

[#10717] Re: bmingw package — "Nobuyoshi.Nakada" <nobu.nakada@...> 2000/08/29

なかだです。

[#10723] Re: bmingw package — WATANABE Hirofumi <eban@...> 2000/08/30

わたなべです.

[#10797] Re: bmingw package — "Nobuyoshi.Nakada" <nobu.nakada@...> 2000/09/01

なかだです。

[#10821] Re: bmingw package — WATANABE Hirofumi <eban@...> 2000/09/04

わたなべです.

[#10824] Re: bmingw package — "Nobuyoshi.Nakada" <nobu.nakada@...> 2000/09/04

なかだです。

[#10825] Re: bmingw package — WATANABE Hirofumi <eban@...> 2000/09/04

わたなべです.

[#10827] Re: bmingw package — "Nobuyoshi.Nakada" <nobu.nakada@...> 2000/09/04

なかだです。

[#10837] Re: bmingw package — WATANABE Hirofumi <eban@...> 2000/09/05

わたなべです.

[#10677] Class Variable — Shin-ichiro Hara <sinara@...>

原です。

16 messages 2000/08/24
[#10681] Re: Class Variable — matz@... (Yukihiro Matsumoto) 2000/08/25

まつもと ゆきひろです

[#10688] ruby-1.6.0-20000824.i586-mswin32 bug — Kazuhiro NISHIYAMA <zn@...>

http://www.geocities.co.jp/SiliconValley-Bay/4076/

34 messages 2000/08/27
[#10692] Re: ruby-1.6.0-20000824.i586-mswin32 bug — "Nobuyoshi.Nakada" <nobu.nakada@...> 2000/08/28

なかだです。

[#10705] Re: ruby-1.6.0-20000824.i586-mswin32 bug — Kazuhiro NISHIYAMA <zn@...> 2000/08/28

"Nobuyoshi.Nakada" <nobu.nakada@nifty.ne.jp> wrote:

[#10711] Re: ruby-1.6.0-20000824.i586-mswin32 bug — "Nobuyoshi.Nakada" <nobu.nakada@...> 2000/08/29

なかだです。

[#10720] Re: ruby-1.6.0-20000824.i586-mswin32 bug — Katsuyuki Komatsu <komatsu@...> 2000/08/30

小松です.

[#10725] Re: ruby-1.6.0-20000824.i586-mswin32 bug — "Nobuyoshi.Nakada" <nobu.nakada@...> 2000/08/30

なかだです。

[#10805] ruby-1.6.0-20000901.i586-mswin32.lzh — Kazuhiro NISHIYAMA <zn@...> 2000/09/02

20000901のでもirbでCtrl+Cを押したら落ちました。

[#10807] Re: ruby-1.6.0-20000901.i586-mswin32.lzh — matz@... (Yukihiro Matsumoto) 2000/09/02

まつもと ゆきひろです

[#10811] Re: Ctrl+C on win32 console <- Re: ruby-1.6.0-20000901.i586-mswin32.lzh — " たけ (tk)" <ggb03124@...> 2000/09/03

たけ(tk)です。

[#10813] Re: Ctrl+C on win32 console <- Re: ruby-1.6.0-20000901.i586-mswin32.lzh — nobu.nakada@... 2000/09/03

なかだです。

[#10729] Fwd: patch of the ruby-1.4.6 for NT4.0&VC4.0 on DEC Alpha. — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

18 messages 2000/08/30
[#10730] Re: Fwd: patch of the ruby-1.4.6 for NT4.0&VC4.0 on DEC Alpha. — WATANABE Hirofumi <eban@...> 2000/08/30

わたなべです.

[#10762] ruby 1.6.0 preview — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

42 messages 2000/08/31

[ruby-dev:10652] Forward: patches for mktemp -> mkstemp

From: "Akinori -Aki- MUSHA" <knu@...>
Date: 2000-08-18 16:27:28 UTC
List: ruby-dev #10652
 knu です。

 昨日 Ruby の FreeBSD port を 1.4.6 にアップデートしたところ、
Ruby に興味を持ちはじめてくれた FreeBSD デベロッパーのひとりが、
mktemp() を使わずに mkstemp() を使うようにするパッチを送ってくれ
ました。(参考までにメールを添付します)


 ところが、 HEAD の該当部分を見てみたところすでに mktemp() は
なくなっているようです。その変更を ruby_1_4 ブランチへマージして
いただけるとうれしいのですが、マージの予定はありますでしょうか?

-- 
                           /
                          /__  __       
                         / )  )  ) )  /
Akinori -Aki- MUSHA aka / (_ /  ( (__(  @ idaemons.org / FreeBSD.org

"We're only at home when we're on the run, on the wing, on the fly"
Delivered-To: knu@freebsd.org
Date: Fri, 18 Aug 2000 15:28:43 +0200
From: Ollivier Robert <roberto@eurocontrol.fr>
To: knu@freebsd.org
Subject: patches for mktemp -> mkstemp
Message-ID: <20000818152843.A18101@caerdonn.eurocontrol.fr>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="45Z9DzgjV8m4Oswq"
Content-Disposition: inline
User-Agent: Mutt/1.2i
X-Operating-System: FreeBSD 5.0-CURRENT


--45Z9DzgjV8m4Oswq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Here are my patches, if you can get them integrated, it would be nice.

Enjoy!
-- 
Ollivier ROBERT -=- Eurocontrol EEC/ITM -=- Ollivier.Robert@eurocontrol.fr
The Postman hits! The Postman hits! You have new mail.

--45Z9DzgjV8m4Oswq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-aa

--- ruby.c.old	Mon Jul 31 11:20:15 2000
+++ ruby.c	Fri Aug 18 13:46:07 2000
@@ -345,12 +345,8 @@
 	    }
 	    if (!e_fp) {
 		int fd;
-		e_tmpname = ruby_mktemp();
-		if (!e_tmpname) rb_fatal("Can't mktemp");
-		fd = open(e_tmpname, O_CREAT|O_EXCL|O_RDWR, 0600);
-		if (fd < 0) {
-		    rb_fatal("Cannot open temporary file: %s", e_tmpname);
-		}
+		fd = ruby_mkstemp(&e_tmpname);
+		if (fd < 0) rb_fatal("Can't mkstemp for %s", e_tmpname);
 		e_fp = fdopen(fd, "w");
 		if (!e_fp) {
 		    rb_fatal("Cannot open temporary file: %s", e_tmpname);

--45Z9DzgjV8m4Oswq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-ab

--- util.c.old	Mon Jan 17 09:24:14 2000
+++ util.c	Fri Aug 18 13:45:57 2000
@@ -20,7 +20,7 @@
 #include "ruby.h"
 
 #ifdef USE_CWGUSI
-extern char* mktemp(char*);
+extern char* mkstemp(char*);
 #endif
 
 VALUE
@@ -138,22 +138,22 @@
     return dir;
 }
 
-char *
-ruby_mktemp()
+int
+ruby_mkstemp(file)
+	char **file;
 {
+	int fd;
     char *dir;
-    char *buf;
 
     dir = check_dir(getenv("TMP"));
     if (!dir) dir = check_dir(getenv("TMPDIR"));
     if (!dir) dir = "/tmp";
 
-    buf = ALLOC_N(char,strlen(dir)+10);
-    sprintf(buf, "%s/rbXXXXXX", dir);
-    dir = mktemp(buf);
-    if (dir == NULL) free(buf);
+    *file = ALLOC_N(char,strlen(dir)+10);
+    sprintf(*file, "%s/rbXXXXXX", dir);
+    fd = mkstemp(*file);
 
-    return dir;
+    return fd;
 }
 
 #if defined(MSDOS) || defined(__CYGWIN32__) || defined(NT)

--45Z9DzgjV8m4Oswq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-ac

--- util.h.old	Mon Jan 17 09:24:15 2000
+++ util.h	Fri Aug 18 13:46:45 2000
@@ -35,7 +35,7 @@
 #define add_suffix ruby_add_suffix
 #endif
 
-char *ruby_mktemp _((void));
+int ruby_mkstemp _((char**));
 
 void ruby_qsort _((void*, int, int, int (*)()));
 #define qsort(b,n,s,c) ruby_qsort(b,n,s,c)

--45Z9DzgjV8m4Oswq--

In This Thread

Prev Next