[Mono-dev] Mono.Posix question

Jonathan Pryor jonmpryor at gmail.com
Tue Aug 7 19:45:21 UTC 2012

On Jun 22, 2012, at 9:35 AM, Rob Wilkens <robwilkens at gmail.com> wrote:
> Do you know where i can find documentation for Mono.Posix?

Documentation is in git:


Accessible from the web:


Documentation is in mdoc(5) format:


> I was looking at the following problem report: https://bugzilla.xamarin.com/show_bug.cgi?id=1970
> And I saw that 
> Mono.Unix.UnixDirectoryInfo("1").Create(FileAccessPermissions.AllPermissions);
> Was honoring umask, because that's what the system call for mkdir does.  (That is: Create() just calls mkdir with the permissions.)  Should it be honoring umask when it creates the directory, or should we, after the call to mkdir, separately set the permissions as part of the Create call (the equivalent of a call to chmod).

The documentation has a "See Also" reference to Syscall.mkdir():


So yes, it should honor umask. I've clarified the documentation to spell this out:


 - Jon

More information about the Mono-devel-list mailing list