Print this page
10076 make usr/src/test smatch clean

Split Close
Expand all
Collapse all
          --- old/usr/src/test/zfs-tests/tests/functional/ctime/ctime_001_pos.c
          +++ new/usr/src/test/zfs-tests/tests/functional/ctime/ctime_001_pos.c
↓ open down ↓ 20 lines elided ↑ open up ↑
  21   21  
  22   22  /*
  23   23   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  /*
  28   28   * Copyright (c) 2013 by Delphix. All rights reserved.
  29   29   */
  30   30  
       31 +/*
       32 + * Copyright (c) 2018, Joyent, Inc.
       33 + */
  31   34  
  32   35  #include <sys/types.h>
  33   36  #include <sys/stat.h>
  34   37  #include <utime.h>
  35   38  #include <stdio.h>
  36   39  #include <stdlib.h>
  37   40  #include <unistd.h>
  38   41  #include <strings.h>
  39   42  #include <errno.h>
  40   43  #include <fcntl.h>
↓ open down ↓ 274 lines elided ↑ open up ↑
 315  318                  if (ret != 0) {
 316  319                          (void) fprintf(stderr, "get_file_time(%s %d) = %d\n",
 317  320                              tfile, timetest_table[i].type, ret);
 318  321                          return (1);
 319  322                  }
 320  323  
 321  324                  /*
 322  325                   * Sleep 2 seconds, then invoke command on given file
 323  326                   */
 324  327                  (void) sleep(2);
 325      -                timetest_table[i].func(tfile);
      328 +                (void) timetest_table[i].func(tfile);
 326  329  
 327  330                  /*
 328  331                   * Get time after operating.
 329  332                   */
 330  333                  ret = get_file_time(tfile, timetest_table[i].type, &t2);
 331  334                  if (ret != 0) {
 332  335                          (void) fprintf(stderr, "get_file_time(%s %d) = %d\n",
 333  336                              tfile, timetest_table[i].type, ret);
 334  337                          return (1);
 335  338                  }
↓ open down ↓ 14 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX