www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/07/28/09:59:00

From: kunst AT prl DOT philips DOT nl
Subject: Abort() patch
To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP users list)
Date: Wed, 28 Jul 1993 15:07:47 +0100 (METDST)

Hello DJ,

Forget about the flag inside the 'abort()' routine.
Here is the patch that should do the job...

Kind regards, Pieter Kunst.

 .^^^^^^^^           _____________________________________
 |      |          / Pieter Kunst (P.J.)                   \
 |  _  _|        /   Philips Research Laboratories,          \
.--(o)(o)      /     Building WY3, Prof. Holstlaan 4,         \
|@      _)   /       5656 AA  Eindhoven, The Netherlands.      |
  | ,___|   /        e-mail: kunst AT prl DOT philips DOT nl             /
  |   /     \_______________________________________________/
  /____\

---------------------------------------------------------------------------
c:\djgpp\libsrc\c\lib\abort.c
---------------------------------------------------------------------------
/*
** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
**
** This file is distributed under the terms listed in the document
** "copying.dj", available from DJ Delorie at the address above.
** A copy of "copying.dj" should accompany this file; if not, a copy
** should be available from where this file was obtained.  This file
** may not be distributed without a verbatim copy of "copying.dj".
**
** This file is distributed WITHOUT ANY WARRANTY; without even the implied
** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/

static char msg[] = "Abort!\n";

void
abort()
{
  write(2,msg,sizeof(msg));
  _cleanup();
  _exit(1);
}
---------------------------------------------------------------------------

- Raw text -


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