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.
指定: UNIX ファイル システム上のファイルのパス
UNIX のようなシステム (OS X を含む) の中で最も移植性の高い方法で、おそらく C からのライブラリ呼び出しを使用して、保存されているデバイスの UUID を取得するにはどうすればよいですか?
int stat(const char *path, struct stat *buf)を呼び出すと、buf->st_dev によってデバイスの ID が得られます。stat() は POSIX.1 です。