summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/unixsupport.c
AgeCommit message (Collapse)Author
2011-10-15PR#5328: Windows, Unix.select and non-blocking sockets (untested patch)Xavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11223 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-27renaming of Objective Caml to OCaml and cleanup of copyright headersDamien Doligez
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-23PR#5290: added hash functions for channels, nats, mutexes, conditions.Xavier Leroy
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
2010-05-25Patch provided by Sylvain Le Gall:Xavier Leroy
- 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-01-20merge changes from release/3.11.1 to release/3.11.2Damien Doligez
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9540 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2009-05-20merge changes from ocaml3110 to ocaml3111rc0Damien Doligez
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9270 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-07PR#4123, PR#4125: export unixsupport.h with unix_error_of_codeDamien Doligez
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7832 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-09-22Remplacement long/unsigned long par intnat/uintnatXavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7064 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-04-01PR#2334Xavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6182 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-01-06Lorsqu'un file_descr provient d'un fd du CRT, s'en souvenir et en tenir ↵Xavier Leroy
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
2002-06-07Portage Mingw et revision du portage Win32/MSVCXavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4899 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-04-30Meilleure distinction handle/socket. Ajout lockf. Revu rename.Xavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4765 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-06Ajout primitives LargeFileXavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4486 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-07MAJ en-tetes pour mentionner la 'special exception' sur la LGPLXavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4144 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-03#ifdef autour de codes specifiques Winsock2Xavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4076 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-03More Winsock2 error codesXavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4074 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-11-27Mapper WSAEINVAL sur EINVALXavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4054 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-08-28Chargement dynamique de primitives CXavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3677 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-07-24Ajout comparaisons et hashing sur les handles (PR#439). A testerXavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3596 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-17Changement de la licenceXavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1998-10-26nouvelles fonctions alloc/alloc_smallDamien Doligez
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2134 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1998-08-19Bug dans unix_error (cst_to_constr renvoie un entier code!)Xavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2079 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-09-03Implementation du type file_descr par le type HANDLE de Win32. ↵Xavier Leroy
Court-circuite la libc de MSVC. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1700 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-05-26Changement de Push/Pop_roots en Begin/End_rootsDamien Doligez
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1572 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-12-10Mise a jour pour Win32Xavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1217 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-11-08Utilisation de Callback.registerXavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1185 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-09-05Premiere compilation.Xavier Leroy
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@956 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02