1 2005-05-12 Jonathan Pryor <jonpryor@vt.edu>
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
8 2005-05-03 Geoff Norton <gnorton@customerdna.com>
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.
13 2005-04-30 Jonathan Pryor <jonpryor@vt.edu>
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().
18 2005-04-19 Jonathan Pryor <jonpryor@vt.edu>
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.
25 2005-04-07 Jonathan Pryor <jonpryor@vt.edu>
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.
33 2005-04-05 Zoltan Varga <vargaz@freemail.hu>
35 * mph.h: Apply patch from the freebsd ports collection.
37 2005-02-10 Zoltan Varga <vargaz@freemail.hu>
39 * zlib_macros.c (create_z_stream): Explicitly check for older versions
42 2005-02-08 Zoltan Varga <vargaz@freemail.hu>
44 * pwd.c (Mono_Posix_Syscall_getpwnam_r): Add another part missing from the last patch.
46 2005-02-07 Jonathan Pryor <jonpryor@vt.edu>
48 * grp.c: Oops. Didn't see other Solaris fix in #72292.
50 2005-02-07 Jonathan Pryor <jonpryor@vt.edu>
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.
55 2005-02-03 Jonathan Pryor <jonpryor@vt.edu>
57 * Makefile.am (MPH_C_SOURCE): Move errno.c into MPH_C_SOURCE, so it's built
58 on Windows as well as Unix.
60 2005-02-03 Jonathan Pryor <jonpryor@vt.edu>
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. :-)
67 2005-01-25 Jonathan Pryor <jonpryor@vt.edu>
69 * macros.c: Use gint64, not long, to match C# declaration. Fixes 71152.
71 2005-01-23 Geoff Norton <gnorton@customerdna.com>
73 * dirent.c: Include <unistd.h> to bring off_t in on gcc4.0+OSX
75 2005-01-13 Jonathan Pryor <jonpryor@vt.edu>
77 * map.h: Correct Mono_Posix_OpenFlags values (they should now match
78 x86 linux); remove unused enumerations (MountFlags, etc.).
80 2005-01-13 Jonathan Pryor <jonpryor@vt.edu>
82 * fstab.c: Fix HPUX support. HPUX includes both <fstab.h> and
83 <checkpoint.h>, so we need to give preference to <checkpoint.h>.
85 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
87 * fstab.c: Add support for HPUX, which uses <checklist.h>.
89 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
91 * map.c: Continuing my ineptitude... <sys/wait.h> isn't on Win32.
92 * mph.h: Win32 doesn't define EOVERFLOW, either. Define it.
94 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
96 * map.c: Include <config.h> so we can check for PLATFORM_WIN32.
98 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
100 * map.c: Fix Win32 build break. Win32 doesn't have all the sys/* headers.
102 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
104 * serial.c: HPUX compiler fix.
105 * stdlib.c: Add C-defined macro wrappers.
107 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
109 * stdio.c: Add wrapper for C99's snprintf(3).
111 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
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.
118 2005-01-04 Raja R Harinath <rharinath@novell.com>
120 * Makefile.am (LIBS): Remove. Was overriding results of configure check.
121 (libMonoPosixHelper_la_LIBADD): List $(GLIB_LIBS) here.
123 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
125 * Makefile.am: Add libnsl to LIBS. Hopefully this will let sparc link.
126 * mph.h: Make MPH_INTERNAL conditional on __GNUC__.
128 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
130 * signal.c, stdio.c: Remove "function declaration isn't a prototype" warnings.
131 * unistd.c: Check for presence of gethostname and sethostname.
133 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
135 * mph.h, x-struct-str.c: Add "const" to parameters to remove
136 "warning: passing arg [2|4]...discards qualifiers" message.
138 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
140 * fstab.c: Remove some sparc compiler warnings.
142 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
144 * fstab.c: Solaris doesn't support getfsent(3), but it provides equivalent
145 functionality in getvfsent(3C). Implement Solaris support.
147 2005-01-02 Jonathan Pryor <jonpryor@vt.edu>
149 * stdio.c: More wrapper functions. I missed a few macros... This should
150 complete all macro's defined in <stdio.h> for C99.
152 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
154 * stdio.c: More wrapper functions. This should complete C89's <stdio.h>
157 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
159 * sys-statvfs.c: Further proving that changing code without compiling is
160 dangerous business... Compiler fix for OS X.
162 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
164 * signal.c: Mac OS X portability fixes -- it doesn't provide sighandler_t!
166 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
168 * Makefile.am: Add signal.c to the build.
169 * signal.c: Added. Contains helper functions to wrap signal(2).
171 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
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).
176 2004-12-29 Jonathan Pryor <jonpryor@vt.edu>
178 * unistd.c: Null-terminate the string returned by readlink(2). This works
179 around a marshaler "issue".
181 2004-12-28 Jonathan Pryor <jonpryor@vt.edu>
183 * Makefile.am: Add GLIB_LIBS to the LIBS line, since we require linking
184 against glib-2.0 (to use g_assert()).
186 2004-12-28 Jonathan Pryor <jonpryor@vt.edu>
188 * fstab.c: Added; wrap <fstab.h> functions: getfsent(3), getfsfile(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
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
208 Thu Dec 23 14:58:09 EST 2004 Paolo Molaro <lupus@ximian.com>
210 * serial.c: remove mono calls from here: they break the build
211 and they don't belong here.
213 2004-12-21 Chris Toshok <toshok@ximian.com>
215 * serial.c: initial import of System.IO.Ports pinvoke stuff.
217 * Makefile.am (MPH_SOURCE): add serial.c.
219 2004-11-30 Jonathan Pryor <jonpryor@vt.edu>
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.
224 2004-11-27 Miguel de Icaza <miguel@ximian.com>
226 * Makefile.am (MPH_SOURCE): Add macros.c for compatibility with
227 the old API (currently the old API would fail).
229 2004-11-25 Raja R Harinath <rharinath@novell.com>
231 * Makefile.am (MPH_SOURCE): Distribute old-map.h and map.h.
233 2004-11-18 Jonathan Pryor <jonpryor@vt.edu>
235 * stdio.c: Add fread(3) and fwrite(3) wrappers.
237 2004-11-16 Jonathan Pryor <jonpryor@vt.edu>
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
243 * map.c: Remove mount- and umount-related conversion functions.
245 2004-11-14 Geoff Norton <gnorton@customerdna.com>
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.
251 2004-11-12 Jonathan Pryor <jonpryor@vt.edu>
253 * dirent.c: Only access members which exist on the target
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.
260 2004-11-08 Jonathan Pryor <jonpryor@vt.edu>
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
269 * grp.c: Add checks for non-portable functions getgrnam_r,
271 * pwd.c: Add checks for non-portable functions getpwnam_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.
278 2004-11-05 Jonathan Pryor <jonpryor@vt.edu>
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
297 * old-map.h: Previous map.h implementation, for backward
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.