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.
を呼び出した後にエラーをチェックする必要はありuname(2)ますか?
uname(2)
マニュアルページによると:
成功すると、ゼロが返されます。エラーの場合は -1 が返され、errno が適切に設定されます。
エラーの見出しの下に、
EFAULT buf は無効です。
リストされている唯一のエラーです。
したがって、有効なバッファunameが与えられれば決して失敗しないと仮定できますか?struct utsname
uname
struct utsname