Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
クライアントとサーバー間の共有メモリ IPC を実装する次のプログラムに出会いました。
次の行は、一意の sysv キーを生成するために使用されます (ここで説明したように)。
ShmKEY = ftok(".", 'x');
パス名「.」とは この場合の意味は?私はLinuxにまったく慣れていないので、明確な答えをいただければ幸いです。
パス名「.」現在のディレクトリを意味します。ここで機能の詳細を確認するかman ftok、Linux マシンでコマンドを実行します。
man ftok