1 2005-06-05 Jonathan Pryor <jonpryor@vt.edu>
3 * map-icalls.h, map.h: Change header comment so it matches what
4 `make refresh` generates.
5 * map.c: Add <sys/xattr.h> header.
7 2005-05-31 Jonathan Pryor <jonpryor@vt.edu>
9 * sys-mman.c: Add wrappers for mmap, munmap, mprotect, msync, mlock,
10 munlock, mremap, mincore, remap_file_pages.
11 * map-icalls.h: Update to latest shared interface.
12 * map.c, map.h: Add {To,From} pairs for MmapFlags, MmapProt, MsyncFlags,
13 MlockallFlags, MremapFlags.
14 * mph.h: Add mph_return_*_if_ssize_t_overflow macros.
16 2005-05-31 Jonathan Pryor <jonpryor@vt.edu>
18 * unistd.c: Oops -- deal with s/LockFlags/LockfCommand/ change.
20 2005-05-31 Jonathan Pryor <jonpryor@vt.edu>
22 * map.h, map.c, map-icalls.h: Rename LockFlags to LockfCommand.
24 2005-05-20 Zoltan Varga <vargaz@freemail.hu>
26 * Makefile.am (MPH_C_SOURCE): Add map-icalls.h. Fixes #75012.
28 2005-05-18 Jonathan Pryor <jonpryor@vt.edu>
30 * map-icalls.h: Added; auto-generated file which contains Mono_Posix_*
31 declarations for DllImport functions in Mono.Posix.dll. This ensure
32 consistency between Mono.Posix.dll and MonoPosixHelper.so.
33 * mph.h: Add include for map-icalls.h, to ensure that all MonoPosixHelper
34 exports have correct prototypes.
35 * dirent.c, grp.c, macros.c, pwd.c, signal.c, stdio.c, sys-stat.c,
36 sys-time.c, utime.c: Correct prototypes to match map-icalls.h. Alas, this
37 "loses" information -- FILE* becomes void*, etc. -- but no semantics or
38 ABI should be changed (except for Mono_Posix_Syscall_utime). Some
39 structure names also changed to match the generated names; since the
40 structures are private, this shouldn't break anything.
41 * errno.c: Remove Mono_Posix_Syscall_SetLastError so we don't get a warning
42 about a missing prototype. This was never in a stable release.
43 * old-map.c: Include mph.h for prototype checking.
44 * unistd.c: SeekFlags conversion is now done in managed code so that a short
45 isn't passed as a parameter; Correct prototypes to match map-icalls.h.
46 * sys-xattr.c: fix lsetxattr/fsetxattr confusion; Correct prototypes to
48 * sys-sendfile.c: Move mph.h include so that HAVE_SYS_SENDFILE_H is used.
49 * sys-wait.c: Include mph.h so that prototypes are checked.
51 2005-05-16 Jonathan Pryor <jonpryor@vt.edu>
53 * sys-statvfs.c: Include "map.h" for Mono_Posix_ToMountFlags prototype.
54 * map.c: Include <sys/statvfs.h> so Mono_Posix_{To,From}MountFlags actually
55 does something useful.
57 2005-05-12 Jonathan Pryor <jonpryor@vt.edu>
59 * map.c, map.h: Add FromMountFlags, ToMountFlags. (MountFlags is used in
60 `struct statvfs', which is POSIX).
61 * sys-statvfs.c: Use ToMountFlags to convert the OS flags value into the
64 2005-05-03 Geoff Norton <gnorton@customerdna.com>
66 * sys-xattr.c: Mac OS/X Tiger supports xattr but has a different API for supporting
67 resource forks. Allow mono to build on Tiger.
69 2005-04-30 Jonathan Pryor <jonpryor@vt.edu>
71 * stdio.c: Add Mono_Posix_Stdlib_DumpFilePosition, which create a hex string
72 "dump" of a fpos_t. This is used for Mono.Unix.FilePosition.ToString().
74 2005-04-19 Jonathan Pryor <jonpryor@vt.edu>
76 * map.c, map.h: Added XattrFlags values, functions.
77 * sys-xattr.c: Added; <sys/xattr.h> wrapper functions. Thanks to Daniel
78 Drake for writing these.
79 * Makefile.am: Add sys-xattr.c to the build.
81 2005-04-07 Jonathan Pryor <jonpryor@vt.edu>
83 * errno.c: Use the GNU version of strerror_r if _GNU_SOURCE is defined
84 (otherwise assume existence of XPG variant). This allows proper
85 compilation under Red Hat 9.
86 * fstab.c: protect against users calling setfsent(), setfsent(), ...
87 endfsent(), which would otherwise leak a FILE handle.
89 2005-04-05 Zoltan Varga <vargaz@freemail.hu>
91 * mph.h: Apply patch from the freebsd ports collection.
93 2005-02-10 Zoltan Varga <vargaz@freemail.hu>
95 * zlib_macros.c (create_z_stream): Explicitly check for older versions
98 2005-02-08 Zoltan Varga <vargaz@freemail.hu>
100 * pwd.c (Mono_Posix_Syscall_getpwnam_r): Add another part missing from the last patch.
102 2005-02-07 Jonathan Pryor <jonpryor@vt.edu>
104 * grp.c: Oops. Didn't see other Solaris fix in #72292.
106 2005-02-07 Jonathan Pryor <jonpryor@vt.edu>
108 * grp.c, pwd.c: Clear errno before calling the actual calls, as errno may
109 have a stale value, leading to spurious errors later. Fixes #72292.
111 2005-02-03 Jonathan Pryor <jonpryor@vt.edu>
113 * Makefile.am (MPH_C_SOURCE): Move errno.c into MPH_C_SOURCE, so it's built
114 on Windows as well as Unix.
116 2005-02-03 Jonathan Pryor <jonpryor@vt.edu>
118 * errno.c: Mono_Posix_Syscall_SetLastError should be in Stdlib, not Syscall,
119 since it's part of ANSI C (and errno will be used from StdioFileStream).
120 Add Mono_Posix_Stdlib_SetLastError. Don't remove the Syscall version, as
121 we don't want to break Mono 1.1.4/svn users the day after release. :-)
123 2005-01-25 Jonathan Pryor <jonpryor@vt.edu>
125 * macros.c: Use gint64, not long, to match C# declaration. Fixes 71152.
127 2005-01-23 Geoff Norton <gnorton@customerdna.com>
129 * dirent.c: Include <unistd.h> to bring off_t in on gcc4.0+OSX
131 2005-01-13 Jonathan Pryor <jonpryor@vt.edu>
133 * map.h: Correct Mono_Posix_OpenFlags values (they should now match
134 x86 linux); remove unused enumerations (MountFlags, etc.).
136 2005-01-13 Jonathan Pryor <jonpryor@vt.edu>
138 * fstab.c: Fix HPUX support. HPUX includes both <fstab.h> and
139 <checkpoint.h>, so we need to give preference to <checkpoint.h>.
141 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
143 * fstab.c: Add support for HPUX, which uses <checklist.h>.
145 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
147 * map.c: Continuing my ineptitude... <sys/wait.h> isn't on Win32.
148 * mph.h: Win32 doesn't define EOVERFLOW, either. Define it.
150 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
152 * map.c: Include <config.h> so we can check for PLATFORM_WIN32.
154 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
156 * map.c: Fix Win32 build break. Win32 doesn't have all the sys/* headers.
158 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
160 * serial.c: HPUX compiler fix.
161 * stdlib.c: Add C-defined macro wrappers.
163 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
165 * stdio.c: Add wrapper for C99's snprintf(3).
167 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
169 * Makefile.am: Rewrite. Remove configure-generated warnings about
170 multiple _LIBADD and _SOURCES lines. Add support for Win32.
171 Win32 support is limited to ANSI C functions.
172 * stdio.c: Don't compile Unix wrappers on Win32.
174 2005-01-04 Raja R Harinath <rharinath@novell.com>
176 * Makefile.am (LIBS): Remove. Was overriding results of configure check.
177 (libMonoPosixHelper_la_LIBADD): List $(GLIB_LIBS) here.
179 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
181 * Makefile.am: Add libnsl to LIBS. Hopefully this will let sparc link.
182 * mph.h: Make MPH_INTERNAL conditional on __GNUC__.
184 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
186 * signal.c, stdio.c: Remove "function declaration isn't a prototype" warnings.
187 * unistd.c: Check for presence of gethostname and sethostname.
189 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
191 * mph.h, x-struct-str.c: Add "const" to parameters to remove
192 "warning: passing arg [2|4]...discards qualifiers" message.
194 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
196 * fstab.c: Remove some sparc compiler warnings.
198 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
200 * fstab.c: Solaris doesn't support getfsent(3), but it provides equivalent
201 functionality in getvfsent(3C). Implement Solaris support.
203 2005-01-02 Jonathan Pryor <jonpryor@vt.edu>
205 * stdio.c: More wrapper functions. I missed a few macros... This should
206 complete all macro's defined in <stdio.h> for C99.
208 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
210 * stdio.c: More wrapper functions. This should complete C89's <stdio.h>
213 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
215 * sys-statvfs.c: Further proving that changing code without compiling is
216 dangerous business... Compiler fix for OS X.
218 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
220 * signal.c: Mac OS X portability fixes -- it doesn't provide sighandler_t!
222 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
224 * Makefile.am: Add signal.c to the build.
225 * signal.c: Added. Contains helper functions to wrap signal(2).
227 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
229 * sys-statvfs.c: Fix Mac OS X build (statfs.f_frsize doesn't exist on OSX;
230 f_fsid isn't an integral type; fstatfs needs to use fpathconf).
232 2004-12-29 Jonathan Pryor <jonpryor@vt.edu>
234 * unistd.c: Null-terminate the string returned by readlink(2). This works
235 around a marshaler "issue".
237 2004-12-28 Jonathan Pryor <jonpryor@vt.edu>
239 * Makefile.am: Add GLIB_LIBS to the LIBS line, since we require linking
240 against glib-2.0 (to use g_assert()).
242 2004-12-28 Jonathan Pryor <jonpryor@vt.edu>
244 * fstab.c: Added; wrap <fstab.h> functions: getfsent(3), getfsfile(3),
246 * map.c: Add new conversion functions for SyslogOptions, SyslogFacility,
247 SyslogLevel; see syslog(3) for details.
248 * map.h: Add new conversion functions and values for SyslogOptions,
249 SyslogFacility, SyslogLevel; see syslog(3) for details.
250 * Makefile.am (MPH_SOURCE): add fstab.c, sys-statvfs.c, x-struct-str.c.
251 * mph.h: Document location for Mac OS X man page documentation; add
252 MPH_INTERNAL macro for intra-library function calls (for functions that
253 shouldn't be exported from libMonoPosixHelper.so); declare
254 _mph_copy_structure_strings().
255 * pwd.c: Use _mph_copy_structure_strings() to copy strings embedded within
257 * sys-statvfs.c: Added; wrap <sys/statvfs.h> functions statvfs(2),
258 fstatvfs(2), and (to complicate things) implement (f)statvfs(2) in terms
259 of (f)statfs(2) on Mac OS X (which lacks the -vfs calls).
260 * x-struct-str.c: implements _mph_copy_structure_strings(), which is a
261 generalized interface to copy strings between structures (as is needed in
264 Thu Dec 23 14:58:09 EST 2004 Paolo Molaro <lupus@ximian.com>
266 * serial.c: remove mono calls from here: they break the build
267 and they don't belong here.
269 2004-12-21 Chris Toshok <toshok@ximian.com>
271 * serial.c: initial import of System.IO.Ports pinvoke stuff.
273 * Makefile.am (MPH_SOURCE): add serial.c.
275 2004-11-30 Jonathan Pryor <jonpryor@vt.edu>
277 * mph.h: Use <glib.h>, not <glib/gtypes.h>, as the HP/UX compiler needs
278 <glib/gutils.h> to handle the `inline' keyword.
280 2004-11-27 Miguel de Icaza <miguel@ximian.com>
282 * Makefile.am (MPH_SOURCE): Add macros.c for compatibility with
283 the old API (currently the old API would fail).
285 2004-11-25 Raja R Harinath <rharinath@novell.com>
287 * Makefile.am (MPH_SOURCE): Distribute old-map.h and map.h.
289 2004-11-18 Jonathan Pryor <jonpryor@vt.edu>
291 * stdio.c: Add fread(3) and fwrite(3) wrappers.
293 2004-11-16 Jonathan Pryor <jonpryor@vt.edu>
295 * Makefile.am: Remove sys-mount.c from the build.
296 * sys-mount.c: Delete. We're not exporting mount-related functionality
297 anymore. It's not remotely portable, and trying to make it portable is a
299 * map.c: Remove mount- and umount-related conversion functions.
301 2004-11-14 Geoff Norton <gnorton@customerdna.com>
303 * mph.h: Revernt jonp's removal of MPH_ON_BSD define as sys-mount.c
304 and unistd.c still check this configuration value. This allows mono
305 to build on *BSD again.
307 2004-11-12 Jonathan Pryor <jonpryor@vt.edu>
309 * dirent.c: Only access members which exist on the target
311 * errno.c: Only export strerror_r if it's available.
312 * mph.h: Remove MPH_ON_BSD; use the configure checks instead.
313 * sys-mman.c: Only export posix_madvise if it's available.
314 * unistd.c: Only export sethostid if it's available.
316 2004-11-08 Jonathan Pryor <jonpryor@vt.edu>
318 * Makefile.am: Add sys-sendfile.c to the build.
319 * dirent.c, fcntl.c, unistd.c: Remove
320 compile-time checks for -64 apis (pread64, etc.), as they're
321 superfluous. GLibc #defines the functions to the appropriate
322 -64 counterpart when necessary, and Darwin is intrinsically
323 large-file-aware, so manual checking on my part is redundant and
325 * grp.c: Add checks for non-portable functions getgrnam_r,
327 * pwd.c: Add checks for non-portable functions getpwnam_r,
329 * map.c: Remove <poll.h> include. Building on Tiger (Mac
330 OS X 10.4 beta) breaks when both <poll.h> and <sys/poll.h> are
331 included, so only use <sys/poll.h>.
332 * mph.h: Clean up macro handling for type overflow checking.
334 2004-11-05 Jonathan Pryor <jonpryor@vt.edu>
336 * .cvsignore: Ignore generated files.
337 * Makefile.am: Add new INCLUDE directives (for glib
338 headers), source; bump library version (so we don't clobber
339 previous versions of libMonoPosixHelper.so).
340 * dirent.c: New file; <dirent.h> wrapper functions;
341 BSD portability fixes.
342 * errno.c: New file; <errno.h> wrapper functions
343 * fcntl.c: New file; <fcntl.h> wrapper functions;
344 BSD portability fixes.
345 * grp.c: New file; <grp.h> wrapper functions;
346 BSD portability fixes.
347 * map.c: Updated macro mapping functions (more enums
348 mapped, more error checking, etc.).
349 * map.h: Updated macro mapping functions
350 * old-map.c: Previous map.c implementation, for backward
351 compatibility Remove spurious warning about redefining
353 * old-map.h: Previous map.h implementation, for backward
355 * mph.h: New file; Utility types, macros;
356 BSD portability fixes.
357 * pwd.c: New file; <pwd.h> wrapper functions;
358 BSD portability fixes.
359 * stdio.c: New file; <stdio.h> wrapper functions
360 * stdlib.c: New file; <stdlib.h> wrapper functions
361 * sys-mman.c: New file; <sys/mman.h> wrapper functions
362 * sys-mount.c: New file; <sys/mount.h> wrapper functions;
363 BSD portability fixes.
364 * sys-sendfile.c: New file; <sys/sendfile.h> wrapper
365 functions; BSD portability fixes.
366 * sys-stat.c: New file; <sys/stat.h> wrapper functions
367 * sys-wait.c: New file; <sys/wait.h> wrapper functions
368 * time.c: New file; <time.h> wrapper functions;
369 BSD portability fixes.
370 * unistd.c: New file; <unistd.h> wrapper functions;
371 BSD portability fixes.