delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/03/15:26:07

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <99B82AA9708ED0119B55006097125A00363ECA@ifk63.mach.uni-karlsruhe.de>
From: Heribert Dahms <heribert_dahms AT icon-gmbh DOT de>
To: "'towo AT computer DOT org'" <towo AT computer DOT org>, cygwin AT sourceware DOT cygnus DOT com
Subject: RE: include incompatibilities
Date: Mon, 3 Jul 2000 21:22:44 +0200
X-Priority: 3
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1457.3)

Hi Thomas,

why bother about setlocale since strerror should give something anyway?
Then I do not tend to produce unknown errors 8-), but to be sure it's
easy
to print errno also as a number! Including errno.h and using errno and
strerror worked for me on every real Unix variant I had to deal with,
also under NT with Cygwin (of course), but Interix and UWIN as well.

Bye, Heribert (heribert_dahms AT icon-gmbh DOT de)

> -----Original Message-----
> From:	towo AT computer DOT org [SMTP:towo AT computer DOT org]
> Sent:	Monday, July 03, 2000 15:37
> To:	cygwin AT sourceware DOT cygnus DOT com
> Subject:	RE: include incompatibilities
> 
> [Heribert]  [snip]
> 
> Also, there are some reasons I did not use strerror().
> One is, strerror may depend on setlocale but setlocale is not
> available 
> on older systems. Another is incompatibilities with respect to
> undefined 
> values:
> Linux:
> > SYNOPSIS
> >        char *strerror(int errnum);
> > RETURN VALUE
> >        The  strerror()  function returns ... an unknown error
> message 
> >        if the error code is unknown.
> 
> Sun:
> > SYNOPSIS
> >      char *strerror(int errnum);
> > ERRORS
> >      strerror returns NULL if errnum is out-of-range.
> 
> So there is no real standard here either...
> 
> [Heribert]  [snip]
> 
> Thomas Wolff
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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