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