version 1.1, 1995/10/18 08:45:41 |
version 1.2, 1995/12/14 03:23:26 |
|
|
/* $NetBSD: arch.c,v 1.9 1995/06/14 15:18:46 christos Exp $ */ |
/* $NetBSD: arch.c,v 1.11 1995/11/22 17:39:53 christos Exp $ */ |
|
|
/* |
/* |
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California. |
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California. |
|
|
#if 0 |
#if 0 |
static char sccsid[] = "@(#)arch.c 5.7 (Berkeley) 12/28/90"; |
static char sccsid[] = "@(#)arch.c 5.7 (Berkeley) 12/28/90"; |
#else |
#else |
static char rcsid[] = "$NetBSD: arch.c,v 1.9 1995/06/14 15:18:46 christos Exp $"; |
static char rcsid[] = "$NetBSD: arch.c,v 1.11 1995/11/22 17:39:53 christos Exp $"; |
#endif |
#endif |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
|
|
#include <sys/param.h> |
#include <sys/param.h> |
#include <ctype.h> |
#include <ctype.h> |
#include <ar.h> |
#include <ar.h> |
|
#ifndef __svr4__ |
#include <ranlib.h> |
#include <ranlib.h> |
|
#endif |
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include "make.h" |
#include "make.h" |
|
|
strncpy(copy, member, AR_MAX_NAME_LEN); |
strncpy(copy, member, AR_MAX_NAME_LEN); |
copy[AR_MAX_NAME_LEN] = '\0'; |
copy[AR_MAX_NAME_LEN] = '\0'; |
} |
} |
if (he = Hash_FindEntry (&ar->members, copy)) |
if ((he = Hash_FindEntry (&ar->members, copy)) != NULL) |
return ((struct ar_hdr *) Hash_GetValue (he)); |
return ((struct ar_hdr *) Hash_GetValue (he)); |
return ((struct ar_hdr *) NULL); |
return ((struct ar_hdr *) NULL); |
} |
} |
|
|
} else if ((gn->mtime > now) || (gn->mtime < gn->cmtime)) { |
} else if ((gn->mtime > now) || (gn->mtime < gn->cmtime)) { |
oodate = TRUE; |
oodate = TRUE; |
} else { |
} else { |
|
#ifdef RANLIBMAG |
struct ar_hdr *arhPtr; /* Header for __.SYMDEF */ |
struct ar_hdr *arhPtr; /* Header for __.SYMDEF */ |
int modTimeTOC; /* The table-of-contents's mod time */ |
int modTimeTOC; /* The table-of-contents's mod time */ |
|
|
|
|
} |
} |
oodate = TRUE; |
oodate = TRUE; |
} |
} |
|
#else |
|
oodata = FALSE; |
|
#endif |
} |
} |
return (oodate); |
return (oodate); |
} |
} |