delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/29/19:27:05

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
Date: Tue, 30 Aug 2005 01:26:52 +0200 (MET DST)
From: Angelo Graziosi <Angelo DOT Graziosi AT roma1 DOT infn DOT it>
To: cygwin AT cygwin DOT com
Subject: Regression with snap-20050828 ?
Message-ID: <Pine.OSF.4.21.0508300116370.4241-100000@ax0rm1.roma1.infn.it>
MIME-Version: 1.0
X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.0.3.2, Antispam-Data: 2005.8.29.29
X-PerlMx-Spam: Gauge=IIIIIII, Probability=7%, Report='__C230066_P5 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __STOCK_CRUFT 0'

Some weeks ago, someone sends the following test programs that did not
worked with the snap of that time:

------------------------------------------------------ 
/* test-strerror.c */

#include <stdio.h>
#include <string.h>
int main(int argc, char *argv[])
{
  char *s;
  s = strerror(-8);
  printf("strerror returned pointer %p\n", s);
  printf("string is \"%s\"\n", s);
  return 0;
}

------------------------------------------------------
 
 A new snap (I do not remember which) was released with which the result
was:

____________________________________________________

$ ./test-strerror.exe 
strerror returned pointer 0x22fa08
string is "error -8"

____________________________________________________

This was the result until the snap 20050826.


Now with snap 20050828 the result is:

_______________________________________________________

$ ./test-strerror.exe 
strerror returned pointer 0x22fa00
string is "Unknown error 4294967288"

_______________________________________________________

Perhaps, this is not a regression but only a change in cygwin behaviour.



Best regards,

    angelo.


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