update dev300-m58
[ooovba.git] / dmake / msdos / arlib.c
blobb95a33d41ef12fccab373a28d98b6a0d4bcce52d
1 /* RCS $Id: arlib.c,v 1.1.1.1 2000-09-22 15:33:27 hr Exp $
2 --
3 -- SYNOPSIS
4 -- Library access code.
5 --
6 -- DESCRIPTION
7 -- This implementation uses the library timestamp inplace of the
8 -- library member timestamp.
9 --
10 -- AUTHOR
11 -- Dennis Vadura, dvadura@dmake.wticorp.com
13 -- WWW
14 -- http://dmake.wticorp.com/
16 -- COPYRIGHT
17 -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
18 --
19 -- This program is NOT free software; you can redistribute it and/or
20 -- modify it under the terms of the Software License Agreement Provided
21 -- in the file <distribution-root>/readme/license.txt.
23 -- LOG
24 -- Use cvs log to obtain detailed change logs.
27 #include "extern.h"
29 PUBLIC time_t
30 seek_arch(name, lib)
31 char* name;
32 char* lib;
34 static int warned = FALSE;
36 if (!warned && !(Glob_attr&A_SILENT))
37 warned = TRUE,
38 Warning("Can't extract library member timestamp;\n\
39 using library timestamp instead.");
40 return (Do_stat(lib, NULL, NULL, TRUE));
43 PUBLIC int
44 touch_arch(name, lib)
45 char* name;
46 char* lib;
48 static int warned = FALSE;
50 if (!warned && !(Glob_attr&A_SILENT))
51 warned = TRUE,
52 Warning("Can't update library member timestamp;\n\
53 touching library instead.");
54 return (Do_touch(lib, NULL, NULL));