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

  1. /* RCS      -- $Header: /u5/dvadura/src/public/dmake/src/mac/RCS/bogus.c,v 1.1 1994/10/06 17:42:55 dvadura Exp $
  2. -- SYNOPSIS -- Write the shell of subroutines we can't or don't
  3. --             need to implement
  4. --
  5. -- DESCRIPTION
  6. --  dmake uses a couple of functions which I am either unable to figure out
  7. --  how to implement or which are not needed.  The shells of these routines
  8. --  are in this file.
  9. --
  10. -- AUTHOR
  11. --      Dennis Vadura, dvadura@watdragon.uwaterloo.ca
  12. --      CS DEPT, University of Waterloo, Waterloo, Ont., Canada
  13. --
  14. --
  15. -- COPYRIGHT
  16. --      Copyright (c) 1992,1994 by Dennis Vadura.  All rights reserved.
  17. -- 
  18. --      This program is free software; you can redistribute it and/or
  19. --      modify it under the terms of the GNU General Public License
  20. --      (version 1), as published by the Free Software Foundation, and
  21. --      found in the file 'LICENSE' included with this distribution.
  22. -- 
  23. --      This program is distributed in the hope that it will be useful,
  24. --      but WITHOUT ANY WARRANTY; without even the implied warrant of
  25. --      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  26. --      GNU General Public License for more details.
  27. -- 
  28. --      You should have received a copy of the GNU General Public License
  29. --      along with this program;  if not, write to the Free Software
  30. --      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  31. --
  32. -- LOG
  33. --     $Log: bogus.c,v $
  34.  * Revision 1.1  1994/10/06  17:42:55  dvadura
  35.  * dmake Release Version 4.0, Initial revision
  36.  *
  37. */
  38.  
  39. #include "extern.h"
  40.  
  41.  
  42.  
  43. /*
  44.  * tzset() is a Microsoft "extension" to ANSI C.  It sets global
  45.  * variables telling if we are in dayling savings time, the time
  46.  * zone, and difference between the current time and GMT.
  47.  * None of these globals are used by dmake, so this routine is
  48.  * not needed
  49.  */
  50. PUBLIC void
  51. tzset ()
  52. {
  53. }
  54.  
  55.  
  56.  
  57. /*
  58.  * Add an environmental variable that child processes can use.
  59.  * Since MPW currently doesn't allow child processes, this isn't
  60.  * needed.
  61.  */
  62. PUBLIC int
  63. putenv (char *pEnvString)
  64. {
  65.   return (0);
  66. }
  67.  
  68.  
  69.  
  70. /*
  71.  * Execute a child process.  This may be able to be done with
  72.  * the MPW system() call someday, but cannot be done currently.
  73.  */
  74. PUBLIC int
  75. runargv (CELLPTR target, int ignore, int,
  76.      int last, int shell, char *pCmd)
  77. {
  78.     static int warned = FALSE;
  79.  
  80.     if (!warned && !(Glob_attr & A_SILENT)) {
  81.         warned = TRUE;
  82.         Fatal ("Can't execute any targets:  use '-n' option.");
  83.     } /* if */
  84.  
  85.     return (0);
  86. } /* int runargv () */
  87.  
  88.  
  89.  
  90. /*
  91.  * Wait for the child process to complete.  Only needed to be implemented
  92.  * if we could executing multiple processes at once.
  93.  */
  94. PUBLIC int
  95. Wait_for_child(int abort_flg, int pid)
  96. {
  97.   return (1);
  98. }
  99.  
  100.  
  101.  
  102. /*
  103.  * Do any cleanup for any processes when we quit.
  104.  */
  105. PUBLIC void
  106. Clean_up_processes()
  107. {
  108. }
  109.