The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

execmac.c

Go to the documentation of this file.
00001 /*
00002  * Copyright 1993, 1995 Christopher Seiwald.
00003  *
00004  * This file is part of Jam - see jam.c for Copyright information.
00005  */
00006 
00007 # include "jam.h"
00008 # include "lists.h"
00009 # include "execcmd.h"
00010 # include <errno.h>
00011 
00012 # ifdef OS_MAC
00013 
00014 /*
00015  * execunix.c - execute a shell script on UNIX
00016  *
00017  * If $(JAMSHELL) is defined, uses that to formulate execvp().
00018  * The default is:
00019  *
00020  *      /bin/sh -c %
00021  *
00022  * Each word must be an individual element in a jam variable value.
00023  *
00024  * In $(JAMSHELL), % expands to the command string and ! expands to 
00025  * the slot number (starting at 1) for multiprocess (-j) invocations.
00026  * If $(JAMSHELL) doesn't include a %, it is tacked on as the last
00027  * argument.
00028  *
00029  * Don't just set JAMSHELL to /bin/sh - it won't work!
00030  *
00031  * External routines:
00032  *      execcmd() - launch an async command execution
00033  *      execwait() - wait and drive at most one execution completion
00034  *
00035  * Internal routines:
00036  *      onintr() - bump intr to note command interruption
00037  *
00038  * 04/08/94 (seiwald) - Coherent/386 support added.
00039  * 05/04/94 (seiwald) - async multiprocess interface
00040  * 01/22/95 (seiwald) - $(JAMSHELL) support
00041  */
00042 
00043 /*
00044  * execcmd() - launch an async command execution
00045  */
00046 
00047 void
00048 execcmd( 
00049         char *string,
00050         void (*func)( void *closure, int status ),
00051         void *closure,
00052         LIST *shell )
00053 {
00054         
00055         printf( "%s", string );
00056         (*func)( closure, EXEC_CMD_OK );
00057 }
00058 
00059 /*
00060  * execwait() - wait and drive at most one execution completion
00061  */
00062 
00063 int
00064 execwait()
00065 {
00066         return 0;
00067 }
00068 
00069 # endif /* OS_MAC */

Generated on Mon Nov 8 17:07:32 2004 for MPT by  doxygen 1.3.9.1