home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJDEV201.ZIP / include / sys / system.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-31  |  1.2 KB  |  40 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_sys_system_h__
  3. #define __dj_include_sys_system_h__
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #ifndef __STRICT_ANSI__
  12.  
  13. #ifndef _POSIX_SOURCE
  14.  
  15. #define __system_redirect          0x0001 /* redirect internally */
  16. #define __system_call_cmdproc          0x0002 /* always call COMMAND/$SHELL */
  17. #define __system_use_shell          0x0004 /* use $SHELL if set */
  18. #define __system_allow_multiple_cmds  0x0008 /* allow `cmd1; cmd2; ...' */
  19. #define __system_allow_long_cmds      0x0010 /* handle commands > 126 chars  */
  20. #define __system_handle_null_commands 0x1000 /* ignore cmds with no effect */
  21. #define __system_ignore_chdir          0x2000 /* make `cd' be a null command */
  22. #define __system_emulate_chdir          0x4000 /* handle `cd' internally */
  23.  
  24. extern int __system_flags;
  25.  
  26. extern int _shell_command (const char *_prog, const char *_cmdline);
  27.  
  28. #endif /* !_POSIX_SOURCE */
  29. #endif /* !__STRICT_ANSI__ */
  30. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  31.  
  32. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  33. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  34.  
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38.  
  39. #endif /* __dj_include_sys_system_h__ */
  40.