Subversion Repositories shark

Compare Revisions

Regard whitespace Rev 927 → Rev 926

/shark/trunk/libc/stdlib/abort.c
20,11 → 20,11
 
/**
------------
CVS : $Id: abort.c,v 1.2 2005-01-08 14:59:45 pj Exp $
CVS : $Id: abort.c,v 1.1.1.1 2002-03-29 14:12:53 pj Exp $
 
File: $File$
Revision: $Revision: 1.2 $
Last update: $Date: 2005-01-08 14:59:45 $
Revision: $Revision: 1.1.1.1 $
Last update: $Date: 2002-03-29 14:12:53 $
------------
 
abort, inspired on OsKit one...
106,6 → 106,6
(void)sigprocmask(SIG_SETMASK, &mask, (sigset_t *)NULL);
 
kill(0,SIGABRT);
exit(0);
sys_end();
}
 
/shark/trunk/libc/stdlib/exit.c
0,0 → 1,72
/*
* Project: S.Ha.R.K.
*
* Coordinators:
* Giorgio Buttazzo <giorgio@sssup.it>
* Paolo Gai <pj@gandalf.sssup.it>
*
* Authors :
* Paolo Gai <pj@gandalf.sssup.it>
* Massimiliano Giorgi <massy@gandalf.sssup.it>
* Luca Abeni <luca@gandalf.sssup.it>
* (see the web pages for full authors list)
*
* ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
*
* http://www.sssup.it
* http://retis.sssup.it
* http://shark.sssup.it
*/
 
/**
------------
CVS : $Id: exit.c,v 1.1.1.1 2002-03-29 14:12:53 pj Exp $
 
File: $File$
Revision: $Revision: 1.1.1.1 $
Last update: $Date: 2002-03-29 14:12:53 $
------------
 
**/
 
/*
* Copyright (C) 2000 Paolo Gai
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
 
#include <kernel/kern.h>
 
 
// the code of this function is equal to sys_end!!!! (kernel/kern.c)
void _exit(int status)
{
SYS_FLAGS f;
 
/* the sys_end change the context to the global context.
when the first time is called, it simply kills all the users tasks
and waits the system tasks to end... */
 
f = kern_fsave();
if (runlevel != RUNLEVEL_INIT && system_counter) {
kern_frestore(f);
return;
}
 
internal_sys_end(status);
kern_frestore(f);
}
 
/shark/trunk/libc/libio/old/abort.c
20,11 → 20,11
 
/**
------------
CVS : $Id: abort.c,v 1.2 2005-01-08 14:59:45 pj Exp $
CVS : $Id: abort.c,v 1.1.1.1 2002-03-29 14:12:53 pj Exp $
 
File: $File$
Revision: $Revision: 1.2 $
Last update: $Date: 2005-01-08 14:59:45 $
Revision: $Revision: 1.1.1.1 $
Last update: $Date: 2002-03-29 14:12:53 $
------------
**/
 
55,6 → 55,6
void abort(void)
{
cprintf("ABORT CALLED\n");
exit(999);
sys_abort(999);
}