From: Stephen D. <sd...@us...> - 2005-06-10 17:59:12
|
Update of /cvsroot/naviserver/naviserver/nsthread In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27218/nsthread Modified Files: compat.c cslock.c error.c fork.c master.c memory.c mutex.c nsthreadtest.c pthread.c reentrant.c rwlock.c sema.c signal.c thread.c time.c tls.c winthread.c Log Message: Use NS_RCSD() macro to quieten compiler. Index: time.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/time.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** time.c 16 Feb 2005 08:41:15 -0000 1.1.1.1 --- time.c 10 Jun 2005 17:58:59 -0000 1.2 *************** *** 35,42 **** */ - static const char *RCSID = "@(#) $Header$, compiled: " __DATE__ " " __TIME__; - #include "thread.h" /* --- 35,42 ---- */ #include "thread.h" + NS_RCSID("@(#) $Header$"); + /* Index: thread.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/thread.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** thread.c 16 Feb 2005 08:41:16 -0000 1.1.1.1 --- thread.c 10 Jun 2005 17:58:59 -0000 1.2 *************** *** 35,42 **** */ - static const char *RCSID = "@(#) $Header$, compiled: " __DATE__ " " __TIME__; - #include "thread.h" /* * The following constants define the default and minimum stack --- 35,42 ---- */ #include "thread.h" + NS_RCSID("@(#) $Header$"); + /* * The following constants define the default and minimum stack Index: master.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/master.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** master.c 16 Feb 2005 08:41:14 -0000 1.1.1.1 --- master.c 10 Jun 2005 17:58:59 -0000 1.2 *************** *** 34,41 **** */ - static const char *RCSID = "@(#) $Header$, compiled: " __DATE__ " " __TIME__; - #include "thread.h" static Ns_Cs master; static int initialized; --- 34,41 ---- */ #include "thread.h" + NS_RCSID("@(#) $Header$"); + static Ns_Cs master; static int initialized; Index: nsthreadtest.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/nsthreadtest.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** nsthreadtest.c 16 May 2005 00:53:01 -0000 1.2 --- nsthreadtest.c 10 Jun 2005 17:58:59 -0000 1.3 *************** *** 38,41 **** --- 38,43 ---- #include "nsthread.h" + NS_RCSID("@(#) $Header$"); + /* * Special direct include of pthread.h for compatibility tests. *************** *** 49,55 **** #endif - static const char *RCSID = "@(#) $Header$, compiled: " __DATE__ " " __TIME__; - - extern void Tcl_GetMemoryInfo(Tcl_DString *dsPtr); --- 51,54 ---- Index: fork.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/fork.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fork.c 16 Feb 2005 08:41:14 -0000 1.1.1.1 --- fork.c 10 Jun 2005 17:58:59 -0000 1.2 *************** *** 35,42 **** */ - static const char *RCSID = "@(#) $Header$, compiled: " __DATE__ " " __TIME__; - #include "thread.h" /* --- 35,42 ---- */ #include "thread.h" + NS_RCSID("@(#) $Header$"); + /* Index: error.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/error.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** error.c 16 Feb 2005 08:41:13 -0000 1.1.1.1 --- error.c 10 Jun 2005 17:58:59 -0000 1.2 *************** *** 35,42 **** */ - static const char *RCSID = "@(#) $Header$, compiled: " __DATE__ " " __TIME__; - #include "thread.h" /* --- 35,42 ---- */ #include "thread.h" + NS_RCSID("@(#) $Header$"); + /* Index: rwlock.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/rwlock.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** rwlock.c 16 Feb 2005 08:41:16 -0000 1.1.1.1 --- rwlock.c 10 Jun 2005 17:58:59 -0000 1.2 *************** *** 46,53 **** */ - static const char *RCSID = "@(#) $Header$, compiled: " __DATE__ " " __TIME__; - #include "thread.h" /* * The following structure defines a read/write lock including a mutex --- 46,53 ---- */ #include "thread.h" + NS_RCSID("@(#) $Header$"); + /* * The following structure defines a read/write lock including a mutex Index: pthread.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/pthread.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** pthread.c 16 Feb 2005 08:41:11 -0000 1.1.1.1 --- pthread.c 10 Jun 2005 17:58:59 -0000 1.2 *************** *** 38,42 **** --- 38,50 ---- #include <pthread.h> + NS_RCSID("@(#) $Header$"); + + /* + * Local functions defined in this file. + */ + static pthread_cond_t *GetCond(Ns_Cond *cond); + static void CleanupTls(void *arg); + static void *ThreadMain(void *arg); /* *************** *** 46,51 **** static pthread_key_t key; - static void CleanupTls(void *arg); - static void *ThreadMain(void *arg); --- 54,57 ---- Index: tls.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/tls.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** tls.c 16 Feb 2005 08:41:11 -0000 1.1.1.1 --- tls.c 10 Jun 2005 17:58:59 -0000 1.2 *************** *** 36,43 **** */ - static const char *RCSID = "@(#) $Header$, compiled: " __DATE__ " " __TIME__; - #include "thread.h" /* * The following global variable specifies the maximum TLS id. Modifying --- 36,43 ---- */ #include "thread.h" + NS_RCSID("@(#) $Header$"); + /* * The following global variable specifies the maximum TLS id. Modifying Index: winthread.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/winthread.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** winthread.c 16 Feb 2005 08:41:13 -0000 1.1.1.1 --- winthread.c 10 Jun 2005 17:58:59 -0000 1.2 *************** *** 38,41 **** --- 38,43 ---- #include <io.h> + NS_RCSID("@(#) $Header$"); + /* * The following structure maintains the Win32-specific state of a Index: signal.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/signal.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** signal.c 16 Feb 2005 08:41:12 -0000 1.1.1.1 --- signal.c 10 Jun 2005 17:58:59 -0000 1.2 *************** *** 35,42 **** */ - static const char *RCSID = "@(#) $Header$, compiled: " __DATE__ " " __TIME__; - #include "thread.h" /* --- 35,42 ---- */ #include "thread.h" + NS_RCSID("@(#) $Header$"); + /* Index: mutex.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/mutex.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** mutex.c 16 Feb 2005 08:41:15 -0000 1.1.1.1 --- mutex.c 10 Jun 2005 17:58:59 -0000 1.2 *************** *** 34,41 **** */ - static const char *RCSID = "@(#) $Header$, compiled: " __DATE__ " " __TIME__; - #include "thread.h" /* * The following structure defines a mutex with --- 34,41 ---- */ #include "thread.h" + NS_RCSID("@(#) $Header$"); + /* * The following structure defines a mutex with Index: reentrant.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/reentrant.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** reentrant.c 16 Feb 2005 08:41:14 -0000 1.1.1.1 --- reentrant.c 10 Jun 2005 17:58:59 -0000 1.2 *************** *** 36,43 **** */ - static const char *RCSID = "@(#) $Header$, compiled: " __DATE__ " " __TIME__; - #include "thread.h" /* * The following structure maintains state for the --- 36,43 ---- */ #include "thread.h" + NS_RCSID("@(#) $Header$"); + /* * The following structure maintains state for the Index: compat.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/compat.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** compat.c 16 Feb 2005 08:41:14 -0000 1.1.1.1 --- compat.c 10 Jun 2005 17:58:58 -0000 1.2 *************** *** 35,40 **** */ - static const char *RCSID = "@(#) $Header$, compiled: " __DATE__ " " __TIME__; - #ifdef NS_NOCOMPAT #undef NS_NOCOMPAT --- 35,38 ---- *************** *** 42,45 **** --- 40,45 ---- #include "thread.h" + NS_RCSID("@(#) $Header$"); + /* Index: memory.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/memory.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** memory.c 16 Feb 2005 08:41:17 -0000 1.1.1.1 --- memory.c 10 Jun 2005 17:58:59 -0000 1.2 *************** *** 34,41 **** */ - static const char *RCSID = "@(#) $Header$, compiled: " __DATE__ " " __TIME__; - #include "thread.h" /* --- 34,41 ---- */ #include "thread.h" + NS_RCSID("@(#) $Header$"); + /* Index: cslock.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/cslock.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** cslock.c 16 Feb 2005 08:41:10 -0000 1.1.1.1 --- cslock.c 10 Jun 2005 17:58:58 -0000 1.2 *************** *** 45,52 **** */ - static const char *RCSID = "@(#) $Header$, compiled: " __DATE__ " " __TIME__; - #include "thread.h" /* * The following structure defines a critcal section including a mutex, --- 45,52 ---- */ #include "thread.h" + NS_RCSID("@(#) $Header$"); + /* * The following structure defines a critcal section including a mutex, Index: sema.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsthread/sema.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** sema.c 16 Feb 2005 08:41:15 -0000 1.1.1.1 --- sema.c 10 Jun 2005 17:58:59 -0000 1.2 *************** *** 38,45 **** */ - static const char *RCSID = "@(#) $Header$, compiled: " __DATE__ " " __TIME__; - #include "thread.h" /* * The following structure defines a counting semaphore using a lock --- 38,45 ---- */ #include "thread.h" + NS_RCSID("@(#) $Header$"); + /* * The following structure defines a counting semaphore using a lock |