3 ?RCS: Copyright (c) 2000 Jarkko Hietaniemi
5 ?RCS: You may distribute under the terms of either the GNU General Public
6 ?RCS: License or the Artistic License, as specified in the README file.
8 ?MAKE:d_futimes: Compile cat rm_try run
11 ?S: This variable conditionally defines the HAS_FUTIMES symbol, which
12 ?S: indicates to the C program that the futimes() routine is available.
15 ?C: This symbol, if defined, indicates that the futimes routine is
16 ?C: available to change file descriptor time stamps with struct timevals.
18 ?H:#$d_futimes HAS_FUTIMES /**/
22 : check for a working futimes
25 echo "Checking if you have a working futimes()" >&4
35 fd = open ("try.c", O_RDWR);
36 if (-1 == fd) exit (1);
37 rv = futimes (fd, NULL);
38 exit (rv == -1 ? errno : 0);
42 if eval $compile; then
46 0) echo "Yes, you have" >&4
49 *) echo "No, you have futimes, but it isn't working ($rc) (probably harmless)" >&4
53 echo "No, it does not (probably harmless)" >&4