Commit Graph

342 Commits

Author SHA1 Message Date
Pierre Muller
49b62b272c Add objfpc mode to avoid compilation error 2024-02-24 11:54:51 +01:00
Michaël Van Canneyt
d3b8aa728e * Patch by Martin Friebe: mark duplicated handle for close instead of original 2024-02-17 11:02:42 +01:00
Michaël Van Canneyt
5305cd2734 * Patch from Martin Friebe to implement AutoCloseCustomHandle and CustomHandleIsInheritable 2024-02-17 11:02:42 +01:00
Michaël Van Canneyt
84e230f6e5 * Remove some hints/warnings, add extra check for poStdErrToOutPut 2024-02-15 14:05:47 +01:00
Michaël Van Canneyt
3165409337 * Extra check for poStdErrToStdOut 2024-02-15 14:00:42 +01:00
Michaël Van Canneyt
58f9dc27ea * Add test for stderrtooutput 2024-02-15 13:57:05 +01:00
Pierre Muller
7ffbbdd50b Fix dummy and wince fcl-process code after commit 54157a17 2024-02-05 07:21:36 +00:00
Michaël Van Canneyt
299c90b91d * Patch from Martin to set FCloseHandleOnExecute before invoking OnGetHandle - the handler might change it 2024-02-04 10:47:49 +01:00
Michaël Van Canneyt
8c8b336914 * Fix compilation of processunicode 2024-02-04 10:47:49 +01:00
Michaël Van Canneyt
abb5792aed * Patch from Martin to improve backwards compatibility: do not use Startf_UseStdHandles if all descriptors are iotDefault 2024-02-04 10:47:49 +01:00
Michaël Van Canneyt
d56da2d930 * Introduce ToString for all enumerateds. 2024-02-04 10:47:49 +01:00
Martin Frb
54157a17c6 * Patch from Martin to rename iotNone to iotDefault. 2024-02-04 10:47:49 +01:00
Michaël Van Canneyt
2e1c7cbc10 * Do not lock output files 2024-01-28 11:30:37 +01:00
Pierre Muller
e13625d562 Revert move of packages/fcl-process/src/win/pipes.inc to packages/fcl-process/src/winall directory: wince should use dummy/pipes.inc file 2024-01-08 20:05:38 +00:00
Pierre Muller
e429be38e8 Fix compilation of fcl-process for wince target OS, FIXME: untested :-( 2024-01-08 11:28:20 +01:00
Michaël Van Canneyt
6040943918 * Make sure dummy tprocess compiles 2024-01-05 00:04:25 +01:00
Pierre Muller
7f05fee3b8 Fix failing targets for fcl-process by changing Execute into SysExecute inside src/*/process.inc files 2024-01-04 22:57:07 +01:00
Marcus Sackrow
e076c6fc59 MorphOS: fixed process with Pipes 2024-01-01 16:01:45 +01:00
Martin
7a8fae6194 Fix uninitialized result for dwFlags 2023-12-18 01:57:35 +01:00
Martin
2e9ceda11b Invalidate Handle, even if we don't close it. (it may be set, e.g. for iotNone) 2023-12-18 01:11:26 +01:00
Martin
bd5a82bb25 Remember the IOType at time of handle creation (and before calling user events). User may reuse the instance and change it, then CloseTheirHandles needs to know. 2023-12-18 01:05:14 +01:00
Martin
481f0efe94 The PipeStream will close the handle 2023-12-18 01:03:07 +01:00
Martin
ab2e02cc58 For safety: Invalidate handle first, then Close handle 2023-12-18 01:01:47 +01:00
Martin
89fb28262d Fix range check 2023-12-18 01:00:02 +01:00
Martin
c06bf85045 Fix Result not assigned 2023-12-18 00:58:55 +01:00
Michaël Van Canneyt
f923348cca * Allow users to create descendents of TIODescriptor 2023-12-17 15:49:57 +01:00
Michaël Van Canneyt
60518dc113 * Reset must force close 2023-12-17 15:34:21 +01:00
Michaël Van Canneyt
9546595c15 * FPrevent file descriptor leaks, event to control closing descriptor 2023-12-17 15:33:05 +01:00
Michaël Van Canneyt
409abb8a43 * Prevent file descriptor leaks 2023-12-17 15:22:21 +01:00
Michaël Van Canneyt
09be1dfee1 * Remove dead code. Close handle before raising exception. 2023-12-17 15:19:26 +01:00
Michaël Van Canneyt
7eb9ee390a * Fix compilation for Atari-like 2023-12-17 15:07:05 +01:00
Michaël Van Canneyt
659f7303b9 * Add more checks/tests, add iotNull 2023-12-17 12:28:17 +01:00
Michaël Van Canneyt
1fdc6ef6a7 * Fixes and tests 2023-12-16 22:00:04 +01:00
Michaël Van Canneyt
a55e2c682b * Allow new PrepareCreatedHandleForProcess to do the work 2023-12-16 11:13:29 +01:00
Michaël Van Canneyt
a5a5225636 * Fixes & changes after discussion with Martin 2023-12-16 11:03:50 +01:00
Michaël Van Canneyt
0e0d42f472 * Extended version of tprocess 2023-12-14 23:00:24 +01:00
Karoly Balogh
ac0287b5e0 human68k: fpmake changes, disable everything that cannot be built currently 2023-11-30 23:43:27 +00:00
Michaël Van Canneyt
26e66fda75 * Fix Access Violation when starting debug server failed 2023-10-11 08:47:53 +02:00
mattias
203c566875 fcl-process: fixed parsing CommandLine under unix 2023-08-19 10:33:09 +02:00
Michaël Van Canneyt
f74fa39e26 * Dotted filenames for package fcl-process 2023-07-27 19:04:16 +02:00
Michael VAN CANNEYT
bd4e9676fa * Add namespaces.lst 2023-07-27 19:04:09 +02:00
Michaël Van Canneyt
2289c1f6a2 * Remove redundant Makefile.fpc 2023-07-25 13:01:55 +02:00
Michaël Van Canneyt
bb1b1bc705 * Regenerate makefiles with subtarget support 2023-07-24 16:32:02 +02:00
Michaël Van Canneyt
6b5a4dbf6e * use cthreads in correct location 2023-07-19 14:27:28 +02:00
Michaël Van Canneyt
1083111ba1 * Simpler form of Terminate 2023-07-19 12:31:16 +02:00
Michael VAN CANNEYT
c948c16f79 * PChar -> PAnsiChar fixes 2023-07-15 18:22:42 +02:00
Michaël Van Canneyt
e794b85242 * PChar -> PAnsiChar 2023-07-15 18:22:41 +02:00
Michaël Van Canneyt
290b5b07cf * PChar -> PAnsiChar 2023-07-15 18:22:41 +02:00
marcoonthegit
2628a6ee17 * remove redundant variable reported by Lagprogramming on forum. 2023-07-13 09:44:45 +02:00
Dmytro Bogatskyy
327aac7f24 Add aarch64-iphonesim target 2023-03-27 18:45:00 +00:00