home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / gnu / make3_60.lzh / MAKE3_60 / REMOTE-S.C < prev    next >
C/C++ Source or Header  |  1993-07-30  |  3KB  |  92 lines

  1. /* Copyright (C) 1988, 1989 Free Software Foundation, Inc.
  2. This file is part of GNU Make.
  3.  
  4. GNU Make is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 1, or (at your option)
  7. any later version.
  8.  
  9. GNU Make is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. GNU General Public License for more details.
  13.  
  14. You should have received a copy of the GNU General Public License
  15. along with GNU Make; see the file COPYING.  If not, write to
  16. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. #include "make.h"
  19. #include "commands.h"
  20.  
  21.  
  22. char *remote_description = 0;
  23.  
  24.  
  25. /* Return nonzero if the next job should be done remotely.  */
  26.  
  27. int
  28. start_remote_job_p ()
  29. {
  30.   return 0;
  31. }
  32.  
  33. /* Start a remote job running the command in ARGV.
  34.    It gets standard input from STDIN_FD.  On failure,
  35.    return nonzero.  On success, return zero, and set
  36.    *USED_STDIN to nonzero if it will actually use STDIN_FD,
  37.    zero if not, set *ID_PTR to a unique identification, and
  38.    set *IS_REMOTE to zero if the job is local, nonzero if it
  39.    is remote (meaning *ID_PTR is a process ID).  */
  40.  
  41. int
  42. start_remote_job (argv, stdin_fd, is_remote, id_ptr, used_stdin)
  43.      char **argv;
  44.      int stdin_fd;
  45.      int *is_remote;
  46.      int *id_ptr;
  47.      int *used_stdin;
  48. {
  49.   return -1;
  50. }
  51.  
  52. /* Get the status of a dead remote child.  Block waiting for one to die
  53.    if BLOCK is nonzero.  Set *EXIT_CODE_PTR to the exit status, *SIGNAL_PTR
  54.    to the termination signal or zero if it exited normally, and *COREDUMP_PTR
  55.    nonzero if it dumped core.  Return the ID of the child that died,
  56.    0 if we would have to block and !BLOCK, or < 0 if there were none.  */
  57.  
  58. int
  59. remote_status (exit_code_ptr, signal_ptr, coredump_ptr, block)
  60.      int *exit_code_ptr, *signal_ptr, *coredump_ptr;
  61.      int block;
  62. {
  63.   return -1;
  64. }
  65.  
  66. /* Block asynchronous notification of remote child death.
  67.    If this notification is done by raising the child termination
  68.    signal, do not block that signal.  */
  69. void
  70. block_remote_children ()
  71. {
  72.   return;
  73. }
  74.  
  75. /* Restore asynchronous notification of remote child death.
  76.    If this is done by raising the child termination signal,
  77.    do not unblock that signal.  */
  78. void
  79. unblock_remote_children ()
  80. {
  81.   return;
  82. }
  83.  
  84. /* Send signal SIG to child ID.  Return 0 if successful, -1 if not.  */
  85. int
  86. remote_kill (id, sig)
  87.      int id;
  88.      int sig;
  89. {
  90.   return -1;
  91. }
  92.