All of lore.kernel.org
 help / color / mirror / Atom feed
* still on times (2) man page
@ 2012-04-15 16:53 Simone Piccardi
       [not found] ` <4F8AFD27.2000004-TuvemuYfxVQ1GQ1Ptb7lUw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Simone Piccardi @ 2012-04-15 16:53 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

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
-- 
Simone Piccardi - KeyID:2A972F9D - JabberID:piccardi-TuvemuYfxVQ1GQ1Ptb7lUw@public.gmane.org
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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: still on times (2) man page
       [not found] ` <4F8AFD27.2000004-TuvemuYfxVQ1GQ1Ptb7lUw@public.gmane.org>
@ 2012-04-15 20:35   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2012-04-15 20:35 UTC (permalink / raw)
  To: Simone Piccardi; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello Simone,

On Mon, Apr 16, 2012 at 4:53 AM, Simone Piccardi <piccardi-TuvemuYfxVQ1GQ1Ptb7lUw@public.gmane.org> wrote:
> 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

-- 
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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-15 20:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-15 16:53 still on times (2) man page Simone Piccardi
     [not found] ` <4F8AFD27.2000004-TuvemuYfxVQ1GQ1Ptb7lUw@public.gmane.org>
2012-04-15 20:35   ` Michael Kerrisk (man-pages)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.