最終的には、オンラインで例を調べなくても、関数の使用方法を知りたいと思っています。
たとえば、次のようman 2 mkfifo
に表示されます。
NAME
mkfifo -- make a fifo file
SYNOPSIS
#include <sys/types.h>
#include <sys/stat.h>
int
mkfifo(const char *path, mode_t mode);
DESCRIPTION
Mkfifo() creates a new fifo file with name path. The access permissions are specified by mode and restricted by the umask(2) of the calling process.
The fifo's owner ID is set to the process's effective user ID. The fifo's group ID is set to that of the parent directory in which it is created.
const char *path
かなり自明であり、その引数で mkfifo 関数を呼び出すのに問題はありませんが、私の懸念は mode_t 引数です。man ページには、このモードの目的に関する簡単な説明がありますが、それを使用して関数を呼び出すための使用方法については説明されていません。
そのような議論を理解するためにマニュアルページをナビゲートする方法はありますか?
やってみましたがman mode_t
、man mode
何も出てきませんでした。