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