gonzui


Format: Advanced Search

tkernel_2/include/sys/libs.hbare sourcepermlink (0.02 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    T-Kernel 2.0 Software Package
    4:  *
    5:  *    Copyright 2011 by Ken Sakamura.
    6:  *    This software is distributed under the latest version of T-License 2.x.
    7:  *----------------------------------------------------------------------
    8:  *
    9:  *    Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17.
   10:  *    Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
   11:  *
   12:  *----------------------------------------------------------------------
   13:  */
   14: 
   15: /*
   16:  *      @(#)libs.h (sys)
   17:  *
   18:  *      Internal library functions
   19:  */
   20: 
   21: #ifndef __SYS_LIBS_H__
   22: #define __SYS_LIBS_H__
   23: 
   24: #include <basic.h>
   25: 
   26: #ifdef __cplusplus
   27: extern "C" {
   28: #endif
   29: 
   30: /*
   31:  * Internal library error during process startup sequence
   32:  */
   33: IMPORT ER _StartupError;
   34: 
   35: /*
   36:  * TRUE for multitasking library
   37:  */
   38: IMPORT BOOL _isUseMT( void );
   39: 
   40: /*
   41:  * Common exclusion control lock in library
   42:  */
   43: IMPORT ER  _lib_lock( W lockno, BOOL ignore_mintr );
   44: IMPORT ER  _lib_locktmo( W lockno, W tmo, BOOL ignore_mintr );
   45: IMPORT void _lib_unlock( W lockno );
   46: 
   47: /* lockno (0 - 15) */
   48: #define _LL_MEMALLOC    0  /* Allocate memory */
   49: #define _LL_DLL         1      /* Dynamic loader */
   50: #define _LL_GCC         2      /* gcc run-time support */
   51: #define _LL_TF          3       /* TRON Code Framework (libtf) */
   52: #define _LL_LOOKUP      4    /* character search library (liblookup) */
   53: 
   54: #ifdef __cplusplus
   55: }
   56: #endif
   57: #endif /* __SYS_LIBS_H__ */