Bug 17965 - tv_sec is of type time_t not long.
Summary: tv_sec is of type time_t not long.
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: manual (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-12 20:06 UTC by Carlos O'Donell
Modified: 2015-02-16 16:43 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos O'Donell 2015-02-12 20:06:01 UTC
The manual says tv_sec is of type long, this is wrong, it is of type time_t.
Comment 1 Carlos O'Donell 2015-02-12 20:10:58 UTC
commit 87a629c5d7aa559e5c144196bce123469b17af4c
Author: Rüdiger Sonderfeld <ruediger@c-plusplus.net>
Date:   Thu Feb 12 14:51:31 2015 -0500

    Document tv_sec is of type time_t:
    
    The tv_sec is of type time_t in both struct timeval and struct timespec.
    This matches the implementation and also the relevant standard (checked
    C11 for timespec and opengroup for timeval).