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