65a696f8b587e650d69849135a05468ae11c4e79
[mono.git] / support / ChangeLog
1 2005-05-31  Jonathan Pryor  <jonpryor@vt.edu>
2
3         * unistd.c: Oops -- deal with s/LockFlags/LockfCommand/ change.
4
5 2005-05-31  Jonathan Pryor  <jonpryor@vt.edu>
6
7         * map.h, map.c, map-icalls.h: Rename LockFlags to LockfCommand.
8
9 2005-05-20  Zoltan Varga  <vargaz@freemail.hu>
10
11         * Makefile.am (MPH_C_SOURCE): Add map-icalls.h. Fixes #75012.
12
13 2005-05-18  Jonathan Pryor  <jonpryor@vt.edu>
14
15         * map-icalls.h: Added; auto-generated file which contains Mono_Posix_*
16           declarations for DllImport functions in Mono.Posix.dll.  This ensure
17           consistency between Mono.Posix.dll and MonoPosixHelper.so.
18         * mph.h: Add include for map-icalls.h, to ensure that all MonoPosixHelper
19           exports have correct prototypes.
20         * dirent.c, grp.c, macros.c, pwd.c, signal.c, stdio.c, sys-stat.c, 
21           sys-time.c, utime.c: Correct prototypes to match map-icalls.h.  Alas, this
22           "loses" information -- FILE* becomes void*, etc. -- but no semantics or
23           ABI should be changed (except for Mono_Posix_Syscall_utime).  Some
24           structure names also changed to match the generated names; since the
25           structures are private, this shouldn't break anything.
26         * errno.c: Remove Mono_Posix_Syscall_SetLastError so we don't get a warning
27           about a missing prototype.  This was never in a stable release.
28         * old-map.c: Include mph.h for prototype checking.
29         * unistd.c: SeekFlags conversion is now done in managed code so that a short
30           isn't passed as a parameter; Correct prototypes to match map-icalls.h.
31         * sys-xattr.c: fix lsetxattr/fsetxattr confusion; Correct prototypes to 
32           match map-icalls.h.
33         * sys-sendfile.c: Move mph.h include so that HAVE_SYS_SENDFILE_H is used.
34         * sys-wait.c: Include mph.h so that prototypes are checked.
35
36 2005-05-16  Jonathan Pryor  <jonpryor@vt.edu>
37
38         * sys-statvfs.c: Include "map.h" for Mono_Posix_ToMountFlags prototype.
39         * map.c: Include <sys/statvfs.h> so Mono_Posix_{To,From}MountFlags actually
40           does something useful.
41
42 2005-05-12  Jonathan Pryor  <jonpryor@vt.edu>
43
44         * map.c, map.h: Add FromMountFlags, ToMountFlags.  (MountFlags is used in
45           `struct statvfs', which is POSIX).
46         * sys-statvfs.c: Use ToMountFlags to convert the OS flags value into the
47           managed equivalent.
48
49 2005-05-03  Geoff Norton  <gnorton@customerdna.com>
50
51         * sys-xattr.c:  Mac OS/X Tiger supports xattr but has a different API for supporting
52         resource forks.  Allow mono to build on Tiger.
53
54 2005-04-30  Jonathan Pryor  <jonpryor@vt.edu>
55
56         * stdio.c: Add Mono_Posix_Stdlib_DumpFilePosition, which create a hex string
57           "dump" of a fpos_t.  This is used for Mono.Unix.FilePosition.ToString().
58
59 2005-04-19  Jonathan Pryor  <jonpryor@vt.edu>
60
61         * map.c, map.h: Added XattrFlags values, functions.
62         * sys-xattr.c: Added; <sys/xattr.h> wrapper functions.  Thanks to Daniel
63           Drake for writing these.
64         * Makefile.am: Add sys-xattr.c to the build.
65
66 2005-04-07  Jonathan Pryor  <jonpryor@vt.edu>
67
68         * errno.c: Use the GNU version of strerror_r if _GNU_SOURCE is defined
69           (otherwise assume existence of XPG variant).  This allows proper
70           compilation under Red Hat 9.
71         * fstab.c: protect against users calling setfsent(), setfsent(), ...  
72           endfsent(), which would otherwise leak a FILE handle.
73
74 2005-04-05  Zoltan Varga  <vargaz@freemail.hu>
75
76         * mph.h: Apply patch from the freebsd ports collection.
77
78 2005-02-10  Zoltan Varga  <vargaz@freemail.hu>
79
80         * zlib_macros.c (create_z_stream): Explicitly check for older versions
81         of zlib.
82
83 2005-02-08  Zoltan Varga  <vargaz@freemail.hu>
84
85         * pwd.c (Mono_Posix_Syscall_getpwnam_r): Add another part missing from the last patch.
86
87 2005-02-07  Jonathan Pryor  <jonpryor@vt.edu>
88
89         * grp.c: Oops.  Didn't see other Solaris fix in #72292.
90
91 2005-02-07  Jonathan Pryor  <jonpryor@vt.edu>
92
93         * grp.c, pwd.c: Clear errno before calling the actual calls, as errno may
94           have a stale value, leading to spurious errors later.  Fixes #72292.
95
96 2005-02-03  Jonathan Pryor  <jonpryor@vt.edu>
97
98         * Makefile.am (MPH_C_SOURCE): Move errno.c into MPH_C_SOURCE, so it's built
99           on Windows as well as Unix.
100
101 2005-02-03  Jonathan Pryor  <jonpryor@vt.edu>
102
103         * errno.c: Mono_Posix_Syscall_SetLastError should be in Stdlib, not Syscall, 
104           since it's part of ANSI C (and errno will be used from StdioFileStream).  
105           Add Mono_Posix_Stdlib_SetLastError.  Don't remove the Syscall version, as 
106           we don't want to break Mono 1.1.4/svn users the day after release. :-)
107
108 2005-01-25  Jonathan Pryor  <jonpryor@vt.edu>
109
110         * macros.c: Use gint64, not long, to match C# declaration.  Fixes 71152.
111
112 2005-01-23  Geoff Norton  <gnorton@customerdna.com>
113
114         * dirent.c: Include <unistd.h> to bring off_t in on gcc4.0+OSX
115
116 2005-01-13  Jonathan Pryor  <jonpryor@vt.edu>
117
118         * map.h: Correct Mono_Posix_OpenFlags values (they should now match 
119           x86 linux); remove unused enumerations (MountFlags, etc.).
120
121 2005-01-13  Jonathan Pryor  <jonpryor@vt.edu>
122
123         * fstab.c: Fix HPUX support.  HPUX includes both <fstab.h> and
124           <checkpoint.h>, so we need to give preference to <checkpoint.h>.
125
126 2005-01-05  Jonathan Pryor  <jonpryor@vt.edu>
127
128         * fstab.c: Add support for HPUX, which uses <checklist.h>.
129
130 2005-01-05  Jonathan Pryor  <jonpryor@vt.edu>
131
132         * map.c: Continuing my ineptitude...  <sys/wait.h> isn't on Win32.
133         * mph.h: Win32 doesn't define EOVERFLOW, either.  Define it.
134
135 2005-01-05  Jonathan Pryor  <jonpryor@vt.edu>
136
137         * map.c: Include <config.h> so we can check for PLATFORM_WIN32.
138
139 2005-01-05  Jonathan Pryor  <jonpryor@vt.edu>
140
141         * map.c: Fix Win32 build break.  Win32 doesn't have all the sys/* headers.
142
143 2005-01-05  Jonathan Pryor  <jonpryor@vt.edu>
144
145         * serial.c: HPUX compiler fix.
146         * stdlib.c: Add C-defined macro wrappers.
147
148 2005-01-04  Jonathan Pryor  <jonpryor@vt.edu>
149
150         * stdio.c: Add wrapper for C99's snprintf(3).
151
152 2005-01-04  Jonathan Pryor  <jonpryor@vt.edu>
153
154         * Makefile.am: Rewrite.  Remove configure-generated warnings about 
155           multiple _LIBADD and _SOURCES lines.  Add support for Win32.  
156           Win32 support is limited to ANSI C functions.
157         * stdio.c: Don't compile Unix wrappers on Win32.
158
159 2005-01-04  Raja R Harinath  <rharinath@novell.com>
160
161         * Makefile.am (LIBS): Remove.  Was overriding results of configure check.
162         (libMonoPosixHelper_la_LIBADD): List $(GLIB_LIBS) here.
163
164 2005-01-04  Jonathan Pryor  <jonpryor@vt.edu>
165
166         * Makefile.am: Add libnsl to LIBS.  Hopefully this will let sparc link.
167         * mph.h: Make MPH_INTERNAL conditional on __GNUC__.
168
169 2005-01-03  Jonathan Pryor  <jonpryor@vt.edu>
170
171         * signal.c, stdio.c: Remove "function declaration isn't a prototype" warnings.
172         * unistd.c: Check for presence of gethostname and sethostname.
173
174 2005-01-03  Jonathan Pryor  <jonpryor@vt.edu>
175
176         * mph.h, x-struct-str.c: Add "const" to parameters to remove 
177           "warning: passing arg [2|4]...discards qualifiers" message.
178
179 2005-01-03  Jonathan Pryor  <jonpryor@vt.edu>
180
181         * fstab.c: Remove some sparc compiler warnings.
182
183 2005-01-03  Jonathan Pryor  <jonpryor@vt.edu>
184
185         * fstab.c: Solaris doesn't support getfsent(3), but it provides equivalent
186           functionality in getvfsent(3C).  Implement Solaris support.
187
188 2005-01-02  Jonathan Pryor  <jonpryor@vt.edu>
189
190         * stdio.c: More wrapper functions.  I missed a few macros...  This should
191           complete all macro's defined in <stdio.h> for C99.
192
193 2004-12-30  Jonathan Pryor  <jonpryor@vt.edu>
194
195         * stdio.c: More wrapper functions.  This should complete C89's <stdio.h>
196           requirements.
197
198 2004-12-30  Jonathan Pryor  <jonpryor@vt.edu>
199
200         * sys-statvfs.c: Further proving that changing code without compiling is
201           dangerous business...  Compiler fix for OS X.
202
203 2004-12-30  Jonathan Pryor  <jonpryor@vt.edu>
204
205         * signal.c: Mac OS X portability fixes -- it doesn't provide sighandler_t!
206
207 2004-12-30  Jonathan Pryor  <jonpryor@vt.edu>
208
209         * Makefile.am: Add signal.c to the build.
210         * signal.c: Added.  Contains helper functions to wrap signal(2).
211
212 2004-12-30  Jonathan Pryor  <jonpryor@vt.edu>
213
214         * sys-statvfs.c: Fix Mac OS X build (statfs.f_frsize doesn't exist on OSX;
215           f_fsid isn't an integral type; fstatfs needs to use fpathconf).
216
217 2004-12-29  Jonathan Pryor  <jonpryor@vt.edu>
218
219         * unistd.c: Null-terminate the string returned by readlink(2).  This works
220           around a marshaler "issue".
221
222 2004-12-28  Jonathan Pryor  <jonpryor@vt.edu>
223
224         * Makefile.am: Add GLIB_LIBS to the LIBS line, since we require linking
225           against glib-2.0 (to use g_assert()).
226
227 2004-12-28  Jonathan Pryor  <jonpryor@vt.edu>
228
229         * fstab.c: Added; wrap <fstab.h> functions: getfsent(3), getfsfile(3), 
230           getfsspec(3).
231         * map.c: Add new conversion functions for SyslogOptions, SyslogFacility, 
232           SyslogLevel; see syslog(3) for details.
233         * map.h: Add new conversion functions and values for SyslogOptions, 
234           SyslogFacility, SyslogLevel; see syslog(3) for details.
235         * Makefile.am (MPH_SOURCE): add fstab.c, sys-statvfs.c, x-struct-str.c.
236         * mph.h: Document location for Mac OS X man page documentation; add
237           MPH_INTERNAL macro for intra-library function calls (for functions that
238           shouldn't be exported from libMonoPosixHelper.so); declare
239           _mph_copy_structure_strings().
240         * pwd.c: Use _mph_copy_structure_strings() to copy strings embedded within
241           struct passwd.
242         * sys-statvfs.c: Added; wrap <sys/statvfs.h> functions statvfs(2),
243           fstatvfs(2), and (to complicate things) implement (f)statvfs(2) in terms
244           of (f)statfs(2) on Mac OS X (which lacks the -vfs calls).
245         * x-struct-str.c: implements _mph_copy_structure_strings(), which is a
246           generalized interface to copy strings between structures (as is needed in
247           pwd.c and fstab.c).
248
249 Thu Dec 23 14:58:09 EST 2004 Paolo Molaro <lupus@ximian.com>
250
251         * serial.c: remove mono calls from here: they break the build
252         and they don't belong here.
253
254 2004-12-21  Chris Toshok  <toshok@ximian.com>
255
256         * serial.c: initial import of System.IO.Ports pinvoke stuff.
257
258         * Makefile.am (MPH_SOURCE): add serial.c.
259
260 2004-11-30  Jonathan Pryor  <jonpryor@vt.edu>
261
262         * mph.h: Use <glib.h>, not <glib/gtypes.h>, as the HP/UX compiler needs
263           <glib/gutils.h> to handle the `inline' keyword.
264
265 2004-11-27  Miguel de Icaza  <miguel@ximian.com>
266
267         * Makefile.am (MPH_SOURCE): Add macros.c for compatibility with
268         the old API (currently the old API would fail).
269
270 2004-11-25  Raja R Harinath  <rharinath@novell.com>
271
272         * Makefile.am (MPH_SOURCE): Distribute old-map.h and map.h.
273
274 2004-11-18  Jonathan Pryor  <jonpryor@vt.edu>
275
276         * stdio.c: Add fread(3) and fwrite(3) wrappers.
277
278 2004-11-16  Jonathan Pryor  <jonpryor@vt.edu>
279
280         * Makefile.am: Remove sys-mount.c from the build.
281         * sys-mount.c: Delete.  We're not exporting mount-related functionality
282           anymore.  It's not remotely portable, and trying to make it portable is a
283           doomed idea.
284         * map.c: Remove mount- and umount-related conversion functions.
285
286 2004-11-14  Geoff Norton  <gnorton@customerdna.com>
287         
288         * mph.h:  Revernt jonp's removal of MPH_ON_BSD define as sys-mount.c
289         and unistd.c still check this configuration value.  This allows mono
290         to build on *BSD again.
291
292 2004-11-12  Jonathan Pryor <jonpryor@vt.edu>
293
294         * dirent.c: Only access members which exist on the target
295           platform.
296         * errno.c: Only export strerror_r if it's available.
297         * mph.h: Remove MPH_ON_BSD; use the configure checks instead.
298         * sys-mman.c: Only export posix_madvise if it's available.
299         * unistd.c: Only export sethostid if it's available.
300
301 2004-11-08  Jonathan Pryor <jonpryor@vt.edu>
302
303         * Makefile.am: Add sys-sendfile.c to the build.
304         * dirent.c, fcntl.c, unistd.c: Remove
305           compile-time checks for -64 apis (pread64, etc.), as they're
306           superfluous.  GLibc #defines the functions to the appropriate
307           -64 counterpart when necessary, and Darwin is intrinsically
308           large-file-aware, so manual checking on my part is redundant and
309           unnecessary.
310         * grp.c: Add checks for non-portable functions getgrnam_r,
311           getgrgid_r.
312         * pwd.c: Add checks for non-portable functions getpwnam_r,
313           getpwuid_r.
314         * map.c: Remove <poll.h> include.  Building on Tiger (Mac
315           OS X 10.4 beta) breaks when both <poll.h> and <sys/poll.h> are
316           included, so only use <sys/poll.h>.
317         * mph.h: Clean up macro handling for type overflow checking.
318
319 2004-11-05  Jonathan Pryor <jonpryor@vt.edu>
320
321         * .cvsignore: Ignore generated files.
322         * Makefile.am: Add new INCLUDE directives (for glib
323           headers), source; bump library version (so we don't clobber
324           previous versions of libMonoPosixHelper.so).
325         * dirent.c: New file; <dirent.h> wrapper functions; 
326           BSD portability fixes.
327         * errno.c: New file; <errno.h> wrapper functions
328         * fcntl.c: New file; <fcntl.h> wrapper functions;
329           BSD portability fixes.
330         * grp.c: New file; <grp.h> wrapper functions;
331           BSD portability fixes.
332         * map.c: Updated macro mapping functions (more enums
333           mapped, more error checking, etc.).
334         * map.h: Updated macro mapping functions
335         * old-map.c: Previous map.c implementation, for backward
336           compatibility Remove spurious warning about redefining
337           _GNU_SOURCE.
338         * old-map.h: Previous map.h implementation, for backward
339         compatibility
340         * mph.h: New file; Utility types, macros;
341           BSD portability fixes.
342         * pwd.c: New file; <pwd.h> wrapper functions;
343           BSD portability fixes.
344         * stdio.c: New file; <stdio.h> wrapper functions
345         * stdlib.c: New file; <stdlib.h> wrapper functions
346         * sys-mman.c: New file; <sys/mman.h> wrapper functions
347         * sys-mount.c: New file; <sys/mount.h> wrapper functions;
348           BSD portability fixes.
349         * sys-sendfile.c: New file; <sys/sendfile.h> wrapper
350           functions; BSD portability fixes.
351         * sys-stat.c: New file; <sys/stat.h> wrapper functions
352         * sys-wait.c: New file; <sys/wait.h> wrapper functions
353         * time.c: New file; <time.h> wrapper functions;
354           BSD portability fixes.
355         * unistd.c: New file; <unistd.h> wrapper functions;
356           BSD portability fixes.
357