Thread View: fj.lang.perl
1 messages
1 total messages
Started by Masayuki Fukuda
Wed, 06 May 1998 00:00
共有メモリの使用について
Author: Masayuki Fukuda
Date: Wed, 06 May 1998 00:00
Date: Wed, 06 May 1998 00:00
28 lines
1544 bytes
1544 bytes
福田@SoFTと申します。 共有メモリ領域を確保するため、shmget関数を使用した際に 引数として渡すキーの値に1以上の任意の値を設定するとメモリ 領域の確保に失敗します。 ------------------------ $ipckey = 10; $shmid = shmget($ipckey,100,0600 | IPC_CREAT | IPC_EXCL); ------------------------ $ipckeyに0、またはIPC_PRIVATEを設定した場合には領域が確保できます。 書籍(ラクダ本等)には、キーに1以上の任意の値が設定された例題が掲載 されていたので、そのとおりに実行してみたのですがうまく動作しません。 ご存知の方がいらっしゃいましたら、教えて頂けないでしょうか? また、PerlにはC言語のftok関数のようなものはないのでしょうか? 現在使用している環境は、以下の通りです。 OS : Red Hat Linux 4.2 + PJE-0.1 Perl : 5.004_01 -------------------------- ソフトウエア興業(株) 福田 政行 E-mail:mfuku@sic.co.jp --------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads