delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/28/07:37:48

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
Date: Mon, 28 Jul 2003 12:36:12 +0100 (BST)
From: Elfyn McBratney <elfyn AT emcb DOT co DOT uk>
X-X-Sender: elfyn AT localhost DOT localdomain
Reply-To: cygwin AT cygwin DOT com
To: Chris <caj AT cs DOT york DOT ac DOT uk>
cc: cygwin AT cygwin DOT com
Subject: Re: Questions about converting apps to cygwin
In-Reply-To: <009301c354f4$041f0100$39da86d9@pavilion>
Message-ID: <Pine.LNX.4.44.0307281231080.17302-100000@localhost.localdomain>
Mail-Followup-To: cygwin AT cygwin DOT com
MIME-Version: 1.0

On Mon, 28 Jul 2003, Chris wrote:

> > Chris wrote:
> > > Hello!
> > >
> > > For experience (and because I want to use it) I am in the process of
> > > converting the "bsdiff" binary diffing application to windows from *BSD,
> > and
> > > thought I would come via cygwin, and then decide if I should move to
> fully
> > > windows.
> > >
> > > A couple of questions about converting apps..
> > >
> > > 1) Cygwin seems to lack err.h (the "standard" err.h, not the one in
> > openssl)
> > > which I've seen in quite a lot of applications. It is fairly easy to
> stub
> > > around but still annoying it's not there. Is there some reason this
> isn't
> > in
> > > the stdlib? could it be copied there from another GPL/BSDed standary C
> > > library? Could I even write one? :)
> >
> > Don't assume we know what this is. Explain, or point to a reference.
> > By the way, Cygwin's C library is newlib, so if this is a C library
> change,
> > you would have to submit it to the newlib project, and it would
> > automatically appear in Cygwin once it was accepted into newlib.
> >
> 
> Sorry. "err.h" is a standard header included in the *BSDs and libc (at
> least) which implements a number of simple functions for if your program
> crashes. The functions are all called err* or warn*.
> 
> If you have a libc (or linux installation), info err.h will provide more
> info. The source files are at:
> src/lib/libc/gen/{err.c,errx.c,warn.c,warnx.c} (if you have put libc into
> src/lib)
> 
> Unfortunatly I'm away from my normal machine at the moment so can't provide
> an exact listing on the file. However as it is possibly more newlib related,
> I'll go and look at their mailing list / archives instead.

Right, these functions are from libgen, who's functionality is not yet 
available in Cygwin. I hope to have everything finished RSN. ATM I've only done 
basename() and dirname(), but I don't mind adding these if someone can give me 
their prototypes and what exactly they are supposed to do (e.g. print error 
message and exit, not show be the source code).

Elfyn

-- 
Elfyn McBratney, EMCB  |  http://www.nongnu.org/wwwauth/
http://www.emcb.co.uk  |  http://www.emcb.co.uk/webauth/
elfyn AT emcb DOT co DOT uk       |  wwwauth-users AT nongnu DOT org


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