Xavier Leroy
b6442d5957
Branch win32-sockets: missing includes in byterun/unix.c + add test.
...
The "socketsbuf.ml" test checks that buffered I/O channels over sockets work properly. (Regression test for PR#5578.)
2015-12-04 12:01:10 +01:00
Xavier Leroy
aacb6d5861
Branch win32-sockets: move do_read and do_write to OS-specific file.
...
This way, error handling is done in the OS-specific file (unix.c or win32.c).
In turn, this makes it easier to report a good Sys_error exception
in case of Win32 socket I/O error.
2015-12-04 11:40:11 +01:00
Xavier Leroy
15ac614a89
Experiment: Win32 sockets in non-synchronous mode.
...
This is an attempt to address PR#4466, #5325 , #6771 . Not tested yet.
2015-11-30 11:42:16 +01:00
Damien Doligez
860c670848
merge branch 4.02 from 4.02.1 (rev 15540) to a few fixes after 4.02.2 (rev 16205)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16214 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-17 14:31:05 +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
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
Alain Frisch
58e99bd087
#4719 : use GetModuleFileName to get an absolute path to the current executable under Windows.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13799 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-18 10:25:01 +00:00
Damien Doligez
c63f9e0957
fix a few problems with whitespace and over-long lines
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13393 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-09 22:38:52 +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
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
Damien Doligez
575555eecd
merge changes from branching of 3.12 to release/3.12.0
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10643 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-08-02 14:37:22 +00:00
Damien Doligez
1f95b17570
merge changes from 3.10.2merged to 3.11.0
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9153 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-12-03 18:09:09 +00:00
Alain Frisch
c52e649d83
Fix call to flexdll_dlopen for Cygwin.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9148 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-12-03 12:56:59 +00:00
Alain Frisch
95d9511cf6
Drop support for the old bundle API for Mac OS X (<= 10.3).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8876 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-04-22 12:40:14 +00:00
Alain Frisch
291a4207ad
Cleanup natdynlink. Automatic initialization of Dynlink (bytecode and native code). Do not use RTLD_GLOBAL for Dynlink.loadfile_private in native code.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8873 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-04-22 12:24:10 +00:00
Xavier Leroy
a3c0366f4e
PR#4448: replace dense page table by sparse hash table.
...
Introduction and use of macros Is_in_value_area, Is_in_heap_or_young.
Removal of USE_MMAP_INSTEAD_OF_MALLOC.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8743 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-01-03 09:37:10 +00:00
Xavier Leroy
ae10d23072
Issues with RTLD_DEFAULT not defined in Glibc, unless _GNU_SOURCE is set
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8505 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-10 16:32:20 +00:00
Alain Frisch
8de0859214
Use RTLD_DEFAULT to access symbols from the main program + already loaded dlls (previous version did not work under FreeBSD).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8494 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-08 10:55:57 +00:00
Alain Frisch
3958a92c72
Merge the natdynlink branch into HEAD.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8477 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-06 15:16:56 +00:00
Xavier Leroy
9ccb911666
Can select which assembler to use at configuration time (PR#4171)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8462 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-10-30 12:37:16 +00:00
Pierre Weis
5dfee27596
Procedure caml_dlopen takes two arguments. Some C compilers do not accept a
...
definition with 2 arguments after a declaration with only one.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7851 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-12 07:57:25 +00:00
Xavier Leroy
86fcc212e7
Be more prudent with previous change: not sure RTLD_LAZY works everywhere
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7659 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-09-29 08:18:22 +00:00
Xavier Leroy
b0041ea963
Revised DLL loading: distinguish between loading for execution
...
(ocamlrun, dynlink, toplevel) and loading for checking the existence
of symbols (ocamlc). This is needed for Windows with manifests and
not a bad idea for other platforms.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7656 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-09-28 21:36:38 +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
Jacques Garrigue
54aeaa6db4
add multiple dlopen emulation for Darwin
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6604 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-08-18 05:03:23 +00:00
Damien Doligez
af3e65b6a5
$id
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6053 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-01-03 20:55:41 +00:00
Damien Doligez
a93d5fec2d
$id
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6052 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-01-03 20:55:20 +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
328587eefc
suppression d'un warning
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5475 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-04-02 01:16:14 +00:00
Xavier Leroy
859efb84a8
Ajout de Sys.readdir
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5415 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-03-03 17:16:15 +00:00
Jacques Garrigue
71409b5604
support vanilla MacOSX dynamic loading
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5378 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-01-09 08:42:13 +00:00
Damien Doligez
921202e4ac
DLL sur MacOS X
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5261 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-11-14 19:01:26 +00:00
Damien Doligez
76dfd059b8
ajout DLL pour MacOS X
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5259 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-11-12 17:52:57 +00:00
Xavier Leroy
9adc852967
Blinder la lecture de /proc/self/exe (sur de vieux noyaux Linux, ca ne renvoie pas un nom de fichier, mais un inode)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5113 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-09-03 13:56:36 +00:00
Xavier Leroy
c9c0e6d13c
Nettoyage alloc_for_heap, free_for_heap. Prevoir d'utiliser mmap() au lieu de malloc() pour allouer le tas majeur (utile pour IA64/Linux)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4867 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-06-03 14:21:50 +00:00
Xavier Leroy
962f2894a3
Soyons prudent avec unistd.h
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4749 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-04-26 13:33:25 +00:00
Jacques Garrigue
0a8236066f
vive les methodes polymorphes!
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4694 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-04-18 07:27:47 +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
Jacques Garrigue
51a70a07bc
support dlopen without RTLD_GLOBAL (PR#517)
...
(but linking may not work on some libraries...)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3740 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-09-09 08:35:55 +00:00
Jacques Garrigue
4bdf28108f
avoid problem with dlsym/failwith and keep thread linking info
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3701 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-09-07 05:56:31 +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