* Mono.Posix.dll.sources: Add UnixDriveInfo and UnixPath.
authorJonathan Pryor <jpryor@novell.com>
Tue, 28 Dec 2004 19:54:39 +0000 (19:54 -0000)
committerJonathan Pryor <jpryor@novell.com>
Tue, 28 Dec 2004 19:54:39 +0000 (19:54 -0000)
commitc05ab5c33336c3cbb7783b1a48fb1176748bf7e4
tree8530173b7734e6ee245ed94824a166b0cd8d9bd1
parent03398ebee4c91fef05643933c96fdd1b2a57675b
  * Mono.Posix.dll.sources: Add UnixDriveInfo and UnixPath.
  * CdeclFunctions.cs: Correct the comments for AMD64
  * UnixDirectoryInfo.cs: override Name; add Parent & Root properties;
    Correct Path usage (s/Path/FullPath/g).
  * UnixDriveInfo.cs: Added.  Based on .NET 2.0 System.IO.DriveInfo docs,
    provides statvfs(2) and getfsfile(3) information about a mounted volume.
    GetDrives() wraps getfsent(3), thus parsing /etc/fstab.
  * UnixFile.cs: Use UnixConver.ToOpenFlags, deleting the local version.
  * UnixFileInfo.cs: Use UnixConver.ToOpenFlags, deleting the local version;
    override Name; add DirectoryName and Directory properties;
  * UnixFileSystemInfo.cs: Make more .NET-like, using FullPath and
    OriginalPath protected members, abstract Name property; Add
    CreateSymbolicLink; Remove ReadLink (it's now
    UnixSymbolicLinkInfo.Contents); Use lstat(2) for Create(string), so we
    properly detect Symbolic Links.
  * UnixPath.cs: Added; Path manipulation utility functions.
  * UnixSymbolicLinkInfo.cs:
    - Seal the class;
    - override new abstract member Name;
    - rename ReadLink to ContentsPath (and Contents) properties
      (why "Contents"?  Because readlink(2) says "readlink places the
      contents of the symbolic link in the buffer...")
    - Add CreateSymbolicLinkTo(), which creates a symlink to the specified
      "normal" file

svn path=/trunk/mcs/; revision=38140
mcs/class/Mono.Posix/ChangeLog
mcs/class/Mono.Posix/Mono.Posix.dll.sources
mcs/class/Mono.Posix/Mono.Unix/CdeclFunction.cs
mcs/class/Mono.Posix/Mono.Unix/ChangeLog
mcs/class/Mono.Posix/Mono.Unix/UnixDirectoryInfo.cs
mcs/class/Mono.Posix/Mono.Unix/UnixDriveInfo.cs [new file with mode: 0644]
mcs/class/Mono.Posix/Mono.Unix/UnixFile.cs
mcs/class/Mono.Posix/Mono.Unix/UnixFileInfo.cs
mcs/class/Mono.Posix/Mono.Unix/UnixFileSystemInfo.cs
mcs/class/Mono.Posix/Mono.Unix/UnixPath.cs [new file with mode: 0644]
mcs/class/Mono.Posix/Mono.Unix/UnixSymbolicLinkInfo.cs