public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Gerrit P. Haase" <gerrit@familiehaase.de>
To: cygwin@cygwin.com
Cc: Eric Blake <ebb9@byu.net>, George Morgan <george_morgan@spamcop.net>
Subject: Re: No getline() in stdio.h?
Date: Thu, 07 Jul 2005 12:36:00 -0000	[thread overview]
Message-ID: <42CD21AD.6080002@familiehaase.de> (raw)
In-Reply-To: <42CD1F8F.9070000@familiehaase.de>

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/

  parent reply	other threads:[~2005-07-07 12:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-07  8:12 George Morgan
2005-07-07  8:39 ` Corinna Vinschen
2005-07-07 12:00 ` Eric Blake
2005-07-07 12:28   ` Gerrit P. Haase
2005-07-07 12:35     ` Corinna Vinschen
2005-07-07 16:40       ` Gerrit P. Haase
2005-07-07 16:57         ` Christopher Faylor
2005-07-07 12:36     ` Gerrit P. Haase [this message]
2005-07-07 13:12       ` Eric Blake
2005-07-07 13:01     ` Eric Blake

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42CD21AD.6080002@familiehaase.de \
    --to=gerrit@familiehaase.de \
    --cc=cygwin@cygwin.com \
    --cc=ebb9@byu.net \
    --cc=george_morgan@spamcop.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).