Is it necessary to check for errors after calling uname(2)
?
According to the manual page:
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
and under the ERRORS heading,
EFAULT buf is not valid.
is the only error listed.
Can I assume, therefore, that uname
will never fail if given a valid struct utsname
buffer?