delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/12/25/21:37:21

From: cgf AT cygnus DOT com (Christopher Faylor)
Subject: Re: B20.1: Missing protos for `getpass()' and `NetUserChangePassword()'
25 Dec 1998 21:37:21 -0800 :
Message-ID: <19981226002523.A13572.cygnus.cygwin32.developers@cygnus.com>
References: <36840853 DOT 9BBD8300 AT cityweb DOT de>
Mime-Version: 1.0
To: Corinna Vinschen <corinna DOT vinschen AT cityweb DOT de>,
cygwin32-developers AT cygnus DOT com

An informal poll of two systems places the getpass prototype in
unistd.h.

I have put a prototype there and applied the other patch to
CommFunctions.h.

cgf

On Fri, Dec 25, 1998 at 10:49:07PM +0100, Corinna Vinschen wrote:
>The prototypes for `getpass()' and `NetUserChangePassword()'
>are missing, although they are present in libcygwin.a and
>libnetapi32.a.
>
>ChangeLog:
>==========
>Fri Dec 25 20:00:00  Corinna Vinschen <corinna DOT vinschen AT cityweb DOT de>
>
>	* libc/include/pwd.h: Added proto for `getpass()'.
>
>	* include/Windows32/CommonFunction.h: Added proto for
>	NetUserChangePassword().
>
>------- snip --------
>Index: pwd.h
>===================================================================
>RCS file: /src/cvsroot/newlib/libc/include/pwd.h,v
>retrieving revision 1.1.1.1
>diff -u -p -r1.1.1.1 pwd.h
>--- pwd.h       Fri Dec 25 20:40:28 1998     1.1.1.1
>+++ pwd.h       Fri Dec 25 20:41:06 1998
>@@ -66,6 +66,8 @@ void           setpwent (void);
> void            endpwent (void);
> #endif
>
>+char            *getpass (const char *);
>+
> #ifdef __cplusplus
> }
> #endif
>Index: CommonFunctions.h
>===================================================================
>RCS file: /src/cvsroot/winsup-981223/include/Windows32/CommonFunctions.h,v
>retrieving revision 1.1.1.1
>diff -u -p -r1.1.1.1 CommonFunctions.h
>--- CommonFunctions.h   1998/12/24 00:24:53     1.1.1.1
>+++ CommonFunctions.h   1998/12/25 19:38:56
>@@ -6755,6 +6755,7 @@ DWORD STDCALL NetUserEnum (LPWSTR, DWORD
>                                LPDWORD, LPDWORD);
> DWORD STDCALL NetApiBufferFree (LPVOID);
> DWORD STDCALL NetUserGetInfo (LPWSTR, LPWSTR, DWORD, LPBYTE);
>+DWORD STDCALL NetUserChangePassword (LPWSTR, LPWSTR, LPWSTR, LPWSTR);
> DWORD STDCALL NetGetDCName (LPWSTR, LPWSTR, LPBYTE*);
> DWORD STDCALL NetGroupEnum (LPWSTR, DWORD, LPBYTE*, DWORD, LPDWORD,
>                                LPDWORD, LPDWORD);

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019