home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / ViewKit_dev.idb / usr / include / Vk / VkChildrenHandler.h.z / VkChildrenHandler.h
Encoding:
C/C++ Source or Header  |  1996-09-20  |  2.0 KB  |  36 lines

  1. ////////////////////////////////////////////////////////////////////////////////
  2. ///////   Copyright 1992, Silicon Graphics, Inc.  All Rights Reserved.   ///////
  3. //                                                                            //
  4. // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;     //
  5. // the contents of this file may not be disclosed to third parties, copied    //
  6. // or duplicated in any form, in whole or in part, without the prior written  //
  7. // permission of Silicon Graphics, Inc.                                       //
  8. //                                                                            //
  9. // RESTRICTED RIGHTS LEGEND:                                                  //
  10. // Use,duplication or disclosure by the Government is subject to restrictions //
  11. // as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data     //
  12. // and Computer Software clause at DFARS 252.227-7013, and/or in similar or   //
  13. // successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -    //
  14. // rights reserved under the Copyright Laws of the United States.             //
  15. //                                                                            //
  16. ////////////////////////////////////////////////////////////////////////////////
  17. #ifndef _VK_CHILDREN_HANDLER_
  18. #define _VK_CHILDREN_HANDLER_
  19.  
  20. //
  21. // These routines are useful for clients which fork and exec children
  22. // processes.  VkInitializeChildrenHandler will take care of signals
  23. // generated by dying children and reap them.  VkParseCommand will take
  24. // a command string and return arguments suitable for execvp.  VkExecCommand
  25. // will take a command string and call execvp, similar to system() but
  26. // without using an extra process for the shell, and it closes the file
  27. // descriptors once forked.
  28. //
  29.  
  30. extern void VkInitializeChildrenHandler();
  31. extern void VkParseCommand(char *cmd, char **file, char ***argv);
  32. extern void VkFreeParsedCommand(char *file, char **argv);
  33. extern int VkExecCommand(char *cmdString, int terminateWithParent = 0);
  34.  
  35. #endif
  36.