Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <004301c3242b$aef60be0$200aa8c0@thorin> From: "Carlo Florendo" To: References: <000901c32425$d24fc960$200aa8c0 AT thorin> <20030527081214 DOT GD19957 AT cygbert DOT vinschen DOT de> Subject: Re: is getpass function in cygwin obsolete? Date: Tue, 27 May 2003 16:40:53 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 ----- Original Message ----- From: "Corinna Vinschen" To: Sent: Tuesday, May 27, 2003 4:12 PM Subject: Re: is getpass function in cygwin obsolete? > On Tue, May 27, 2003 at 03:58:33PM +0800, Carlo Florendo wrote: > > [getpass] > > > > "This function is obsolete. Do not use it." > > > > http://www.opengroup.org/onlinepubs/007908799/xsh/unistd.h.html > > and it labels the function as "legacy". > > > > I've googled the definition of legacy functions using the keywords: > > 1. "legacy functions" > > 2. C, "legacy code" > > [...] > > but I could only guess what legacy code means. (obsolete?, deprecated?, not supported anymore?) > > "Legacy" are functions which are defined in some early OSes (say, > System 7) and which have turned out to be not exactly useful or > their definition is dumb or something. They are obsolete, deprecated > and not really supported anymore ;-) They won't live any longer > than absolutely necessary and we will stop supporting it really soon > now, probably in 2045 or so. Thanks a lot for that Corinna :) I've read further on the opengroup's documentation on getpass and under the Application Usage section, it says "This function was marked LEGACY since it provides no functionality which a user could not easily implement, and its name is misleading". So does my alternative mean that I'd implement my own routine to read passwords with nothing at all being echoed, or is there a newer function that has overridden getpass and is provided under cygwin? Thanks a lot! Best Regards, Carlo -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/