summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-18 19:18:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-18 19:18:52 +0000
commitf73fc29d6692e721e50a7a595d07faab29048a03 (patch)
treedc0b4c271eb1a035241fc9477db935a7e7163704 /cpukit/posix
parent2008-08-18 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-f73fc29d6692e721e50a7a595d07faab29048a03.tar.bz2
2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* itron/include/rtems/itron/task.h, itron/src/def_cyc.c, itron/src/task.c, libcsupport/src/newlibc_exit.c, libcsupport/src/sync.c, libfs/src/imfs/imfs_fchmod.c, posix/include/rtems/posix/pthread.h, posix/src/pthread.c, posix/src/sysconf.c, rtems/include/rtems/rtems/tasks.h, rtems/src/tasks.c, score/include/rtems/score/stack.h, score/inline/rtems/score/stack.inl, score/inline/rtems/score/thread.inl, score/src/threadhandler.c: Fix various nested-externs warnings.
Diffstat (limited to 'cpukit/posix')
-rw-r--r--cpukit/posix/include/rtems/posix/pthread.h9
-rw-r--r--cpukit/posix/src/pthread.c1
-rw-r--r--cpukit/posix/src/sysconf.c2
3 files changed, 10 insertions, 2 deletions
diff --git a/cpukit/posix/include/rtems/posix/pthread.h b/cpukit/posix/include/rtems/posix/pthread.h
index 14eaf36c4c..9f80828eec 100644
--- a/cpukit/posix/include/rtems/posix/pthread.h
+++ b/cpukit/posix/include/rtems/posix/pthread.h
@@ -49,6 +49,15 @@ POSIX_EXTERN uint32_t _POSIX_Threads_Number_of_initialization_threads;
extern const pthread_attr_t _POSIX_Threads_Default_attributes;
+/**
+ * When the user configures a set of POSIX API initialization threads,
+ * This variable will point to the method used to initialize them.
+ *
+ * @note It is instantiated and initialized by confdefs.h based upon
+ * application requirements.
+ */
+extern void (*_POSIX_Threads_Initialize_user_threads_p)(void);
+
/*
* _POSIX_Threads_Manager_initialization
*
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c
index a19e2c069c..30989e0f03 100644
--- a/cpukit/posix/src/pthread.c
+++ b/cpukit/posix/src/pthread.c
@@ -272,7 +272,6 @@ User_extensions_routine _POSIX_Threads_Exitted_extension(
void _POSIX_Threads_Initialize_user_threads( void )
{
- extern void (*_POSIX_Threads_Initialize_user_threads_p)(void);
if ( _POSIX_Threads_Initialize_user_threads_p )
(*_POSIX_Threads_Initialize_user_threads_p)();
}
diff --git a/cpukit/posix/src/sysconf.c b/cpukit/posix/src/sysconf.c
index fbe790de5a..c0b18ed7dc 100644
--- a/cpukit/posix/src/sysconf.c
+++ b/cpukit/posix/src/sysconf.c
@@ -20,6 +20,7 @@
#include <rtems/system.h>
#include <rtems/seterr.h>
#include <rtems/score/tod.h>
+#include <rtems/libio_.h>
#include <sys/param.h>
@@ -38,7 +39,6 @@ long sysconf(
return (TOD_MICROSECONDS_PER_SECOND / _TOD_Microseconds_per_tick);
case _SC_OPEN_MAX: {
- extern uint32_t rtems_libio_number_iops;
return rtems_libio_number_iops;
}