home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dmake40.zip / msdos / arlib.c < prev    next >
C/C++ Source or Header  |  1994-10-23  |  2KB  |  66 lines

  1. /* RCS      -- $Header: /u5/dvadura/src/public/dmake/src/msdos/RCS/arlib.c,v 1.1 1994/10/06 17:41:37 dvadura Exp $
  2. -- SYNOPSIS -- Library access code.
  3. -- 
  4. -- DESCRIPTION
  5. --    This implementation uses the library timestamp inplace of the
  6. --    library member timestamp.
  7. --
  8. -- AUTHOR
  9. --      Dennis Vadura, dvadura@watdragon.uwaterloo.ca
  10. --      CS DEPT, University of Waterloo, Waterloo, Ont., Canada
  11. --
  12. -- COPYRIGHT
  13. --      Copyright (c) 1992,1994 by Dennis Vadura.  All rights reserved.
  14. -- 
  15. --      This program is free software; you can redistribute it and/or
  16. --      modify it under the terms of the GNU General Public License
  17. --      (version 1), as published by the Free Software Foundation, and
  18. --      found in the file 'LICENSE' included with this distribution.
  19. -- 
  20. --      This program is distributed in the hope that it will be useful,
  21. --      but WITHOUT ANY WARRANTY; without even the implied warrant of
  22. --      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  23. --      GNU General Public License for more details.
  24. -- 
  25. --      You should have received a copy of the GNU General Public License
  26. --      along with this program;  if not, write to the Free Software
  27. --      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  28. --
  29. -- LOG
  30. --     $Log: arlib.c,v $
  31.  * Revision 1.1  1994/10/06  17:41:37  dvadura
  32.  * dmake Release Version 4.0, Initial revision
  33.  *
  34. */
  35.  
  36. #include "extern.h"
  37.  
  38. PUBLIC time_t
  39. seek_arch(name, lib)
  40. char*    name;
  41. char*    lib;
  42. {
  43.    static    int    warned = FALSE;
  44.  
  45.    if (!warned && !(Glob_attr&A_SILENT))
  46.        warned = TRUE,
  47.        Warning("Can't extract library member timestamp;\n\
  48.        using library timestamp instead.");
  49.    return (Do_stat(lib, NULL, NULL, TRUE));
  50. }
  51.  
  52. PUBLIC int
  53. touch_arch(name, lib)
  54. char*    name;
  55. char*    lib;
  56. {
  57.    static    int    warned = FALSE;
  58.  
  59.    if (!warned && !(Glob_attr&A_SILENT))
  60.        warned = TRUE,
  61.        Warning("Can't update library member timestamp;\n\
  62.        touching library instead.");
  63.    return (Do_touch(lib, NULL, NULL));
  64. }
  65.  
  66.