private static extern int sys_getpwnam (string name, out _Passwd passwd);
private static extern int sys_getpwuid (uint uid, out _Passwd passwd);
private static int sys_getpwent (out _Passwd pwbuf) { throw new System.NotImplementedException(); }
private static int sys_getpwnam (string name, out _Passwd passwd) { 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(uint uid, out _Passwd passwd) { throw new System.NotImplementedException(); }
private static extern int sys_getpwent (out _Passwd pwbuf);
private static extern int sys_fgetpwent (IntPtr stream, out _Passwd pwbuf);
private static int sys_getpwnam(string name, out _Passwd passwd) { throw new System.NotImplementedException(); }
private static extern int sys_getpwuid_r (uint uid, out _Passwd pwbuf, out IntPtr pwbufp);
private static extern int sys_getpwnam_r ( [MarshalAs (UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(FileNameMarshaler))] string name, out _Passwd pwbuf, out IntPtr pwbufp);
private static extern int sys_getpwnam_r (string name, out _Passwd pwbuf, out IntPtr pwbufp);
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_getpwent(out _Passwd pwbuf) { throw new System.NotImplementedException(); }
private static int sys_getpwuid (uint uid, out _Passwd passwd) { throw new System.NotImplementedException(); }
private static int sys_fgetpwent(IntPtr stream, out _Passwd pwbuf) { throw new System.NotImplementedException(); }
private static int sys_getpwuid_r (uint uid, out _Passwd pwbuf, out IntPtr pwbufp) { throw new System.NotImplementedException(); }
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; } }
private static int sys_fgetpwent (IntPtr stream, out _Passwd pwbuf) { throw new System.NotImplementedException(); }