Mercurial > flash_v2
comparison packages/language/c/libc/current/src/stdlib/_exit.cxx @ 2:443894e2e912 ecos-v1_2_1-release
Block commit of eCos version 1.2.1
| author | jlarmour |
|---|---|
| date | Tue, 11 May 1999 12:24:34 +0000 |
| parents | 3111d98ba7b3 |
| children | c38311975d4f |
comparison
equal
deleted
inserted
replaced
| 1:72f549f0d891 | 2:443894e2e912 |
|---|---|
| 20 // | 20 // |
| 21 // The Original Code is eCos - Embedded Cygnus Operating System, released | 21 // The Original Code is eCos - Embedded Cygnus Operating System, released |
| 22 // September 30, 1998. | 22 // September 30, 1998. |
| 23 // | 23 // |
| 24 // The Initial Developer of the Original Code is Cygnus. Portions created | 24 // The Initial Developer of the Original Code is Cygnus. Portions created |
| 25 // by Cygnus are Copyright (C) 1998 Cygnus Solutions. All Rights Reserved. | 25 // by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved. |
| 26 // ------------------------------------------- | 26 // ------------------------------------------- |
| 27 // | 27 // |
| 28 //####COPYRIGHTEND#### | 28 //####COPYRIGHTEND#### |
| 29 //======================================================================== | 29 //======================================================================== |
| 30 //#####DESCRIPTIONBEGIN#### | 30 //#####DESCRIPTIONBEGIN#### |
| 31 // | 31 // |
| 32 // Author(s): jlarmour | 32 // Author(s): jlarmour |
| 33 // Contributors: jlarmour@cygnus.co.uk | 33 // Contributors: jlarmour |
| 34 // Date: 1998-02-13 | 34 // Date: 1999-01-21 |
| 35 // Purpose: | 35 // Purpose: Provides POSIX 1003.1 _exit() function |
| 36 // Description: | 36 // Description: |
| 37 // Usage: | 37 // Usage: |
| 38 // | 38 // |
| 39 //####DESCRIPTIONEND#### | 39 //####DESCRIPTIONEND#### |
| 40 // | 40 // |
| 41 //======================================================================== | 41 //======================================================================== |
| 42 | 42 |
| 43 // CONFIGURATION | 43 // CONFIGURATION |
| 44 | 44 |
| 45 #include <pkgconf/libc.h> // Configuration header | 45 #include <pkgconf/libc.h> // C library configuration header |
| 46 | |
| 47 // Include the C library? | |
| 48 #ifdef CYGPKG_LIBC | |
| 49 | 46 |
| 50 // INCLUDES | 47 // INCLUDES |
| 51 | 48 |
| 52 #include <cyg/infra/cyg_type.h> // Common type definitions and support | 49 #include <cyg/infra/cyg_type.h> // Common type definitions and support |
| 53 #include <cyg/infra/cyg_trac.h> // Common tracing support | 50 #include <cyg/infra/cyg_trac.h> // Common tracing support |
| 54 #include <cyg/infra/cyg_ass.h> // Common assertion support | 51 #include <cyg/infra/cyg_ass.h> // Common assertion support |
| 55 #include <stdlib.h> // Header for all stdlib functions | 52 #include <stdlib.h> // Header for all stdlib functions |
| 56 // (like this one) | 53 // (like this one) |
| 57 #include "clibincl/stdlibsupp.hxx" // Support for stdlib functions | 54 #include "clibincl/stdlibsupp.hxx" // Support for stdlib functions |
| 58 #ifdef CYGPKG_KERNEL | 55 #ifdef CYGPKG_KERNEL |
| 56 # include <pkgconf/kernel.h> // kernel configuration | |
| 59 # include <cyg/kernel/thread.hxx> // eCos kernel for thread termination | 57 # include <cyg/kernel/thread.hxx> // eCos kernel for thread termination |
| 60 # include <cyg/kernel/thread.inl> // and | 58 # include <cyg/kernel/thread.inl> // and |
| 61 # include <cyg/kernel/sched.hxx> // for stopping the scheduler | 59 # include <cyg/kernel/sched.hxx> // for stopping the scheduler |
| 62 # include <cyg/kernel/sched.inl> | 60 # include <cyg/kernel/sched.inl> |
| 63 #endif | 61 #endif |
| 64 | 62 |
| 65 | 63 |
| 66 // SYMBOLS | 64 // SYMBOLS |
| 67 | 65 |
| 68 externC void | 66 externC void |
| 69 _exit( int ) CYGPRI_LIBC_WEAK_ALIAS("__libc__exit") CYGPRI_LIBC_NORETURN; | 67 _exit( int ) CYGBLD_ATTRIB_WEAK_ALIAS(__libc__exit) CYGBLD_ATTRIB_NORET; |
| 70 | 68 |
| 71 // FUNCTIONS | 69 // FUNCTIONS |
| 72 | 70 |
| 73 externC void | 71 externC void |
| 74 __libc__exit( int status ) | 72 __libc__exit( int status ) |
| 100 | 98 |
| 101 CYG_REPORT_RETURN(); | 99 CYG_REPORT_RETURN(); |
| 102 } // _exit() | 100 } // _exit() |
| 103 | 101 |
| 104 | 102 |
| 105 #endif // ifdef CYGPKG_LIBC | |
| 106 | |
| 107 // EOF _exit.cxx | 103 // EOF _exit.cxx |
