Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/HISTORY
ViewVC logotype

Diff of /sml/trunk/HISTORY

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1455, Fri Feb 13 20:42:49 2004 UTC revision 1490, Tue May 11 19:32:39 2004 UTC
# Line 14  Line 14 
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16  Name: Matthias Blume (blume (at) tti - c (dot) org)  Name: Matthias Blume (blume (at) tti - c (dot) org)
17    Date: 2004/05/11 14:35:00 CDT
18    Tag: blume-20040511-win32sock
19    Description:
20    
21    Added previously missing support for many socket-related functions
22    under win32.  Thanks to David Hansel <hansel@reactive-systems.com>
23    for the voluminous patch!
24    
25    (I have not tested this patch under win32 yet.)
26    
27    Here is David's e-mail:
28    
29    Hi,
30    
31    Attached to this email you find a diff against sml/nj 110.45
32    that will enable socket support under Windows.
33    
34    To apply the patch (using unix or cygwin)
35    1) gunzip runtime.diff.gz
36    2) "cd" into "src/runtime" in the source tree of a fresh
37       110.45 installation.
38    3) patch -p 1 < [your/path/to]runtime.diff
39    
40    The code compiles fine but has NOT yet been extensively tested.
41    I only ran a few tests for basic socket client functionality
42    (which worked fine).  Especially the functions that use ioctl
43    are not tested at all and might not work (see below).
44    
45    I implemented this since we want to move to a newer version of sml/nj
46    but need socket support in order to use it.  This is the first time I
47    even had a look at the sml/nj source,  so please review my changes
48    before making this part of the distribution!  Here are a few issues
49    that I think might be better for someone to solve who is more
50    familiar with the sml/nj source (and socket programming):
51    
52    - getnetbyaddr.c and getnetbyname.c will raise a "not implemented"
53      exception since I could not figure out what the windows equivalent
54      of these functions is
55    
56    - In sockets-osdep.h there are a some #include statements that are
57      only used in a few files that include sockets-osdep.h
58    
59    - In smlnj-sock-lib.c, function init_fn() calls WSAStartup() but
60      does not process its return value since I don't know how to
61      report an error upwards.
62    
63    - It would probably be good to have a call to WSACleanup() when
64      the library is unloaded (if there is such a possibility).
65      Otherwise I think Windows will take care of this automatically
66      when the process finishes.
67    
68    - I used ioctlsocket() as a replacement for ioctl() but I have
69      no idea if that is actually the proper replacement on Windows.
70    
71    - All these issues are marked in the code by "FIXME" comments.
72    
73    We use sml/nj extensively in our products and are quite happy
74    with it.  I hope this contribution will help you.
75    
76    Keep up the good work!
77    
78    David
79    
80    ----------------------------------------------------------------------
81    Name: Matthias Blume (blume (at) tti - c (dot) org)
82    Date: 2004/05/11 14:20:00 CDT
83    Tag: blume-20040511-installml
84    Description:
85    
86    Fixed two bugs in installml script.  (Thanks to Vesa A. Norrman for
87    the patch.)
88    
89    ----------------------------------------------------------------------
90    Name: Matthias Blume (blume (at) tti - c (dot) org)
91    Date: 2004/05/11 14:05:00 CDT
92    Tag: blume-20040511-nlffi-netbsd
93    Description:
94    
95    Added support for nlffi under netbsd.  (Thanks to Vesa A. Norrman for
96    the patch.)
97    
98    ----------------------------------------------------------------------
99    Name: Matthias Blume (blume (at) tti - c (dot) org)
100    Date: 2004/05/11 12:05:00 CDT
101    Tag: blume-20040511-exports
102    Description:
103    
104    As per request by Adam Chlipala <adam@hcoop.net>, extended various
105    export lists in compiler-related .cm-files.
106    
107    ----------------------------------------------------------------------
108    Name: Matthias Blume (blume (at) tti - c (dot) org)
109    Date: 2004/05/11 11:35:00 CDT
110    Tag: blume-20040511-allsource
111    Description:
112    
113    The installer now honors the "src-smlnj" target again, although its meaning
114    has changed from "all sources required for the compiler" to "all sources
115    the installer knows about".  In other words, if you enable "src-smlnj"
116    in the "targets" file, then the installer will pull in sources for
117    everything.  (Notice that this refers to source code only.  Compiled
118    code is still only installed for modules that were requested explicitly
119    or which are required for other modules that were requested explicitly.)
120    
121    ----------------------------------------------------------------------
122    Name: Matthias Blume (blume (at) tti - c (dot) org)
123    Date: 2004/04/23 17:40:00 CDT
124    Tag: blume-20040423-ieee-scan
125    Description:
126    
127    Fixed IEEEReal.scan (and .fromString) so that if there is an overflow
128    in the exponent calculation we get INF or ZERO (depending on the mantissa
129    and the sign of the exponent).
130    
131    ----------------------------------------------------------------------
132    Name: Matthias Blume (blume (at) tti - c (dot) org)
133    Date: 2004/04/23 10:40:00 CDT
134    Tag: blume-20040423-ml-build
135    Description:
136    
137    The ml-build script now terminates with a non-0 status when something
138    goes wrong.
139    
140    ----------------------------------------------------------------------
141    Name: Matthias Blume (blume (at) tti - c (dot) org)
142    Date: 2004/04/22 16:35:00 CDT
143    Tag: blume-20040422-Option
144    Description:
145    
146    Made exception Option to be the same as exception Option.Option
147    (as it should be).
148    
149    ----------------------------------------------------------------------
150    Name: Allen Leung (leunga (at) reservoir (dot) com)
151    Date: 2004/03/19 14:40:00 EST
152    Tag: leunga-20040319-cygwin-nlffi
153    Description:
154    
155    Fixed the runtime so that ml-nlffi-lib runs on the cygwin version
156    of SML/NJ.  The problem is that
157    
158       lib = dlopen(NULL, ...)
159       f   = dlsym(lib, "malloc");
160    
161    does not work on Windows unless we explicitly export symbols
162    such as 'malloc' during linking.  We fixed this by explicitly
163    exporting the required symbols with the magic gcc incantation:
164    
165        -Wl,--export-all cygwin.def
166    
167    where cygwin.def is a file containing all the symbols that
168    we wish to export.
169    
170    I suspect this is a Windows problem and we'll have to
171    do the same (somehow with windows compilers) when
172    we build the native win32 version with the system
173    calls LoadLibrary/GetProcAddress.
174    
175    ----------------------------------------------------------------------
176    Name: Matthias Blume (blume (at) tti - c (dot) org)
177    Date: 2004/03/04 16:35:00 CST
178    Tag: blume-20040304-intinf-fmt
179    Description:
180    
181    Fixed problem with IntInf.fmt (sign would show up on the right instead
182    of on the left for BIN, OCT, and HEX).
183    
184    ----------------------------------------------------------------------
185    Name: Matthias Blume (blume (at) tti - c (dot) org)
186    Date: 2004/03/04 11:25:00 CST
187    Tag: blume-20040304-symlinks
188    Description:
189    
190    Fixed problem with installer script (unix only) where bin/ml-yacc and
191    friends pointed (via symlinks) to absolute locations instead of just
192    .run-sml.  This was reported by Vesa A Norrman.
193    
194    ----------------------------------------------------------------------
195    Name: Matthias Blume (blume (at) tti - c (dot) org)
196  Date: 2004/02/13 14:50:00 CST  Date: 2004/02/13 14:50:00 CST
197  Tag: Release_110_45  Tag: Release_110_45
198  Description:  Description:

Legend:
Removed from v.1455  
changed lines
  Added in v.1490

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0