home *** CD-ROM | disk | FTP | other *** search
/ Zodiac Super OZ / MEDIADEPOT.ISO / FILES / 13 / DJCRX201.ZIP / include / libc / dosexec.h < prev    next >
C/C++ Source or Header  |  1995-04-28  |  926b  |  39 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_libc_dosexec_h__
  3. #define __dj_include_libc_dosexec_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. extern char *__dosexec_find_on_path(const char *program, char *envp[], char *buf);
  16. extern int __dosexec_in_system;
  17.  
  18. #define scan_ptr() \
  19.     const char **ptr; \
  20.     union { const char **ccpp; const char *ccp; } u; \
  21.     for (ptr = &argv0; *ptr; ptr++); \
  22.     u.ccp = *++ptr; \
  23.     ptr = u.ccpp;
  24.  
  25. extern int __dosexec_command_exec(const char *program, char **argv, char **envp);
  26.  
  27. #endif /* !_POSIX_SOURCE */
  28. #endif /* !__STRICT_ANSI__ */
  29. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  30.  
  31. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  32. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  33.  
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37.  
  38. #endif /* __dj_include_libc_dosexec_h__ */
  39.