This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The time(2) man page conflicts with glibc


On Wed, Dec 16, 2015 at 5:38 AM, Michael Kerrisk (man-pages)
<mtk.manpages@gmail.com> wrote:
> On 12/15/2015 03:17 PM, H.J. Lu wrote:
>> On Tue, Dec 15, 2015 at 6:16 AM, Andreas Schwab <schwab@suse.de> wrote:
>>> 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 sysâ
>               tems where the C library time() wrapper  function  invokes
>               an  implementation  provided by the vdso(7) (so that there
>               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.

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]