1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
/*=============================================================================
libsystem_dummy.c
===============================================================================
This is a dummy version of libsystem.c, for use on systems that don't
have the kind of process control that libsystem.c needs.
With this module, programs will build cleanly, but if a program actually
calls pm_system(), it will die with an error message saying that
the facility is not available.
=============================================================================*/
#include <assert.h>
#include "pm.h"
#include "pm_system.h"
void
pm_system_vp(const char * const progName,
const char ** const argArray,
void stdinFeeder(int, void *),
void * const feederParm,
void stdoutAccepter(int, void *),
void * const accepterParm) {
pm_error("This program wants to run another program using pm_system_vp() "
"in the libnetpbm library, but libnetpbm was built without "
"the pm_system_vp() facility -- probably because this system "
"doesn't have the process management facilities pm_system() "
"requires.");
}
void
pm_system_lp(const char * const progName,
void stdinFeeder(int, void *),
void * const feederParm,
void stdoutAccepter(int, void *),
void * const accepterParm,
...) {
pm_error("This program wants to run another program using pm_system_lp() "
"in the libnetpbm library, but libnetpbm was built without "
"the pm_system_lp() facility -- probably because this system "
"doesn't have the process management facilities pm_system() "
"requires.");
}
void
pm_system(void stdinFeeder(int, void *),
void * const feederParm,
void stdoutAccepter(int, void *),
void * const accepterParm,
const char * const shellCommand) {
pm_error("This program wants to run another program using pm_system() "
"in the libnetpbm library, but libnetpbm was built without "
"the pm_system() facility -- probably because this system "
"doesn't have the process management facilities pm_system() "
"requires.");
}
void
pm_feed_from_memory(int const pipeToFeedFd,
void * const feederParm) {
assert(FALSE); /* Can't ever run, since pm_system() is a dummy */
}
void
pm_accept_to_memory(int const pipetosuckFd,
void * const accepterParm) {
assert(FALSE); /* Can't ever run, since pm_system() is a dummy */
}
|