~ubuntu-branches/ubuntu/lucid/man-db/lucid-updates

« back to all changes in this revision

Viewing changes to gnulib/m4/gettimeofday.m4

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2010-02-17 00:56:08 UTC
  • mfrom: (1.1.10 upstream) (5.2.10 sid)
  • Revision ID: james.westby@ubuntu.com-20100217005608-ko3mxv0qr29iaptz
Tags: 2.5.7-1
* New upstream release:
  - Make man(1) refer to the "Warnings" node in 'info groff' for a list of
    available warning names (closes: #545805).
  - Don't run tests if cross-compiling.
  - Add option to disable justification (closes: #440047).
  - Do what the user probably means when the full path to an executable is
    given as an argument (closes: #505465).
  - Search man<sec><ext> directories in the GNU layout (closes: #519807).
  - Prefer getting a page from the best manual section over getting a page
    in the correct language; I have my reservations about this, but it
    seems to be what people are requesting (closes: #519547).
  - 'man -f' and 'man -k' now pass through any -s option to apropos/whatis
    respectively.
  - All programs now support a MAN_DEBUG environment variable which can be
    used in place of the -d/--debug option. This is useful in some
    situations where a program is being called deep in a process tree.
  - Fix off-by-one error when write returns EAGAIN (thanks, Samuel
    Thibault; closes: #564818).
  - "%s: nothing appropriate." is an error; write it to stderr, not stdout
    (closes: #565255).
  - Don't bother printing error messages for SIGINT and SIGQUIT, since
    these correspond to explicit user actions (closes: #568000).
  - Fix sense of directory check while decompressing (closes: #537434).
  - Always save cat pages in UTF-8 (closes: #446741).
* Convert to source format 3.0 (quilt).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# serial 12
2
2
 
3
 
# Copyright (C) 2001-2003, 2005, 2007, 2009 Free Software Foundation, Inc.
 
3
# Copyright (C) 2001-2003, 2005, 2007, 2009-2010 Free Software Foundation, Inc.
4
4
# This file is free software; the Free Software Foundation
5
5
# gives unlimited permission to copy and/or distribute it,
6
6
# with or without modifications, as long as this notice is preserved.
17
17
    [gl_cv_func_gettimeofday_posix_signature],
18
18
    [AC_COMPILE_IFELSE(
19
19
       [AC_LANG_PROGRAM(
20
 
          [[#include <sys/time.h>
21
 
            struct timeval c;
22
 
          ]],
23
 
          [[
24
 
            int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
25
 
            int x = f (&c, 0);
26
 
            return !(x | c.tv_sec | c.tv_usec);
27
 
          ]])],
28
 
        [gl_cv_func_gettimeofday_posix_signature=yes],
29
 
        [gl_cv_func_gettimeofday_posix_signature=no])])
 
20
          [[#include <sys/time.h>
 
21
            struct timeval c;
 
22
          ]],
 
23
          [[
 
24
            int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
 
25
            int x = f (&c, 0);
 
26
            return !(x | c.tv_sec | c.tv_usec);
 
27
          ]])],
 
28
        [gl_cv_func_gettimeofday_posix_signature=yes],
 
29
        [gl_cv_func_gettimeofday_posix_signature=no])])
30
30
 
31
31
  gl_FUNC_GETTIMEOFDAY_CLOBBER
32
32
 
56
56
  [gl_cv_func_gettimeofday_clobber],
57
57
  [AC_RUN_IFELSE(
58
58
     [AC_LANG_PROGRAM(
59
 
        [[#include <string.h>
60
 
          #include <sys/time.h>
61
 
          #include <time.h>
62
 
          #include <stdlib.h>
63
 
        ]],
64
 
        [[
65
 
          time_t t = 0;
66
 
          struct tm *lt;
67
 
          struct tm saved_lt;
68
 
          struct timeval tv;
69
 
          lt = localtime (&t);
70
 
          saved_lt = *lt;
71
 
          gettimeofday (&tv, NULL);
72
 
          return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
73
 
        ]])],
 
59
        [[#include <string.h>
 
60
          #include <sys/time.h>
 
61
          #include <time.h>
 
62
          #include <stdlib.h>
 
63
        ]],
 
64
        [[
 
65
          time_t t = 0;
 
66
          struct tm *lt;
 
67
          struct tm saved_lt;
 
68
          struct timeval tv;
 
69
          lt = localtime (&t);
 
70
          saved_lt = *lt;
 
71
          gettimeofday (&tv, NULL);
 
72
          return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
 
73
        ]])],
74
74
     [gl_cv_func_gettimeofday_clobber=no],
75
75
     [gl_cv_func_gettimeofday_clobber=yes],
76
76
     dnl When crosscompiling, assume it is broken.