source: rtems/cpukit/libcsupport/src/utimes.c @ da154e14

4.115
Last change on this file since da154e14 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 623 bytes
Line 
1/*
2 *  Written by: Vinu Rajashekhar <vinutheraj@gmail.com>
3 *
4 *  The license and distribution terms for this file may be
5 *  found in the file LICENSE in this distribution or at
6 *  http://www.rtems.com/license/LICENSE.
7 */
8
9#if HAVE_CONFIG_H
10#include "config.h"
11#endif
12
13#include <sys/types.h>
14#include <utime.h>
15#include <sys/time.h>
16
17int utimes(
18  const char           *path,
19  const struct timeval  times[2]
20)
21{
22  struct utimbuf timeinsecs;
23
24  if ( times == NULL )
25    return utime( path, NULL );
26
27  timeinsecs.actime  = times[0].tv_sec;
28  timeinsecs.modtime = times[1].tv_sec;
29
30  return utime( path, &timeinsecs );
31}
Note: See TracBrowser for help on using the repository browser.