00001 /* 00002 * Copyright 2004 PathScale, Inc. All Rights Reserved. 00003 */ 00004 00005 /* 00006 00007 Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. 00008 00009 This program is free software; you can redistribute it and/or modify it 00010 under the terms of version 2.1 of the GNU Lesser General Public License 00011 as published by the Free Software Foundation. 00012 00013 This program is distributed in the hope that it would be useful, but 00014 WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 00017 Further, this software is distributed without any warranty that it is 00018 free of the rightful claim of any third person regarding infringement 00019 or the like. Any license provided herein, whether implied or 00020 otherwise, applies only to this software file. Patent licenses, if 00021 any, provided herein do not apply to combinations of this program with 00022 other software, or any other product whatsoever. 00023 00024 You should have received a copy of the GNU Lesser General Public 00025 License along with this program; if not, write the Free Software 00026 Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, 00027 USA. 00028 00029 Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, 00030 Mountain View, CA 94043, or: 00031 00032 http://www.sgi.com 00033 00034 For further information regarding this notice, see: 00035 00036 http://oss.sgi.com/projects/GenInfo/NoticeExplan 00037 00038 */ 00039 00040 #include <unistd.h> 00041 00042 #pragma ident "@(#) libf/pxf/pxffastexit.c 92.1 06/29/99 11:36:06" 00043 00044 00045 /* 00046 * PXFFASTEXIT -- Terminate a process 00047 * (section 3.2.2 of Posix 1003.9-1992) 00048 * 00049 * Synopsis: 00050 * 00051 * SUBROUTINE PXFFASTEXIT(istatus) 00052 * INTEGER istatus 00053 * 00054 * Where: 00055 * 00056 * istatus - default integer input variable containing the 00057 * status to be returned to the parent process of 00058 * the process. 00059 * 00060 * PXFFASTEXIT never returns. 00061 * 00062 * DESCRIPTION: 00063 * 00064 * The subroutine procedure PXFFASTEXIT uses _exit() to 00065 * terminate a process. 00066 * 00067 */ 00068 00069 #include <fortran.h> 00070 #include <stdlib.h> 00071 00072 #ifdef _UNICOS 00073 void 00074 PXFFASTEXIT( 00075 #else /* _UNICOS */ 00076 void 00077 _PXFFASTEXIT( 00078 #endif /* _UNICOS */ 00079 _f_int *istatus 00080 ) 00081 { 00082 _exit(*istatus); 00083 } 00084 00085 #ifndef _UNICOS 00086 void 00087 pxffastexit_( 00088 _f_int *istatus 00089 ) 00090 { 00091 _PXFFASTEXIT(istatus); 00092 } 00093 #endif /* not _UNICOS */
1.5.6