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.
を呼び出すとsemget()、ファイルシステムのどこかに一意のファイルが作成されますか? 共有メモリ セグメントのキーとしてセマフォを使用しようとしていますが、 ftok() が実行可能なオプションであると考えました。
semget()
いいえ。System V IPC オブジェクト (セマフォ、メッセージ キュー、および共有メモリ) は、ファイル システムとは別の名前空間に存在します。