version 1.37, 2000/09/14 13:52:42 |
version 1.38, 2000/11/24 14:36:34 |
|
|
Boolean silent; /* TRUE if should not print messages */ |
Boolean silent; /* TRUE if should not print messages */ |
{ |
{ |
int streamID; /* ID of stream opened to do the touch */ |
int streamID; /* ID of stream opened to do the touch */ |
struct utimbuf times; /* Times for utime() call */ |
|
|
|
if (gn->type & (OP_JOIN|OP_USE|OP_EXEC|OP_OPTIONAL)) { |
if (gn->type & (OP_JOIN|OP_USE|OP_EXEC|OP_OPTIONAL)) { |
/* |
/* |
|
|
} else { |
} else { |
char *file = gn->path ? gn->path : gn->name; |
char *file = gn->path ? gn->path : gn->name; |
|
|
times.actime = times.modtime = now; |
if (set_times(file) == -1) { |
if (utime(file, ×) < 0){ |
|
streamID = open(file, O_RDWR | O_CREAT, 0666); |
streamID = open(file, O_RDWR | O_CREAT, 0666); |
|
|
if (streamID >= 0) { |
if (streamID >= 0) { |