semShow.c
上传用户:nvosite88
上传日期:2007-01-17
资源大小:4983k
文件大小:9k
- /* semShow.c - semaphore show routines */
- /* Copyright 1990-2001 Wind River Systems, Inc. */
- #include "copyright_wrs.h"
- /*
- modification history
- --------------------
- 01q,31oct01,aeg added display of VxWorks events information.
- 01p,26sep01,jws move vxMP show & info rtn ptrs to funcBind.c (SPR36055)
- 01o,18dec00,pes Correct compiler warnings
- 01n,17mar99,jdi doc: updated w/ info about proj facility (SPR 25727).
- 01m,24jun96,sbs made windview instrumentation conditionally compiled
- 01l,10oct95,jdi doc: added .tG Shell to SEE ALSO for semShow().
- 01l,16jan94,c_s semShowInit () now initializes instrumented class.
- 01k,03feb93,jdi changed INCLUDE_SHOW_RTNS to ...ROUTINES.
- 01j,02feb93,jdi documentation tweaks.
- 01i,23nov92,jdi documentation cleanup.
- 01h,13nov92,dnw added include of smObjLib.h
- 01g,30jul92,smb changed format for printf to avoid zero padding.
- 01f,29jul92,pme added NULL function pointer check for smObj routines.
- 01e,28jul92,jcf changed semShowInit to call semLibInit.
- 01d,19jul92,pme added shared memory semaphores support.
- 01c,12jul92,jcf changed level compare to >=
- 01b,07jul92,ajm changed semTypeMsg to be static
- 01a,15jun92,jcf extracted from v1l of semLib.c.
- */
- /*
- DESCRIPTION
- This library provides routines to show semaphore statistics, such as
- semaphore type, semaphore queuing method, tasks pended, etc.
- The routine semShowInit() links the semaphore show facility into the VxWorks
- system. It is called automatically when the semaphore show facility is
- configured into VxWorks using either of the following methods:
- .iP
- If you use the configuration header files, define
- INCLUDE_SHOW_ROUTINES in config.h.
- .iP
- If you use the Tornado project facility, select INCLUDE_SEM_SHOW.
- .LP
- INCLUDE FILES: semLib.h
- SEE ALSO: semLib,
- .pG "Basic OS"
- */
- /* LINTLIBRARY */
- #include "vxWorks.h"
- #include "intLib.h"
- #include "qLib.h"
- #include "errno.h"
- #include "stdlib.h"
- #include "stdarg.h"
- #include "string.h"
- #include "stdio.h"
- #include "smObjLib.h"
- #include "private/eventLibP.h"
- #include "private/semLibP.h"
- #include "private/kernelLibP.h"
- #include "private/taskLibP.h"
- #include "private/semSmLibP.h"
- /* globals */
- /* locals */
- LOCAL char * semTypeMsg [MAX_SEM_TYPE] =
- {
- "BINARY", "MUTEX", "COUNTING", "OLD", "