[#2023] Class Method の index — (Dezawa Shin-ichiro) <dezawa@...>

出沢です

13 messages 1997/02/02

[#2158] [Req] pack/unpack — keiju@... (Keiju ISHITSUKA)

けいじゅ@SHLジャパンです.

14 messages 1997/02/18
[#2166] Re: [Req] pack/unpack — matz@... (Yukihiro Matsumoto) 1997/02/18

まつもと ゆきひろです.

[#2277] ruby 1.0-970228 available — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです.

16 messages 1997/02/28

[ruby-list:2185] Re: Compilation on NeXT

From: matz@... (Yukihiro Matsumoto)
Date: 1997-02-18 16:33:47 UTC
List: ruby-list #2185
まつもと ゆきひろです.

In message "[ruby-list:2165] Compilation on NeXT"
    on 97/02/18, maeda syuugo <le4441ms@ex.ecip.osaka-u.ac.jp> writes:
|みなさん、はじめまして。
|NEXTSTEP 3.3J (Intel) と WIn95 で ruby を使わせて頂いています。

NEXTSTEPに関しては白山さんが詳しいと思うのですが,とりあえず
glob.cとsocket.cは修正しました.パッチを付けておきます.

process.cのwarningは無視してください.

|ext/Setup で
|
|option nodynamic

NEXTSTEPだとダイナミックリンクが使えたと思うんですけど….ダ
メでした?

--- glob.c~	Tue Dec 24 15:09:15 1996
+++ glob.c	Wed Feb 19 00:16:25 1997
@@ -68,7 +68,9 @@
 #  include <strings.h>
 #endif /* !HAVE_STRING_H */
 
+#ifndef bcopy
 # define bcopy(s, d, n) (memcpy ((d), (s), (n)))
+#endif
 
 #ifdef _AIX
 #pragma alloca
--- ext/socket/socket.c~	Fri Jan 31 10:34:54 1997
+++ ext/socket/socket.c	Wed Feb 19 00:24:01 1997
@@ -207,14 +207,15 @@
     mode = fcntl(fd, F_GETFL, 0);
 
 #ifdef O_NDELAY 
-    fcntl(fd, F_SETFL, mode|O_NDELAY);
+# define NONBLOCKING O_NDELAY
 #else
 #ifdef O_NBIO
-    fcntl(fd, F_SETFL, mode|O_NBIO);
+# define NONBLOCKING O_NBIO
 #else
-    fcntl(fd, F_SETFL, mode|O_NONBLOCK);
+# define NONBLOCKING O_NONBLOCK
 #endif
 #endif
+    fcntl(fd, F_SETFL, mode|NONBLOCKING);
     for (;;) {
 	status = connect(fd, sockaddr, len);
 	if (status < 0) {
@@ -244,7 +245,7 @@
 		return status;
 	    }
 	}
-	mode &= ~O_NONBLOCK;
+	mode &= ~NONBLOCKING;
 	fcntl(fd, F_SETFL, mode);
 	return 0;
     }

In This Thread