1 2005-10-14 Jonathan Pryor <jonpryor@vt.edu>
3 * signal.c: Don't build Syscall wrappers on Win32.
5 2005-10-14 Jonathan Pryor <jonpryor@vt.edu>
7 * Makefile.am (MPH_UNIX_SOURCE): Add syslog.c.
8 * dirent.c, grp.c, pwd.c, signal.c, stdio.c, stdlib.c: Wrap functions which
9 return `void' so that they instead: (1) return `int', (2) clear errno
10 before calling the real function, and (3) return -1 if errno changed.
11 This must be done in native code because calling
12 Stdlib.SetLastError/Syscall.xxx
13 from managed code won't work reliably (since errno may change between the
14 SetLastError call and the actual Syscall invocation).
15 * unistd.c: Same as above, and allow fpathconf(3), pathconf(3), sysconf(3),
16 and confstr(3) callers to explicitly choose their own errno value.
17 * map.c, map.h: Handle enumeration name change in Mono.Unix.Native
18 (e.g. ConfStr --> ConfstrName, etc.). This is so that they follow the
19 established naming conventions.
20 * map-icalls.h: Add new icalls.
21 * syslog.c: Added; wraps <syslog.h> functions.
23 2005-10-06 Jonathan Pryor <jonpryor@vt.edu>
25 * Makefile.am (MPH_C_SOURCE): Add string.c.
26 * string.c: Added; exports strlen(3) wrapper.
27 * map-icalls.h: Prototype for strlen(3) wrapper.
29 2005-09-29 Miguel de Icaza <miguel@novell.com>
31 * support-heap.c: Add meat to the Heap routines.
33 2005-09-20 Jonathan Pryor <jonpryor@vt.edu>
35 * Makefile.am (refresh): Use the make-map.exe in Mono.Unix.Native.
36 * map-icalls.h, map.c, map.h: Update to catch new enums AccessModes, Errno,
37 and MmapProts. Huge re-ordering because of namespace change in managed
38 code (not relevant to C API), and make-map.exe now outputs types/members
39 in alphabetical order (to avoid major code churn in the future).
41 2005-07-12 Daniel Drake <dsd@gentoo.org>
43 * sys-xattr.c: Use <attr/attr.h> if <sys/xattr.h> does not exist (e.g. for
45 * Makefile.am: Link to libattr if libc does not provide the xattr
48 Thu Jul 7 12:35:20 EDT 2005 Paolo Molaro <lupus@ximian.com>
50 *supportw.c, Makefile.am: remove calls and link to libmono/libwapi.
52 2005-07-01 Daniel Drake <dsd@gentoo.org>
54 * sys-xattr.c: Support FreeBSD's extattr implementation. Slight API rework
55 to provide transparency between Linux and FreeBSD EA's.
56 * map-icalls.h: Update as above
58 2005-06-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
60 * supportw.c: HeapDestroy.
61 * Makefile.am: don't build supportw on windows.
63 2005-06-29 Ben Maurer <bmaurer@ximian.com>
65 * Makefile.am: namespace our library.
67 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
71 * Makefile.am: new library intended to provide often P/Invoked windows
72 API functions not present in io-layer.
74 2005-06-29 Jonathan Pryor <jonpryor@vt.edu>
76 * map.c: Handle Syslog-related changes (SyslogFacility isn't a
77 [Flags] enum); make-map.exe changes.
79 2005-06-28 Jonathan Pryor <jonpryor@vt.edu>
81 * map.c, map.h: Handle Syslog-related changes (SyslogLevel isn't a [Flags]
82 enum; change in order between LOG_USER and LOG_USRE).
84 2005-06-27 Jonathan Pryor <jonpryor@vt.edu>
86 * map.c, map.h: Add corrected spelling of LOG_USER.
88 2005-06-13 Miguel de Icaza <miguel@novell.com>
90 * sys-statvfs.c (copy_statfs): f_flags is the field name on BSD,
93 2005-06-08 Jonathan Pryor <jonpryor@vt.edu>
95 * Makefile.am: Create an unversioned library. We won't make any gaurantees
96 about ABI stability until Mono 1.2 (if then).
98 2005-06-07 Jonathan Pryor <jonpryor@vt.edu>
100 * sys-mman.c: Check for presence of mremap and remap_file_pages.
102 2005-06-05 Jonathan Pryor <jonpryor@vt.edu>
104 * map-icalls.h, map.h: Change header comment so it matches what
105 `make refresh` generates.
106 * map.c: Add <sys/xattr.h> header.
108 2005-05-31 Jonathan Pryor <jonpryor@vt.edu>
110 * sys-mman.c: Add wrappers for mmap, munmap, mprotect, msync, mlock,
111 munlock, mremap, mincore, remap_file_pages.
112 * map-icalls.h: Update to latest shared interface.
113 * map.c, map.h: Add {To,From} pairs for MmapFlags, MmapProt, MsyncFlags,
114 MlockallFlags, MremapFlags.
115 * mph.h: Add mph_return_*_if_ssize_t_overflow macros.
117 2005-05-31 Jonathan Pryor <jonpryor@vt.edu>
119 * unistd.c: Oops -- deal with s/LockFlags/LockfCommand/ change.
121 2005-05-31 Jonathan Pryor <jonpryor@vt.edu>
123 * map.h, map.c, map-icalls.h: Rename LockFlags to LockfCommand.
125 2005-05-20 Zoltan Varga <vargaz@freemail.hu>
127 * Makefile.am (MPH_C_SOURCE): Add map-icalls.h. Fixes #75012.
129 2005-05-18 Jonathan Pryor <jonpryor@vt.edu>
131 * map-icalls.h: Added; auto-generated file which contains Mono_Posix_*
132 declarations for DllImport functions in Mono.Posix.dll. This ensure
133 consistency between Mono.Posix.dll and MonoPosixHelper.so.
134 * mph.h: Add include for map-icalls.h, to ensure that all MonoPosixHelper
135 exports have correct prototypes.
136 * dirent.c, grp.c, macros.c, pwd.c, signal.c, stdio.c, sys-stat.c,
137 sys-time.c, utime.c: Correct prototypes to match map-icalls.h. Alas, this
138 "loses" information -- FILE* becomes void*, etc. -- but no semantics or
139 ABI should be changed (except for Mono_Posix_Syscall_utime). Some
140 structure names also changed to match the generated names; since the
141 structures are private, this shouldn't break anything.
142 * errno.c: Remove Mono_Posix_Syscall_SetLastError so we don't get a warning
143 about a missing prototype. This was never in a stable release.
144 * old-map.c: Include mph.h for prototype checking.
145 * unistd.c: SeekFlags conversion is now done in managed code so that a short
146 isn't passed as a parameter; Correct prototypes to match map-icalls.h.
147 * sys-xattr.c: fix lsetxattr/fsetxattr confusion; Correct prototypes to
149 * sys-sendfile.c: Move mph.h include so that HAVE_SYS_SENDFILE_H is used.
150 * sys-wait.c: Include mph.h so that prototypes are checked.
152 2005-05-16 Jonathan Pryor <jonpryor@vt.edu>
154 * sys-statvfs.c: Include "map.h" for Mono_Posix_ToMountFlags prototype.
155 * map.c: Include <sys/statvfs.h> so Mono_Posix_{To,From}MountFlags actually
156 does something useful.
158 2005-05-12 Jonathan Pryor <jonpryor@vt.edu>
160 * map.c, map.h: Add FromMountFlags, ToMountFlags. (MountFlags is used in
161 `struct statvfs', which is POSIX).
162 * sys-statvfs.c: Use ToMountFlags to convert the OS flags value into the
165 2005-05-03 Geoff Norton <gnorton@customerdna.com>
167 * sys-xattr.c: Mac OS/X Tiger supports xattr but has a different API for supporting
168 resource forks. Allow mono to build on Tiger.
170 2005-04-30 Jonathan Pryor <jonpryor@vt.edu>
172 * stdio.c: Add Mono_Posix_Stdlib_DumpFilePosition, which create a hex string
173 "dump" of a fpos_t. This is used for Mono.Unix.FilePosition.ToString().
175 2005-04-19 Jonathan Pryor <jonpryor@vt.edu>
177 * map.c, map.h: Added XattrFlags values, functions.
178 * sys-xattr.c: Added; <sys/xattr.h> wrapper functions. Thanks to Daniel
179 Drake for writing these.
180 * Makefile.am: Add sys-xattr.c to the build.
182 2005-04-07 Jonathan Pryor <jonpryor@vt.edu>
184 * errno.c: Use the GNU version of strerror_r if _GNU_SOURCE is defined
185 (otherwise assume existence of XPG variant). This allows proper
186 compilation under Red Hat 9.
187 * fstab.c: protect against users calling setfsent(), setfsent(), ...
188 endfsent(), which would otherwise leak a FILE handle.
190 2005-04-05 Zoltan Varga <vargaz@freemail.hu>
192 * mph.h: Apply patch from the freebsd ports collection.
194 2005-02-10 Zoltan Varga <vargaz@freemail.hu>
196 * zlib_macros.c (create_z_stream): Explicitly check for older versions
199 2005-02-08 Zoltan Varga <vargaz@freemail.hu>
201 * pwd.c (Mono_Posix_Syscall_getpwnam_r): Add another part missing from the last patch.
203 2005-02-07 Jonathan Pryor <jonpryor@vt.edu>
205 * grp.c: Oops. Didn't see other Solaris fix in #72292.
207 2005-02-07 Jonathan Pryor <jonpryor@vt.edu>
209 * grp.c, pwd.c: Clear errno before calling the actual calls, as errno may
210 have a stale value, leading to spurious errors later. Fixes #72292.
212 2005-02-03 Jonathan Pryor <jonpryor@vt.edu>
214 * Makefile.am (MPH_C_SOURCE): Move errno.c into MPH_C_SOURCE, so it's built
215 on Windows as well as Unix.
217 2005-02-03 Jonathan Pryor <jonpryor@vt.edu>
219 * errno.c: Mono_Posix_Syscall_SetLastError should be in Stdlib, not Syscall,
220 since it's part of ANSI C (and errno will be used from StdioFileStream).
221 Add Mono_Posix_Stdlib_SetLastError. Don't remove the Syscall version, as
222 we don't want to break Mono 1.1.4/svn users the day after release. :-)
224 2005-01-25 Jonathan Pryor <jonpryor@vt.edu>
226 * macros.c: Use gint64, not long, to match C# declaration. Fixes 71152.
228 2005-01-23 Geoff Norton <gnorton@customerdna.com>
230 * dirent.c: Include <unistd.h> to bring off_t in on gcc4.0+OSX
232 2005-01-13 Jonathan Pryor <jonpryor@vt.edu>
234 * map.h: Correct Mono_Posix_OpenFlags values (they should now match
235 x86 linux); remove unused enumerations (MountFlags, etc.).
237 2005-01-13 Jonathan Pryor <jonpryor@vt.edu>
239 * fstab.c: Fix HPUX support. HPUX includes both <fstab.h> and
240 <checkpoint.h>, so we need to give preference to <checkpoint.h>.
242 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
244 * fstab.c: Add support for HPUX, which uses <checklist.h>.
246 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
248 * map.c: Continuing my ineptitude... <sys/wait.h> isn't on Win32.
249 * mph.h: Win32 doesn't define EOVERFLOW, either. Define it.
251 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
253 * map.c: Include <config.h> so we can check for PLATFORM_WIN32.
255 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
257 * map.c: Fix Win32 build break. Win32 doesn't have all the sys/* headers.
259 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
261 * serial.c: HPUX compiler fix.
262 * stdlib.c: Add C-defined macro wrappers.
264 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
266 * stdio.c: Add wrapper for C99's snprintf(3).
268 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
270 * Makefile.am: Rewrite. Remove configure-generated warnings about
271 multiple _LIBADD and _SOURCES lines. Add support for Win32.
272 Win32 support is limited to ANSI C functions.
273 * stdio.c: Don't compile Unix wrappers on Win32.
275 2005-01-04 Raja R Harinath <rharinath@novell.com>
277 * Makefile.am (LIBS): Remove. Was overriding results of configure check.
278 (libMonoPosixHelper_la_LIBADD): List $(GLIB_LIBS) here.
280 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
282 * Makefile.am: Add libnsl to LIBS. Hopefully this will let sparc link.
283 * mph.h: Make MPH_INTERNAL conditional on __GNUC__.
285 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
287 * signal.c, stdio.c: Remove "function declaration isn't a prototype" warnings.
288 * unistd.c: Check for presence of gethostname and sethostname.
290 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
292 * mph.h, x-struct-str.c: Add "const" to parameters to remove
293 "warning: passing arg [2|4]...discards qualifiers" message.
295 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
297 * fstab.c: Remove some sparc compiler warnings.
299 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
301 * fstab.c: Solaris doesn't support getfsent(3), but it provides equivalent
302 functionality in getvfsent(3C). Implement Solaris support.
304 2005-01-02 Jonathan Pryor <jonpryor@vt.edu>
306 * stdio.c: More wrapper functions. I missed a few macros... This should
307 complete all macro's defined in <stdio.h> for C99.
309 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
311 * stdio.c: More wrapper functions. This should complete C89's <stdio.h>
314 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
316 * sys-statvfs.c: Further proving that changing code without compiling is
317 dangerous business... Compiler fix for OS X.
319 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
321 * signal.c: Mac OS X portability fixes -- it doesn't provide sighandler_t!
323 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
325 * Makefile.am: Add signal.c to the build.
326 * signal.c: Added. Contains helper functions to wrap signal(2).
328 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
330 * sys-statvfs.c: Fix Mac OS X build (statfs.f_frsize doesn't exist on OSX;
331 f_fsid isn't an integral type; fstatfs needs to use fpathconf).
333 2004-12-29 Jonathan Pryor <jonpryor@vt.edu>
335 * unistd.c: Null-terminate the string returned by readlink(2). This works
336 around a marshaler "issue".
338 2004-12-28 Jonathan Pryor <jonpryor@vt.edu>
340 * Makefile.am: Add GLIB_LIBS to the LIBS line, since we require linking
341 against glib-2.0 (to use g_assert()).
343 2004-12-28 Jonathan Pryor <jonpryor@vt.edu>
345 * fstab.c: Added; wrap <fstab.h> functions: getfsent(3), getfsfile(3),
347 * map.c: Add new conversion functions for SyslogOptions, SyslogFacility,
348 SyslogLevel; see syslog(3) for details.
349 * map.h: Add new conversion functions and values for SyslogOptions,
350 SyslogFacility, SyslogLevel; see syslog(3) for details.
351 * Makefile.am (MPH_SOURCE): add fstab.c, sys-statvfs.c, x-struct-str.c.
352 * mph.h: Document location for Mac OS X man page documentation; add
353 MPH_INTERNAL macro for intra-library function calls (for functions that
354 shouldn't be exported from libMonoPosixHelper.so); declare
355 _mph_copy_structure_strings().
356 * pwd.c: Use _mph_copy_structure_strings() to copy strings embedded within
358 * sys-statvfs.c: Added; wrap <sys/statvfs.h> functions statvfs(2),
359 fstatvfs(2), and (to complicate things) implement (f)statvfs(2) in terms
360 of (f)statfs(2) on Mac OS X (which lacks the -vfs calls).
361 * x-struct-str.c: implements _mph_copy_structure_strings(), which is a
362 generalized interface to copy strings between structures (as is needed in
365 Thu Dec 23 14:58:09 EST 2004 Paolo Molaro <lupus@ximian.com>
367 * serial.c: remove mono calls from here: they break the build
368 and they don't belong here.
370 2004-12-21 Chris Toshok <toshok@ximian.com>
372 * serial.c: initial import of System.IO.Ports pinvoke stuff.
374 * Makefile.am (MPH_SOURCE): add serial.c.
376 2004-11-30 Jonathan Pryor <jonpryor@vt.edu>
378 * mph.h: Use <glib.h>, not <glib/gtypes.h>, as the HP/UX compiler needs
379 <glib/gutils.h> to handle the `inline' keyword.
381 2004-11-27 Miguel de Icaza <miguel@ximian.com>
383 * Makefile.am (MPH_SOURCE): Add macros.c for compatibility with
384 the old API (currently the old API would fail).
386 2004-11-25 Raja R Harinath <rharinath@novell.com>
388 * Makefile.am (MPH_SOURCE): Distribute old-map.h and map.h.
390 2004-11-18 Jonathan Pryor <jonpryor@vt.edu>
392 * stdio.c: Add fread(3) and fwrite(3) wrappers.
394 2004-11-16 Jonathan Pryor <jonpryor@vt.edu>
396 * Makefile.am: Remove sys-mount.c from the build.
397 * sys-mount.c: Delete. We're not exporting mount-related functionality
398 anymore. It's not remotely portable, and trying to make it portable is a
400 * map.c: Remove mount- and umount-related conversion functions.
402 2004-11-14 Geoff Norton <gnorton@customerdna.com>
404 * mph.h: Revernt jonp's removal of MPH_ON_BSD define as sys-mount.c
405 and unistd.c still check this configuration value. This allows mono
406 to build on *BSD again.
408 2004-11-12 Jonathan Pryor <jonpryor@vt.edu>
410 * dirent.c: Only access members which exist on the target
412 * errno.c: Only export strerror_r if it's available.
413 * mph.h: Remove MPH_ON_BSD; use the configure checks instead.
414 * sys-mman.c: Only export posix_madvise if it's available.
415 * unistd.c: Only export sethostid if it's available.
417 2004-11-08 Jonathan Pryor <jonpryor@vt.edu>
419 * Makefile.am: Add sys-sendfile.c to the build.
420 * dirent.c, fcntl.c, unistd.c: Remove
421 compile-time checks for -64 apis (pread64, etc.), as they're
422 superfluous. GLibc #defines the functions to the appropriate
423 -64 counterpart when necessary, and Darwin is intrinsically
424 large-file-aware, so manual checking on my part is redundant and
426 * grp.c: Add checks for non-portable functions getgrnam_r,
428 * pwd.c: Add checks for non-portable functions getpwnam_r,
430 * map.c: Remove <poll.h> include. Building on Tiger (Mac
431 OS X 10.4 beta) breaks when both <poll.h> and <sys/poll.h> are
432 included, so only use <sys/poll.h>.
433 * mph.h: Clean up macro handling for type overflow checking.
435 2004-11-05 Jonathan Pryor <jonpryor@vt.edu>
437 * .cvsignore: Ignore generated files.
438 * Makefile.am: Add new INCLUDE directives (for glib
439 headers), source; bump library version (so we don't clobber
440 previous versions of libMonoPosixHelper.so).
441 * dirent.c: New file; <dirent.h> wrapper functions;
442 BSD portability fixes.
443 * errno.c: New file; <errno.h> wrapper functions
444 * fcntl.c: New file; <fcntl.h> wrapper functions;
445 BSD portability fixes.
446 * grp.c: New file; <grp.h> wrapper functions;
447 BSD portability fixes.
448 * map.c: Updated macro mapping functions (more enums
449 mapped, more error checking, etc.).
450 * map.h: Updated macro mapping functions
451 * old-map.c: Previous map.c implementation, for backward
452 compatibility Remove spurious warning about redefining
454 * old-map.h: Previous map.h implementation, for backward
456 * mph.h: New file; Utility types, macros;
457 BSD portability fixes.
458 * pwd.c: New file; <pwd.h> wrapper functions;
459 BSD portability fixes.
460 * stdio.c: New file; <stdio.h> wrapper functions
461 * stdlib.c: New file; <stdlib.h> wrapper functions
462 * sys-mman.c: New file; <sys/mman.h> wrapper functions
463 * sys-mount.c: New file; <sys/mount.h> wrapper functions;
464 BSD portability fixes.
465 * sys-sendfile.c: New file; <sys/sendfile.h> wrapper
466 functions; BSD portability fixes.
467 * sys-stat.c: New file; <sys/stat.h> wrapper functions
468 * sys-wait.c: New file; <sys/wait.h> wrapper functions
469 * time.c: New file; <time.h> wrapper functions;
470 BSD portability fixes.
471 * unistd.c: New file; <unistd.h> wrapper functions;
472 BSD portability fixes.