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