• Show log

    Commit

  • Hash : 051613c2
    Author : Paul Eggert
    Date : 2015-11-05T17:41:43

    timespec-sub: fix overflow bug; add tests
    
    * lib/timespec-add.c (timespec_add):
    * lib/timespec-sub.c (timespec_sub):
    Work even if time_t is narrower than int (a theoretical
    possibility).  Redo code for a bit more clarity.
    * lib/timespec-sub.c (timespec_sub):
    Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
    * modules/timespec-tests, tests/test-timespec.c: New files.
    

  • README

  • This directory contains metainformation about the gnulib modules, one or two
    files per module. These files are used by gnulib-tool.
    
    For every module,
      - the file <module> is the metainformation about the library code of the
        module,
      - the file <module>-tests is the metainformation about the unit test of
        the module (optional but recommended).
    
    All the files in this directory are distributed under the following copyright:
    
      Copyright (C) 2002-2015 Free Software Foundation, Inc.
      Copying and distribution of this file, with or without modification,
      in any medium, are permitted without royalty provided the copyright
      notice and this notice are preserved.