1 2005-05-16 Jonathan Pryor <jonpryor@vt.edu>
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
7 2005-05-12 Jonathan Pryor <jonpryor@vt.edu>
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
14 2005-05-03 Geoff Norton <gnorton@customerdna.com>
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.
19 2005-04-30 Jonathan Pryor <jonpryor@vt.edu>
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().
24 2005-04-19 Jonathan Pryor <jonpryor@vt.edu>
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.
31 2005-04-07 Jonathan Pryor <jonpryor@vt.edu>
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.
39 2005-04-05 Zoltan Varga <vargaz@freemail.hu>
41 * mph.h: Apply patch from the freebsd ports collection.
43 2005-02-10 Zoltan Varga <vargaz@freemail.hu>
45 * zlib_macros.c (create_z_stream): Explicitly check for older versions
48 2005-02-08 Zoltan Varga <vargaz@freemail.hu>
50 * pwd.c (Mono_Posix_Syscall_getpwnam_r): Add another part missing from the last patch.
52 2005-02-07 Jonathan Pryor <jonpryor@vt.edu>
54 * grp.c: Oops. Didn't see other Solaris fix in #72292.
56 2005-02-07 Jonathan Pryor <jonpryor@vt.edu>
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.
61 2005-02-03 Jonathan Pryor <jonpryor@vt.edu>
63 * Makefile.am (MPH_C_SOURCE): Move errno.c into MPH_C_SOURCE, so it's built
64 on Windows as well as Unix.
66 2005-02-03 Jonathan Pryor <jonpryor@vt.edu>
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. :-)
73 2005-01-25 Jonathan Pryor <jonpryor@vt.edu>
75 * macros.c: Use gint64, not long, to match C# declaration. Fixes 71152.
77 2005-01-23 Geoff Norton <gnorton@customerdna.com>
79 * dirent.c: Include <unistd.h> to bring off_t in on gcc4.0+OSX
81 2005-01-13 Jonathan Pryor <jonpryor@vt.edu>
83 * map.h: Correct Mono_Posix_OpenFlags values (they should now match
84 x86 linux); remove unused enumerations (MountFlags, etc.).
86 2005-01-13 Jonathan Pryor <jonpryor@vt.edu>
88 * fstab.c: Fix HPUX support. HPUX includes both <fstab.h> and
89 <checkpoint.h>, so we need to give preference to <checkpoint.h>.
91 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
93 * fstab.c: Add support for HPUX, which uses <checklist.h>.
95 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
97 * map.c: Continuing my ineptitude... <sys/wait.h> isn't on Win32.
98 * mph.h: Win32 doesn't define EOVERFLOW, either. Define it.
100 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
102 * map.c: Include <config.h> so we can check for PLATFORM_WIN32.
104 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
106 * map.c: Fix Win32 build break. Win32 doesn't have all the sys/* headers.
108 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
110 * serial.c: HPUX compiler fix.
111 * stdlib.c: Add C-defined macro wrappers.
113 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
115 * stdio.c: Add wrapper for C99's snprintf(3).
117 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
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.
124 2005-01-04 Raja R Harinath <rharinath@novell.com>
126 * Makefile.am (LIBS): Remove. Was overriding results of configure check.
127 (libMonoPosixHelper_la_LIBADD): List $(GLIB_LIBS) here.
129 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
131 * Makefile.am: Add libnsl to LIBS. Hopefully this will let sparc link.
132 * mph.h: Make MPH_INTERNAL conditional on __GNUC__.
134 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
136 * signal.c, stdio.c: Remove "function declaration isn't a prototype" warnings.
137 * unistd.c: Check for presence of gethostname and sethostname.
139 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
141 * mph.h, x-struct-str.c: Add "const" to parameters to remove
142 "warning: passing arg [2|4]...discards qualifiers" message.
144 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
146 * fstab.c: Remove some sparc compiler warnings.
148 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
150 * fstab.c: Solaris doesn't support getfsent(3), but it provides equivalent
151 functionality in getvfsent(3C). Implement Solaris support.
153 2005-01-02 Jonathan Pryor <jonpryor@vt.edu>
155 * stdio.c: More wrapper functions. I missed a few macros... This should
156 complete all macro's defined in <stdio.h> for C99.
158 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
160 * stdio.c: More wrapper functions. This should complete C89's <stdio.h>
163 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
165 * sys-statvfs.c: Further proving that changing code without compiling is
166 dangerous business... Compiler fix for OS X.
168 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
170 * signal.c: Mac OS X portability fixes -- it doesn't provide sighandler_t!
172 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
174 * Makefile.am: Add signal.c to the build.
175 * signal.c: Added. Contains helper functions to wrap signal(2).
177 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
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).
182 2004-12-29 Jonathan Pryor <jonpryor@vt.edu>
184 * unistd.c: Null-terminate the string returned by readlink(2). This works
185 around a marshaler "issue".
187 2004-12-28 Jonathan Pryor <jonpryor@vt.edu>
189 * Makefile.am: Add GLIB_LIBS to the LIBS line, since we require linking
190 against glib-2.0 (to use g_assert()).
192 2004-12-28 Jonathan Pryor <jonpryor@vt.edu>
194 * fstab.c: Added; wrap <fstab.h> functions: getfsent(3), getfsfile(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
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
214 Thu Dec 23 14:58:09 EST 2004 Paolo Molaro <lupus@ximian.com>
216 * serial.c: remove mono calls from here: they break the build
217 and they don't belong here.
219 2004-12-21 Chris Toshok <toshok@ximian.com>
221 * serial.c: initial import of System.IO.Ports pinvoke stuff.
223 * Makefile.am (MPH_SOURCE): add serial.c.
225 2004-11-30 Jonathan Pryor <jonpryor@vt.edu>
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.
230 2004-11-27 Miguel de Icaza <miguel@ximian.com>
232 * Makefile.am (MPH_SOURCE): Add macros.c for compatibility with
233 the old API (currently the old API would fail).
235 2004-11-25 Raja R Harinath <rharinath@novell.com>
237 * Makefile.am (MPH_SOURCE): Distribute old-map.h and map.h.
239 2004-11-18 Jonathan Pryor <jonpryor@vt.edu>
241 * stdio.c: Add fread(3) and fwrite(3) wrappers.
243 2004-11-16 Jonathan Pryor <jonpryor@vt.edu>
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
249 * map.c: Remove mount- and umount-related conversion functions.
251 2004-11-14 Geoff Norton <gnorton@customerdna.com>
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.
257 2004-11-12 Jonathan Pryor <jonpryor@vt.edu>
259 * dirent.c: Only access members which exist on the target
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.
266 2004-11-08 Jonathan Pryor <jonpryor@vt.edu>
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
275 * grp.c: Add checks for non-portable functions getgrnam_r,
277 * pwd.c: Add checks for non-portable functions getpwnam_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.
284 2004-11-05 Jonathan Pryor <jonpryor@vt.edu>
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
303 * old-map.h: Previous map.h implementation, for backward
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.