Process.h.in 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing#kwsys for details. */
  3. #ifndef @KWSYS_NAMESPACE@_Process_h
  4. #define @KWSYS_NAMESPACE@_Process_h
  5. #include <@KWSYS_NAMESPACE@/Configure.h>
  6. /* Redefine all public interface symbol names to be in the proper
  7. namespace. These macros are used internally to kwsys only, and are
  8. not visible to user code. Use kwsysHeaderDump.pl to reproduce
  9. these macros after making changes to the interface. */
  10. #if !defined(KWSYS_NAMESPACE)
  11. #define kwsys_ns(x) @KWSYS_NAMESPACE@##x
  12. #define kwsysEXPORT @KWSYS_NAMESPACE@_EXPORT
  13. #endif
  14. #if !@KWSYS_NAMESPACE@_NAME_IS_KWSYS
  15. #define kwsysProcess kwsys_ns(Process)
  16. #define kwsysProcess_s kwsys_ns(Process_s)
  17. #define kwsysProcess_New kwsys_ns(Process_New)
  18. #define kwsysProcess_Delete kwsys_ns(Process_Delete)
  19. #define kwsysProcess_SetCommand kwsys_ns(Process_SetCommand)
  20. #define kwsysProcess_AddCommand kwsys_ns(Process_AddCommand)
  21. #define kwsysProcess_SetTimeout kwsys_ns(Process_SetTimeout)
  22. #define kwsysProcess_SetWorkingDirectory kwsys_ns(Process_SetWorkingDirectory)
  23. #define kwsysProcess_SetPipeFile kwsys_ns(Process_SetPipeFile)
  24. #define kwsysProcess_SetPipeNative kwsys_ns(Process_SetPipeNative)
  25. #define kwsysProcess_SetPipeShared kwsys_ns(Process_SetPipeShared)
  26. #define kwsysProcess_Option_Detach kwsys_ns(Process_Option_Detach)
  27. #define kwsysProcess_Option_HideWindow kwsys_ns(Process_Option_HideWindow)
  28. #define kwsysProcess_Option_MergeOutput kwsys_ns(Process_Option_MergeOutput)
  29. #define kwsysProcess_Option_Verbatim kwsys_ns(Process_Option_Verbatim)
  30. #define kwsysProcess_Option_CreateProcessGroup \
  31. kwsys_ns(Process_Option_CreateProcessGroup)
  32. #define kwsysProcess_GetOption kwsys_ns(Process_GetOption)
  33. #define kwsysProcess_SetOption kwsys_ns(Process_SetOption)
  34. #define kwsysProcess_Option_e kwsys_ns(Process_Option_e)
  35. #define kwsysProcess_State_Starting kwsys_ns(Process_State_Starting)
  36. #define kwsysProcess_State_Error kwsys_ns(Process_State_Error)
  37. #define kwsysProcess_State_Exception kwsys_ns(Process_State_Exception)
  38. #define kwsysProcess_State_Executing kwsys_ns(Process_State_Executing)
  39. #define kwsysProcess_State_Exited kwsys_ns(Process_State_Exited)
  40. #define kwsysProcess_State_Expired kwsys_ns(Process_State_Expired)
  41. #define kwsysProcess_State_Killed kwsys_ns(Process_State_Killed)
  42. #define kwsysProcess_State_Disowned kwsys_ns(Process_State_Disowned)
  43. #define kwsysProcess_State_e kwsys_ns(Process_State_e)
  44. #define kwsysProcess_Exception_None kwsys_ns(Process_Exception_None)
  45. #define kwsysProcess_Exception_Fault kwsys_ns(Process_Exception_Fault)
  46. #define kwsysProcess_Exception_Illegal kwsys_ns(Process_Exception_Illegal)
  47. #define kwsysProcess_Exception_Interrupt kwsys_ns(Process_Exception_Interrupt)
  48. #define kwsysProcess_Exception_Numerical kwsys_ns(Process_Exception_Numerical)
  49. #define kwsysProcess_Exception_Other kwsys_ns(Process_Exception_Other)
  50. #define kwsysProcess_Exception_e kwsys_ns(Process_Exception_e)
  51. #define kwsysProcess_GetState kwsys_ns(Process_GetState)
  52. #define kwsysProcess_GetExitException kwsys_ns(Process_GetExitException)
  53. #define kwsysProcess_GetExitCode kwsys_ns(Process_GetExitCode)
  54. #define kwsysProcess_GetExitValue kwsys_ns(Process_GetExitValue)
  55. #define kwsysProcess_GetErrorString kwsys_ns(Process_GetErrorString)
  56. #define kwsysProcess_GetExceptionString kwsys_ns(Process_GetExceptionString)
  57. #define kwsysProcess_GetStateByIndex kwsys_ns(Process_GetStateByIndex)
  58. #define kwsysProcess_GetExitExceptionByIndex \
  59. kwsys_ns(Process_GetExitExceptionByIndex)
  60. #define kwsysProcess_GetExitCodeByIndex kwsys_ns(Process_GetExitCodeByIndex)
  61. #define kwsysProcess_GetExitValueByIndex kwsys_ns(Process_GetExitValueByIndex)
  62. #define kwsysProcess_GetExceptionStringByIndex \
  63. kwsys_ns(Process_GetExceptionStringByIndex)
  64. #define kwsysProcess_GetExitCodeByIndex kwsys_ns(Process_GetExitCodeByIndex)
  65. #define kwsysProcess_Execute kwsys_ns(Process_Execute)
  66. #define kwsysProcess_Disown kwsys_ns(Process_Disown)
  67. #define kwsysProcess_WaitForData kwsys_ns(Process_WaitForData)
  68. #define kwsysProcess_Pipes_e kwsys_ns(Process_Pipes_e)
  69. #define kwsysProcess_Pipe_None kwsys_ns(Process_Pipe_None)
  70. #define kwsysProcess_Pipe_STDIN kwsys_ns(Process_Pipe_STDIN)
  71. #define kwsysProcess_Pipe_STDOUT kwsys_ns(Process_Pipe_STDOUT)
  72. #define kwsysProcess_Pipe_STDERR kwsys_ns(Process_Pipe_STDERR)
  73. #define kwsysProcess_Pipe_Timeout kwsys_ns(Process_Pipe_Timeout)
  74. #define kwsysProcess_Pipe_Handle kwsys_ns(Process_Pipe_Handle)
  75. #define kwsysProcess_WaitForExit kwsys_ns(Process_WaitForExit)
  76. #define kwsysProcess_Interrupt kwsys_ns(Process_Interrupt)
  77. #define kwsysProcess_Kill kwsys_ns(Process_Kill)
  78. #define kwsysProcess_ResetStartTime kwsys_ns(Process_ResetStartTime)
  79. #endif
  80. #if defined(__cplusplus)
  81. extern "C" {
  82. #endif
  83. /**
  84. * Process control data structure.
  85. */
  86. typedef struct kwsysProcess_s kwsysProcess;
  87. /* Platform-specific pipe handle type. */
  88. #if defined(_WIN32) && !defined(__CYGWIN__)
  89. typedef void* kwsysProcess_Pipe_Handle;
  90. #else
  91. typedef int kwsysProcess_Pipe_Handle;
  92. #endif
  93. /**
  94. * Create a new Process instance.
  95. */
  96. kwsysEXPORT kwsysProcess* kwsysProcess_New(void);
  97. /**
  98. * Delete an existing Process instance. If the instance is currently
  99. * executing a process, this blocks until the process terminates.
  100. */
  101. kwsysEXPORT void kwsysProcess_Delete(kwsysProcess* cp);
  102. /**
  103. * Set the command line to be executed. Argument is an array of
  104. * pointers to the command and each argument. The array must end with
  105. * a NULL pointer. Any previous command lines are removed. Returns
  106. * 1 for success and 0 otherwise.
  107. */
  108. kwsysEXPORT int kwsysProcess_SetCommand(kwsysProcess* cp,
  109. char const* const* command);
  110. /**
  111. * Add a command line to be executed. Argument is an array of
  112. * pointers to the command and each argument. The array must end with
  113. * a NULL pointer. If this is not the first command added, its
  114. * standard input will be connected to the standard output of the
  115. * previous command. Returns 1 for success and 0 otherwise.
  116. */
  117. kwsysEXPORT int kwsysProcess_AddCommand(kwsysProcess* cp,
  118. char const* const* command);
  119. /**
  120. * Set the timeout in seconds for the child process. The timeout
  121. * period begins when the child is executed. If the child has not
  122. * terminated when the timeout expires, it will be killed. A
  123. * non-positive (<= 0) value will disable the timeout.
  124. */
  125. kwsysEXPORT void kwsysProcess_SetTimeout(kwsysProcess* cp, double timeout);
  126. /**
  127. * Set the working directory for the child process. The working
  128. * directory can be absolute or relative to the current directory.
  129. * Returns 1 for success and 0 for failure.
  130. */
  131. kwsysEXPORT int kwsysProcess_SetWorkingDirectory(kwsysProcess* cp,
  132. const char* dir);
  133. /**
  134. * Set the name of a file to be attached to the given pipe. Returns 1
  135. * for success and 0 for failure.
  136. */
  137. kwsysEXPORT int kwsysProcess_SetPipeFile(kwsysProcess* cp, int pipe,
  138. const char* file);
  139. /**
  140. * Set whether the given pipe in the child is shared with the parent
  141. * process. The default is no for Pipe_STDOUT and Pipe_STDERR and yes
  142. * for Pipe_STDIN.
  143. */
  144. kwsysEXPORT void kwsysProcess_SetPipeShared(kwsysProcess* cp, int pipe,
  145. int shared);
  146. /**
  147. * Specify a platform-specific native pipe for use as one of the child
  148. * interface pipes. The native pipe is specified by an array of two
  149. * descriptors or handles. The first entry in the array (index 0)
  150. * should be the read end of the pipe. The second entry in the array
  151. * (index 1) should be the write end of the pipe. If a null pointer
  152. * is given the option will be disabled.
  153. *
  154. * For Pipe_STDIN the native pipe is connected to the first child in
  155. * the pipeline as its stdin. After the children are created the
  156. * write end of the pipe will be closed in the child process and the
  157. * read end will be closed in the parent process.
  158. *
  159. * For Pipe_STDOUT and Pipe_STDERR the pipe is connected to the last
  160. * child as its stdout or stderr. After the children are created the
  161. * write end of the pipe will be closed in the parent process and the
  162. * read end will be closed in the child process.
  163. */
  164. kwsysEXPORT void kwsysProcess_SetPipeNative(kwsysProcess* cp, int pipe,
  165. kwsysProcess_Pipe_Handle p[2]);
  166. /**
  167. * Get/Set a possibly platform-specific option. Possible options are:
  168. *
  169. * kwsysProcess_Option_Detach = Whether to detach the process.
  170. * 0 = No (default)
  171. * 1 = Yes
  172. *
  173. * kwsysProcess_Option_HideWindow = Whether to hide window on Windows.
  174. * 0 = No (default)
  175. * 1 = Yes
  176. *
  177. * kwsysProcess_Option_MergeOutput = Whether to merge stdout/stderr.
  178. * No content will be returned as stderr.
  179. * Any actual stderr will be on stdout.
  180. * 0 = No (default)
  181. * 1 = Yes
  182. *
  183. * kwsysProcess_Option_Verbatim = Whether SetCommand and AddCommand
  184. * should treat the first argument
  185. * as a verbatim command line
  186. * and ignore the rest of the arguments.
  187. * 0 = No (default)
  188. * 1 = Yes
  189. *
  190. * kwsysProcess_Option_CreateProcessGroup = Whether to place the process in a
  191. * new process group. This is
  192. * useful if you want to send Ctrl+C
  193. * to the process. On UNIX, also
  194. * places the process in a new
  195. * session.
  196. * 0 = No (default)
  197. * 1 = Yes
  198. */
  199. kwsysEXPORT int kwsysProcess_GetOption(kwsysProcess* cp, int optionId);
  200. kwsysEXPORT void kwsysProcess_SetOption(kwsysProcess* cp, int optionId,
  201. int value);
  202. enum kwsysProcess_Option_e
  203. {
  204. kwsysProcess_Option_HideWindow,
  205. kwsysProcess_Option_Detach,
  206. kwsysProcess_Option_MergeOutput,
  207. kwsysProcess_Option_Verbatim,
  208. kwsysProcess_Option_CreateProcessGroup
  209. };
  210. /**
  211. * Get the current state of the Process instance. Possible states are:
  212. *
  213. * kwsysProcess_State_Starting = Execute has not yet been called.
  214. * kwsysProcess_State_Error = Error administrating the child process.
  215. * kwsysProcess_State_Exception = Child process exited abnormally.
  216. * kwsysProcess_State_Executing = Child process is currently running.
  217. * kwsysProcess_State_Exited = Child process exited normally.
  218. * kwsysProcess_State_Expired = Child process's timeout expired.
  219. * kwsysProcess_State_Killed = Child process terminated by Kill method.
  220. * kwsysProcess_State_Disowned = Child is no longer managed by this object.
  221. */
  222. kwsysEXPORT int kwsysProcess_GetState(kwsysProcess* cp);
  223. enum kwsysProcess_State_e
  224. {
  225. kwsysProcess_State_Starting,
  226. kwsysProcess_State_Error,
  227. kwsysProcess_State_Exception,
  228. kwsysProcess_State_Executing,
  229. kwsysProcess_State_Exited,
  230. kwsysProcess_State_Expired,
  231. kwsysProcess_State_Killed,
  232. kwsysProcess_State_Disowned
  233. };
  234. /**
  235. * When GetState returns "Exception", this method returns a
  236. * platform-independent description of the exceptional behavior that
  237. * caused the child to terminate abnormally. Possible exceptions are:
  238. *
  239. * kwsysProcess_Exception_None = No exceptional behavior occurred.
  240. * kwsysProcess_Exception_Fault = Child crashed with a memory fault.
  241. * kwsysProcess_Exception_Illegal = Child crashed with an illegal
  242. * instruction.
  243. * kwsysProcess_Exception_Interrupt = Child was interrupted by user
  244. * (Cntl-C/Break).
  245. * kwsysProcess_Exception_Numerical = Child crashed with a numerical
  246. * exception.
  247. * kwsysProcess_Exception_Other = Child terminated for another reason.
  248. */
  249. kwsysEXPORT int kwsysProcess_GetExitException(kwsysProcess* cp);
  250. enum kwsysProcess_Exception_e
  251. {
  252. kwsysProcess_Exception_None,
  253. kwsysProcess_Exception_Fault,
  254. kwsysProcess_Exception_Illegal,
  255. kwsysProcess_Exception_Interrupt,
  256. kwsysProcess_Exception_Numerical,
  257. kwsysProcess_Exception_Other
  258. };
  259. /**
  260. * When GetState returns "Exited" or "Exception", this method returns
  261. * the platform-specific raw exit code of the process. UNIX platforms
  262. * should use WIFEXITED/WEXITSTATUS and WIFSIGNALED/WTERMSIG to access
  263. * this value. Windows users should compare the value to the various
  264. * EXCEPTION_* values.
  265. *
  266. * If GetState returns "Exited", use GetExitValue to get the
  267. * platform-independent child return value.
  268. */
  269. kwsysEXPORT int kwsysProcess_GetExitCode(kwsysProcess* cp);
  270. /**
  271. * When GetState returns "Exited", this method returns the child's
  272. * platform-independent exit code (such as the value returned by the
  273. * child's main).
  274. */
  275. kwsysEXPORT int kwsysProcess_GetExitValue(kwsysProcess* cp);
  276. /**
  277. * When GetState returns "Error", this method returns a string
  278. * describing the problem. Otherwise, it returns NULL.
  279. */
  280. kwsysEXPORT const char* kwsysProcess_GetErrorString(kwsysProcess* cp);
  281. /**
  282. * When GetState returns "Exception", this method returns a string
  283. * describing the problem. Otherwise, it returns NULL.
  284. */
  285. kwsysEXPORT const char* kwsysProcess_GetExceptionString(kwsysProcess* cp);
  286. /**
  287. * Get the current state of the Process instance. Possible states are:
  288. *
  289. * kwsysProcess_StateByIndex_Starting = Execute has not yet been called.
  290. * kwsysProcess_StateByIndex_Exception = Child process exited abnormally.
  291. * kwsysProcess_StateByIndex_Exited = Child process exited normally.
  292. * kwsysProcess_StateByIndex_Error = Error getting the child return code.
  293. */
  294. kwsysEXPORT int kwsysProcess_GetStateByIndex(kwsysProcess* cp, int idx);
  295. enum kwsysProcess_StateByIndex_e
  296. {
  297. kwsysProcess_StateByIndex_Starting = kwsysProcess_State_Starting,
  298. kwsysProcess_StateByIndex_Exception = kwsysProcess_State_Exception,
  299. kwsysProcess_StateByIndex_Exited = kwsysProcess_State_Exited,
  300. kwsysProcess_StateByIndex_Error = kwsysProcess_State_Error
  301. };
  302. /**
  303. * When GetState returns "Exception", this method returns a
  304. * platform-independent description of the exceptional behavior that
  305. * caused the child to terminate abnormally. Possible exceptions are:
  306. *
  307. * kwsysProcess_Exception_None = No exceptional behavior occurred.
  308. * kwsysProcess_Exception_Fault = Child crashed with a memory fault.
  309. * kwsysProcess_Exception_Illegal = Child crashed with an illegal
  310. * instruction.
  311. * kwsysProcess_Exception_Interrupt = Child was interrupted by user
  312. * (Cntl-C/Break).
  313. * kwsysProcess_Exception_Numerical = Child crashed with a numerical
  314. * exception.
  315. * kwsysProcess_Exception_Other = Child terminated for another reason.
  316. */
  317. kwsysEXPORT int kwsysProcess_GetExitExceptionByIndex(kwsysProcess* cp,
  318. int idx);
  319. /**
  320. * When GetState returns "Exited" or "Exception", this method returns
  321. * the platform-specific raw exit code of the process. UNIX platforms
  322. * should use WIFEXITED/WEXITSTATUS and WIFSIGNALED/WTERMSIG to access
  323. * this value. Windows users should compare the value to the various
  324. * EXCEPTION_* values.
  325. *
  326. * If GetState returns "Exited", use GetExitValue to get the
  327. * platform-independent child return value.
  328. */
  329. kwsysEXPORT int kwsysProcess_GetExitCodeByIndex(kwsysProcess* cp, int idx);
  330. /**
  331. * When GetState returns "Exited", this method returns the child's
  332. * platform-independent exit code (such as the value returned by the
  333. * child's main).
  334. */
  335. kwsysEXPORT int kwsysProcess_GetExitValueByIndex(kwsysProcess* cp, int idx);
  336. /**
  337. * When GetState returns "Exception", this method returns a string
  338. * describing the problem. Otherwise, it returns NULL.
  339. */
  340. kwsysEXPORT const char* kwsysProcess_GetExceptionStringByIndex(
  341. kwsysProcess* cp, int idx);
  342. /**
  343. * Start executing the child process.
  344. */
  345. kwsysEXPORT void kwsysProcess_Execute(kwsysProcess* cp);
  346. /**
  347. * Stop management of a detached child process. This closes any pipes
  348. * being read. If the child was not created with the
  349. * kwsysProcess_Option_Detach option, this method does nothing. This
  350. * is because disowning a non-detached process will cause the child
  351. * exit signal to be left unhandled until this process exits.
  352. */
  353. kwsysEXPORT void kwsysProcess_Disown(kwsysProcess* cp);
  354. /**
  355. * Block until data are available on a pipe, a timeout expires, or the
  356. * child process terminates. Arguments are as follows:
  357. *
  358. * data = If data are read, the pointer to which this points is
  359. * set to point to the data.
  360. * length = If data are read, the integer to which this points is
  361. * set to the length of the data read.
  362. * timeout = Specifies the maximum time this call may block. Upon
  363. * return after reading data, the time elapsed is subtracted
  364. * from the timeout value. If this timeout expires, the
  365. * value is set to 0. A NULL pointer passed for this argument
  366. * indicates no timeout for the call. A negative or zero
  367. * value passed for this argument may be used for polling
  368. * and will always return immediately.
  369. *
  370. * Return value will be one of:
  371. *
  372. * Pipe_None = No more data will be available from the child process,
  373. * ( == 0) or no process has been executed. WaitForExit should
  374. * be called to wait for the process to terminate.
  375. * Pipe_STDOUT = Data have been read from the child's stdout pipe.
  376. * Pipe_STDERR = Data have been read from the child's stderr pipe.
  377. * Pipe_Timeout = No data available within timeout specified for the
  378. * call. Time elapsed has been subtracted from timeout
  379. * argument.
  380. */
  381. kwsysEXPORT int kwsysProcess_WaitForData(kwsysProcess* cp, char** data,
  382. int* length, double* timeout);
  383. enum kwsysProcess_Pipes_e
  384. {
  385. kwsysProcess_Pipe_None,
  386. kwsysProcess_Pipe_STDIN,
  387. kwsysProcess_Pipe_STDOUT,
  388. kwsysProcess_Pipe_STDERR,
  389. kwsysProcess_Pipe_Timeout = 255
  390. };
  391. /**
  392. * Block until the child process terminates or the given timeout
  393. * expires. If no process is running, returns immediatly. The
  394. * argument is:
  395. *
  396. * timeout = Specifies the maximum time this call may block. Upon
  397. * returning due to child termination, the elapsed time
  398. * is subtracted from the given value. A NULL pointer
  399. * passed for this argument indicates no timeout for the
  400. * call.
  401. *
  402. * Return value will be one of:
  403. *
  404. * 0 = Child did not terminate within timeout specified for
  405. * the call. Time elapsed has been subtracted from timeout
  406. * argument.
  407. * 1 = Child has terminated or was not running.
  408. */
  409. kwsysEXPORT int kwsysProcess_WaitForExit(kwsysProcess* cp, double* timeout);
  410. /**
  411. * Interrupt the process group for the child process that is currently
  412. * running by sending it the appropriate operating-system specific signal.
  413. * The caller should call WaitForExit after this returns to wait for the
  414. * child to terminate.
  415. *
  416. * WARNING: If you didn't specify kwsysProcess_Option_CreateProcessGroup,
  417. * you will interrupt your own process group.
  418. */
  419. kwsysEXPORT void kwsysProcess_Interrupt(kwsysProcess* cp);
  420. /**
  421. * Forcefully terminate the child process that is currently running.
  422. * The caller should call WaitForExit after this returns to wait for
  423. * the child to terminate.
  424. */
  425. kwsysEXPORT void kwsysProcess_Kill(kwsysProcess* cp);
  426. /**
  427. * Reset the start time of the child process to the current time.
  428. */
  429. kwsysEXPORT void kwsysProcess_ResetStartTime(kwsysProcess* cp);
  430. #if defined(__cplusplus)
  431. } /* extern "C" */
  432. #endif
  433. /* If we are building a kwsys .c or .cxx file, let it use these macros.
  434. Otherwise, undefine them to keep the namespace clean. */
  435. #if !defined(KWSYS_NAMESPACE)
  436. #undef kwsys_ns
  437. #undef kwsysEXPORT
  438. #if !@KWSYS_NAMESPACE@_NAME_IS_KWSYS
  439. #undef kwsysProcess
  440. #undef kwsysProcess_s
  441. #undef kwsysProcess_New
  442. #undef kwsysProcess_Delete
  443. #undef kwsysProcess_SetCommand
  444. #undef kwsysProcess_AddCommand
  445. #undef kwsysProcess_SetTimeout
  446. #undef kwsysProcess_SetWorkingDirectory
  447. #undef kwsysProcess_SetPipeFile
  448. #undef kwsysProcess_SetPipeNative
  449. #undef kwsysProcess_SetPipeShared
  450. #undef kwsysProcess_Option_Detach
  451. #undef kwsysProcess_Option_HideWindow
  452. #undef kwsysProcess_Option_MergeOutput
  453. #undef kwsysProcess_Option_Verbatim
  454. #undef kwsysProcess_Option_CreateProcessGroup
  455. #undef kwsysProcess_GetOption
  456. #undef kwsysProcess_SetOption
  457. #undef kwsysProcess_Option_e
  458. #undef kwsysProcess_State_Starting
  459. #undef kwsysProcess_State_Error
  460. #undef kwsysProcess_State_Exception
  461. #undef kwsysProcess_State_Executing
  462. #undef kwsysProcess_State_Exited
  463. #undef kwsysProcess_State_Expired
  464. #undef kwsysProcess_State_Killed
  465. #undef kwsysProcess_State_Disowned
  466. #undef kwsysProcess_GetState
  467. #undef kwsysProcess_State_e
  468. #undef kwsysProcess_Exception_None
  469. #undef kwsysProcess_Exception_Fault
  470. #undef kwsysProcess_Exception_Illegal
  471. #undef kwsysProcess_Exception_Interrupt
  472. #undef kwsysProcess_Exception_Numerical
  473. #undef kwsysProcess_Exception_Other
  474. #undef kwsysProcess_GetExitException
  475. #undef kwsysProcess_Exception_e
  476. #undef kwsysProcess_GetExitCode
  477. #undef kwsysProcess_GetExitValue
  478. #undef kwsysProcess_GetErrorString
  479. #undef kwsysProcess_GetExceptionString
  480. #undef kwsysProcess_Execute
  481. #undef kwsysProcess_Disown
  482. #undef kwsysProcess_WaitForData
  483. #undef kwsysProcess_Pipes_e
  484. #undef kwsysProcess_Pipe_None
  485. #undef kwsysProcess_Pipe_STDIN
  486. #undef kwsysProcess_Pipe_STDOUT
  487. #undef kwsysProcess_Pipe_STDERR
  488. #undef kwsysProcess_Pipe_Timeout
  489. #undef kwsysProcess_Pipe_Handle
  490. #undef kwsysProcess_WaitForExit
  491. #undef kwsysProcess_Interrupt
  492. #undef kwsysProcess_Kill
  493. #undef kwsysProcess_ResetStartTime
  494. #endif
  495. #endif
  496. #endif