* texinfo.tex (\value): handle active _ or - in argument (happens
[make.git] / remote-stub.c
blob1ff9b04a73b5dc5266536ad20e3125b171064745
1 /* Template for the remote job exportation interface to GNU Make.
2 Copyright (C) 1988, 1989, 1992, 1993, 1996 Free Software Foundation, Inc.
3 This file is part of GNU Make.
5 GNU Make is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
10 GNU Make is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNU Make; see the file COPYING. If not, write to
17 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19 #include "make.h"
20 #include "filedef.h"
21 #include "job.h"
22 #include "commands.h"
25 char *remote_description = 0;
27 /* Call once at startup even if no commands are run. */
29 void
30 remote_setup ()
34 /* Called before exit. */
36 void
37 remote_cleanup ()
41 /* Return nonzero if the next job should be done remotely. */
43 int
44 start_remote_job_p (first_p)
45 int first_p;
47 return 0;
50 /* Start a remote job running the command in ARGV,
51 with environment from ENVP. It gets standard input from STDIN_FD. On
52 failure, return nonzero. On success, return zero, and set *USED_STDIN
53 to nonzero if it will actually use STDIN_FD, zero if not, set *ID_PTR to
54 a unique identification, and set *IS_REMOTE to zero if the job is local,
55 nonzero if it is remote (meaning *ID_PTR is a process ID). */
57 int
58 start_remote_job (argv, envp, stdin_fd, is_remote, id_ptr, used_stdin)
59 char **argv, **envp;
60 int stdin_fd;
61 int *is_remote;
62 int *id_ptr;
63 int *used_stdin;
65 return -1;
68 /* Get the status of a dead remote child. Block waiting for one to die
69 if BLOCK is nonzero. Set *EXIT_CODE_PTR to the exit status, *SIGNAL_PTR
70 to the termination signal or zero if it exited normally, and *COREDUMP_PTR
71 nonzero if it dumped core. Return the ID of the child that died,
72 0 if we would have to block and !BLOCK, or < 0 if there were none. */
74 int
75 remote_status (exit_code_ptr, signal_ptr, coredump_ptr, block)
76 int *exit_code_ptr, *signal_ptr, *coredump_ptr;
77 int block;
79 errno = ECHILD;
80 return -1;
83 /* Block asynchronous notification of remote child death.
84 If this notification is done by raising the child termination
85 signal, do not block that signal. */
86 void
87 block_remote_children ()
89 return;
92 /* Restore asynchronous notification of remote child death.
93 If this is done by raising the child termination signal,
94 do not unblock that signal. */
95 void
96 unblock_remote_children ()
98 return;
101 /* Send signal SIG to child ID. Return 0 if successful, -1 if not. */
103 remote_kill (id, sig)
104 int id;
105 int sig;
107 return -1;