delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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: | <42CD21AD.6080002@familiehaase.de> |
Date: | Thu, 07 Jul 2005 14:35:57 +0200 |
From: | "Gerrit P. Haase" <gerrit AT familiehaase DOT de> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
CC: | Eric Blake <ebb9 AT byu DOT net>, George Morgan <george_morgan AT spamcop DOT net> |
Subject: | Re: No getline() in stdio.h? |
References: | <20050707041233 DOT 7k8444kw00cc8w48 AT webmail DOT spamcop DOT net> <42CD1950 DOT 10101 AT byu DOT net> <42CD1F8F DOT 9070000 AT familiehaase DOT de> |
In-Reply-To: | <42CD1F8F.9070000@familiehaase.de> |
X-IsSubscribed: | yes |
Gerrit P. Haase wrote: > Eric Blake wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> According to George Morgan on 7/7/2005 2:12 AM: >> >>> Ok, I was reading about the virtues of using getline and then looked >>> in cygwin's >>> stdio.h and it is not there! Did it get removed? Yeah, I found the >>> __getline >>> but when I changed my C code to use that the linker does not find >>> it. This is >>> with cygwin DLL version 1.5.18 and gcc 3.4.4. Maybe I need to use an >>> older >>> compiler? >> >> >> >> An alternative is to investigate using the gnulib module in your code. >> gnulib is currently designed for CVS use only (so there is no cygwin >> distribution), but projects like coreutils use gnulib getline() and other >> modules to make up for non-standard functions that are missing in various >> platform libraries. http://www.gnu.org/software/gnulib/ > > > > Same approach as libgen? Are dirname() and basename() included? > > I would appreciate if at least the included functions could be listed in > the manual. However, it isn't. Do you have the archive handy and if > so, would you please dump a list of included symbols > (nm libgnulib.a | grep ' T ')? Nevermind, I found it. It seems dirname() and basename() are there too: http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/gnulib/gnulib/MODULES.html?rev=HEAD&content-type=text/html Wouldn't it be nice to have it as a Cygwin package? Gerrit -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |