Changeset 11248 for trunk/psLib/src/sys
- Timestamp:
- Jan 23, 2007, 12:47:23 PM (20 years ago)
- Location:
- trunk/psLib/src/sys
- Files:
-
- 13 edited
-
psAbort.h (modified) (4 diffs)
-
psAssert.h (modified) (2 diffs)
-
psConfigure.h (modified) (4 diffs)
-
psError.h (modified) (5 diffs)
-
psErrorCodes.h.in (modified) (3 diffs)
-
psExit.h (modified) (2 diffs)
-
psLine.h (modified) (3 diffs)
-
psLogMsg.h (modified) (2 diffs)
-
psMemory.h (modified) (22 diffs)
-
psSlurp.h (modified) (2 diffs)
-
psString.h (modified) (3 diffs)
-
psTrace.h (modified) (4 diffs)
-
psType.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psAbort.h
r8627 r11248 1 2 1 /** @file psAbort.h 3 2 * … … 8 7 * needing to abort from program execution. 9 8 * 10 * @ingroup ErrorHandling11 *12 9 * @author Eric Van Alst, MHPCC 13 10 * 14 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-08-26 04:34:28 $ 16 * 11 * $Revision: 1.13 $ $Name: not supported by cvs2svn $ 12 * $Date: 2007-01-23 22:47:23 $ 17 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 18 14 */ … … 21 17 #define PS_ABORT_H 22 18 23 // Doxygen grouping tags 24 25 /** @addtogroup ErrorHandling 26 * @{ 27 */ 19 /// @addtogroup SysUtils System Utilities 20 /// @{ 28 21 29 22 /** Reports an abort message to logging facility … … 51 44 #endif // __GNUC__ 52 45 53 /** @} */ // Doxygen - End of SystemGroup Functions 54 46 /// @} 55 47 #endif // #ifndef PS_ABORT_H -
trunk/psLib/src/sys/psAssert.h
r9597 r11248 1 1 #ifndef PS_ASSERT_H 2 2 #define PS_ASSERT_H 3 4 /// @addtogroup SysUtils System Utilities 5 /// @{ 3 6 4 7 #include <assert.h> … … 263 266 264 267 268 /// @} 265 269 #endif -
trunk/psLib/src/sys/psConfigure.h
r10286 r11248 1 1 /** @file psConfigure.h 2 2 * 3 * @brief Contains the declarations for initialization, memory finalization, 4 * and configuration. 3 * @brief Functions to init and cleanup psLib 5 4 * 6 5 * These functions initalize psLib data before the beginning of a run and … … 8 7 * also provided to return the current psLib version. 9 8 * 10 * @ingroup Configure11 9 * 12 10 * @author Ross Harman, MHPCC 13 11 * @author Robert DeSonia, MHPCC 14 12 * 15 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $16 * @date $Date: 200 6-11-29 21:33:09$13 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2007-01-23 22:47:23 $ 17 15 * 18 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 22 20 #define PS_CONFIGURE_H 23 21 24 /** @addtogroup Configure 25 * @{ 26 */ 22 /// @addtogroup SysUtils System Utilities 23 /// @{ 27 24 28 25 /** Get current psLib version … … 70 67 void p_psMemoryCheck(void); 71 68 72 /** @} */ 73 69 /// @} 74 70 #endif // #ifndef PS_CONFIGURE_H -
trunk/psLib/src/sys/psError.h
r8802 r11248 1 1 /** @file psError.h 2 2 * 3 * @brief Contains the declarations for theerror reporting functions3 * @brief error reporting functions 4 4 * 5 5 * Error reporting functions shall be used to create log entries in the … … 8 8 * of error detected. 9 9 * 10 * @ingroup ErrorHandling 11 * 10 * @author RHL, Princeton 12 11 * @author Eric Van Alst, MHPCC 13 12 * 14 * @version $Revision: 1.3 1$ $Name: not supported by cvs2svn $15 * @date $Date: 200 6-09-12 21:39:47$13 * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2007-01-23 22:47:23 $ 16 15 * 17 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 20 19 #ifndef PS_ERROR_H 21 20 #define PS_ERROR_H 21 22 /// @addtogroup SysUtils System Utilities 23 /// @{ 22 24 23 25 #include<stdio.h> … … 28 30 29 31 #define _(string) string 30 31 /** @addtogroup ErrorHandling32 * @{33 */34 32 35 33 /** Error message object */ … … 231 229 ); 232 230 233 /* @} */// End of SysUtils Functions 234 231 /// @} 235 232 #endif -
trunk/psLib/src/sys/psErrorCodes.h.in
r7957 r11248 3 3 * @brief Contains the error codes for the error classes 4 4 * 5 * @ingroup ErrorHandling 6 * 5 * @author RHL, Princeton 7 6 * @author Robert DeSonia, MHPCC 8 7 * 9 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $10 * @date $Date: 200 6-07-25 00:30:31$8 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-01-23 22:47:23 $ 11 10 * 12 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 16 15 #define PS_ERROR_CODES_H 17 16 17 /// @addtogroup SysUtils System Utilities 18 /// @{ 19 18 20 #include "psType.h" 19 20 /** @addtogroup ErrorHandling21 * @{22 */23 21 24 22 /** enumeration of the static error code classes … … 84 82 85 83 /// @} 86 87 84 #endif // #ifndef PS_ERROR_CODES_H -
trunk/psLib/src/sys/psExit.h
r10979 r11248 1 1 #ifndef PS_EXIT_H 2 2 #define PS_EXIT_H 3 4 /// @addtogroup SysUtils System Utilities 5 /// @{ 3 6 4 7 /// Exit status codes … … 15 18 } psExit; 16 19 20 /// @} 17 21 #endif -
trunk/psLib/src/sys/psLine.h
r7950 r11248 1 1 /** @file psLine.h 2 2 * 3 * 4 * @brief Contains the declarations of line utility functions 5 * 6 * @ingroup SysUtils 3 * @brief charater-string fixed-length line functions 7 4 * 8 5 * The psLine functions allow manipulation of fixed-length lines. 9 6 * 7 * @author EAM, IFA 10 8 * @author Paul Price, IFA 11 9 * @author David Robbins, MHPCC 12 10 * 13 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $14 * @date $Date: 200 6-07-21 02:39:33 $11 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2007-01-23 22:47:23 $ 15 13 * 16 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 20 18 #define PS_LINE_H 21 19 20 /// @addtogroup SysUtils System Utilities 21 /// @{ 22 22 23 #include "psString.h" 23 24 /** @addtogroup SysUtils25 * @{26 */27 24 28 25 /** Structure to carry a dynamic string */ … … 77 74 ); 78 75 76 /// @} 79 77 #endif /* PS_LINE_H */ -
trunk/psLib/src/sys/psLogMsg.h
r10429 r11248 1 1 /** @file psLogMsg.h 2 * 2 3 * @brief Procedures for logging messages. 3 * \ingroup LogTrace4 4 * 5 5 * This file will hold the prototypes for defining procedure which set 6 6 * message log levels, messahe log formats, message log destinations, and 7 7 * for generating the messages themselves. 8 * @ingroup LogTrace9 8 * 10 9 * @author Robert Lupton, Princeton University 11 10 * @author GLG, MHPCC 12 11 * 13 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $14 * @date $Date: 200 6-12-04 20:45:46$12 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2007-01-23 22:47:23 $ 15 14 * 16 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 17 16 */ 17 18 18 #ifndef PS_LOG_MSG_H 19 19 #define PS_LOG_MSG_H 20 21 /// @addtogroup SysUtils System Utilities 22 /// @{ 23 20 24 #include <stdarg.h> 21 22 25 #include "psType.h" 23 24 /** @addtogroup LogTrace25 * @{26 */27 26 28 27 /** This procedure sets the destination for future log messages. … … 137 136 138 137 /// @} 139 140 138 #endif // #ifndef PS_LOG_MSG_H -
trunk/psLib/src/sys/psMemory.h
r9538 r11248 1 /** @file psMemory.h 2 * 3 * @brief Contains the definitions for the memory management system 4 * 5 * This is the generic memory management system put inbetween the user's high level code and the OS-level 6 * memory allocation routines. This system adds such features as callback routines for memory error events, 7 * tracing capabilities, and reference counting. 8 * 9 * @author Robert DeSonia, MHPCC 10 * @author Robert Lupton, Princeton University 11 * 12 * @ingroup MemoryManagement 13 * 14 * @version $Revision: 1.61 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-10-13 21:13:48 $ 16 * 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 1 /* @file psMemory.h 2 * 3 * @brief Contains the definitions for the memory management system 4 * 5 * This is the generic memory management system put inbetween the user's high level code and the OS-level 6 * memory allocation routines. This system adds such features as callback routines for memory error events, 7 * tracing capabilities, and reference counting. 8 * 9 * @author Robert Lupton, Princeton University 10 * @author Robert DeSonia, MHPCC 11 * 12 * $Revision: 1.62 $ $Name: not supported by cvs2svn $ 13 * $Date: 2007-01-23 22:47:23 $ 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 18 15 */ 19 16 … … 21 18 #define PS_MEMORY_H 22 19 20 /// @addtogroup SysUtils System Utilities 21 /// @{ 22 23 23 #include <stdio.h> // needed for FILE 24 24 #include <pthread.h> // we need a mutex to make this stuff thread safe. 25 26 25 #include "psType.h" 27 26 28 /** @addtogroup MemoryManagement29 * @{30 */31 32 27 #define P_PS_MEMMAGIC (psPtr)0xdeadbeef // Magic number in psMemBlock header 33 34 /**35 * @addtogroup memCallback Memory Callbacks36 *37 * Routines dealing with the creating and setting of memory management callback functions.38 */39 40 /**41 * @addtogroup memTracing Memory Tracing42 *43 * Routines dealing with memory tracing and corruption checking.44 */45 46 /**47 * @addtogroup memRefCount Reference Count48 *49 * Routines dealing with the reference counting of allocated buffers.50 */51 28 52 29 /// typedef for memory identification numbers. Guaranteed to be some variety of integer. … … 84 61 * 85 62 * @see psMemAllocCallbackSet 86 * @ingroup memCallback87 63 */ 88 64 typedef psMemId(*psMemAllocCallback) ( … … 93 69 * 94 70 * @see psMemFreeCallbackSet 95 * @ingroup memCallback96 71 */ 97 72 typedef psMemId(*psMemFreeCallback) ( … … 104 79 * 105 80 * @see psMemProblemCallbackSet 106 * @ingroup memCallback107 81 */ 108 82 typedef void (*psMemProblemCallback) ( … … 118 92 * 119 93 * @see psMemExhaustedCallbackSet 120 * @ingroup memCallback121 94 */ 122 95 typedef psPtr (*psMemExhaustedCallback) ( … … 303 276 * blocks above id0 that have not been freed. 304 277 * @see psAlloc, psFree, psgetMemId, psMemProblemCallbackSet 305 * @ingroup memTracing306 278 */ 307 279 int psMemCheckLeaks( … … 317 289 * @return int 318 290 * 319 * @ingroup memTracing320 291 */ 321 292 int psMemCheckCorruption( … … 327 298 * @return psReferenceCount 328 299 * 329 * @ingroup memRefCount330 300 */ 331 301 psReferenceCount psMemGetRefCounter( … … 337 307 * @return psPtr 338 308 * 339 * @ingroup memRefCount340 309 */ 341 310 #ifdef DOXYGEN … … 358 327 /** Decrement reference counter and return the pointer 359 328 * 360 * @ingroup memRefCount361 329 * 362 330 * @return psPtr the pointer deremented in refCount, or NULL if pointer is … … 381 349 382 350 /** Set reference counter and return the pointer 383 *384 * @ingroup memRefCount385 351 * 386 352 * @return psPtr the pointer with refCount set, or NULL if pointer is … … 411 377 * stack. If any of these checks discover that the memory stack is corrupted, 412 378 * the psMemProblemCallback is called. 413 414 * @ingroup memCallback415 379 * 416 380 * @return psMemProblemCallback old psMemProblemCallback function … … 431 395 * request and try again, limiting the size of the operating buffer. 432 396 * 433 * @ingroup memCallback434 *435 397 * @return psMemExhaustedCallback old psMemExhaustedCallback function 436 398 */ … … 446 408 * just before memory is returned to the calling function. 447 409 * 448 * @ingroup memCallback449 *450 410 * @return psMemAllocCallback old psMemAllocCallback function 451 411 */ … … 461 421 * before the memory block is freed. 462 422 * 463 * @ingroup memCallback464 *465 423 * @return psMemFreeCallback old psMemFreeCallback function 466 424 */ … … 471 429 /** get next memory ID 472 430 * 473 * @ingroup memCallback474 *475 431 * @return psMemId the next memory ID to be used 476 432 */ … … 478 434 479 435 /** get the last memory ID used 480 *481 * @ingroup memCallback482 436 * 483 437 * @return psMemId the last memory ID used … … 492 446 * just before memory is returned to the calling function. 493 447 * 494 * @ingroup memCallback495 *496 448 * @return psMemId 497 449 * … … 509 461 * before the memory block is freed. 510 462 * 511 * @ingroup memCallback512 *513 463 * @return psMemId the old p_psMemFreeID 514 464 * … … 530 480 size_t *freelist); ///< memory that's waiting to be recycled 531 481 532 // @} End of Memory Management Functions482 /// @} end of SysUtils 533 483 534 484 #ifndef DOXYGEN … … 549 499 550 500 #endif // #ifndef DOXYGEN 551 552 501 #endif // #ifndef PS_MEMORY_H -
trunk/psLib/src/sys/psSlurp.h
r11154 r11248 1 /* @file psSlurp.h 2 * @brief read complete files into strings 3 * 4 * @author JH 5 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-01-23 22:47:23 $ 7 */ 8 1 9 #ifndef PS_SLURP_H 2 10 #define PS_SLURP_H 11 12 /// @addtogroup FileIO Input/Output 13 /// @{ 3 14 4 15 // Read ("slurp") a file (specified by file descriptor) … … 12 23 ); 13 24 14 25 /// @} 15 26 #endif -
trunk/psLib/src/sys/psString.h
r10949 r11248 1 /** @file psString.h 2 * 3 * -*- mode: C; c-basic-indent: 4; tab-width: 8; indent-tabs-mode: nil -*- 4 * vim: set cindent ts=8 sw=4 expandtab: 5 * 6 * @brief Contains the declarations of string utility functions 7 * 8 * @ingroup SysUtils 9 * 10 * String utility functions defined shall provide basic string copying 11 * capabilities. 12 * 13 * @author Eric Van Alst, MHPCC 14 * @author David Robbins, MHPCC 15 * 16 * @version $Revision: 1.34 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2007-01-06 04:13:51 $ 18 * 19 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 1 /* @file psString.h 2 * 3 * @brief string utility functions 4 * 5 * String utility functions defined shall provide basic string copying 6 * capabilities. 7 * 8 * @author EAM, IfA 9 * @author Eric Van Alst, MHPCC 10 * @author David Robbins, MHPCC 11 * 12 * @version $Revision: 1.35 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2007-01-23 22:47:23 $ 14 * 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 20 16 */ 21 17 22 18 #ifndef PS_STRING_H 23 19 #define PS_STRING_H 20 21 /// @addtogroup SysUtils System Utilities 22 /// @{ 24 23 25 24 #include <sys/types.h> … … 35 34 const char *p_psFileLine(const char *file, int line); 36 35 #define PS_FILE_LINE p_psFileLine(__FILE__,__LINE__) 37 38 // Doxygen group tags39 40 /** @addtogroup SysUtils41 * @{42 */43 36 44 37 /** Allocates a new psString. … … 230 223 #endif // ifndef DOXYGEN 231 224 232 /** @} */// Doxygen - End of SystemGroup Functions 233 225 /// @} 234 226 #endif // #ifndef PS_STRING_H -
trunk/psLib/src/sys/psTrace.h
r9546 r11248 1 1 /** @file psTrace.h 2 * \brief basic run-time trace facilities3 * \ingroup LogTrace2 * 3 * @brief basic run-time trace facilities 4 4 * 5 5 * This file will hold the prototypes for defining procedures to insert … … 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.5 2$ $Name: not supported by cvs2svn $12 * @date $Date: 200 6-10-13 22:29:23 $11 * @version $Revision: 1.53 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2007-01-23 22:47:23 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 15 15 */ 16 #if !defined(PS_TRACE_H) 16 17 #ifndef PS_TRACE_H 17 18 #define PS_TRACE_H 1 19 20 /// @addtogroup SysUtils System Utilities 21 /// @{ 22 18 23 #include <stdarg.h> 19 24 … … 21 26 #define PS_DEFAULT_TRACE_LEVEL -1 22 27 #define PS_THE_OTHER_DEFAULT_TRACE_LEVEL 0 23 24 /** \addtogroup LogTrace25 * \{26 */27 28 28 29 enum { … … 171 172 int psTraceGetDestination(void); 172 173 173 /* \} */// End of SystemGroup Functions 174 174 /// @} 175 175 #endif /* PS_NO_TRACE */ 176 177 176 #endif /* PS_TRACE_H */ 178 -
trunk/psLib/src/sys/psType.h
r9552 r11248 1 /** @file psType.h 2 * 3 * @brief Contains support for basic types 4 * 5 * This file defines common datatypes used throughout psLib. 6 * 7 * @ingroup DataContainer 8 * 9 * @author Robert DeSonia, MHPCC 10 * @author Ross Harman, MHPCC 11 * 12 * @version $Revision: 1.52 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-10-14 00:02:31 $ 14 * 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 16 */ 1 /* @file psType.h 2 * 3 * @brief Contains support for basic types 4 * 5 * This file defines common datatypes used throughout psLib. 6 * 7 * @author Robert DeSonia, MHPCC 8 * @author Ross Harman, MHPCC 9 * 10 * @version $Revision: 1.53 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2007-01-23 22:47:23 $ 12 * 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 14 */ 17 15 18 16 #ifndef PS_TYPE_H 19 17 #define PS_TYPE_H 18 19 /// @addtogroup DataContainer Data Containers 20 /// @{ 20 21 21 22 #include <complex.h> … … 23 24 #include <float.h> 24 25 #include <stdbool.h> 25 26 /// @addtogroup DataContainer27 /// @{28 26 29 27 /******************************************************************************/ … … 301 299 302 300 /// @} 303 304 301 #endif // #ifndef PS_TYPE_H
Note:
See TracChangeset
for help on using the changeset viewer.
