version 1.31, 2000/06/23 16:20:01 |
version 1.32, 2000/09/14 13:32:05 |
|
|
* SUCH DAMAGE. |
* SUCH DAMAGE. |
*/ |
*/ |
|
|
#ifndef lint |
|
#if 0 |
|
static char sccsid[] = "@(#)arch.c 8.2 (Berkeley) 1/2/94"; |
|
#else |
|
static char rcsid[] = "$OpenBSD$"; |
|
#endif |
|
#endif /* not lint */ |
|
|
|
/*- |
/*- |
* arch.c -- |
* arch.c -- |
* Functions to manipulate libraries, archives and their members. |
* Functions to manipulate libraries, archives and their members. |
|
|
#include "dir.h" |
#include "dir.h" |
#include "config.h" |
#include "config.h" |
|
|
|
#ifndef lint |
|
#if 0 |
|
static char sccsid[] = "@(#)arch.c 8.2 (Berkeley) 1/2/94"; |
|
#else |
|
UNUSED |
|
static char rcsid[] = "$OpenBSD$"; |
|
#endif |
|
#endif /* not lint */ |
|
|
#ifdef TARGET_MACHINE |
#ifdef TARGET_MACHINE |
#undef MACHINE |
#undef MACHINE |
#define MACHINE TARGET_MACHINE |
#define MACHINE TARGET_MACHINE |
|
|
GNode *gn; /* Node describing archive member */ |
GNode *gn; /* Node describing archive member */ |
{ |
{ |
struct ar_hdr *arhPtr; /* Header of desired member */ |
struct ar_hdr *arhPtr; /* Header of desired member */ |
time_t modTime; /* Modification time as an integer */ |
|
|
|
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) { |