アカウント名:
パスワード:
win32 名前無しパイプ版の「pipespeed2.cpp」を作ってみました。が、私の環境(W2K SP2)では名前付きpipe と差が出ませんでした;-(。 添削求む。 ----- ここから ここから ここから ----- --- pipespeed2.cpp Fri Oct 5 01:03:54 2001 +++ pipespeed2k.cpp Fri Oct 5 01:13:44 2001 @@ -2,0 +3,4 @@ +#include <io.h> +#include <fcntl.h> +#include <string.h> +extern int errno; @@ -56 +60 @@ -#ifdef _WIN32 +#ifdef BUGBUGBUG @@ -93 +97 @@ -#ifdef _WIN32 +#ifdef BUGBUGBUG @@ -119 +123 @@ -#ifdef _WIN32 +#ifdef BUGBUGBUG @@ -158 +162 @@ - if(pipe(fd1)) { + if(_pipe(fd1, 10240, O_BINARY)) { @@ -167 +171 @@ -#ifdef _WIN32 +#ifdef BUGBUGBUG @@ -185 +189 @@ -#ifdef _WIN32 +#ifdef BUGBUGBUG ----- ここまで ここまで ここまで -----
より多くのコメントがこの議論にあるかもしれませんが、JavaScriptが有効ではない環境を使用している場合、クラシックなコメントシステム(D1)に設定を変更する必要があります。
一つのことを行い、またそれをうまくやるプログラムを書け -- Malcolm Douglas McIlroy
Re:別の言い方をすれば (スコア:2, 参考になる)
win32 名前無しパイプ版の「pipespeed2.cpp」を作ってみました。が、私の環境(W2K SP2)では名前付きpipe と差が出ませんでした;-(。
添削求む。
----- ここから ここから ここから -----
--- pipespeed2.cpp Fri Oct 5 01:03:54 2001
+++ pipespeed2k.cpp Fri Oct 5 01:13:44 2001
@@ -2,0 +3,4 @@
+#include <io.h>
+#include <fcntl.h>
+#include <string.h>
+extern int errno;
@@ -56 +60 @@
-#ifdef _WIN32
+#ifdef BUGBUGBUG
@@ -93 +97 @@
-#ifdef _WIN32
+#ifdef BUGBUGBUG
@@ -119 +123 @@
-#ifdef _WIN32
+#ifdef BUGBUGBUG
@@ -158 +162 @@
- if(pipe(fd1)) {
+ if(_pipe(fd1, 10240, O_BINARY)) {
@@ -167 +171 @@
-#ifdef _WIN32
+#ifdef BUGBUGBUG
@@ -185 +189 @@
-#ifdef _WIN32
+#ifdef BUGBUGBUG
----- ここまで ここまで ここまで -----
Mc.N