ChangeLog 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. 2005-11-07 Jonathan Pryor <[email protected]>
  2. * map-icalls.h: Oddly, this file didn't get the new functions added in
  3. 2005-10-14 -- ToConfstrName, FromConfstrName, etc. Add them.
  4. * map.c, map.h: Remove invalid enumeration value SyslogFacility.LOG_USRE.
  5. 2005-10-14 Jonathan Pryor <[email protected]>
  6. * signal.c: Don't build Syscall wrappers on Win32.
  7. 2005-10-14 Jonathan Pryor <[email protected]>
  8. * Makefile.am (MPH_UNIX_SOURCE): Add syslog.c.
  9. * dirent.c, grp.c, pwd.c, signal.c, stdio.c, stdlib.c: Wrap functions which
  10. return `void' so that they instead: (1) return `int', (2) clear errno
  11. before calling the real function, and (3) return -1 if errno changed.
  12. This must be done in native code because calling
  13. Stdlib.SetLastError/Syscall.xxx
  14. from managed code won't work reliably (since errno may change between the
  15. SetLastError call and the actual Syscall invocation).
  16. * unistd.c: Same as above, and allow fpathconf(3), pathconf(3), sysconf(3),
  17. and confstr(3) callers to explicitly choose their own errno value.
  18. * map.c, map.h: Handle enumeration name change in Mono.Unix.Native
  19. (e.g. ConfStr --> ConfstrName, etc.). This is so that they follow the
  20. established naming conventions.
  21. * map-icalls.h: Add new icalls.
  22. * syslog.c: Added; wraps <syslog.h> functions.
  23. 2005-10-06 Jonathan Pryor <[email protected]>
  24. * Makefile.am (MPH_C_SOURCE): Add string.c.
  25. * string.c: Added; exports strlen(3) wrapper.
  26. * map-icalls.h: Prototype for strlen(3) wrapper.
  27. 2005-09-29 Miguel de Icaza <[email protected]>
  28. * support-heap.c: Add meat to the Heap routines.
  29. 2005-09-20 Jonathan Pryor <[email protected]>
  30. * Makefile.am (refresh): Use the make-map.exe in Mono.Unix.Native.
  31. * map-icalls.h, map.c, map.h: Update to catch new enums AccessModes, Errno,
  32. and MmapProts. Huge re-ordering because of namespace change in managed
  33. code (not relevant to C API), and make-map.exe now outputs types/members
  34. in alphabetical order (to avoid major code churn in the future).
  35. 2005-07-12 Daniel Drake <[email protected]>
  36. * sys-xattr.c: Use <attr/attr.h> if <sys/xattr.h> does not exist (e.g. for
  37. glibc 2.2)
  38. * Makefile.am: Link to libattr if libc does not provide the xattr
  39. syscalls.
  40. Thu Jul 7 12:35:20 EDT 2005 Paolo Molaro <[email protected]>
  41. *supportw.c, Makefile.am: remove calls and link to libmono/libwapi.
  42. 2005-07-01 Daniel Drake <[email protected]>
  43. * sys-xattr.c: Support FreeBSD's extattr implementation. Slight API rework
  44. to provide transparency between Linux and FreeBSD EA's.
  45. * map-icalls.h: Update as above
  46. 2005-06-30 Gonzalo Paniagua Javier <[email protected]>
  47. * supportw.c: HeapDestroy.
  48. * Makefile.am: don't build supportw on windows.
  49. 2005-06-29 Ben Maurer <[email protected]>
  50. * Makefile.am: namespace our library.
  51. 2005-06-29 Gonzalo Paniagua Javier <[email protected]>
  52. * supportw.c:
  53. * supportw.h:
  54. * Makefile.am: new library intended to provide often P/Invoked windows
  55. API functions not present in io-layer.
  56. 2005-06-29 Jonathan Pryor <[email protected]>
  57. * map.c: Handle Syslog-related changes (SyslogFacility isn't a
  58. [Flags] enum); make-map.exe changes.
  59. 2005-06-28 Jonathan Pryor <[email protected]>
  60. * map.c, map.h: Handle Syslog-related changes (SyslogLevel isn't a [Flags]
  61. enum; change in order between LOG_USER and LOG_USRE).
  62. 2005-06-27 Jonathan Pryor <[email protected]>
  63. * map.c, map.h: Add corrected spelling of LOG_USER.
  64. 2005-06-13 Miguel de Icaza <[email protected]>
  65. * sys-statvfs.c (copy_statfs): f_flags is the field name on BSD,
  66. not f_flag.
  67. 2005-06-08 Jonathan Pryor <[email protected]>
  68. * Makefile.am: Create an unversioned library. We won't make any gaurantees
  69. about ABI stability until Mono 1.2 (if then).
  70. 2005-06-07 Jonathan Pryor <[email protected]>
  71. * sys-mman.c: Check for presence of mremap and remap_file_pages.
  72. 2005-06-05 Jonathan Pryor <[email protected]>
  73. * map-icalls.h, map.h: Change header comment so it matches what
  74. `make refresh` generates.
  75. * map.c: Add <sys/xattr.h> header.
  76. 2005-05-31 Jonathan Pryor <[email protected]>
  77. * sys-mman.c: Add wrappers for mmap, munmap, mprotect, msync, mlock,
  78. munlock, mremap, mincore, remap_file_pages.
  79. * map-icalls.h: Update to latest shared interface.
  80. * map.c, map.h: Add {To,From} pairs for MmapFlags, MmapProt, MsyncFlags,
  81. MlockallFlags, MremapFlags.
  82. * mph.h: Add mph_return_*_if_ssize_t_overflow macros.
  83. 2005-05-31 Jonathan Pryor <[email protected]>
  84. * unistd.c: Oops -- deal with s/LockFlags/LockfCommand/ change.
  85. 2005-05-31 Jonathan Pryor <[email protected]>
  86. * map.h, map.c, map-icalls.h: Rename LockFlags to LockfCommand.
  87. 2005-05-20 Zoltan Varga <[email protected]>
  88. * Makefile.am (MPH_C_SOURCE): Add map-icalls.h. Fixes #75012.
  89. 2005-05-18 Jonathan Pryor <[email protected]>
  90. * map-icalls.h: Added; auto-generated file which contains Mono_Posix_*
  91. declarations for DllImport functions in Mono.Posix.dll. This ensure
  92. consistency between Mono.Posix.dll and MonoPosixHelper.so.
  93. * mph.h: Add include for map-icalls.h, to ensure that all MonoPosixHelper
  94. exports have correct prototypes.
  95. * dirent.c, grp.c, macros.c, pwd.c, signal.c, stdio.c, sys-stat.c,
  96. sys-time.c, utime.c: Correct prototypes to match map-icalls.h. Alas, this
  97. "loses" information -- FILE* becomes void*, etc. -- but no semantics or
  98. ABI should be changed (except for Mono_Posix_Syscall_utime). Some
  99. structure names also changed to match the generated names; since the
  100. structures are private, this shouldn't break anything.
  101. * errno.c: Remove Mono_Posix_Syscall_SetLastError so we don't get a warning
  102. about a missing prototype. This was never in a stable release.
  103. * old-map.c: Include mph.h for prototype checking.
  104. * unistd.c: SeekFlags conversion is now done in managed code so that a short
  105. isn't passed as a parameter; Correct prototypes to match map-icalls.h.
  106. * sys-xattr.c: fix lsetxattr/fsetxattr confusion; Correct prototypes to
  107. match map-icalls.h.
  108. * sys-sendfile.c: Move mph.h include so that HAVE_SYS_SENDFILE_H is used.
  109. * sys-wait.c: Include mph.h so that prototypes are checked.
  110. 2005-05-16 Jonathan Pryor <[email protected]>
  111. * sys-statvfs.c: Include "map.h" for Mono_Posix_ToMountFlags prototype.
  112. * map.c: Include <sys/statvfs.h> so Mono_Posix_{To,From}MountFlags actually
  113. does something useful.
  114. 2005-05-12 Jonathan Pryor <[email protected]>
  115. * map.c, map.h: Add FromMountFlags, ToMountFlags. (MountFlags is used in
  116. `struct statvfs', which is POSIX).
  117. * sys-statvfs.c: Use ToMountFlags to convert the OS flags value into the
  118. managed equivalent.
  119. 2005-05-03 Geoff Norton <[email protected]>
  120. * sys-xattr.c: Mac OS/X Tiger supports xattr but has a different API for supporting
  121. resource forks. Allow mono to build on Tiger.
  122. 2005-04-30 Jonathan Pryor <[email protected]>
  123. * stdio.c: Add Mono_Posix_Stdlib_DumpFilePosition, which create a hex string
  124. "dump" of a fpos_t. This is used for Mono.Unix.FilePosition.ToString().
  125. 2005-04-19 Jonathan Pryor <[email protected]>
  126. * map.c, map.h: Added XattrFlags values, functions.
  127. * sys-xattr.c: Added; <sys/xattr.h> wrapper functions. Thanks to Daniel
  128. Drake for writing these.
  129. * Makefile.am: Add sys-xattr.c to the build.
  130. 2005-04-07 Jonathan Pryor <[email protected]>
  131. * errno.c: Use the GNU version of strerror_r if _GNU_SOURCE is defined
  132. (otherwise assume existence of XPG variant). This allows proper
  133. compilation under Red Hat 9.
  134. * fstab.c: protect against users calling setfsent(), setfsent(), ...
  135. endfsent(), which would otherwise leak a FILE handle.
  136. 2005-04-05 Zoltan Varga <[email protected]>
  137. * mph.h: Apply patch from the freebsd ports collection.
  138. 2005-02-10 Zoltan Varga <[email protected]>
  139. * zlib_macros.c (create_z_stream): Explicitly check for older versions
  140. of zlib.
  141. 2005-02-08 Zoltan Varga <[email protected]>
  142. * pwd.c (Mono_Posix_Syscall_getpwnam_r): Add another part missing from the last patch.
  143. 2005-02-07 Jonathan Pryor <[email protected]>
  144. * grp.c: Oops. Didn't see other Solaris fix in #72292.
  145. 2005-02-07 Jonathan Pryor <[email protected]>
  146. * grp.c, pwd.c: Clear errno before calling the actual calls, as errno may
  147. have a stale value, leading to spurious errors later. Fixes #72292.
  148. 2005-02-03 Jonathan Pryor <[email protected]>
  149. * Makefile.am (MPH_C_SOURCE): Move errno.c into MPH_C_SOURCE, so it's built
  150. on Windows as well as Unix.
  151. 2005-02-03 Jonathan Pryor <[email protected]>
  152. * errno.c: Mono_Posix_Syscall_SetLastError should be in Stdlib, not Syscall,
  153. since it's part of ANSI C (and errno will be used from StdioFileStream).
  154. Add Mono_Posix_Stdlib_SetLastError. Don't remove the Syscall version, as
  155. we don't want to break Mono 1.1.4/svn users the day after release. :-)
  156. 2005-01-25 Jonathan Pryor <[email protected]>
  157. * macros.c: Use gint64, not long, to match C# declaration. Fixes 71152.
  158. 2005-01-23 Geoff Norton <[email protected]>
  159. * dirent.c: Include <unistd.h> to bring off_t in on gcc4.0+OSX
  160. 2005-01-13 Jonathan Pryor <[email protected]>
  161. * map.h: Correct Mono_Posix_OpenFlags values (they should now match
  162. x86 linux); remove unused enumerations (MountFlags, etc.).
  163. 2005-01-13 Jonathan Pryor <[email protected]>
  164. * fstab.c: Fix HPUX support. HPUX includes both <fstab.h> and
  165. <checkpoint.h>, so we need to give preference to <checkpoint.h>.
  166. 2005-01-05 Jonathan Pryor <[email protected]>
  167. * fstab.c: Add support for HPUX, which uses <checklist.h>.
  168. 2005-01-05 Jonathan Pryor <[email protected]>
  169. * map.c: Continuing my ineptitude... <sys/wait.h> isn't on Win32.
  170. * mph.h: Win32 doesn't define EOVERFLOW, either. Define it.
  171. 2005-01-05 Jonathan Pryor <[email protected]>
  172. * map.c: Include <config.h> so we can check for PLATFORM_WIN32.
  173. 2005-01-05 Jonathan Pryor <[email protected]>
  174. * map.c: Fix Win32 build break. Win32 doesn't have all the sys/* headers.
  175. 2005-01-05 Jonathan Pryor <[email protected]>
  176. * serial.c: HPUX compiler fix.
  177. * stdlib.c: Add C-defined macro wrappers.
  178. 2005-01-04 Jonathan Pryor <[email protected]>
  179. * stdio.c: Add wrapper for C99's snprintf(3).
  180. 2005-01-04 Jonathan Pryor <[email protected]>
  181. * Makefile.am: Rewrite. Remove configure-generated warnings about
  182. multiple _LIBADD and _SOURCES lines. Add support for Win32.
  183. Win32 support is limited to ANSI C functions.
  184. * stdio.c: Don't compile Unix wrappers on Win32.
  185. 2005-01-04 Raja R Harinath <[email protected]>
  186. * Makefile.am (LIBS): Remove. Was overriding results of configure check.
  187. (libMonoPosixHelper_la_LIBADD): List $(GLIB_LIBS) here.
  188. 2005-01-04 Jonathan Pryor <[email protected]>
  189. * Makefile.am: Add libnsl to LIBS. Hopefully this will let sparc link.
  190. * mph.h: Make MPH_INTERNAL conditional on __GNUC__.
  191. 2005-01-03 Jonathan Pryor <[email protected]>
  192. * signal.c, stdio.c: Remove "function declaration isn't a prototype" warnings.
  193. * unistd.c: Check for presence of gethostname and sethostname.
  194. 2005-01-03 Jonathan Pryor <[email protected]>
  195. * mph.h, x-struct-str.c: Add "const" to parameters to remove
  196. "warning: passing arg [2|4]...discards qualifiers" message.
  197. 2005-01-03 Jonathan Pryor <[email protected]>
  198. * fstab.c: Remove some sparc compiler warnings.
  199. 2005-01-03 Jonathan Pryor <[email protected]>
  200. * fstab.c: Solaris doesn't support getfsent(3), but it provides equivalent
  201. functionality in getvfsent(3C). Implement Solaris support.
  202. 2005-01-02 Jonathan Pryor <[email protected]>
  203. * stdio.c: More wrapper functions. I missed a few macros... This should
  204. complete all macro's defined in <stdio.h> for C99.
  205. 2004-12-30 Jonathan Pryor <[email protected]>
  206. * stdio.c: More wrapper functions. This should complete C89's <stdio.h>
  207. requirements.
  208. 2004-12-30 Jonathan Pryor <[email protected]>
  209. * sys-statvfs.c: Further proving that changing code without compiling is
  210. dangerous business... Compiler fix for OS X.
  211. 2004-12-30 Jonathan Pryor <[email protected]>
  212. * signal.c: Mac OS X portability fixes -- it doesn't provide sighandler_t!
  213. 2004-12-30 Jonathan Pryor <[email protected]>
  214. * Makefile.am: Add signal.c to the build.
  215. * signal.c: Added. Contains helper functions to wrap signal(2).
  216. 2004-12-30 Jonathan Pryor <[email protected]>
  217. * sys-statvfs.c: Fix Mac OS X build (statfs.f_frsize doesn't exist on OSX;
  218. f_fsid isn't an integral type; fstatfs needs to use fpathconf).
  219. 2004-12-29 Jonathan Pryor <[email protected]>
  220. * unistd.c: Null-terminate the string returned by readlink(2). This works
  221. around a marshaler "issue".
  222. 2004-12-28 Jonathan Pryor <[email protected]>
  223. * Makefile.am: Add GLIB_LIBS to the LIBS line, since we require linking
  224. against glib-2.0 (to use g_assert()).
  225. 2004-12-28 Jonathan Pryor <[email protected]>
  226. * fstab.c: Added; wrap <fstab.h> functions: getfsent(3), getfsfile(3),
  227. getfsspec(3).
  228. * map.c: Add new conversion functions for SyslogOptions, SyslogFacility,
  229. SyslogLevel; see syslog(3) for details.
  230. * map.h: Add new conversion functions and values for SyslogOptions,
  231. SyslogFacility, SyslogLevel; see syslog(3) for details.
  232. * Makefile.am (MPH_SOURCE): add fstab.c, sys-statvfs.c, x-struct-str.c.
  233. * mph.h: Document location for Mac OS X man page documentation; add
  234. MPH_INTERNAL macro for intra-library function calls (for functions that
  235. shouldn't be exported from libMonoPosixHelper.so); declare
  236. _mph_copy_structure_strings().
  237. * pwd.c: Use _mph_copy_structure_strings() to copy strings embedded within
  238. struct passwd.
  239. * sys-statvfs.c: Added; wrap <sys/statvfs.h> functions statvfs(2),
  240. fstatvfs(2), and (to complicate things) implement (f)statvfs(2) in terms
  241. of (f)statfs(2) on Mac OS X (which lacks the -vfs calls).
  242. * x-struct-str.c: implements _mph_copy_structure_strings(), which is a
  243. generalized interface to copy strings between structures (as is needed in
  244. pwd.c and fstab.c).
  245. Thu Dec 23 14:58:09 EST 2004 Paolo Molaro <[email protected]>
  246. * serial.c: remove mono calls from here: they break the build
  247. and they don't belong here.
  248. 2004-12-21 Chris Toshok <[email protected]>
  249. * serial.c: initial import of System.IO.Ports pinvoke stuff.
  250. * Makefile.am (MPH_SOURCE): add serial.c.
  251. 2004-11-30 Jonathan Pryor <[email protected]>
  252. * mph.h: Use <glib.h>, not <glib/gtypes.h>, as the HP/UX compiler needs
  253. <glib/gutils.h> to handle the `inline' keyword.
  254. 2004-11-27 Miguel de Icaza <[email protected]>
  255. * Makefile.am (MPH_SOURCE): Add macros.c for compatibility with
  256. the old API (currently the old API would fail).
  257. 2004-11-25 Raja R Harinath <[email protected]>
  258. * Makefile.am (MPH_SOURCE): Distribute old-map.h and map.h.
  259. 2004-11-18 Jonathan Pryor <[email protected]>
  260. * stdio.c: Add fread(3) and fwrite(3) wrappers.
  261. 2004-11-16 Jonathan Pryor <[email protected]>
  262. * Makefile.am: Remove sys-mount.c from the build.
  263. * sys-mount.c: Delete. We're not exporting mount-related functionality
  264. anymore. It's not remotely portable, and trying to make it portable is a
  265. doomed idea.
  266. * map.c: Remove mount- and umount-related conversion functions.
  267. 2004-11-14 Geoff Norton <[email protected]>
  268. * mph.h: Revernt jonp's removal of MPH_ON_BSD define as sys-mount.c
  269. and unistd.c still check this configuration value. This allows mono
  270. to build on *BSD again.
  271. 2004-11-12 Jonathan Pryor <[email protected]>
  272. * dirent.c: Only access members which exist on the target
  273. platform.
  274. * errno.c: Only export strerror_r if it's available.
  275. * mph.h: Remove MPH_ON_BSD; use the configure checks instead.
  276. * sys-mman.c: Only export posix_madvise if it's available.
  277. * unistd.c: Only export sethostid if it's available.
  278. 2004-11-08 Jonathan Pryor <[email protected]>
  279. * Makefile.am: Add sys-sendfile.c to the build.
  280. * dirent.c, fcntl.c, unistd.c: Remove
  281. compile-time checks for -64 apis (pread64, etc.), as they're
  282. superfluous. GLibc #defines the functions to the appropriate
  283. -64 counterpart when necessary, and Darwin is intrinsically
  284. large-file-aware, so manual checking on my part is redundant and
  285. unnecessary.
  286. * grp.c: Add checks for non-portable functions getgrnam_r,
  287. getgrgid_r.
  288. * pwd.c: Add checks for non-portable functions getpwnam_r,
  289. getpwuid_r.
  290. * map.c: Remove <poll.h> include. Building on Tiger (Mac
  291. OS X 10.4 beta) breaks when both <poll.h> and <sys/poll.h> are
  292. included, so only use <sys/poll.h>.
  293. * mph.h: Clean up macro handling for type overflow checking.
  294. 2004-11-05 Jonathan Pryor <[email protected]>
  295. * .cvsignore: Ignore generated files.
  296. * Makefile.am: Add new INCLUDE directives (for glib
  297. headers), source; bump library version (so we don't clobber
  298. previous versions of libMonoPosixHelper.so).
  299. * dirent.c: New file; <dirent.h> wrapper functions;
  300. BSD portability fixes.
  301. * errno.c: New file; <errno.h> wrapper functions
  302. * fcntl.c: New file; <fcntl.h> wrapper functions;
  303. BSD portability fixes.
  304. * grp.c: New file; <grp.h> wrapper functions;
  305. BSD portability fixes.
  306. * map.c: Updated macro mapping functions (more enums
  307. mapped, more error checking, etc.).
  308. * map.h: Updated macro mapping functions
  309. * old-map.c: Previous map.c implementation, for backward
  310. compatibility Remove spurious warning about redefining
  311. _GNU_SOURCE.
  312. * old-map.h: Previous map.h implementation, for backward
  313. compatibility
  314. * mph.h: New file; Utility types, macros;
  315. BSD portability fixes.
  316. * pwd.c: New file; <pwd.h> wrapper functions;
  317. BSD portability fixes.
  318. * stdio.c: New file; <stdio.h> wrapper functions
  319. * stdlib.c: New file; <stdlib.h> wrapper functions
  320. * sys-mman.c: New file; <sys/mman.h> wrapper functions
  321. * sys-mount.c: New file; <sys/mount.h> wrapper functions;
  322. BSD portability fixes.
  323. * sys-sendfile.c: New file; <sys/sendfile.h> wrapper
  324. functions; BSD portability fixes.
  325. * sys-stat.c: New file; <sys/stat.h> wrapper functions
  326. * sys-wait.c: New file; <sys/wait.h> wrapper functions
  327. * time.c: New file; <time.h> wrapper functions;
  328. BSD portability fixes.
  329. * unistd.c: New file; <unistd.h> wrapper functions;
  330. BSD portability fixes.