version 1.33, 2000/09/14 13:46:44 |
version 1.34, 2000/09/14 13:52:41 |
|
|
* Return the modification time of a member of an archive. |
* Return the modification time of a member of an archive. |
* |
* |
* Results: |
* Results: |
* TRUE if found. |
* The modification time (seconds). |
* |
* |
* Side Effects: |
* Side Effects: |
* The mtime field of the given node is filled in with the value |
* The mtime field of the given node is filled in with the value |
* returned by the function. |
* returned by the function. |
* |
|
*----------------------------------------------------------------------- |
*----------------------------------------------------------------------- |
*/ |
*/ |
Boolean |
TIMESTAMP |
Arch_MTime (gn) |
Arch_MTime (gn) |
GNode *gn; /* Node describing archive member */ |
GNode *gn; /* Node describing archive member */ |
{ |
{ |
|
|
arhPtr = ArchStatMember(Varq_Value(ARCHIVE_INDEX, gn), |
arhPtr = ArchStatMember(Varq_Value(ARCHIVE_INDEX, gn), |
Varq_Value(MEMBER_INDEX, gn), |
Varq_Value(MEMBER_INDEX, gn), |
TRUE); |
TRUE); |
if (arhPtr != NULL) { |
if (arhPtr != NULL) |
gn->mtime = (time_t) strtol(arhPtr->ar_date, NULL, 10); |
gn->mtime = (time_t) strtol(arhPtr->ar_date, NULL, 10); |
return TRUE; |
else |
} else { |
|
gn->mtime = OUT_OF_DATE; |
gn->mtime = OUT_OF_DATE; |
return FALSE; |
return gn->mtime; |
} |
|
} |
} |
|
|
/*- |
/*- |