]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
gethostid.3: Added ERRORS section describing errors for sethostid()
authorMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 12 Jan 2009 18:38:09 +0000 (07:38 +1300)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 12 Jan 2009 19:37:48 +0000 (08:37 +1300)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/gethostid.3

index b21c6d94e8590c51552858c6f44d3b8626e774ec..3881cacdb691163c66329f17d6173b2b62e6d5d8 100644 (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"