summaryrefslogtreecommitdiff
path: root/nuttx/fs/fs_files.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-01 21:05:55 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-01 21:05:55 +0000
commit08680a039b6ffc922731d9a1cfdff20ef204dbba (patch)
tree25bb704377c624f2d63c4bb5ad1df332d44aa78a /nuttx/fs/fs_files.c
parent129dd27cc4deb042d2f88c65927adc49c338756d (diff)
downloadpx4-nuttx-08680a039b6ffc922731d9a1cfdff20ef204dbba.tar.gz
px4-nuttx-08680a039b6ffc922731d9a1cfdff20ef204dbba.tar.bz2
px4-nuttx-08680a039b6ffc922731d9a1cfdff20ef204dbba.zip
This creates a 8051 build that can run in 24Kb of RAM
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@26 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fs_files.c')
-rw-r--r--nuttx/fs/fs_files.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/nuttx/fs/fs_files.c b/nuttx/fs/fs_files.c
index 63a3554aa..30c2bbed3 100644
--- a/nuttx/fs/fs_files.c
+++ b/nuttx/fs/fs_files.c
@@ -38,10 +38,6 @@
************************************************************/
#include <nuttx/config.h>
-
-
-#if CONFIG_NFILE_DESCRIPTORS >0
-
#include <string.h>
#include <semaphore.h>
#include <assert.h>
@@ -49,7 +45,6 @@
#include <errno.h>
#include <nuttx/fs.h>
#include <nuttx/kmalloc.h>
-
#include "fs_internal.h"
/************************************************************
@@ -72,6 +67,8 @@
* Private Functions
************************************************************/
+#if CONFIG_NFILE_DESCRIPTORS >0
+
static void _files_semtake(FAR struct filelist *list)
{
/* Take the semaphore (perhaps waiting) */
@@ -267,4 +264,5 @@ void files_release(int filedes)
}
}
}
+
#endif /* CONFIG_NFILE_DESCRIPTORS */