delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/27/04:03:22

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: <000901c32425$d24fc960$200aa8c0@thorin>
From: "Carlo Florendo" <carlo AT astra DOT ph>
To: <cygwin AT cygwin DOT com>
Subject: is getpass function in cygwin obsolete?
Date: Tue, 27 May 2003 15:58:33 +0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700

Hello,

I've successfully compiled an application that uses the getpass function from /usr/include/sys/unistd.h.  I've  successfully
compiled the same application under redhat linux 8.0 too.  There is no problem whatsoever but I was just bothered by the
documentation on linux when I did a "man getpass".  The first line of the description says:

"This function is obsolete.  Do not use it."

The package where unistd.h belongs on my linux machine is glibc-devel-2.2.93-5 (if this is indeed relevant).

I did "man getpass" on cygwin but didn't get any results.  I've searched the web for the standard specification of unistd.h
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 haven't seen the definition of what legacy code is or what legacy functions are.

I've searched the mailing list archives and have seen people comment that this or that code is legacy code

http://www.cygwin.com/ml/cygwin-developers/2003-01/msg00127.html
http://www.cygwin.com/ml/cygwin/2002-09/msg00114.html
http://sources.redhat.com/ml/cygwin/2002-03/msg01463.html

but I could only guess what legacy code means.   (obsolete?, deprecated?, not supported anymore?)

So my questions are:

1)  Is getpass really obsolete?  If it is indeed, what is the alternative  function?
2)  What is legacy code?

Sorry for bothering this mailing list for the OT but I don't know where else to ask.    I'd be very glad for some pointers on where
to read .

Thanks a lot!  :)

Best Regards,

Carlo















---------
Carlo Florendo
Astra (Philippines), Inc.
Email: carlo AT astra DOT ph
Web: http://www.astra.ph



--
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/

- Raw text -


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