1 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5 * Makefile.am: new library intended to provide often P/Invoked windows
6 API functions not present in io-layer.
8 2005-06-29 Jonathan Pryor <jonpryor@vt.edu>
10 * map.c: Handle Syslog-related changes (SyslogFacility isn't a
11 [Flags] enum); make-map.exe changes.
13 2005-06-28 Jonathan Pryor <jonpryor@vt.edu>
15 * map.c, map.h: Handle Syslog-related changes (SyslogLevel isn't a [Flags]
16 enum; change in order between LOG_USER and LOG_USRE).
18 2005-06-27 Jonathan Pryor <jonpryor@vt.edu>
20 * map.c, map.h: Add corrected spelling of LOG_USER.
22 2005-06-13 Miguel de Icaza <miguel@novell.com>
24 * sys-statvfs.c (copy_statfs): f_flags is the field name on BSD,
27 2005-06-08 Jonathan Pryor <jonpryor@vt.edu>
29 * Makefile.am: Create an unversioned library. We won't make any gaurantees
30 about ABI stability until Mono 1.2 (if then).
32 2005-06-07 Jonathan Pryor <jonpryor@vt.edu>
34 * sys-mman.c: Check for presence of mremap and remap_file_pages.
36 2005-06-05 Jonathan Pryor <jonpryor@vt.edu>
38 * map-icalls.h, map.h: Change header comment so it matches what
39 `make refresh` generates.
40 * map.c: Add <sys/xattr.h> header.
42 2005-05-31 Jonathan Pryor <jonpryor@vt.edu>
44 * sys-mman.c: Add wrappers for mmap, munmap, mprotect, msync, mlock,
45 munlock, mremap, mincore, remap_file_pages.
46 * map-icalls.h: Update to latest shared interface.
47 * map.c, map.h: Add {To,From} pairs for MmapFlags, MmapProt, MsyncFlags,
48 MlockallFlags, MremapFlags.
49 * mph.h: Add mph_return_*_if_ssize_t_overflow macros.
51 2005-05-31 Jonathan Pryor <jonpryor@vt.edu>
53 * unistd.c: Oops -- deal with s/LockFlags/LockfCommand/ change.
55 2005-05-31 Jonathan Pryor <jonpryor@vt.edu>
57 * map.h, map.c, map-icalls.h: Rename LockFlags to LockfCommand.
59 2005-05-20 Zoltan Varga <vargaz@freemail.hu>
61 * Makefile.am (MPH_C_SOURCE): Add map-icalls.h. Fixes #75012.
63 2005-05-18 Jonathan Pryor <jonpryor@vt.edu>
65 * map-icalls.h: Added; auto-generated file which contains Mono_Posix_*
66 declarations for DllImport functions in Mono.Posix.dll. This ensure
67 consistency between Mono.Posix.dll and MonoPosixHelper.so.
68 * mph.h: Add include for map-icalls.h, to ensure that all MonoPosixHelper
69 exports have correct prototypes.
70 * dirent.c, grp.c, macros.c, pwd.c, signal.c, stdio.c, sys-stat.c,
71 sys-time.c, utime.c: Correct prototypes to match map-icalls.h. Alas, this
72 "loses" information -- FILE* becomes void*, etc. -- but no semantics or
73 ABI should be changed (except for Mono_Posix_Syscall_utime). Some
74 structure names also changed to match the generated names; since the
75 structures are private, this shouldn't break anything.
76 * errno.c: Remove Mono_Posix_Syscall_SetLastError so we don't get a warning
77 about a missing prototype. This was never in a stable release.
78 * old-map.c: Include mph.h for prototype checking.
79 * unistd.c: SeekFlags conversion is now done in managed code so that a short
80 isn't passed as a parameter; Correct prototypes to match map-icalls.h.
81 * sys-xattr.c: fix lsetxattr/fsetxattr confusion; Correct prototypes to
83 * sys-sendfile.c: Move mph.h include so that HAVE_SYS_SENDFILE_H is used.
84 * sys-wait.c: Include mph.h so that prototypes are checked.
86 2005-05-16 Jonathan Pryor <jonpryor@vt.edu>
88 * sys-statvfs.c: Include "map.h" for Mono_Posix_ToMountFlags prototype.
89 * map.c: Include <sys/statvfs.h> so Mono_Posix_{To,From}MountFlags actually
90 does something useful.
92 2005-05-12 Jonathan Pryor <jonpryor@vt.edu>
94 * map.c, map.h: Add FromMountFlags, ToMountFlags. (MountFlags is used in
95 `struct statvfs', which is POSIX).
96 * sys-statvfs.c: Use ToMountFlags to convert the OS flags value into the
99 2005-05-03 Geoff Norton <gnorton@customerdna.com>
101 * sys-xattr.c: Mac OS/X Tiger supports xattr but has a different API for supporting
102 resource forks. Allow mono to build on Tiger.
104 2005-04-30 Jonathan Pryor <jonpryor@vt.edu>
106 * stdio.c: Add Mono_Posix_Stdlib_DumpFilePosition, which create a hex string
107 "dump" of a fpos_t. This is used for Mono.Unix.FilePosition.ToString().
109 2005-04-19 Jonathan Pryor <jonpryor@vt.edu>
111 * map.c, map.h: Added XattrFlags values, functions.
112 * sys-xattr.c: Added; <sys/xattr.h> wrapper functions. Thanks to Daniel
113 Drake for writing these.
114 * Makefile.am: Add sys-xattr.c to the build.
116 2005-04-07 Jonathan Pryor <jonpryor@vt.edu>
118 * errno.c: Use the GNU version of strerror_r if _GNU_SOURCE is defined
119 (otherwise assume existence of XPG variant). This allows proper
120 compilation under Red Hat 9.
121 * fstab.c: protect against users calling setfsent(), setfsent(), ...
122 endfsent(), which would otherwise leak a FILE handle.
124 2005-04-05 Zoltan Varga <vargaz@freemail.hu>
126 * mph.h: Apply patch from the freebsd ports collection.
128 2005-02-10 Zoltan Varga <vargaz@freemail.hu>
130 * zlib_macros.c (create_z_stream): Explicitly check for older versions
133 2005-02-08 Zoltan Varga <vargaz@freemail.hu>
135 * pwd.c (Mono_Posix_Syscall_getpwnam_r): Add another part missing from the last patch.
137 2005-02-07 Jonathan Pryor <jonpryor@vt.edu>
139 * grp.c: Oops. Didn't see other Solaris fix in #72292.
141 2005-02-07 Jonathan Pryor <jonpryor@vt.edu>
143 * grp.c, pwd.c: Clear errno before calling the actual calls, as errno may
144 have a stale value, leading to spurious errors later. Fixes #72292.
146 2005-02-03 Jonathan Pryor <jonpryor@vt.edu>
148 * Makefile.am (MPH_C_SOURCE): Move errno.c into MPH_C_SOURCE, so it's built
149 on Windows as well as Unix.
151 2005-02-03 Jonathan Pryor <jonpryor@vt.edu>
153 * errno.c: Mono_Posix_Syscall_SetLastError should be in Stdlib, not Syscall,
154 since it's part of ANSI C (and errno will be used from StdioFileStream).
155 Add Mono_Posix_Stdlib_SetLastError. Don't remove the Syscall version, as
156 we don't want to break Mono 1.1.4/svn users the day after release. :-)
158 2005-01-25 Jonathan Pryor <jonpryor@vt.edu>
160 * macros.c: Use gint64, not long, to match C# declaration. Fixes 71152.
162 2005-01-23 Geoff Norton <gnorton@customerdna.com>
164 * dirent.c: Include <unistd.h> to bring off_t in on gcc4.0+OSX
166 2005-01-13 Jonathan Pryor <jonpryor@vt.edu>
168 * map.h: Correct Mono_Posix_OpenFlags values (they should now match
169 x86 linux); remove unused enumerations (MountFlags, etc.).
171 2005-01-13 Jonathan Pryor <jonpryor@vt.edu>
173 * fstab.c: Fix HPUX support. HPUX includes both <fstab.h> and
174 <checkpoint.h>, so we need to give preference to <checkpoint.h>.
176 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
178 * fstab.c: Add support for HPUX, which uses <checklist.h>.
180 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
182 * map.c: Continuing my ineptitude... <sys/wait.h> isn't on Win32.
183 * mph.h: Win32 doesn't define EOVERFLOW, either. Define it.
185 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
187 * map.c: Include <config.h> so we can check for PLATFORM_WIN32.
189 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
191 * map.c: Fix Win32 build break. Win32 doesn't have all the sys/* headers.
193 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
195 * serial.c: HPUX compiler fix.
196 * stdlib.c: Add C-defined macro wrappers.
198 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
200 * stdio.c: Add wrapper for C99's snprintf(3).
202 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
204 * Makefile.am: Rewrite. Remove configure-generated warnings about
205 multiple _LIBADD and _SOURCES lines. Add support for Win32.
206 Win32 support is limited to ANSI C functions.
207 * stdio.c: Don't compile Unix wrappers on Win32.
209 2005-01-04 Raja R Harinath <rharinath@novell.com>
211 * Makefile.am (LIBS): Remove. Was overriding results of configure check.
212 (libMonoPosixHelper_la_LIBADD): List $(GLIB_LIBS) here.
214 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
216 * Makefile.am: Add libnsl to LIBS. Hopefully this will let sparc link.
217 * mph.h: Make MPH_INTERNAL conditional on __GNUC__.
219 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
221 * signal.c, stdio.c: Remove "function declaration isn't a prototype" warnings.
222 * unistd.c: Check for presence of gethostname and sethostname.
224 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
226 * mph.h, x-struct-str.c: Add "const" to parameters to remove
227 "warning: passing arg [2|4]...discards qualifiers" message.
229 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
231 * fstab.c: Remove some sparc compiler warnings.
233 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
235 * fstab.c: Solaris doesn't support getfsent(3), but it provides equivalent
236 functionality in getvfsent(3C). Implement Solaris support.
238 2005-01-02 Jonathan Pryor <jonpryor@vt.edu>
240 * stdio.c: More wrapper functions. I missed a few macros... This should
241 complete all macro's defined in <stdio.h> for C99.
243 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
245 * stdio.c: More wrapper functions. This should complete C89's <stdio.h>
248 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
250 * sys-statvfs.c: Further proving that changing code without compiling is
251 dangerous business... Compiler fix for OS X.
253 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
255 * signal.c: Mac OS X portability fixes -- it doesn't provide sighandler_t!
257 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
259 * Makefile.am: Add signal.c to the build.
260 * signal.c: Added. Contains helper functions to wrap signal(2).
262 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
264 * sys-statvfs.c: Fix Mac OS X build (statfs.f_frsize doesn't exist on OSX;
265 f_fsid isn't an integral type; fstatfs needs to use fpathconf).
267 2004-12-29 Jonathan Pryor <jonpryor@vt.edu>
269 * unistd.c: Null-terminate the string returned by readlink(2). This works
270 around a marshaler "issue".
272 2004-12-28 Jonathan Pryor <jonpryor@vt.edu>
274 * Makefile.am: Add GLIB_LIBS to the LIBS line, since we require linking
275 against glib-2.0 (to use g_assert()).
277 2004-12-28 Jonathan Pryor <jonpryor@vt.edu>
279 * fstab.c: Added; wrap <fstab.h> functions: getfsent(3), getfsfile(3),
281 * map.c: Add new conversion functions for SyslogOptions, SyslogFacility,
282 SyslogLevel; see syslog(3) for details.
283 * map.h: Add new conversion functions and values for SyslogOptions,
284 SyslogFacility, SyslogLevel; see syslog(3) for details.
285 * Makefile.am (MPH_SOURCE): add fstab.c, sys-statvfs.c, x-struct-str.c.
286 * mph.h: Document location for Mac OS X man page documentation; add
287 MPH_INTERNAL macro for intra-library function calls (for functions that
288 shouldn't be exported from libMonoPosixHelper.so); declare
289 _mph_copy_structure_strings().
290 * pwd.c: Use _mph_copy_structure_strings() to copy strings embedded within
292 * sys-statvfs.c: Added; wrap <sys/statvfs.h> functions statvfs(2),
293 fstatvfs(2), and (to complicate things) implement (f)statvfs(2) in terms
294 of (f)statfs(2) on Mac OS X (which lacks the -vfs calls).
295 * x-struct-str.c: implements _mph_copy_structure_strings(), which is a
296 generalized interface to copy strings between structures (as is needed in
299 Thu Dec 23 14:58:09 EST 2004 Paolo Molaro <lupus@ximian.com>
301 * serial.c: remove mono calls from here: they break the build
302 and they don't belong here.
304 2004-12-21 Chris Toshok <toshok@ximian.com>
306 * serial.c: initial import of System.IO.Ports pinvoke stuff.
308 * Makefile.am (MPH_SOURCE): add serial.c.
310 2004-11-30 Jonathan Pryor <jonpryor@vt.edu>
312 * mph.h: Use <glib.h>, not <glib/gtypes.h>, as the HP/UX compiler needs
313 <glib/gutils.h> to handle the `inline' keyword.
315 2004-11-27 Miguel de Icaza <miguel@ximian.com>
317 * Makefile.am (MPH_SOURCE): Add macros.c for compatibility with
318 the old API (currently the old API would fail).
320 2004-11-25 Raja R Harinath <rharinath@novell.com>
322 * Makefile.am (MPH_SOURCE): Distribute old-map.h and map.h.
324 2004-11-18 Jonathan Pryor <jonpryor@vt.edu>
326 * stdio.c: Add fread(3) and fwrite(3) wrappers.
328 2004-11-16 Jonathan Pryor <jonpryor@vt.edu>
330 * Makefile.am: Remove sys-mount.c from the build.
331 * sys-mount.c: Delete. We're not exporting mount-related functionality
332 anymore. It's not remotely portable, and trying to make it portable is a
334 * map.c: Remove mount- and umount-related conversion functions.
336 2004-11-14 Geoff Norton <gnorton@customerdna.com>
338 * mph.h: Revernt jonp's removal of MPH_ON_BSD define as sys-mount.c
339 and unistd.c still check this configuration value. This allows mono
340 to build on *BSD again.
342 2004-11-12 Jonathan Pryor <jonpryor@vt.edu>
344 * dirent.c: Only access members which exist on the target
346 * errno.c: Only export strerror_r if it's available.
347 * mph.h: Remove MPH_ON_BSD; use the configure checks instead.
348 * sys-mman.c: Only export posix_madvise if it's available.
349 * unistd.c: Only export sethostid if it's available.
351 2004-11-08 Jonathan Pryor <jonpryor@vt.edu>
353 * Makefile.am: Add sys-sendfile.c to the build.
354 * dirent.c, fcntl.c, unistd.c: Remove
355 compile-time checks for -64 apis (pread64, etc.), as they're
356 superfluous. GLibc #defines the functions to the appropriate
357 -64 counterpart when necessary, and Darwin is intrinsically
358 large-file-aware, so manual checking on my part is redundant and
360 * grp.c: Add checks for non-portable functions getgrnam_r,
362 * pwd.c: Add checks for non-portable functions getpwnam_r,
364 * map.c: Remove <poll.h> include. Building on Tiger (Mac
365 OS X 10.4 beta) breaks when both <poll.h> and <sys/poll.h> are
366 included, so only use <sys/poll.h>.
367 * mph.h: Clean up macro handling for type overflow checking.
369 2004-11-05 Jonathan Pryor <jonpryor@vt.edu>
371 * .cvsignore: Ignore generated files.
372 * Makefile.am: Add new INCLUDE directives (for glib
373 headers), source; bump library version (so we don't clobber
374 previous versions of libMonoPosixHelper.so).
375 * dirent.c: New file; <dirent.h> wrapper functions;
376 BSD portability fixes.
377 * errno.c: New file; <errno.h> wrapper functions
378 * fcntl.c: New file; <fcntl.h> wrapper functions;
379 BSD portability fixes.
380 * grp.c: New file; <grp.h> wrapper functions;
381 BSD portability fixes.
382 * map.c: Updated macro mapping functions (more enums
383 mapped, more error checking, etc.).
384 * map.h: Updated macro mapping functions
385 * old-map.c: Previous map.c implementation, for backward
386 compatibility Remove spurious warning about redefining
388 * old-map.h: Previous map.h implementation, for backward
390 * mph.h: New file; Utility types, macros;
391 BSD portability fixes.
392 * pwd.c: New file; <pwd.h> wrapper functions;
393 BSD portability fixes.
394 * stdio.c: New file; <stdio.h> wrapper functions
395 * stdlib.c: New file; <stdlib.h> wrapper functions
396 * sys-mman.c: New file; <sys/mman.h> wrapper functions
397 * sys-mount.c: New file; <sys/mount.h> wrapper functions;
398 BSD portability fixes.
399 * sys-sendfile.c: New file; <sys/sendfile.h> wrapper
400 functions; BSD portability fixes.
401 * sys-stat.c: New file; <sys/stat.h> wrapper functions
402 * sys-wait.c: New file; <sys/wait.h> wrapper functions
403 * time.c: New file; <time.h> wrapper functions;
404 BSD portability fixes.
405 * unistd.c: New file; <unistd.h> wrapper functions;
406 BSD portability fixes.