~ubuntu-branches/ubuntu/precise/eglibc/precise

« back to all changes in this revision

Viewing changes to sysdeps/unix/sysv/linux/futimes.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-10-04 17:48:26 UTC
  • mfrom: (216.1.23 oneiric)
  • Revision ID: package-import@ubuntu.com-20111004174826-2cyb9ewn3ucymlsx
Tags: 2.13-20ubuntu5
libc6-dev: Don't break the current {gnat,gcj}-4.4-base versons. LP: #853688.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* futimes -- change access and modification times of open file.  Linux version.
2
 
   Copyright (C) 2002,2003,2005,2006,2007,2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 2002,2003,2005,2006,2007 Free Software Foundation, Inc.
3
3
   This file is part of the GNU C Library.
4
4
 
5
5
   The GNU C Library is free software; you can redistribute it and/or
95
95
      if (tvp != NULL)
96
96
        {
97
97
          times = &buf;
98
 
          buf.actime = tvp[0].tv_sec;
99
 
          buf.modtime = tvp[1].tv_sec;
 
98
          buf.actime = tvp[0].tv_sec + (tvp[0].tv_usec + 500000) / 1000000;
 
99
          buf.modtime = tvp[1].tv_sec + (tvp[1].tv_usec + 500000) / 1000000;
100
100
        }
101
101
      else
102
102
        times = NULL;