summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/include/rtems/libio_.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-12-04 08:56:00 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-12-06 07:13:04 +0100
commitbc5b56ad4196eb52254e371aa8ce9caf42b1dec6 (patch)
tree216be99b18b7c5fb1885b5ae7910fb5e9adcf5a3 /cpukit/libcsupport/include/rtems/libio_.h
parentdrvmgr: Use API mutex (diff)
downloadrtems-bc5b56ad4196eb52254e371aa8ce9caf42b1dec6.tar.bz2
libio: Use API mutex
Diffstat (limited to 'cpukit/libcsupport/include/rtems/libio_.h')
-rw-r--r--cpukit/libcsupport/include/rtems/libio_.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio_.h b/cpukit/libcsupport/include/rtems/libio_.h
index 5cc31eed64..414e8a20fc 100644
--- a/cpukit/libcsupport/include/rtems/libio_.h
+++ b/cpukit/libcsupport/include/rtems/libio_.h
@@ -53,15 +53,6 @@ extern "C" {
#define F_DUP2FD 20
/*
- * Semaphore to protect the io table
- */
-
-#define RTEMS_LIBIO_SEM rtems_build_name('L', 'B', 'I', 'O')
-#define RTEMS_LIBIO_IOP_SEM(n) rtems_build_name('L', 'B', 'I', n)
-
-extern rtems_id rtems_libio_semaphore;
-
-/*
* File descriptor Table Information
*/
@@ -347,15 +338,9 @@ void rtems_libio_free_user_env( void *env );
extern pthread_key_t rtems_current_user_env_key;
-static inline void rtems_libio_lock( void )
-{
- rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
-}
+void rtems_libio_lock( void );
-static inline void rtems_libio_unlock( void )
-{
- rtems_semaphore_release( rtems_libio_semaphore );
-}
+void rtems_libio_unlock( void );
static inline void rtems_filesystem_mt_lock( void )
{