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
734b805161
Patch provided by Sylvain Le Gall:
...
- Fix #4894 : Windows (mingw): Unix.select and non-blocking sockets,
add a filedescr.flags_fd in win32unix/unixsupport.h. It contains the
non-blocking status of the associated filedescr and helps to restore
this status after a select.
- Fix #4789 : Windows: Unix.select failing with EPIPE error,
Apply patch provided by J. Vouillon
- Fix #4973 : Failure "Unknown handle",
Be consistent between Windows and Linux, raise an EBADF Unix_error
for a closed pipe handle.
- Fix #4844 : Unix.select bug (triggered if linked against threads),
Apply patch by C. Bauer, replace lpOrig by lpOrigIdx which can survive
a GC collection
For otherlibs/win32unix/{select|windbug}.c:
- Remove Heap* fucntions to allocate/free memory and replace it by
caml_stat_* function, which are more OCaml compliant
- Rework DBUG message, use DEBUG_PRINT rather than #ifdef DBUG... #endif
and use DEBUG variable (more OCaml compliant), also remove dbug_init
functions and use a static variable to replace it (subject to race
condition but this not really important, because every path lead to
same initialization)
- Use a fast start scheme for pipe polling, rather than always waiting
10ms, start by 1, 2, 4, 8 and then 10ms. The 4 first times give select
a chance to a fast answer.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10467 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-25 13:01:06 +00:00
Damien Doligez
bdc0fadee2
merge changes from release/3.11.1 to release/3.11.2
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9540 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-01-20 16:26:46 +00:00
Damien Doligez
5d5094fe30
PR#4123, PR#4125: export unixsupport.h with unix_error_of_code
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7832 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-07 14:45:46 +00:00
Xavier Leroy
3c809eac66
Continuation of tentative fix for PR#4098
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7629 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-09-21 09:41:04 +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
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
5ba5d54bd1
Lorsqu'un file_descr provient d'un fd du CRT, s'en souvenir et en tenir compte quand on fait Unix.dup2 (PR#1509). Remplacement de stdhandle par filedescr_of_fd.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5370 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-01-06 14:52:57 +00:00
Xavier Leroy
9fa4787b9b
Definir WIN32_LEAN_AND_MEAN pour contourner un probleme winsock/winsock2 avec Mingw 1.3
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5088 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-08-07 11:49:10 +00:00
Xavier Leroy
a64d03d619
Suppression de la dependance sur io.h
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4932 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-06-18 13:01:36 +00:00
Xavier Leroy
c98047f627
Meilleure distinction handle/socket. Ajout lockf. Revu rename.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4765 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-04-30 15:00:48 +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
ddd99c7e5d
Chargement dynamique de primitives C
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3677 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-08-28 14:47:48 +00:00
Xavier Leroy
9ce02c4cc3
Ajout comparaisons et hashing sur les handles (PR#439). A tester
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3596 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-07-24 09:05:25 +00:00
Damien Doligez
2518f89455
Blue -> Caml_blue etc.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2730 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-01-03 16:24:25 +00:00
Xavier Leroy
cc0f32b054
Changement de la licence
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-17 18:59:06 +00:00
Xavier Leroy
b678fad2c3
Faire #undef Blue pour eviter un conflit d'includes
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2278 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-02-12 16:28:56 +00:00
Xavier Leroy
0efc0065fc
Debug, tests
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1701 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-09-04 13:45:56 +00:00
Xavier Leroy
1e664b9446
Implementation du type file_descr par le type HANDLE de Win32. Court-circuite la libc de MSVC.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1700 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-09-03 14:38:02 +00:00
Xavier Leroy
88054d9a98
MAJ portage Win32
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1698 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-09-02 16:01:39 +00:00
Xavier Leroy
6ded697b42
Premiere compilation.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@956 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-09-05 13:32:25 +00:00
Xavier Leroy
a0c8d73733
Merge du stage de Pascal Cuoq
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@952 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-09-04 14:17:43 +00:00