private static int sys_getpwent (out _Passwd pwbuf)
		{
			throw new System.NotImplementedException();
		}
		private static int sys_fgetpwent (IntPtr stream, out _Passwd pwbuf)
		{
			throw new System.NotImplementedException();
		}
		private static int sys_getpwnam_r (
		string name, out _Passwd pwbuf, out IntPtr pwbufp)
		{
			throw new System.NotImplementedException();
		}
		private static int sys_getpwuid_r (uint uid, out _Passwd pwbuf, out IntPtr pwbufp)
		{
			throw new System.NotImplementedException();
		}
		private static int sys_getpwnam (string name, out _Passwd passwd)
		{
			throw new System.NotImplementedException();
		}
		private static int sys_getpwuid (uint uid, out _Passwd passwd)
		{
			throw new System.NotImplementedException();
		}
Esempio n. 7
0
		private static extern int sys_getpwent (out _Passwd pwbuf);
Esempio n. 8
0
		private static extern int sys_fgetpwent (IntPtr stream, out _Passwd pwbuf);
Esempio n. 9
0
		private static extern int sys_getpwuid_r (uint uid, out _Passwd pwbuf, out IntPtr pwbufp);
Esempio n. 10
0
		private static extern int sys_getpwnam_r (string name, out _Passwd pwbuf, out IntPtr pwbufp);
Esempio n. 11
0
		private static extern int sys_getpwuid (uint uid, out _Passwd passwd);
Esempio n. 12
0
		private static extern int sys_getpwnam (string name, out _Passwd passwd);
Esempio n. 13
0
		private static void CopyPasswd (Passwd to, ref _Passwd from)
		{
			try {
				to.pw_name   = UnixMarshal.PtrToString (from.pw_name);
				to.pw_passwd = UnixMarshal.PtrToString (from.pw_passwd);
				to.pw_uid    = from.pw_uid;
				to.pw_gid    = from.pw_gid;
				to.pw_gecos  = UnixMarshal.PtrToString (from.pw_gecos);
				to.pw_dir    = UnixMarshal.PtrToString (from.pw_dir);
				to.pw_shell  = UnixMarshal.PtrToString (from.pw_shell);
			}
			finally {
				Stdlib.free (from._pw_buf_);
				from._pw_buf_ = IntPtr.Zero;
			}
		}