VirtualBox

source: kBuild/vendor/gnumake/2003-11-23/remote-stub.c@ 3138

Last change on this file since 3138 was 54, checked in by (none), 21 years ago

This commit was manufactured by cvs2svn to create branch 'GNU'.

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette