From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H.J. Lu" Subject: Re: The time(2) man page conflicts with glibc Date: Wed, 16 Dec 2015 05:53:57 -0800 Message-ID: References: <5671696B.3070203@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <5671696B.3070203-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Michael Kerrisk (man-pages)" Cc: Andreas Schwab , libc-alpha , linux-man , Mike Frysinger , Zack Weinberg List-Id: linux-man@vger.kernel.org On Wed, Dec 16, 2015 at 5:38 AM, Michael Kerrisk (man-pages) wrote: > On 12/15/2015 03:17 PM, H.J. Lu wrote: >> On Tue, Dec 15, 2015 at 6:16 AM, Andreas Schwab wro= te: >>> In which way does it conflict? >> >> On error, ((time_t) -1) is returned, and errno is set appropriately. > > > So, how would the following text be for the man page? > > ERRORS > EFAULT t points outside your accessible address space. On s= ys=E2=80=90 > tems where the C library time() wrapper function invo= kes > an implementation provided by the vdso(7) (so that th= ere > is no trap into the kernel), an invalid address = may > instead trigger a SIGSEGV signal. > time never sets errno. You can't tell if it returns error when time in libc.a is used. --=20 H.J. -- 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