Mark Shinwell
c1c84310b5
Someone didn't compile their code
2015-11-30 09:28:38 +00:00
alainfrisch
37ad7ece0e
GPR#210: keep unflushed out channels around to be able to flush them during at_exit.
2015-11-30 09:57:30 +01:00
Damien Doligez
d3f982aaa8
move the new record field of channel to avoid breaking some stubs in JS Core
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16536 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-23 15:03:48 +00:00
Damien Doligez
3397e7ff16
GPR#243: Faster test suite
...
(Xavier Leroy)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16466 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-09 15:45:37 +00:00
Xavier Leroy
ac62e93d6b
Fix call to undeclared function "caml_ml_enable_runtime_warnings" in startup_aux.c
...
This is a follow-up to commit r16245, PR#6902, GPR#210.
- Runtime warning machinery was local to io.c; make it globally usable.
- Move definitions and accessor functions to misc.c and gc_ctrl.c
by analogy with other configurable runtime parameters.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16325 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-08-04 09:38:23 +00:00
Alain Frisch
49a2533472
PR#6902, GPR#210: runtime emits a warning when finalizing an I/O channel which is still open.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16245 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-24 13:11:26 +00:00
Alain Frisch
cd04d52523
#6902 : revert commit 15817 (it causes memory leaks on input channels).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16174 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-15 08:21:36 +00:00
Damien Doligez
0b3caf43bf
PR#6838: Invalid memory in C thread bindings (caused by commit 15817)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16025 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-04-21 15:20:10 +00:00
Damien Doligez
46f6fe62f3
fix bug where some unclosed channels could be discarded without flushing
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15817 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-02-06 21:58:00 +00:00
Gabriel Scherer
7ca29ef3f7
PR#5887: move the byterun/*.h headers to byterun/caml/*.h to avoid header name clashes
...
(Jérôme Vouillon and Adrien Nader and Peter Zotov)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15757 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-12-27 14:41:49 +00:00
Xavier Leroy
b868c05ec9
PR#6517: use ISO C99 types {,u}int{32,64}_t in preference to our homegrown
...
types {,u}int{32,64}.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15131 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-08-27 09:58:33 +00:00
Xavier Leroy
774e30e138
PR#6075: avoid using unsafe C library functions (strcpy, strcat, sprintf).
...
An ISO C99-compliant C compiler and standard library is now assumed.
(Plus special exceptions for MSVC.) In particular, emulation code for
64-bit integer arithmetic was removed, the C compiler must support a
64-bit integer type.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14607 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-04-15 17:09:13 +00:00
Damien Doligez
aa58e55958
port to cygwin-64
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14337 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-12-03 14:43:02 +00:00
Damien Doligez
def31744f9
remove all $Id keywords
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-15 17:50:56 +00:00
Damien Doligez
0c3a7de507
merge changes from 4.00 branching to 4.00.0 (part 1)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12784 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-26 19:21:54 +00:00
Fabrice Le Fessant
8055158a17
Fix ENOMEM error on Windows when reading from terminal
...
On Windows, an error ENOMEM is returned when reading more than ~ 24 kB a
file descriptor attached to the terminal. This patch fixes this problem by
retrying to read a smaller amount of data (16kB), only on Windows.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12640 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-25 12:00:44 +00:00
Damien Doligez
e7f5b858c2
More renaming to OCaml
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12149 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-10 16:15:24 +00:00
Damien Doligez
3b507dd1aa
renaming of Objective Caml to OCaml and cleanup of copyright headers
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-27 14:17:02 +00:00
Xavier Leroy
f90ddc8c22
PR#5290: added hash functions for channels, nats, mutexes, conditions.
...
Also: added "custom_compare_ext_default" to all struct custom_operations:
default initialization to 0 did what we want, but explicit initialization
better documents the C sources.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11143 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-23 10:07:25 +00:00
Mark Shinwell
62d8b11287
fix mantis 5032
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10300 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-04-23 07:58:59 +00:00
Mark Shinwell
cf088abef1
release runtime lock for lseek (mantis 4801)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10223 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-04-01 07:36:49 +00:00
Xavier Leroy
160e4050d8
Raise Sys_blocked_io only in I/O operations that return EAGAIN/EWOULDBLOCK. Other, non-I/O related system calls can also return EAGAIN (e.g. in Sys.command); these should raise Sys_error, not Sys_blocked_io
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7919 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-25 12:38:36 +00:00
Xavier Leroy
f3fab9a259
Tentative fix for PR#4098. Need testing.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7622 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-09-20 17:37:08 +00:00
Nicolas Pouillard
1f8ca2dc7b
Put parenthesis around arguments to please the compilation
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7516 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 19:30:18 +00:00
Damien Doligez
865ec79b34
PR#4039, PR#4062
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7499 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 08:05:26 +00:00
Damien Doligez
1279ab4b76
fusion des changements 3.09.1 -> 3.09.2
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7382 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-04-16 23:28:22 +00:00
Michel Mauny
a136b3fedd
Fixed bug #3818 (set_binary_mode_out for Cygwin)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7165 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-10-25 19:15:36 +00:00
Xavier Leroy
3aff9998a1
close_in, close_out en temps constant (PR#3727,3278)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7076 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-09-24 16:14:41 +00:00
Xavier Leroy
3de54dec26
Remplacement long/unsigned long par intnat/uintnat
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7064 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-09-22 14:21:50 +00:00
Xavier Leroy
072e77b3ba
Nettoyage du code qui teste les signaux en attente.
...
Tester systematiquement les signaux dans leave_blocking_section.
Tester aussi dans Sys.signal (s'il y a un signal en attente dont on
change le comportement en Signal_ignore, p.ex.)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6999 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-07-31 12:31:03 +00:00
Damien Doligez
794c184571
suppression du support Mac OS 9
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6065 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-01-08 22:28:48 +00:00
Damien Doligez
5a678d29f5
depollution suite (PR#1914 et PR#1956)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6045 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-01-01 16:42:43 +00:00
Damien Doligez
331b2d89c3
depollution suite (PR#1914, PR#1956)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6044 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-12-31 14:20:40 +00:00
Damien Doligez
31943bac1d
depollution suite (PR#1914 et PR#1956); byterun/weak.c: PR#1929 suite
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6041 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-12-29 22:15:02 +00:00
Damien Doligez
8fde08275d
deuxieme tranche des travaux de depollution (PR#1914 et PR#1956) + dependances
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6020 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-12-15 16:29:53 +00:00
Xavier Leroy
3195a6f480
alloc_channel: chan pouvait etre finalise lors de l'allocation (en cas d'appel depuis caml_out_channels_list) (PR#1734)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5758 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-07-29 11:48:34 +00:00
Xavier Leroy
22649ba49d
Traiter correctement les grands fichiers dans pos_in et pos_out (PR#1511)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5369 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-01-06 10:59:07 +00:00
Damien Doligez
eac092b352
PR#1494
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5363 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-01-03 15:04:08 +00:00
Bruno Verlyck
21bc67fa0c
Re-export de do_read pour Cash (que Damien le nettoyeur avait zappé)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5253 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-11-07 18:08:27 +00:00
Damien Doligez
1ba3a292a9
fix du fix du PR#1249
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5212 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-10-31 10:37:53 +00:00
Damien Doligez
0738514628
PR#1249
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5197 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-10-29 13:55:33 +00:00
Damien Doligez
85acae0a8a
fix petits bugs
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5187 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-10-22 13:02:46 +00:00
Bruno Verlyck
bdb009f5f9
2 trucs pour pouvoir emuler un mode non bufferise avec un buffer de taille 1
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4846 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-27 14:31:09 +00:00
Xavier Leroy
384a4cd437
Software emulation of 64-bit integers if needed. Use safe division for int32 and nativeint if necessary
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4832 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-25 08:32:53 +00:00
Damien Doligez
fc5d8b4344
ne pas lever d'exception si on flushe un channel ferme
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4563 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-26 14:28:25 +00:00
Xavier Leroy
cefcfba94a
Mettre -D_FILE_OFFSET_BITS=64 dans les options de compilation partagees par tout le monde
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4533 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-15 14:38:37 +00:00
Xavier Leroy
bddfe5d0ce
Ajout operations sur gros fichiers
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4474 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-02 09:16:39 +00:00
Damien Doligez
30e7601af2
assertions fausses
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4435 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-02-21 15:05:26 +00:00
Xavier Leroy
7501784c80
MAJ en-tetes pour mentionner la 'special exception' sur la LGPL
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4144 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-07 13:41:02 +00:00
Xavier Leroy
48d41c5c0a
Exporter do_read pour Cash
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4005 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-11-13 15:41:01 +00:00