Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timespec #475

Merged
merged 5 commits into from
Dec 2, 2016
Merged

Timespec #475

merged 5 commits into from
Dec 2, 2016

Commits on Nov 19, 2016

  1. Opaqueify TimeVal

    By exposing its members, nix allowed users to create denormalized
    TimeVals, which don't work with the derived() Eq and Ord methods.
    Better to make TimeVal opaque, so it will always be normalized.
    asomers committed Nov 19, 2016
    Configuration menu
    Copy the full SHA
    cc6c316 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2016

  1. Make TimeVal a NewType

    asomers committed Nov 20, 2016
    Configuration menu
    Copy the full SHA
    e983d20 View commit details
    Browse the repository at this point in the history
  2. Add TimeSpec, a Newtype around libc::timespec

    Also, add trait TimeValLike, so some code can be shared between TimeSpec
    and TimeVal.
    asomers committed Nov 20, 2016
    Configuration menu
    Copy the full SHA
    b983240 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6466ac2 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2016

  1. Fix use-after-free in select

    Also, fix the TimeSpec::cmp and TimeVal::cmp methods, and fix some
    formatting
    asomers committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    24eefcc View commit details
    Browse the repository at this point in the history