Allow MonoPosixHelper to *actually* compile on Win32. (Thanks to eno on irc.)
[mono.git] / support / ChangeLog
1 2005-01-05  Jonathan Pryor  <jonpryor@vt.edu>
2
3         * map.c: Continuing my ineptitude...  <sys/wait.h> isn't on Win32.
4         * mph.h: Win32 doesn't define EOVERFLOW, either.  Define it.
5
6 2005-01-05  Jonathan Pryor  <jonpryor@vt.edu>
7
8         * map.c: Include <config.h> so we can check for PLATFORM_WIN32.
9
10 2005-01-05  Jonathan Pryor  <jonpryor@vt.edu>
11
12         * map.c: Fix Win32 build break.  Win32 doesn't have all the sys/* headers.
13
14 2005-01-05  Jonathan Pryor  <jonpryor@vt.edu>
15
16         * serial.c: HPUX compiler fix.
17         * stdlib.c: Add C-defined macro wrappers.
18
19 2005-01-04  Jonathan Pryor  <jonpryor@vt.edu>
20
21         * stdio.c: Add wrapper for C99's snprintf(3).
22
23 2005-01-04  Jonathan Pryor  <jonpryor@vt.edu>
24
25         * Makefile.am: Rewrite.  Remove configure-generated warnings about 
26           multiple _LIBADD and _SOURCES lines.  Add support for Win32.  
27           Win32 support is limited to ANSI C functions.
28         * stdio.c: Don't compile Unix wrappers on Win32.
29
30 2005-01-04  Raja R Harinath  <rharinath@novell.com>
31
32         * Makefile.am (LIBS): Remove.  Was overriding results of configure check.
33         (libMonoPosixHelper_la_LIBADD): List $(GLIB_LIBS) here.
34
35 2005-01-04  Jonathan Pryor  <jonpryor@vt.edu>
36
37         * Makefile.am: Add libnsl to LIBS.  Hopefully this will let sparc link.
38         * mph.h: Make MPH_INTERNAL conditional on __GNUC__.
39
40 2005-01-03  Jonathan Pryor  <jonpryor@vt.edu>
41
42         * signal.c, stdio.c: Remove "function declaration isn't a prototype" warnings.
43         * unistd.c: Check for presence of gethostname and sethostname.
44
45 2005-01-03  Jonathan Pryor  <jonpryor@vt.edu>
46
47         * mph.h, x-struct-str.c: Add "const" to parameters to remove 
48           "warning: passing arg [2|4]...discards qualifiers" message.
49
50 2005-01-03  Jonathan Pryor  <jonpryor@vt.edu>
51
52         * fstab.c: Remove some sparc compiler warnings.
53
54 2005-01-03  Jonathan Pryor  <jonpryor@vt.edu>
55
56         * fstab.c: Solaris doesn't support getfsent(3), but it provides equivalent
57           functionality in getvfsent(3C).  Implement Solaris support.
58
59 2005-01-02  Jonathan Pryor  <jonpryor@vt.edu>
60
61         * stdio.c: More wrapper functions.  I missed a few macros...  This should
62           complete all macro's defined in <stdio.h> for C99.
63
64 2004-12-30  Jonathan Pryor  <jonpryor@vt.edu>
65
66         * stdio.c: More wrapper functions.  This should complete C89's <stdio.h>
67           requirements.
68
69 2004-12-30  Jonathan Pryor  <jonpryor@vt.edu>
70
71         * sys-statvfs.c: Further proving that changing code without compiling is
72           dangerous business...  Compiler fix for OS X.
73
74 2004-12-30  Jonathan Pryor  <jonpryor@vt.edu>
75
76         * signal.c: Mac OS X portability fixes -- it doesn't provide sighandler_t!
77
78 2004-12-30  Jonathan Pryor  <jonpryor@vt.edu>
79
80         * Makefile.am: Add signal.c to the build.
81         * signal.c: Added.  Contains helper functions to wrap signal(2).
82
83 2004-12-30  Jonathan Pryor  <jonpryor@vt.edu>
84
85         * sys-statvfs.c: Fix Mac OS X build (statfs.f_frsize doesn't exist on OSX;
86           f_fsid isn't an integral type; fstatfs needs to use fpathconf).
87
88 2004-12-29  Jonathan Pryor  <jonpryor@vt.edu>
89
90         * unistd.c: Null-terminate the string returned by readlink(2).  This works
91           around a marshaler "issue".
92
93 2004-12-28  Jonathan Pryor  <jonpryor@vt.edu>
94
95         * Makefile.am: Add GLIB_LIBS to the LIBS line, since we require linking
96           against glib-2.0 (to use g_assert()).
97
98 2004-12-28  Jonathan Pryor  <jonpryor@vt.edu>
99
100         * fstab.c: Added; wrap <fstab.h> functions: getfsent(3), getfsfile(3), 
101           getfsspec(3).
102         * map.c: Add new conversion functions for SyslogOptions, SyslogFacility, 
103           SyslogLevel; see syslog(3) for details.
104         * map.h: Add new conversion functions and values for SyslogOptions, 
105           SyslogFacility, SyslogLevel; see syslog(3) for details.
106         * Makefile.am (MPH_SOURCE): add fstab.c, sys-statvfs.c, x-struct-str.c.
107         * mph.h: Document location for Mac OS X man page documentation; add
108           MPH_INTERNAL macro for intra-library function calls (for functions that
109           shouldn't be exported from libMonoPosixHelper.so); declare
110           _mph_copy_structure_strings().
111         * pwd.c: Use _mph_copy_structure_strings() to copy strings embedded within
112           struct passwd.
113         * sys-statvfs.c: Added; wrap <sys/statvfs.h> functions statvfs(2),
114           fstatvfs(2), and (to complicate things) implement (f)statvfs(2) in terms
115           of (f)statfs(2) on Mac OS X (which lacks the -vfs calls).
116         * x-struct-str.c: implements _mph_copy_structure_strings(), which is a
117           generalized interface to copy strings between structures (as is needed in
118           pwd.c and fstab.c).
119
120 Thu Dec 23 14:58:09 EST 2004 Paolo Molaro <lupus@ximian.com>
121
122         * serial.c: remove mono calls from here: they break the build
123         and they don't belong here.
124
125 2004-12-21  Chris Toshok  <toshok@ximian.com>
126
127         * serial.c: initial import of System.IO.Ports pinvoke stuff.
128
129         * Makefile.am (MPH_SOURCE): add serial.c.
130
131 2004-11-30  Jonathan Pryor  <jonpryor@vt.edu>
132
133         * mph.h: Use <glib.h>, not <glib/gtypes.h>, as the HP/UX compiler needs
134           <glib/gutils.h> to handle the `inline' keyword.
135
136 2004-11-27  Miguel de Icaza  <miguel@ximian.com>
137
138         * Makefile.am (MPH_SOURCE): Add macros.c for compatibility with
139         the old API (currently the old API would fail).
140
141 2004-11-25  Raja R Harinath  <rharinath@novell.com>
142
143         * Makefile.am (MPH_SOURCE): Distribute old-map.h and map.h.
144
145 2004-11-18  Jonathan Pryor  <jonpryor@vt.edu>
146
147         * stdio.c: Add fread(3) and fwrite(3) wrappers.
148
149 2004-11-16  Jonathan Pryor  <jonpryor@vt.edu>
150
151         * Makefile.am: Remove sys-mount.c from the build.
152         * sys-mount.c: Delete.  We're not exporting mount-related functionality
153           anymore.  It's not remotely portable, and trying to make it portable is a
154           doomed idea.
155         * map.c: Remove mount- and umount-related conversion functions.
156
157 2004-11-14  Geoff Norton  <gnorton@customerdna.com>
158         
159         * mph.h:  Revernt jonp's removal of MPH_ON_BSD define as sys-mount.c
160         and unistd.c still check this configuration value.  This allows mono
161         to build on *BSD again.
162
163 2004-11-12  Jonathan Pryor <jonpryor@vt.edu>
164
165         * dirent.c: Only access members which exist on the target
166           platform.
167         * errno.c: Only export strerror_r if it's available.
168         * mph.h: Remove MPH_ON_BSD; use the configure checks instead.
169         * sys-mman.c: Only export posix_madvise if it's available.
170         * unistd.c: Only export sethostid if it's available.
171
172 2004-11-08  Jonathan Pryor <jonpryor@vt.edu>
173
174         * Makefile.am: Add sys-sendfile.c to the build.
175         * dirent.c, fcntl.c, unistd.c: Remove
176           compile-time checks for -64 apis (pread64, etc.), as they're
177           superfluous.  GLibc #defines the functions to the appropriate
178           -64 counterpart when necessary, and Darwin is intrinsically
179           large-file-aware, so manual checking on my part is redundant and
180           unnecessary.
181         * grp.c: Add checks for non-portable functions getgrnam_r,
182           getgrgid_r.
183         * pwd.c: Add checks for non-portable functions getpwnam_r,
184           getpwuid_r.
185         * map.c: Remove <poll.h> include.  Building on Tiger (Mac
186           OS X 10.4 beta) breaks when both <poll.h> and <sys/poll.h> are
187           included, so only use <sys/poll.h>.
188         * mph.h: Clean up macro handling for type overflow checking.
189
190 2004-11-05  Jonathan Pryor <jonpryor@vt.edu>
191
192         * .cvsignore: Ignore generated files.
193         * Makefile.am: Add new INCLUDE directives (for glib
194           headers), source; bump library version (so we don't clobber
195           previous versions of libMonoPosixHelper.so).
196         * dirent.c: New file; <dirent.h> wrapper functions; 
197           BSD portability fixes.
198         * errno.c: New file; <errno.h> wrapper functions
199         * fcntl.c: New file; <fcntl.h> wrapper functions;
200           BSD portability fixes.
201         * grp.c: New file; <grp.h> wrapper functions;
202           BSD portability fixes.
203         * map.c: Updated macro mapping functions (more enums
204           mapped, more error checking, etc.).
205         * map.h: Updated macro mapping functions
206         * old-map.c: Previous map.c implementation, for backward
207           compatibility Remove spurious warning about redefining
208           _GNU_SOURCE.
209         * old-map.h: Previous map.h implementation, for backward
210         compatibility
211         * mph.h: New file; Utility types, macros;
212           BSD portability fixes.
213         * pwd.c: New file; <pwd.h> wrapper functions;
214           BSD portability fixes.
215         * stdio.c: New file; <stdio.h> wrapper functions
216         * stdlib.c: New file; <stdlib.h> wrapper functions
217         * sys-mman.c: New file; <sys/mman.h> wrapper functions
218         * sys-mount.c: New file; <sys/mount.h> wrapper functions;
219           BSD portability fixes.
220         * sys-sendfile.c: New file; <sys/sendfile.h> wrapper
221           functions; BSD portability fixes.
222         * sys-stat.c: New file; <sys/stat.h> wrapper functions
223         * sys-wait.c: New file; <sys/wait.h> wrapper functions
224         * time.c: New file; <time.h> wrapper functions;
225           BSD portability fixes.
226         * unistd.c: New file; <unistd.h> wrapper functions;
227           BSD portability fixes.
228