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