delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/31/15:36:29

From: jmichel AT schur DOT institut DOT math DOT jussieu DOT fr (Jean Michel)
Newsgroups: comp.os.msdos.djgpp
Subject: Bug in djgpp libc
Date: 31 Dec 2000 21:13:21 +0100
Organization: A poorly-installed InterNetNews site
Lines: 25
Message-ID: <92o411$em$1@schur.institut.math.jussieu.fr>
NNTP-Posting-Host: schur.institut.math.jussieu.fr
Mime-Version: 1.0
X-Trace: vishnu.jussieu.fr 978293215 2690 134.157.13.71 (31 Dec 2000 20:06:55 GMT)
X-Complaints-To: Newsmaster AT jussieu DOT fr.
NNTP-Posting-Date: 31 Dec 2000 20:06:55 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello, there is a bug in the djgpp libc library.

#include <stdio.h>
#include <errno.h>
main()
{ printf("\032\n");
  fprintf(stderr, "%s\n", strerror(errno));
}

produces

No space left on drive (ENOSPC)

I checked that

  write(fileno(stdout),"\032\n",2);

Has the same effect.

[For people who may wonder why one would want to do the above, this is
the end result of trying to find the smallest example which shows a bug
occuring in the djgpp port of the ruby interpreter]

Best regards,
  Jean MICHEL

- Raw text -


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