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 1489, Tue May 11 19:31:06 2004 UTC revision 1494, Thu May 20 03:09:17 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/19 22:10:00 CDT
18    Tag: blume-20040519-ml-build
19    Description:
20    
21    Arranged for ml-build to clean up after itself a little bit better.
22    The script generates a temporary SML source file and compiles it using
23    CM, so CM generates metadata (GUID, SKEL, objectfile) for it.  It now
24    gets rid of those at the end, so they don't accumulate under .cm.
25    
26    This required a minor change to install.sh because the name of the
27    metadata directory (default: .cm) is actually configurable at
28    installation time.
29    
30    ----------------------------------------------------------------------
31    Name: Matthias Blume (blume (at) tti - c (dot) org)
32    Date: 2004/05/18 15:50:00 CDT
33    Tag: blume-20040518-mkreader
34    Description:
35    
36    Added Posix.IO.mk{Bin,Text}{Reader,Writer} by lifting their respective
37    implementations from internal modules PosixBinPrimIO and PosixTextPrimIO.
38    
39    ----------------------------------------------------------------------
40    Name: Matthias Blume (blume (at) tti - c (dot) org)
41  Date: 2004/05/11 14:35:00 CDT  Date: 2004/05/11 14:35:00 CDT
42  Tag: blume-20040511-win32sock  Tag: blume-20040511-win32sock
43  Description:  Description:
# Line 24  Line 48 
48    
49  (I have not tested this patch under win32 yet.)  (I have not tested this patch under win32 yet.)
50    
51    Here is David's e-mail:
52    
53    Hi,
54    
55    Attached to this email you find a diff against sml/nj 110.45
56    that will enable socket support under Windows.
57    
58    To apply the patch (using unix or cygwin)
59    1) gunzip runtime.diff.gz
60    2) "cd" into "src/runtime" in the source tree of a fresh
61       110.45 installation.
62    3) patch -p 1 < [your/path/to]runtime.diff
63    
64    The code compiles fine but has NOT yet been extensively tested.
65    I only ran a few tests for basic socket client functionality
66    (which worked fine).  Especially the functions that use ioctl
67    are not tested at all and might not work (see below).
68    
69    I implemented this since we want to move to a newer version of sml/nj
70    but need socket support in order to use it.  This is the first time I
71    even had a look at the sml/nj source,  so please review my changes
72    before making this part of the distribution!  Here are a few issues
73    that I think might be better for someone to solve who is more
74    familiar with the sml/nj source (and socket programming):
75    
76    - getnetbyaddr.c and getnetbyname.c will raise a "not implemented"
77      exception since I could not figure out what the windows equivalent
78      of these functions is
79    
80    - In sockets-osdep.h there are a some #include statements that are
81      only used in a few files that include sockets-osdep.h
82    
83    - In smlnj-sock-lib.c, function init_fn() calls WSAStartup() but
84      does not process its return value since I don't know how to
85      report an error upwards.
86    
87    - It would probably be good to have a call to WSACleanup() when
88      the library is unloaded (if there is such a possibility).
89      Otherwise I think Windows will take care of this automatically
90      when the process finishes.
91    
92    - I used ioctlsocket() as a replacement for ioctl() but I have
93      no idea if that is actually the proper replacement on Windows.
94    
95    - All these issues are marked in the code by "FIXME" comments.
96    
97    We use sml/nj extensively in our products and are quite happy
98    with it.  I hope this contribution will help you.
99    
100    Keep up the good work!
101    
102    David
103    
104  ----------------------------------------------------------------------  ----------------------------------------------------------------------
105  Name: Matthias Blume (blume (at) tti - c (dot) org)  Name: Matthias Blume (blume (at) tti - c (dot) org)
106  Date: 2004/05/11 14:20:00 CDT  Date: 2004/05/11 14:20:00 CDT

Legend:
Removed from v.1489  
changed lines
  Added in v.1494

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