From 1fd361a1ea06e44286c213ca1f814f49306fdc43 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 19 Aug 2006 03:12:28 +0000 Subject: Create Subversion repository git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/libsystem_dummy.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 lib/libsystem_dummy.c (limited to 'lib/libsystem_dummy.c') diff --git a/lib/libsystem_dummy.c b/lib/libsystem_dummy.c new file mode 100644 index 00000000..afe20dde --- /dev/null +++ b/lib/libsystem_dummy.c @@ -0,0 +1,47 @@ +/*============================================================================= + 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, program 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 + +#include "pm.h" +#include "pm_system.h" + +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 */ +} + -- cgit 1.4.1