gethostid.3: Added ERRORS section describing errors for sethostid()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2009-01-13 07:38:09 +13:00
parent 0482681627
commit 4c98d1203b
1 changed files with 11 additions and 0 deletions

View File

@ -75,6 +75,17 @@ On success,
returns 0; on error, \-1 is returned, and
.I errno
is set to indicate the error.
.SH ERRORS
.BR sethostid ()
can fail with the following errors:
.TP
.B EACCES
The caller did not have permission to write to the file used
to store the host ID.
.TP
.B EPERM
The calling process's effective user or group ID is not the same
as its corresponding real ID.
.SH FILES
.I /etc/hostid
.SH "CONFORMING TO"