Skip to contentSkip to conversation

still on times (2) man page

DISCUSSION Simone Piccardi 2 participants 2 messages Apr 15, 2012 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

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
#2 lore raw
In reply to a message not in the archive

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