1 2006-02-18 Alp Toker <alp@atoker.com>
3 * UnixEndPoint.cs: Avoid truncation of last two bytes of SocketAddress
6 2006-01-26 Jonathan Pryor <jonpryor@vt.edu>
8 * UnixMarshal.cs: Check for null arguments in PtrToString() and
11 2006-01-24 Jonathan Pryor <jonpryor@vt.edu>
13 * UnixMarshal.cs (StringToHeap): Return IntPtr.Zero if `s' is null.
15 2006-01-24 Jonathan Pryor <jonpryor@vt.edu>
17 * UnixMarshal.cs (StringToHeap): Check for null arguments.
19 2006-01-20 Jonathan Pryor <jonpryor@vt.edu>
21 * UnixDriveInfo.cs: Properties should generate an InvalidOperationException,
22 not an IOException. Users can use IsReady to avoid exception generation.
23 * UnixIOException.cs: Create a custom message that embeds the error name
24 within the text, e.g. "Permission denied [EACCES]."
25 * UnixSymbolicLinkInfo.cs: This really should create the file FullPath, not
26 OriginalPath. Created files shouldn't ever be relative to the current
27 working directory, as this can change at any time.
29 2006-01-15 Jonathan Pryor <jonpryor@vt.edu>
31 * UnixUserInfo.cs: The UnixUserInfo(Native.Passwd) constructor and
32 ToPasswd() should clone the underlying Native.Passwd, so
33 that it doesn't get changed from underneath it.
34 * UnixGroupInfo.cs: The UnixGroupInfo(Native.Group) constructor should also
35 clone the provided Native.Group instance.
37 2006-01-14 Jonathan Pryor <jonpryor@vt.edu>
39 * UnixGroupInfo.cs: ToGroup() should clone the underlying Native.Group, so
40 that it doesn't get changed from underneath it.
42 2006-01-13 Jonathan Pryor <jonpryor@vt.edu>
44 * Catalog.cs, UnixMarshal.cs: Throw `UnixIOException(Native.Errno.ENOMEM)`
45 instead of System.OutOfMemoryException. OOME should be reserved for use
46 by the CLR (according to FxDG).
48 2006-01-12 Jonathan Pryor <jonpryor@vt.edu>
50 * UnixPath.cs: Add ReadLink() and TryReadLink() methods.
52 2006-01-12 Miguel de Icaza <miguel@novell.com>
54 * PeerCred.cs: Do not define PeerCredData as this is a structure
55 known to the runtime. Instead use the Mono.Posix.PeerCredData
58 2006-01-10 Jonathan Pryor <jonpryor@vt.edu>
60 * Catalog.cs: Don't use
61 System.Runtime.InteropServices.Marshal.StringToHGlobalAuto(), use
62 UnixMarshal.StringToHeap(). We require that the converted string be in
63 UTF-8 format, but .NET's Marshal.StringToHGlobalAuto converts to the local
64 code page, *not* UTF-8 (Mono's does UTF-8). UnixMarshal.StringToHeap
65 *always* does UTF-8, so use that instead.
67 2006-01-09 Jonathan Pryor <jonpryor@vt.edu>
69 * FileTypes.cs: Remove [Flags] attribute -- these aren't bitfield values.
70 * UnixFileSystemInfo.cs: Fix Is<<Type>> properties -- before it would
71 erroneously say that a symlink was a character device. (This is because
72 device values are *not* [Flags] values, but code was assuming they were.)
73 * UnixGroupInfo.cs: Clone the string[] returned from GetMemberNames(). We
74 don't want callers to change the underlying list.
76 2006-01-07 Jonathan Pryor <jonpryor@vt.edu>
78 * UnixMarshal.cs: *Actually* put things in alphabetical order (like the
79 comment says). I can speak english, really I can.
81 2006-01-06 Jonathan Pryor <jonpryor@vt.edu>
83 * Catalog.cs: s/libintl/intl/g, since intl.dll is used by GTK+ on Windows,
84 not libintl.dll (according to
85 http://www.gimp.org/~tml/gimp/win32/downloads.html).
87 2006-01-03 Jonathan Pryor <jonpryor@vt.edu>
89 * UnixMarshal.cs (CreateExceptionForError): Don't map ENOMEM to
90 System.OutOfMemoryException. OOME should be reserved for use by the CLR.
91 Return a UnixIOException instead (default behavior).
93 2006-01-02 Jonathan Pryor <jonpryor@vt.edu>
95 * StdioFileStream.cs: Shut up FxCop - add a GC.KeepAlive to
97 * UnixClient.cs, UnixListener.cs: Use System.MarshalByRefObject as the base
98 class. These types implement IDisposable and have a finalizer, so if an
99 instance of these types were sent to another AppDomain they'd previously
100 marshal by copy, which could lead to a double release of an unmanaged
101 resource -- potential badness. Using MarshalByRefObject fixes this.
103 2006-01-02 Jonathan Pryor <jonpryor@vt.edu>
105 * UnixMarshal.cs: s/EACCESS/EACCES/g. I can't read.
107 2006-01-02 Jonathan Pryor <jonpryor@vt.edu>
109 * StdioFileStream.cs, UnixDirectoryInfo.cs, UnixEnvironment.cs,
110 UnixFileInfo.cs, UnixFileSystemInfo.cs, UnixGroupInfo.cs,
111 UnixIOException.cs, UnixMarshal.cs, UnixProcess.cs, UnixStream.cs,
112 UnixSymbolicLinkInfo.cs, UnixUserInfo.cs: Remove Obsolete API.
113 * CdeclFunction.cs, IncludeAttribute.cs, Stdlib.cs, Syscall.cs,
114 UnixConvert.cs, UnixDirectory.cs, UnixFile.cs, UnixGroup.cs,
116 * UnixPath.cs: Remove InvalidPathChars; use GetInvalidPathChars() instead.
117 * FileTypes.cs: Remove Obsolete API
119 2006-01-02 Jonathan Pryor <jonpryor@vt.edu>
121 * FileAccessPermissions.cs: Remove UserMask, GroupMask, OtherMask values.
122 * FileSpecialAttributes.cs: Remove AllAttributes member; it shouldn't be
123 public. Use UnixFileSystemInfo.AllSpecialAttributes instead.
124 * StdioFileStream.cs: Open files in binary mode, not text;
125 Fix exception message for StdioFileStream(path, mode) mode param check.
126 * UnixDirectoryInfo.cs: Add Create(FileAccessPermissions) overload; change
127 GetFileSystemEntries() to include the directory name that the files came
128 from (otherwise they're in the current working direcetory, which they
130 * UnixFileInfo.cs: Add Create(FileAccessPermissions) overload; Add better
131 argument checking to several Open() overloads.
132 * UnixFileSystemInfo.cs: Add AllSpecialAttributes, AllFileTypes members;
133 FullPath member should invalidate instance if path changes; Change return
134 type of GetFileStatus for maintenance/better documentation; ToStat()
135 should ensure that the instance is valid first.
136 * UnixMarshal.cs: Add additional Errno values to CreateExceptionForError();
137 reformat CreateExceptionForError for maintenance.
138 * UnixPath.cs: Obsolete InvalidPathChars -- FxCop never liked it, and now I
139 know why it didn't like it (thank you Framework Design Guidelines!).
140 * UnixStream.cs: Use UnixFileSystemInfo.AllSpecialAttributes, not
141 FileSpecialAttributes.AllAttributes (which was removed).
142 * UnixSymbolicLinkInfo.cs: Change return type of GetFileStatus().
144 2005-12-28 Jonathan Pryor <jonpryor@vt.edu>
146 * FileHandleOperations.cs: Check for null references.
148 2005-12-28 Jonathan Pryor <jonpryor@vt.edu>
150 * UnixMarshal.cs: Errno.EBADF should also trigger a ArgumentException.
152 2005-12-27 Jonathan Pryor <jonpryor@vt.edu>
154 * FileHandleOperations.cs, FileTypes.cs, Stdlib.cs, Syscall.cs,
155 UnixConvert.cs, UnixDirectory.cs, UnixDirectoryInfo.cs, UnixDriveInfo.cs,
156 UnixEnvironment.cs, UnixFile.cs, UnixFileInfo.cs, UnixFileSystemInfo.cs,
157 UnixGroup.cs, UnixGroupInfo.cs, UnixIOException.cs, UnixMarshal.cs,
158 UnixPath.cs, UnixPipes.cs, UnixProcess.cs, UnixStream.cs,
159 UnixSymbolicLinkInfo.cs, UnixUser.cs, UnixUserInfo.cs: Mark to-be-removed
160 API with [Obsolete(IsError=true)] (permits compiler assistance for finding
161 obsolete code); Migrate to the Mono.Unix.Native API.
162 * StdioFileStream.cs: Add non-Obsolete overloads for SaveFilePosition &
163 RestoreFilePosition (oops). Migrate to Mono.Unix.Native API.
165 2005-12-07 Jonathan Pryor <jonpryor@vt.edu>
167 * UnixMarshal.cs: Add PtrToStringUnix() -- specialized PtrToString method
168 which is significantly faster than PtrToString(p, UnixEncoding.Instance).
169 Use System.String..ctor(sbyte*, int, int, Encoding) to avoid the byte[]
170 intermediate copy -- much faster. Fix PtrToString() so that it will
171 accept an IntPtr containing 0 characters, and don't duplicate strings
174 2005-11-18 Jonathan Pryor <jonpryor@vt.edu>
176 * Catalog.cs, UnixDirectory.cs, UnixDirectoryInfo.cs, UnixDriveInfo.cs,
177 UnixEnvironment.cs, UnixFile.cs, UnixFileInfo.cs, UnixFileSystemInfo.cs,
178 UnixGroup.cs, UnixGroupInfo.cs, UnixProcess.cs, UnixSymbolicLinkInfo.cs,
179 UnixUser.cs, UnixUserInfo.cs: Change types of [Obsolete] members for
180 consistency and CLS compliance; Mono.Unix.Native type migration.
181 * FileTypes.cs: s/Special/Device/g (CharacterSpecial ==> CharacterDevice).
182 The *Special was a BSD convention, while UnixFileSystemInfo uses *Device
183 in property names, and these should be consistent. Changing the enum is
184 simpler than changing the UnixFileSystemInfo properties.
185 * UnixIOException.cs: s/error/errno/g (FxCop suggestion); change type of
187 * UnixMarshal.cs: s/error/errno/g (FxCop suggestion); Mono.Unix.Native
190 2005-11-08 Jonathan Pryor <jonpryor@vt.edu>
192 * Catalog.cs: Exception safety improvements (don't let memory leak!); check
193 for errors with bindtextdomain(3) et. al.
195 2005-11-08 Jonathan Pryor <jonpryor@vt.edu>
197 * UnixPipes.cs: Provide Equals, GetHashCode, and operator==/operator!= to
198 conform with FxCop guidelines for structures.
200 2005-11-03 Jonathan Pryor <jonpryor@vt.edu>
202 * FileTypes.cs, UnixFileSystemInfo.cs: s/FIFO/Fifo/ to follow .NET
203 naming conventions (as reported by FxCop).
205 2005-11-01 Jonathan Pryor <jonpryor@vt.edu>
207 * UnixDirectoryInfo.cs, UnixDriveInfo.cs, UnixEnvironment.cs,
208 UnixFileSystemInfo.cs, UnixGroupInfo.cs, UnixProcess.cs, UnixUserInfoc.cs:
209 Obsolete statements now specify in what way the return type will change.
210 * IncludeAttribute.cs: Obsoleted. It's an error to use it now.
212 2005-11-01 Jonathan Pryor <jonpryor@vt.edu>
214 * FileAccessPattern.cs: Change enumeration names to match Robert Love's more
215 sensible names from his FileAdvise class used in Beagle
216 (UseSoon --> PreLoad, WillNotUse --> FlushCache).
217 * FileHandleOperations.cs: Added; contains AdviseFileAccessPattern()
218 (moved from UnixFile.cs).
219 * UnixDirectory.cs: Obsolete the class; use UnixDirectoryInfo instead.
220 * UnixDirectoryInfo.cs: Add GetCurrentDirectory(), SetCurrentDirectory().
221 * UnixFile.cs: Obsolete the class; use UnixFileInfo, FileHandleOperations,
222 or UnixPipes instead.
223 * UnixFileSystemInfo.cs: Add ToStat() method.
224 * UnixGroup.cs: Obsolete the class; use UnixGroupInfo instead.
225 * UnixGroupInfo.cs: Obsolete & Replace constructor, add GetMemberNames(),
227 * UnixPipes.cs: Added (type moved from UnixFile.cs).
228 * UnixStream.cs: AdviseFileAccessPattern() uses FileHandleOperations now.
229 * UnixSymbolicLinkInfo.cs: Implement TryReadLink() to avoid constant buffer
230 re-sizing. Stevens states that the file size of the symlink is the number
231 of bytes needed to hold the symlink, so this should be faster.
232 * UnixUser.cs: Obsolete the class; use UnixUserInfo instead.
233 * UnixUserInfo.cs: Obsolete & Replace constructor; add useful static members
234 from UnixUser such as GetLoginName(), GetLocalUsers(), etc.
236 2005-10-27 Jonathan Pryor <jonpryor@vt.edu>
238 * UnixEnvironment.cs: Add RealUser, RealGroup, EffectiveUser, EffectiveGroup
239 properties; [Obsolete] necessary methods and provide replacements.
240 * UnixStream.cs: Add OwnerUser(Id), OwnerGroup(Id) properties;
241 improve Stat handling.
243 2005-10-26 Jonathan Pryor <jonpryor@vt.edu>
245 * UnixEncoding.cs: Change EscapeByte to 0x0000, as suggested by Michal
247 * UnixPath.cs: Remove '\0' from InvalidPathChars, since U+0000 is now used
248 as the path escape character for marshaling purposes.
250 2005-10-26 Jonathan Pryor <jonpryor@vt.edu>
252 * UnixMarshal.cs: Obsolete heap-related methods to have a Heap suffix
253 (AllocHeap, FreeHeap, etc.), and change StringToAlloc() to be
254 StringToHeap(). This creates a stronger name association between related
257 2005-10-26 Jonathan Pryor <jonpryor@vt.edu>
259 * UnixIOException.cs: Add (string) and (string, Exception) constructors to
260 silence FxCop; re-work logic so we lookup the error string at construction
261 time and use this as the message for the base class.
263 2005-10-25 Jonathan Pryor <jonpryor@vt.edu>
265 * Stdlib.cs, Syscall.cs: Filenames need to be marshaled through the
266 FileNameMarshaler, which will encode/decode filenames with UnixEncoding.
267 * UnixEncoding.cs: Added (copied from
268 ../../corlib/System.Text/UTF8Encoding.cs); a hack to permit handling of
269 arbitrarily encoded filenames. It attempts to decode a byte[] array as
270 UTF-8, and if the decode fails it prefixes each byte with
271 UnixEncoding.EscapeByte (\uFFFF).
272 * UnixMarshal.cs: Use UnixEncoding as the default encoding, and special-case
273 UnixEncoding to use Stdlib.strlen() for native string lengths.
275 2005-10-21 Jonathan Pryor <jonpryor@vt.edu>
277 * FileAccessPattern.cs: Added
278 * UnixFile.cs, UnixStream.cs: Deprecate all the Advise* methods (lots!)
279 and replace with 6 methods which take a FileAccessPattern enum.
281 2005-10-19 Jonathan Pryor <jonpryor@vt.edu>
283 * FileAccessPermissions.cs, FileSpecialAttributes.cs, FileTypes.cs: Added.
284 * UnixFileSystemInfo.cs, UnixStream.cs: Replace the old Permission property
285 with 4 new properties: Protection (for the Native.FilePermissions value),
286 FileAccessPermissions (for rwxrwxrwx info), FileSpecialAttributes (for
287 set-user-id, set-group-id, sticky), and FileTypes (directory, socket...).
288 The new enumeration types have nicer CLS-compliant names.
290 2005-10-17 Jonathan Pryor <jonpryor@vt.edu>
292 * UnixMarshal.cs: Fix GetIntXxBufferLength to require fewer
293 Marshal.ReadIntXx() calls; Fix PtrToString so that
294 ``"foo" == PtrToString (StringToAlloc("foo",enc),enc)'' is true for
297 2005-10-17 Jonathan Pryor <jonpryor@vt.edu>
299 * UnixFileSystemInfo.cs: Add OwnerUserId and OwnerGroupId properties.
301 2005-10-17 Jonathan Pryor <jonpryor@vt.edu>
303 * UnixDriveInfo.cs, UnixEnvironment.cs, UnixFile.cs, UnixFileSystemInfo.cs,
304 UnixGroup.cs, UnixStream.cs, UnixUser.cs: Don't use SetLastError(), since
305 it's use is (1) incorrect, and (2) will be going away with the move to
306 Mono.Unix.Native.Syscall. Instead use the Native.Syscall.* APIs which
309 2005-10-17 Jonathan Pryor <jonpryor@vt.edu>
311 * UnixGroup.cs, UnixGroupInfo.cs, UnixFile.cs, UnixFileSystemInfo.cs,
312 UnixStream.cs, UnixSymbolicLinkInfo.cs, UnixUser.cs, UnixUserInfo.cs:
313 Start migrating uid/gid to long (from uint) for CLS compliance.
314 (Full migration must wait 'til after the next release as this would
315 require changes to existing members.)
316 * UnixEnvironment.cs: Above, and add RealUserId/RealGroupId and
317 EffectiveUserId/EffectiveGroupId.
319 2005-10-14 Jonathan Pryor <jonpryor@vt.edu>
321 * Catalog.cs: Create a constructor and mark it [Obsolete]. It will be made
322 private after the next release.
323 * UnixFile.cs, UnixStream.cs: Deal with Mono.Unix.Native type name changes.
324 * UnixFileSystemInfo.cs: [Obsolete] more members; Deal with Mono.Unix.Native
326 * Syscall.cs: Create maps for PathConf, SysConf, ConfStr again; fpathconf(),
327 pathconf(), and sysconf() should call Native.Syscall since the
328 MonoPosixHelper.so helpers have changed.
330 2005-10-13 Jonathan Pryor <jonpryor@vt.edu>
332 * UnixMarshal.cs: More/better StringToAlloc/PtrToString which take a
333 System.Text.Encoding instance for proper string marshaling.
334 - PtrToString(string,Encoding) is particularly tricky due to variable
336 - Fix StringToAlloc so that it works properly with UTF-16 encodings
337 (we need a terminating null 16-bit word, not a null byte).
338 - StringToAlloc overload for doing substrings.
340 2005-10-12 Jonathan Pryor <jonpryor@vt.edu>
342 * UnixStream.cs: Check for EROFS and EINVAL in Flush(). Snorp was getting
343 an exception when he created a UnixStream around a socket, because
344 sockets can't be flushed. It should be acceptable to create a UnixStream
345 around a socket, so don't throw an exception in this scenario.
347 2005-10-06 Jonathan Pryor <jonpryor@vt.edu>
349 * UnixDirectory.cs, UnixDirectoryInfo.cs UnixFile.cs, UnixFileSystemInfo.cs,
350 UnixGroupInfo.cs, UnixIOException.cs, UnixStream.cs, UnixUserInfo.cs:
351 API Review: Obsolete appropriate members and add appropriate overloads for
352 pending move to Mono.Unix.Native types.
353 * UnixMarshal.cs: API Review; add StringToAlloc().
355 2005-09-26 Jonathan Pryor <jonpryor@vt.edu>
357 * UnixFileSystemInfo.cs: Exists shouldn't use access(2), as (1) Exists isn't
358 virtual, and (2) access(2) errors if you try to access(2) a symlink which
359 points nowhere. Use (l)stat(2) instead, via GetFileStatus(), as this lets
360 UnixSymbolicLinkInfo behave properly.
361 * UnixSymbolicLinkInfo.cs: The Contents property should return null if the
362 symlink target doesn't exist.
364 2005-09-20 Jonathan Pryor <jonpryor@vt.edu>
366 * Syscall.cs: Add [Map] to AccessMode and MmapProt, as the Mono.Unix.Native
367 replacements go by different names (AccessModes, MmapProts), but we need
368 to continue generating the mapping code for these types (backward compat).
370 2005-09-20 Jonathan Pryor <jonpryor@vt.edu>
372 * CdeclFunction.cs: [Obsolete]d by Mono.Unix.Native.CdeclFunction.
373 * make-map.cs: Remove.
374 * Stdlib.cs: [Obsolete] the types; use the Mono.Unix.Native.* types instead.
375 * StdioFileStream.cs: Add GC.KeepAlive statements to prevent premature GC's
377 * Syscall.cs: Remove [Map] attribute from all types; [CLSCompliant(false)]
378 work; [Obsolete] all types and suggest using the Mono.Unix.Native.*
379 replacements; remove [IncludeAttribute] -- superseded by
380 Mono.Unix.Native/Syscall.cs's [HeaderAttribte] for CLS compliance.
381 * UnixConvert.cs: [Obsolete]d by Mono.Unix.Native.NativeConvert.
382 * UnixDirectory.cs, UnixDriveInfo.cs, UnixEnvironment.cs,
383 UnixGroup.cs, UnixGroupInfo.cs,
384 UnixSymbolicLinkInfo.cs, UnixUser.cs, UnixUserInfo.cs:
385 Add [CLSCompliant(false)] as necessary.
386 * UnixFile.cs, UnixDirectory.cs, UnixFileInfo.cs, UnixFileSystemInfo.cs:
387 [CLSCompliant(false)], addition of method overloads for [Obsolete]d types,
388 warn about changing return types.
389 * UnixProcess.cs, UnixStream.cs: Add [CLSCompliant(false)] as necessary,
390 and warn about changing property types.
392 2005-09-02 Jonathan Pryor <jonpryor@vt.edu>
394 * Stdlib.cs: Cache delegates passed to Stdlib.signal() so that they survive
395 garbage collections. Delegates can be removed by calling Stdlib.signal()
396 again with one of the Stdlib.SIG_* values (or the original return value of
398 * UnixUser.cs, UnixGroup.cs, UnixEnvironment.cs: Clarify "Id" (int) vs.
399 "Name" (string) differences by always using a Id or Name suffix.
401 2005-07-01 Daniel Drake <dsd@gentoo.org>
403 * Syscall.cs: The entire extended attribute API now goes through MPH, to
404 be shared between both Linux's and FreeBSD's similar EA implementations.
406 2005-06-29 Miguel de Icaza <miguel@ximian.com>
408 * StdioFileStream.cs: Only flush if we do not own the handle, as
409 fclose does a flush internally.
411 2005-06-29 Jonathan Pryor <jonpryor@vt.edu>
413 * UnixEnvironment: Add User, Login properties.
414 * Syscall.cs: Add locking around cuserid, crypt, encrypt, getlogin.
416 2005-06-29 Jonathan Pryor <jonpryor@vt.edu>
418 * Syscall.cs: SyslogFacility shouldn't be [Flags] either. Sigh.
419 Thanks to Vorobiev Maksim for pointing this out.
420 * make-map.cs: Don't generate conversion code for [Obsolete] enum members.
421 This assumes that (1) the enum member's value is invalid, or (2) a
422 corrected member with the same value exists. This fix allows us to
423 obsolete invalid members (instead of removing them) without screwing up
424 the generated code -- consider LOG_USRE, the mis-spelling of LOG_USER.
425 Since SyslogFacility was (incorrectly) a [Flags] enum, since both LOG_USER
426 and LOG_USRE had the same value, we'd get a EINVAL error trying to convert
427 a valid value, since LOG_USRE would exist, would be checked for, and the
428 check would succeed (since it had the same value as LOG_USER).
429 This change allows us to be slightly more permissive with versioning.
431 2005-06-28 Jonathan Pryor <jonpryor@vt.edu>
433 * Syscall.cs: correct value of LOG_CRON (it shouldn't be identical to
434 LOG_UUCP). SyslogLevel shouldn't have [Flags]. Move LOG_USER to be
435 before LOG_USRE so that the generated map code doesn't return EINVAL when
436 LOG_USER is specified.
438 2005-06-15 Jonathan Pryor <jonpryor@vt.edu>
440 * Syscall.cs: s/LOG_USRE/LOG_USER/. Fixes #75274.
441 Thanks to Martin Honermeyer.
443 2005-06-09 Jonathan Pryor <jonpryor@vt.edu>
445 * make-map.cs: Look for [Obsolete] members, and mark the UnixConvert
446 conversion functions with the same [Obsolete] message. This should permit
447 more graceful deprecation of enumerations in the future (rather than just
450 2005-06-08 Jonathan Pryor <jonpryor@vt.edu>
452 * Syscall.cs: Add execvp(2). (This should have been added with the other
453 exec(2) additions...).
455 2005-06-08 Jonathan Pryor <jonpryor@vt.edu>
457 * Syscall.cs: Update comment with correct exception type.
458 * UnixConvert.cs: Rename ToFilePermissions(string) to
459 FromOctalPermissionString; Add ToOctalPermissionString,
460 FromUnixPermissionString, ToUnixPermissionString.
461 * UnixMarshal.cs: Remove ErrorMarshal.HaveStrerror_r and
462 UnixMarshal.IsErrorDescriptionThreadSafe. strerror(3) is now thread-safe
463 (from managed code, at least). Update comment.
465 2005-06-07 Jonathan Pryor <jonpryor@vt.edu>
467 * UnixFileSystemInfo.cs: Don't use lstat(2), use stat(2). This fits with
468 expectations better -- if you create a UnixFileInfo() on a symlink, you
469 want to get the target's information, not the symlink's info. Add
470 GetFileStatus so UnixSymbolicLinkInfo can override this behavior.
471 * UnixSymbolicLinkInfo.cs: Implement GetFileStatus() (which calls lstat(2)).
473 2005-06-07 Jonathan Pryor <jonpryor@vt.edu>
475 * Syscall.cs: Document naming conventions.
477 2005-06-05 Jonathan Pryor <jonpryor@vt.edu>
479 * make-map.cs: Change automatic "ifdef HAVE_<header>" support prefix to
480 "ah:" from ">". I hadn't known about ">", and "ah:" is (somewhat) more
482 * Syscall.cs: Change IncludeAttribute to put all headers/defines one/line.
483 It's easier to read this way. Add "ah:sys/xattr.h" to the headers.
485 2005-06-03 Jonathan Pryor <jonpryor@vt.edu>
487 * Stdlib.cs: Add sanity checking to snprintf(3) to avoid buffer overflows.
489 2005-06-02 Jonathan Pryor <jonpryor@vt.edu>
491 * StdioFileStream.cs: Remove FilePosition property & replace with
492 SaveFilePosition/RestoreFilePosition methods. Since FilePosition has a
493 finalizer, it's not right to have implicitly created instances.
495 - FilePosition: GC.SuppressFinalize() should be last in Dispose()
496 (following .NET guidelines).
497 - Syscall: Add locking around functions most likely to be thread unsafe.
498 This should provide some level of thread-safety to managed code.
499 * Syscall.cs: Add locking around functions most likely to be thread unsafe;
500 add mkstemp(3) export.
501 * UnixEnvironment.cs: GetUserShells should be atomic (from managed code).
502 * UnixGroup.cs: GetLocalGroups should be atomic (from managed code).
503 * UnixGroupInfo.cs: Add ToGroup() method to retrieve underlying Group info.
504 * UnixUser.cs: GetLocalUsers should be atomic (from managed code).
505 * UnixUserInfo.cs: Add ToPasswd () method to retrieve underlying Passwd info.
506 * UnixDriveInfo.cs: GetDrives should be atomic (from managed code).
508 2005-05-31 Jonathan Pryor <jonpryor@vt.edu>
510 * Stdlib.cs: Add comment for atexit(3) so I don't try to add it.
511 * Syscall.cs: Add fcntl(2) overload which takes DirectoryNotifyFlags (so
512 that *something* accepts a DirectoryNotifyFlags); Fix IncludeAttribute
513 header files (">sys/poll.h" doesn't exist);
514 Add additional <sys/mman.h> functions mmap, munmap, msync, mlock, munlock,
515 mlockall, munlockall, mremap, mincore, remap_file_pages.
516 * UnixConvert.cs: Add conversion functions for MmapFlags, MmapProt, MsyncFlags,
517 MlockallFlags, MremapFlags.
519 2005-05-31 Jonathan Pryor <jonpryor@vt.edu>
521 * Syscall.cs, UnixConvert.cs: Rename LockFlags to LockfCommand. This is a more
522 consistent naming, and it's more correct (they weren't flags in the first place).
524 2005-05-18 Jonathan Pryor <jonpryor@vt.edu>
526 * Stdlib.cs: Correct Mono_Posix_Stdlib_InvokeSignalHandler export.
528 2005-05-18 Jonathan Pryor <jonpryor@vt.edu>
530 * make-map.cs: Process the Mono.Posix namespace as well as Mono.Unix; add
531 mapping for Boolean => int for native type conversion.
533 2005-05-18 Jonathan Pryor <jonpryor@vt.edu>
535 * make-map.cs: Add a MphPrototypeFileGenerator, which looks for DllImport
536 methods across all types and generates a C header file declaration for
537 those methods. This allows us to ensure consistency between
538 Mono.Posix.dll and MonoPosixHelper.so. Rename WrapperFileGenerator to
539 ConvertFileGenerator (it generates UnixConvert).
540 * MapAttribute.cs, IncludeAttribute.cs: Make these internal -- there's no
541 reason for external users to even know these exist.
542 * StdioFileStream.cs: Move GC.SuppressFinalize call to be last Dispose()
543 call. This follows current design guidelines, and allows an exception to
544 be thrown from Dispose() without un-registering the finalizer.
545 * Syscall.cs: Change method declarations to match MonoPosixHelper, etc.
546 - posix_fallocate(P) takes a size_t
547 - mis-spelled settimeofday(2), sethostname(2)
548 - exec(2) can be public; it's safe to call
549 - change lseek(2) so int's are passed to MonoPosixHelper.so, not shorts
550 - We can't allow two incompatible prototypes to exist (since C allows
551 only one prototype, and we're cross-checking prototypes now). Change
552 utime(2) so only one prototype is needed.
553 * UnixMarshal.cs: ErrorMarshal.ErrorTranslator and ErrorMarshal.Translate
554 shouldn't be public; make them internal.
555 * UnixStream.cs: Remove `unsafe` code block when a "safe" alternative works;
556 Close() should also call GC.SuppressFinalize.
558 2005-05-12 Jonathan Pryor <jonpryor@vt.edu>
560 * Syscall.cs: The Statvfs structure should contain a MountFlags enumeration,
561 not a ulong (we can "safely" do this since POSIX defines some values for
562 f_flag, so we should be kind and expose them).
563 * UnixConvert.cs: Add MountFlags conversion functions.
565 2005-05-02 Joe Shaw <joeshaw@novell.com>
567 * UnixListener.cs (Init): Remove the call to Cleanup() and the
568 method itself, which was not supposed to be here. We try to
569 connect to the socket if it exists instead of deleting it
572 2005-04-30 Ben Maurer <bmaurer@ximian.com>
574 * Stdlib.cs: Comment out usage of `UnmanagedFunctionPointer'. It
575 isn't supported in the runtime -- it throws an assert -- so better
576 not to use it at all for now.
578 2005-04-29 Jonathan Pryor <jonpryor@vt.edu>
580 * UnixConvert.cs: Fix time_t -> DateTime conversions. time_t should be
581 assumed to be in the local time zone, so don't mess with UTC shifts.
582 This allows Mono.Unix to produce sane output (e.g. identical to ls(1) or
583 stat(1), instead of several hours different).
585 2005-04-29 Jonathan Pryor <jonpryor@vt.edu>
587 * Stdlib.cs: Make FilePosition slightly more useful by providing a
588 ToString() override which dumps the fpos_t structure contents into a
589 hex string. Add Equals(), GetHashCode(), operator==, and operator!=
590 so FilePosition behaves like a value type.
592 2005-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
595 * UnixListener.cs: TcpListener/TcpClient clones from Jow Shaw.
597 2005-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
599 * Mono.Posix.dll.sources: added UnixListener and UnixClient from Joe
602 2005-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
604 * UnixEndPoint.cs: fix from Mono.Posix.
606 2005-04-20 Jonathan Pryor <jonpryor@vt.edu>
608 * Syscall.cs: Make all fork(2) and exec(2) functions `private`. It
609 currently isn't safe to call these under *any* circumstances. See also
610 68141, and this pertinent quote from Butenhof's
611 "Programming with POSIX Threads", p197, s6.1:
613 "When a threaded process calls fork to create a child process,
614 Pthreads specifies that only the thread calling fork exists in the
615 child. ... Pthreads does not 'terminate' the other threads in a forked
616 process...They simply cease to exist. ... This is not a problem if
617 the child process is about to call exec to run a new program, but if
618 you use fork to clone a threaded program, beware that you may lose
619 access to memory, especially heap memory stored only as
620 thread-specific data values."
622 Since P/Invoke currently requires using thread local storage, once you
623 fork(2) you won't be able to invoke exec(2) from managed code (since that
624 would require a P/Invoke transition to call exec(2), which would require
625 TLS, which doesn't exist in the new process).
627 This can only be fixed by removing the TLS dependency on P/Invoke, which
628 isn't a priority (and may not be possible).
630 The workaround is to create a C function which does your fork(2)/exec(2)
631 (and any other functions such as daemon(3)) on your behalf, and P/Invoke
632 to call this C function.
634 2005-04-18 Jonathan Pryor <jonpryor@vt.edu>
636 * Syscall.cs: Update comment specifying which functions belong in Syscall.
637 * UnixConvert.cs: Add XattrFlags conversion functions.
638 * UnixMarshal.cs: Remove warning about self-assignment.
640 2005-04-16 Daniel Drake <dsd@gentoo.org>
642 * Syscall.cs: Add bindings for extended attribute manipulation
644 2005-04-05 Miguel de Icaza <miguel@novell.com>
646 * Syscall.cs: Set entry point for sys_syslog to be syslog.
647 Include the syslog.h header in the generated map so that we
648 actually do the mapping.
650 2005-03-28 Jonathan Pryor <jonpryor@vt.edu>
652 * UnixConvert.cs: Add ToFopenMode() methods, which convert FileMode/FileAccess
653 into an fopen(3) mode string. ToOpenFlags() should throw
654 ArgumentOutOfRangeException for argument violations.
655 * StdioFileStream.cs: Add constructor overloads accepting filename and
656 FileMode/FileAccess overloads; Compatibility fixes with regression tests;
657 remove IDisposable implementation since System.IO.Stream already
658 implements it (which calls Close() for us).
660 2005-03-17 Jonathan Pryor <jonpryor@vt.edu>
662 * Stdlib.cs: Move Errno-related functionality into Stdlib from Syscall,
663 since (1) errno is part of C89, and (2) StdioFileStream will need it, and
664 StdioFileStream shouldn't use Syscall. Add [UnmanagedFunctionPointer]
665 attribute to SignalHandler for .NET 2.0 (since signal handlers use C
666 calling convention, not Stdcall).
667 * Syscall.cs: Move Errno-related functionality into Stdlib.
668 * UnixMarshal.cs: Use ERANGE not EPERM when figuring out appropriate
669 translator, since ERANGE is part of C99 and EPERM isn't. Use Stdlib
670 instead of Syscall for Errno-related functionality.
672 2005-02-02 Jonathan Pryor <jonpryor@vt.edu>
674 * UnixFile.cs: Cope with changes in UnixStream.
675 * UnixStream.cs: Change FileDescriptor property to Handle for consistency.
676 * StdioFileStream.cs: Change FileStream property to Handle for consistency.
678 2005-02-02 Jonathan Pryor <jonpryor@vt.edu>
680 * Syscall.cs: Remove public sys_ methods. Some were public by mistake, and
681 others so that users could manually marshal strings if desired. Manually
682 marshaling strings shouldn't be necessary, though, so remove them too.
684 2005-02-02 Jonathan Pryor <jonpryor@vt.edu>
686 * StdioFileStream.cs: Fix Length property to actually return the size of the
687 file, not the # of bytes from the current position to EOF. Oops.
689 2005-01-31 Jonathan Pryor <jonpryor@vt.edu>
691 * Stdlib.cs: Import "msvcrt", not "libc". These members are part of the
692 ANSI C standard, and thus should be present on Windows via msvcrt.dll
693 (except snprintf, until they catch up to C99). Change the calling
694 convention of all functions to Cdecl, as the .NET default is Stdcall.
695 Changing the calling convention isn't needed in Syscall, as it can only be
696 run on Unix platforms anyway, where the default is Cdecl.
697 * Syscall.cs: Add LIBC member that points to the real "libc"; we can't use
698 the imported definition from Stdlib as "msvcrt" doesn't exist on Unix.
700 2005-01-29 Jonathan Pryor <jonpryor@vt.edu>
702 * Stdlib.cs: sys_* functions shouldn't be public.
704 2005-01-13 Jonathan Pryor <jonpryor@vt.edu>
706 * make-map.cs: libMonoPosixHelper exports Mono_Posix prefixes, not Mono_Unix
707 prefixes, so change the type and namespace to generate compatible code.
708 * Syscall.cs: Change OpenFlags values so they match the Linux values.
710 2005-01-13 Jonathan Pryor <jonpryor@vt.edu>
712 * Stdlib.cs: Use Stdlib.LIBC instead of "libc".
713 * StdioFileStream.cs: Add FilePosition property (not that I expect anyone to
714 use it) and Rewind() method.
716 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
718 * StdioFileStream.cs: Added; System.IO.Stream wrapper for C FILE struct.
719 * Stdlib.cs: Correct visibility of ftell().
721 2005-01-05 Jonathan Pryor <jonpryor@vt.edu>
723 * Stdlib.cs: Re-order declarations to match the order used in the
724 C99 Standard Annex B; Complete <stdio.h> exports (except for those not
725 worth supporting); Add non-"unsafe" versions of fread(3), fwrite(3) and
726 add some rudimentary buffer-overflow checking; Add <stdlib.h> exports such
727 as getenv(3), exit(3), rand(3), EXIT_SUCCESS, RAND_MAX, etc.
729 2005-01-03 Jonathan Pryor <jonpryor@vt.edu>
731 * Syscall.cs: Update endfsent() and setfsent() declarations, as these must
732 now be implemented in MonoPosixHelper.
734 2005-01-01 Jonathan Pryor <jonpryor@vt.edu>
736 * Stdlib.cs, Syscall.cs: Minimize duplicate declarations of
737 "MonoPosixHelper" for use in DllImport statements.
739 2005-01-01 Jonathan Pryor <jonpryor@vt.edu>
741 * Stdlib.cs: Don't use C# v2 features; fixes build under CSC.EXE.
743 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
745 * Stdlib.cs: On miguel's suggestion, rename Sighandler_t to SignalHandler.
747 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
749 * Stdlib.cs: Implement all C89 <stdio.h> functions except for the scanf(3)
750 family. These are too dangerous to expose.
752 2004-12-30 Jonathan Pryor <jonpryor@vt.edu>
754 * CdeclFunctions.cs: Remove warning about unused variable.
755 * Stdlib.cs: Make signal(2) sane and (hopefully) complete.
756 * Syscall.cs: Fix cuserid Obsolete message to reference correct class name.
757 * UnixProcess.cs: Remove warning about unused variable.
758 * UnixMarshal.cs: Remove warnings about unused variables.
760 2004-12-29 Jonathan Pryor <jonpryor@vt.edu>
762 * UnixPath.cs: Add ReadSymbolicLink(), which takes an intelligent approach
763 to reading symlinks (since their contents may be any size, we grow the
764 buffer dynamically to fit them all, instead of assuming a maximum size).
765 * UnixSymbolicLinkInfo.cs: Remove MaxContentsSize.
767 2004-12-29 Jonathan Pryor <jonpryor@vt.edu>
769 * UnixPath.cs: Add check for when symlink points to a full path name.
771 2004-12-29 Jonathan Pryor <jonpryor@vt.edu>
773 * Syscall.cs: Fix Object.Equals implementations.
774 * UnixPath.cs: New & improved, with Testing! GetRealPath() is changed so
775 that it doesn't walk the entire path looking for symlinks, it just reads
776 the leaf. GetCompletRealPath() walks the entire path resolving symlinks.
777 GetCanonicalPath() added, which "cleans up" a path (removing extraneous
778 "." and ".." entries).
779 * UnixSymbolicLinkInfo.cs: Rename ContentsLength -> MaxContentsSize.
781 2004-12-28 Jonathan Pryor <jonpryor@vt.edu>
783 * UnixFileSystemInfo.cs: Add a link(2) wrapper, CreateLink(). Strictly
784 speaking it's only "safe" to do this on files, but an exception will be
785 returned if the user tries to hard link directories (because of EPERM),
786 unless the user is root, in which case it should be allowed anyway...
788 2004-12-28 Jonathan Pryor <jonpryor@vt.edu>
790 * CdeclFunctions.cs: Correct the comments for AMD64
791 * UnixDirectoryInfo.cs: override Name; add Parent & Root properties;
792 Correct Path usage (s/Path/FullPath/g).
793 * UnixDriveInfo.cs: Added. Based on .NET 2.0 System.IO.DriveInfo docs,
794 provides statvfs(2) and getfsfile(3) information about a mounted volume.
795 GetDrives() wraps getfsent(3), thus parsing /etc/fstab.
796 * UnixFile.cs: Use UnixConver.ToOpenFlags, deleting the local version.
797 * UnixFileInfo.cs: Use UnixConver.ToOpenFlags, deleting the local version;
798 override Name; add DirectoryName and Directory properties;
799 * UnixFileSystemInfo.cs: Make more .NET-like, using FullPath and
800 OriginalPath protected members, abstract Name property; Add
801 CreateSymbolicLink; Remove ReadLink (it's now
802 UnixSymbolicLinkInfo.Contents); Use lstat(2) for Create(string), so we
803 properly detect Symbolic Links.
804 * UnixPath.cs: Added; Path manipulation utility functions.
805 * UnixSymbolicLinkInfo.cs:
807 - override new abstract member Name;
808 - rename ReadLink to ContentsPath (and Contents) properties
809 (why "Contents"? Because readlink(2) says "readlink places the
810 contents of the symbolic link in the buffer...")
811 - Add CreateSymbolicLinkTo(), which creates a symlink to the specified
814 2004-12-28 Jonathan Pryor <jonpryor@vt.edu>
816 * Stdlib.cs: Add syslog(3) to XPrintfFunctions; Add additional printf(3)
817 and fprintf(3) overload which properly escape the format string
818 (by using "%s" as the format for the user-supplied message).
819 * Syscall.cs: Add #regions for enummerations, structures, classes; Wrap
820 syslog(3) and related enumerations; fix operator!= on Dirent, Group;
821 wrap {f}statvfs(2); wrap <fstab.h> entries (getfsent(3), etc.).
822 * UnixConvert.cs: Add Syslog-releated enumeration translation functions;
823 Move ToOpenFlags here from UnixFile and UnixFileInfo.
824 * UnixMarshal.cs: Missing P/Invoke methods throw
825 EntryPointNotFoundException, not MissingMethodException; add
826 EscapeFormatString, which escapes printf-style format strings so that they
827 can be safely handed off to native code (avoiding stack overflow, etc);
828 make CreateExceptionForError internal.
830 2004-12-15 Jonathan Pryor <jonpryor@vt.edu>
832 * Stdlib.cs: Add more <stdio.h> wrappers, such as fread(3) and fwrite(3).
833 These will be useful in implementing System.IO.Stream subclass for
834 reading/writing to a FILE*. Fix a typo in the realloc(3) DllImport.
835 * Syscall.cs: Fix the sys_kill and sys_crypt declarations.
836 * CdeclFunction.cs: Document calling convention problems on AMD64.
838 2004-11-18 Jonathan Pryor <jonpryor@vt.edu>
840 * CdeclFunction.cs: Added.
841 * Stdlib.cs: Re-add printf(3) and fprintf(3). They may not be portable (the
842 jury is still out on that; the AMD64 SysV ABI looks like it should be
843 portable to AMD64 to my eyes), but they will work on *some* platforms, so
844 we should permit it. The new implementation takes a page out of
845 cocoa-sharp: use System.Reflection.Emit to generate a P/Invoke method at
846 runtime to invoke printf(3) or fprintf(3). This way, we can export a
847 params signature to C# code, permitting natural usage such as:
848 Stdlib.printf ("Hello, %s world! (%i)\n", "silly", 42);
849 * Syscall.cs: Mark which headers are complete, which functions still need
850 wrapping (for headers which have anything done to them), add #region
851 blocks for each header;
852 export mkfifo(3), fexecve(), getppid(2), setlogin(); fix sleep(3) export.
853 * UnixEnvironment.cs: Export a friendly getppid(2) wrapper.
854 GetParentProcessId isn't in UnixProcess as there's no way (that I know of)
855 to get the Parent's Parent, so it can't be a class member, and exposing it
856 as a static member of UnixProcess doesn't make sense to me, as it isn't
857 general. Added GetUserShells().
858 * UnixProcess.cs: Change constructor to internal, so it can be used from
861 2004-11-16 Jonathan Pryor <jonpryor@vt.edu>
863 * Stdlib.cs: Remove printf(3) and fprintf(3). These are vararg/CDECL
864 functions, and it's not portable to call them in this manner.
865 (It's not portable because some architectures, such as AMD64, use a
866 "cookie" as part of the vararg calling sequence to help reduce buffer
867 overflow exploits. Trying to call vararg functions as if they were an
868 overloaded function will not properly set this hardware cookie, resulting
869 in a hardware exception. Talk to lupus for more information.)
871 2004-11-16 Jonathan Pryor <jonpryor@vt.edu>
873 * Syscall.cs, UnixConvert.cs: Remove mount- and umount-related
874 functionality. Mount/umount is inherently non-portable (see the C code
875 for mount/umount), and trying to provide a consistent interface is
876 impossible. If you need mount/umount support, use the command-line
877 programs mount(1) and umount(1).
879 2004-11-16 Jonathan Pryor <jonpryor@vt.edu>
881 + Lots o' Renames, as the namespace changed.
882 * PosixConvert.cs: Moved to UnixConvert.cs:
883 * PosixDirectory.cs: Moved to UnixDirectory.cs:
884 * PosixEnvironment.cs: Moved to UnixEnvironment.cs:
885 * PosixDirectoryInfo.cs: Moved to UnixDirectoryInfo.cs:
886 * PosixFile.cs: Moved to UnixFile.cs:
887 * PosixFileInfo.cs: Moved to UnixFileInfo.cs:
888 * PosixFileSystemInfo.cs: Moved to UnixFileSystemInfo.cs:
889 * PosixGroup.cs: Moved to UnixGroup.cs:
890 * PosixGroupInfo.cs: Moved to UnixGroupInfo.cs:
891 * PosixIOException.cs: Moved to UnixIOException.cs:
892 * PosixMarshal.cs: Moved to UnixMarshal.cs:
893 * PosixProcess.cs: Moved to UnixProcess.cs:
894 * PosixStream.cs: Moved to UnixStream.cs:
895 * PosixSymbolicLinkInfo.cs: Moved to UnixSymbolicLinkInfo.cs:
896 * PosixUser.cs: Moved to UnixUser.cs:
897 * PosixUserInfo.cs: Moved to UnixUserInfo.cs:
898 * Catalog.cs, IncludeAttribute.cs, MapAttribute.cs, PeerCred.cs, Stdlib.cs,
899 Syscall.cs, UnixConvert.cs, UnixDirectory.cs, UnixDirectoryInfo.cs,
900 UnixEndPoint.cs, UnixEnvironment.cs, UnixFile.cs, UnixFileInfo.cs,
901 UnixFileSystemInfo.cs, UnixGroup.cs, UnixGroupInfo.cs, UnixIOException.cs,
902 UnixMarshal.cs, UnixProcess.cs, UnixStream.cs, UnixSymbolicLinkInfo.cs,
903 UnixUser.cs, UnixUserInfo.cs: Deal with renamed classes/members.
905 2004-11-15 Jonathan Pryor <jonpryor@vt.edu>
907 * PosixUserInfo.cs: Make the PosixUserInfo(Passwd) constructor public;
908 override Object.GetHashCode and Object.Equals.
909 * PosixGroupInfo.cs: Make the PosixGroupInfo(Group) constructor public;
910 override Object.GetHashCode and Object.Equals.
911 * PosixIOException.cs: Use PosixMarshal.GetErrorDescription instead of
912 calling Syscall.strerror_r directly
913 * PosixMarshal.cs: Add GetErrorDescription. Strerror_r() isn't portable, so
914 GetErrorDescription() first tries strerror_r(), and if it fails falls back
917 - Seal the Dirent class. It has no virtual members, so there's no point
918 in it being non-sealed. Override Object.GetHashCode and Object.Equals.
919 - Seal the Group class. It has no virtual members, so there's no point
920 in it being non-sealed. Override Object.GetHashCode and Object.Equals.
921 Provide operator== and operator!=.
922 - Seal the Passwd class. It has no virtual members, so there's no point
923 in it being non-sealed. Override Object.GetHashCode and Object.Equals.
924 Provide operator== and operator!=.
925 - Remove strerror_r() convenience overload. This is now
926 PosixMarshal.GetErrorDescription().
928 2004-11-12 Jonathan Pryor <jonpryor@vt.edu>
930 * Syscall.cs: Export time-related functions (gettimeofday, settimeofday,
931 utime, utimes), mknod.
933 2004-11-07 Atsushi Enomoto <atsushi@ximian.com>
935 * PosixEnvironment.cs : csc build fix. see bug #69195.
936 * PosixStream.cs : csc build fix. see bug #69196.
938 2004-11-05 Jonathan Pryor <jonpryor@vt.edu>
940 * PosixConvert.cs: New file; conversion functions for Mono.Posix types.
941 * PosixDirectory.cs: New file; Friendly wrapper over directory information.
942 * PosixDirectoryInfo.cs: New file; Friendly wrapper over directory information.
943 * PosixEnvironment.cs: New file; Friendly wrapper over environment information.
944 * PosixFile.cs: New file; Friendly wrapper over file information.
945 * PosixFileInfo.cs: New file; Friendly wrapper over file information.
946 * PosixFileSystemInfo.cs: New file; Friendly wrapper over `stat'.
947 * PosixGroup.cs: New file; User Group-related functionality
948 * PosixGroupInfo.cs: New file; User Group-related functionality
949 * PosixIOException.cs: New file; Exception for POSIX-generated exceptions.
950 * PosixMarshal.cs: New file; utility functions for marshaling, etc.
951 * PosixProcess.cs: New file; Friendly wrapper over process information.
952 * PosixStream.cs: New file; Friendly wrapper over file descriptors.
953 * PosixSymbolicLinkInfo.cs: New file; Friendly wrapper over symbolic links.
954 * PosixUser.cs: New file; Friendly wrapper over user information.
955 * PosixUserInfo.cs: New file; Friendly wrapper over user information.
956 * Stdlib.cs: New file; C standard library exports.
957 * Syscall.cs: Effective re-write.
958 - Organize exports by header file
959 - add additional enumerations (Error for the E* error values, etc.)
960 - always explicitly specify enumeration underlying type
961 - Use a new wrapping infrastructure so that ABI-stable types are exported
962 - For example, size_t is exported as ulong, not IntPtr.
963 - Wrap more functions, and wrap them better (such as getpwnam).
964 - This release is NOT backward compatible. Many names are the same, and
965 hopefully they're still compatible, but no effort was made to maintain
966 compatibility. For example, FileMode was removed and replaced with
967 FilePermissions, to avoid a name conflict with System.IO.FileMode.
968 - Change umount() to use MonoPosixHelper: portability fix for Mac OS X.
969 * make-map.cs: Another effective re-write, to clean up the code, produce
970 better output, and produce more output. For example, most of
971 PosixConvert can be auto-generated, so it is (modulo version delays and
972 bootstrap issues). `map.c' is now conditional on all macros, and has
973 error checking for invalid/unsupported values.
975 2004-09-18 Jackson Harper <jackson@ximian.com>
977 * Syscall.cs: Add support for poll ().
979 2004-09-18 Jackson Harper <jackson@ximian.com>
981 * make-map.cs: Use field value not name for #defines.
983 2004-09-14 Loren Bandiera <lorenb@mmgsecurity.com>
985 * Syscall.cs: Added method for getpwnam which uses Passwd
987 * macros.c: Helper function for getpwnam
988 (In committing, Josh Tauberer also added getpwuid.)
990 2004-07-09 Dick Porter <dick@ximian.com>
992 * PeerCred.cs: Get the unix socket peer credentials.
994 2004-05-26 Miguel de Icaza <miguel@ximian.com>
996 * Syscall.cs: Do not let the runtime handle strings, as we do not
997 own those strings, we must transform the char * into a string
1000 2004-05-03 Miguel de Icaza <miguel@ximian.com>
1002 * Syscall.cs: Add symlink
1004 2004-04-19 Miguel de Icaza <miguel@ximian.com>
1006 * Syscall.cs: Use hex values for FileMode, since C# does not have
1007 an octal integer mode.
1009 2004-03-30 Joshua Tauberer <tauberer@for.net>
1011 * Added readlink, strerror, opendir, readdir, closedir
1012 * Added Mono.Posix.Stat.UnixToDateTime(long unixtime) --> DateTime
1014 2004-03-11 Joshua Tauberer <tauberer@for.net>
1016 * Syscall.cs: Removed argument to getgid that shouldn't be there.
1017 Added getusername, getgroupname which wrap getpwuid, getgrgid
1018 without dealing with pointers to structures.
1019 Removed duplicate FileMode enum nested in Syscall class.
1020 Added stat and lstat, which use StatMode enumeration
1021 (like FileMode but nicer and complete) and Stat struct.
1022 * macros.c: Helper functions for getpwuid, getgrgid, stat, lstat.
1024 2004-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1026 * Syscall.cs: moved the assembly attribute to a proper place
1027 and added 'signal.h'
1028 * make-map.cs: use reflection to invoke the properties, as it
1029 fails under MS runtime.
1032 2004-01-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1034 * Syscall.cs: moved assembly attribute and added unsafe block to fix
1035 the build on windows.
1037 2003-11-11 Wojciech Polak <polak@gnu.org
1039 * Syscall.cs: Applied patch from Wojciech Polak <polak@gnu.org> to
1042 2003-05-16 Dick Porter <dick@ximian.com>
1044 * UnixEndPoint.cs: New property to get and set the filename, like
1045 the IPEndPoint has for the IP address. Also implement ToString().
1047 Tue Apr 29 16:53:56 CEST 2003 Paolo Molaro <lupus@ximian.com>
1049 * Syscall.cs: remove the unsafe mess.
1051 2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1054 * UnixEndPoint.cs: first file.