still on times (2) man page
I have another little issue about errors. In the RETURN VALUE section is written:
On error, (clock_t) -1 is returned, and errno is set appropriately.
but no value for errno is specified. From what I found digging kernel sources the only error value returned seems to be EFAULT, if tms address make fail copy_to_user. Should be specified?
Regards
Simone
Signature · 8 lines
Simone Piccardi - KeyID:2A972F9D - JabberID:[email protected] http://piccardi.gnulinux.it - http://www.fountainpen.it Prima ti ignorano, poi ti deridono, poi ti combattono. Poi vinci. M. K. Ghandi -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello Simone,
Quoted 8 lines · Simone Piccardi
I have another little issue about errors. In the RETURN VALUE section is written:
On error, (
clock_t) -1 is returned, and errno is set appropriately.but no value for errno is specified. From what I found digging kernel sources the only error value returned seems to be EFAULT, if tms address make fail
copy_to_user. Should be specified?
Yes, probably better. For 3.39, I added the following:
==
.SH ERRORS
.TP
.B EFAULT
.I tms
points outside the process's address space.
==
Thank you!
Michael
Signature · 7 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html