[fpc-pascal] BlockWrite() version 2.6.4

Karoly Balogh (Charlie/SGR) charlie at scenergy.dfmk.hu
Sat Aug 5 20:50:11 CEST 2017


Hi,

On Sat, 5 Aug 2017, Michael Van Canneyt wrote:

> > In which file can the source code specific to BlockWrite() version 2.6.4 be
> > found ?
>
> Headers are in rtl/inc/systemh.inc
> actual routines are in rtl/inc/file.inc

Just an addition, BlockWrite() actually calls the internal RTL function
Do_Write(), which is the write function implemented for all platforms in a
platform specific way in the RTL. On Un*x, it calls FpWrite, which calls
the kernel syscall directly.

Do_Write for all Unix (including Linux) is implemented in
rtl/unix/sysfile.inc

FpWrite is implemented for Linux in:
rtl/linux/ossysc.inc

But this later function is just a direct call to the syscall. That's the
entire code path then, more or less.

Charlie



More information about the fpc-pascal mailing list