Mono Class Library: Mono.Unix.Native.Syscall Overview | Members

Mono.Unix.Native.Syscall.opendir Method

Opens a directory at 'path'.

public static IntPtr opendir (string name)

Parameters

name
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

C# Example

	
class OpendirDemo {
  public static void Main(string[] argv)
	{
		IntPtr dir = Syscall.opendir("/tmp");
		Dirent nextentry;
		
		while ((nextentry = Syscall.readdir (dir)) != null) {
			Console.WriteLine(nextentry.d_name);
		}

		Syscall.closedir (dir);
	}
}

Requirements

Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0