Commit Graph

11 Commits (540996d21ee3793a1cecce252c81fb76a6b9fd61)

Author SHA1 Message Date
Nicolás Ojeda Bär 540996d21e Remove Spacetime 2020-10-08 20:28:12 +02:00
David Allsopp 435babd6f8 Declare primitives used by unix in io.h 2020-09-10 16:34:24 +01:00
David Allsopp 6dc2457036
Merge pull request #9884 from dra27/cygwin64-prereq-6
Missing declarations in io.h [Cygwin64 pre-req 6/6]
2020-09-09 09:24:34 +01:00
David Allsopp 422c20013d Remove CAMLexport from Cash-exported primitives 2020-09-07 13:54:08 +01:00
David Allsopp bf05018a1a Formalise the Cash exports 2020-09-04 16:22:10 +01:00
David Allsopp 0f6d3a3128 Add missing channel declarations in caml/io.h 2020-09-04 16:21:03 +01:00
Xavier Leroy 09f2b9dd57 Revised {in,out}_channel_length and seek_in for channels in text mode
Under Windows, for channels opened in text mode, EOL conversion causes
a mismatch between the `offset` position cached in the
`struct channel` record and actual position in the file.

This commit turns off the use of the cached "offset" in the implementations
of `{in,out}_channel_length` and `seek_in`, calling `lseek` directly instead.

To support this, a new channel flag `CHANNEL_TEXT_MODE` was added.  It
is set for channels operating in text mode under Windows, when EOL
conversion is active.

Fixes: #9868
2020-09-01 20:33:39 +02:00
Stephen Dolan 63d516bda1 Avoid running signal handlers while holding locks in io.c 2020-07-27 17:29:39 +01:00
Stephen Dolan e678885007 Lock channels before doing I/O
The debugger's use of channels doesn't support locking, but it
doesn't work on threaded programs anyway.
2020-07-27 17:29:39 +01:00
Stephen Dolan 5e4b55d3bd Use the autoconf- or system-provided off_t rather than redetecting. (#8843)
Fixes: #8841
2019-07-31 13:56:26 +02:00
Sébastien Hinderer d3e73595e5 Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00