open()(man 2 open)システムコールには2つのバージョンがあることを発見しました。
int open(const char *pathname, int flags);
int open(const char *pathname, int flags, mode_t mode);
実際、1つのCファイルでどちらかを使用でき、両方が機能します。標準Cはこれをどのように達成できますか?
open()(man 2 open)システムコールには2つのバージョンがあることを発見しました。
int open(const char *pathname, int flags);
int open(const char *pathname, int flags, mode_t mode);
実際、1つのCファイルでどちらかを使用でき、両方が機能します。標準Cはこれをどのように達成できますか?