fcl-process: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: fcl-process
| Old | New | Line | |
|---|---|---|---|
| 1 | + | ## Overview | |
| 2 | + | ||
| 3 | + | **fcl-process** is a package that contains multiple units for executing and interfacing (by pipes) with other programs. The most prominent member is the **Process.TProcess** class that is used by Lazarus and described and documented elsewhere, like [[Executing External Programs|TProcess]] and has its own documentation in the FPC Free Component Library (FCL) manual. | |
| 4 | + | ||
| 5 | + | The **pipes** unit implements basic pipe stream classes for use by the other units. | |
| 6 | + | ||
| 7 | + | The dbug* units implement a simple remote logging/inspection interface. See also [[DebugServer]]. | |
| 8 | + | ||
| 9 | + | ## Units | |
| 10 | + | ||
| 11 | + | | Unit | \- | Comment | | |
| 12 | + | |----|----|----| | |
| 13 | + | | [[process]] | \- | Contains TProcess class for executing external programs (and some related utility functions) | | |
| 14 | + | | [[pipes]] | \- | Input and output pipe stream class used by process. | | |
| 15 | + | | [[simpleipc]] | \- | Unit implementing one-way IPC between 2 processes. On Windows it apparently uses Windows messaging; see forum post [1](http://forum.lazarus.freepascal.org/index.php/topic,15974.msg104374.html#msg104374) that includes a C# example that connects with a FreePascal SimpleIPC server | | |
| 16 | + | | [[dbugintf]] | \- | Debugserver client interface, based on SimpleIPC | | |
| 17 | + | | [[dbugmsg]] | \- | Debugserver Client/Server common code. | | |
| 18 | + | | | | | | |
| 19 | + | ||
| 20 | + | ## Notes | |
| 21 | + | ||
| 22 | + | - To fool programs that check for a pty on Unix/Linux, forkpty might have to be used instead of fork. See [2](http://forum.lazarus.freepascal.org/index.php?topic=22912.0;topicseen). Openpty and forkpty (which uses openpty) are not POSIX calls though. On FreeBSD, these functions are not in libc but in libutil, and seem to be a shell over POSIX openpt and ptsname functions with some IOCTLs thrown in. | |
| 23 | + | ||
| 24 | + | --- | |
| 25 | + | *From the Free Pascal wiki, page "fcl-process", as it stood on 2015-09-27 after a change by FTurtle, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* | |
| 26 | + | Category: FCL | |
| 27 | + | Category: Inter-process communication |
