1 2005-02-07 Jonathan Pryor <jonpryor@vt.edu>
3 * grp.c: Oops. Didn't see other Solaris fix in #72292.
5 2005-02-07 Jonathan Pryor <jonpryor@vt.edu>
7 * grp.c, pwd.c: Clear errno before calling the actual calls, as errno may
8 have a stale value, leading to spurious errors later. Fixes #72292.
10 2005-02-03 Jonathan Pryor <jonpryor@vt.edu>
12 * Makefile.am (MPH_C_SOURCE): Move errno.c into MPH_C_SOURCE, so it's built
13 on Windows as well as Unix.
15 2005-02-03 Jonathan Pryor <jonpryor@vt.edu>
17 * errno.c: Mono_Posix_Syscall_SetLastError should be in Stdlib, not Syscall,
18 since it's part of ANSI C (and errno will be used from StdioFileStream).
19 Add Mono_Posix_Stdlib_SetLastError. Don't remove the Syscall version, as
20 we don't want to break Mono 1.1.4/svn users the day after release. :-)
22 2005-01-25 Jonathan Pryor <jonpryor@vt.edu>
24 * macros.c: Use gint64, not long, to match C# declaration. Fixes 71152.
26 2005-01-23 Geoff Norton <gnorton@customerdna.com>
28 * dirent.c: Include <unistd.h> to bring off_t in on gcc4.0+OSX
30 2005-01-13 Jonathan Pryor <jonpryor@vt.edu>
32 * map.h: Correct Mono_Posix_OpenFlags values (they should now match
33 x86 linux); remove unused enumerations (MountFlags, etc.).
35 2005-01-13 Jonathan Pryor <jonpryor@vt.edu>
37 * fstab.c: Fix HPUX support. HPUX includes both <fstab.h> and
38 <checkpoint.h>, so we need to give preference to <checkpoint.h>.
40 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
42 * fstab.c: Add support for HPUX, which uses <checklist.h>.
44 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
46 * map.c: Continuing my ineptitude... <sys/wait.h> isn't on Win32.
47 * mph.h: Win32 doesn't define EOVERFLOW, either. Define it.
49 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
51 * map.c: Include <config.h> so we can check for PLATFORM_WIN32.
53 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
55 * map.c: Fix Win32 build break. Win32 doesn't have all the sys/* headers.
57 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
59 * serial.c: HPUX compiler fix.
60 * stdlib.c: Add C-defined macro wrappers.
62 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
64 * stdio.c: Add wrapper for C99's snprintf(3).
66 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
68 * Makefile.am: Rewrite. Remove configure-generated warnings about
69 multiple _LIBADD and _SOURCES lines. Add support for Win32.
70 Win32 support is limited to ANSI C functions.
71 * stdio.c: Don't compile Unix wrappers on Win32.
73 2005-01-04 Raja R Harinath <rharinath@novell.com>
75 * Makefile.am (LIBS): Remove. Was overriding results of configure check.
76 (libMonoPosixHelper_la_LIBADD): List $(GLIB_LIBS) here.
78 2005-01-04 Jonathan Pryor <jonpryor@vt.edu>
80 * Makefile.am: Add libnsl to LIBS. Hopefully this will let sparc link.
81 * mph.h: Make MPH_INTERNAL conditional on __GNUC__.
83 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
85 * signal.c, stdio.c: Remove "function declaration isn't a prototype" warnings.
86 * unistd.c: Check for presence of gethostname and sethostname.
88 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
90 * mph.h, x-struct-str.c: Add "const" to parameters to remove
91 "warning: passing arg [2|4]...discards qualifiers" message.
93 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
95 * fstab.c: Remove some sparc compiler warnings.
97 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
99 * fstab.c: Solaris doesn't support getfsent(3), but it provides equivalent
100 functionality in getvfsent(3C). Implement Solaris support.
102 2005-01-02 Jonathan Pryor <jonpryor@vt.edu>
104 * stdio.c: More wrapper functions. I missed a few macros... This should
105 complete all macro's defined in <stdio.h> for C99.
107 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
109 * stdio.c: More wrapper functions. This should complete C89's <stdio.h>
112 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
114 * sys-statvfs.c: Further proving that changing code without compiling is
115 dangerous business... Compiler fix for OS X.
117 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
119 * signal.c: Mac OS X portability fixes -- it doesn't provide sighandler_t!
121 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
123 * Makefile.am: Add signal.c to the build.
124 * signal.c: Added. Contains helper functions to wrap signal(2).
126 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
128 * sys-statvfs.c: Fix Mac OS X build (statfs.f_frsize doesn't exist on OSX;
129 f_fsid isn't an integral type; fstatfs needs to use fpathconf).
131 2004-12-29 Jonathan Pryor <jonpryor@vt.edu>
133 * unistd.c: Null-terminate the string returned by readlink(2). This works
134 around a marshaler "issue".
136 2004-12-28 Jonathan Pryor <jonpryor@vt.edu>
138 * Makefile.am: Add GLIB_LIBS to the LIBS line, since we require linking
139 against glib-2.0 (to use g_assert()).
141 2004-12-28 Jonathan Pryor <jonpryor@vt.edu>
143 * fstab.c: Added; wrap <fstab.h> functions: getfsent(3), getfsfile(3),
145 * map.c: Add new conversion functions for SyslogOptions, SyslogFacility,
146 SyslogLevel; see syslog(3) for details.
147 * map.h: Add new conversion functions and values for SyslogOptions,
148 SyslogFacility, SyslogLevel; see syslog(3) for details.
149 * Makefile.am (MPH_SOURCE): add fstab.c, sys-statvfs.c, x-struct-str.c.
150 * mph.h: Document location for Mac OS X man page documentation; add
151 MPH_INTERNAL macro for intra-library function calls (for functions that
152 shouldn't be exported from libMonoPosixHelper.so); declare
153 _mph_copy_structure_strings().
154 * pwd.c: Use _mph_copy_structure_strings() to copy strings embedded within
156 * sys-statvfs.c: Added; wrap <sys/statvfs.h> functions statvfs(2),
157 fstatvfs(2), and (to complicate things) implement (f)statvfs(2) in terms
158 of (f)statfs(2) on Mac OS X (which lacks the -vfs calls).
159 * x-struct-str.c: implements _mph_copy_structure_strings(), which is a
160 generalized interface to copy strings between structures (as is needed in
163 Thu Dec 23 14:58:09 EST 2004 Paolo Molaro <lupus@ximian.com>
165 * serial.c: remove mono calls from here: they break the build
166 and they don't belong here.
168 2004-12-21 Chris Toshok <toshok@ximian.com>
170 * serial.c: initial import of System.IO.Ports pinvoke stuff.
172 * Makefile.am (MPH_SOURCE): add serial.c.
174 2004-11-30 Jonathan Pryor <jonpryor@vt.edu>
176 * mph.h: Use <glib.h>, not <glib/gtypes.h>, as the HP/UX compiler needs
177 <glib/gutils.h> to handle the `inline' keyword.
179 2004-11-27 Miguel de Icaza <miguel@ximian.com>
181 * Makefile.am (MPH_SOURCE): Add macros.c for compatibility with
182 the old API (currently the old API would fail).
184 2004-11-25 Raja R Harinath <rharinath@novell.com>
186 * Makefile.am (MPH_SOURCE): Distribute old-map.h and map.h.
188 2004-11-18 Jonathan Pryor <jonpryor@vt.edu>
190 * stdio.c: Add fread(3) and fwrite(3) wrappers.
192 2004-11-16 Jonathan Pryor <jonpryor@vt.edu>
194 * Makefile.am: Remove sys-mount.c from the build.
195 * sys-mount.c: Delete. We're not exporting mount-related functionality
196 anymore. It's not remotely portable, and trying to make it portable is a
198 * map.c: Remove mount- and umount-related conversion functions.
200 2004-11-14 Geoff Norton <gnorton@customerdna.com>
202 * mph.h: Revernt jonp's removal of MPH_ON_BSD define as sys-mount.c
203 and unistd.c still check this configuration value. This allows mono
204 to build on *BSD again.
206 2004-11-12 Jonathan Pryor <jonpryor@vt.edu>
208 * dirent.c: Only access members which exist on the target
210 * errno.c: Only export strerror_r if it's available.
211 * mph.h: Remove MPH_ON_BSD; use the configure checks instead.
212 * sys-mman.c: Only export posix_madvise if it's available.
213 * unistd.c: Only export sethostid if it's available.
215 2004-11-08 Jonathan Pryor <jonpryor@vt.edu>
217 * Makefile.am: Add sys-sendfile.c to the build.
218 * dirent.c, fcntl.c, unistd.c: Remove
219 compile-time checks for -64 apis (pread64, etc.), as they're
220 superfluous. GLibc #defines the functions to the appropriate
221 -64 counterpart when necessary, and Darwin is intrinsically
222 large-file-aware, so manual checking on my part is redundant and
224 * grp.c: Add checks for non-portable functions getgrnam_r,
226 * pwd.c: Add checks for non-portable functions getpwnam_r,
228 * map.c: Remove <poll.h> include. Building on Tiger (Mac
229 OS X 10.4 beta) breaks when both <poll.h> and <sys/poll.h> are
230 included, so only use <sys/poll.h>.
231 * mph.h: Clean up macro handling for type overflow checking.
233 2004-11-05 Jonathan Pryor <jonpryor@vt.edu>
235 * .cvsignore: Ignore generated files.
236 * Makefile.am: Add new INCLUDE directives (for glib
237 headers), source; bump library version (so we don't clobber
238 previous versions of libMonoPosixHelper.so).
239 * dirent.c: New file; <dirent.h> wrapper functions;
240 BSD portability fixes.
241 * errno.c: New file; <errno.h> wrapper functions
242 * fcntl.c: New file; <fcntl.h> wrapper functions;
243 BSD portability fixes.
244 * grp.c: New file; <grp.h> wrapper functions;
245 BSD portability fixes.
246 * map.c: Updated macro mapping functions (more enums
247 mapped, more error checking, etc.).
248 * map.h: Updated macro mapping functions
249 * old-map.c: Previous map.c implementation, for backward
250 compatibility Remove spurious warning about redefining
252 * old-map.h: Previous map.h implementation, for backward
254 * mph.h: New file; Utility types, macros;
255 BSD portability fixes.
256 * pwd.c: New file; <pwd.h> wrapper functions;
257 BSD portability fixes.
258 * stdio.c: New file; <stdio.h> wrapper functions
259 * stdlib.c: New file; <stdlib.h> wrapper functions
260 * sys-mman.c: New file; <sys/mman.h> wrapper functions
261 * sys-mount.c: New file; <sys/mount.h> wrapper functions;
262 BSD portability fixes.
263 * sys-sendfile.c: New file; <sys/sendfile.h> wrapper
264 functions; BSD portability fixes.
265 * sys-stat.c: New file; <sys/stat.h> wrapper functions
266 * sys-wait.c: New file; <sys/wait.h> wrapper functions
267 * time.c: New file; <time.h> wrapper functions;
268 BSD portability fixes.
269 * unistd.c: New file; <unistd.h> wrapper functions;
270 BSD portability fixes.