diff options
| author | bernard.xiong <[email protected]> | 2009-07-02 22:48:23 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2009-07-02 22:48:23 +0000 |
| commit | bda4730a9482c23083006abea939ee8d95d6ecff (patch) | |
| tree | 83005121824bd50ac74e63688c0d5eac148665f8 /filesystem/dfs/include/dfs_util.h | |
| parent | 80c72e66de0b00b1a6de3e3508366a4c3eee458d (diff) | |
import RT-Thread RTOS 0.3.x to Google SVN
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'filesystem/dfs/include/dfs_util.h')
| -rw-r--r-- | filesystem/dfs/include/dfs_util.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/filesystem/dfs/include/dfs_util.h b/filesystem/dfs/include/dfs_util.h new file mode 100644 index 0000000000..948abe09cc --- /dev/null +++ b/filesystem/dfs/include/dfs_util.h @@ -0,0 +1,35 @@ +/*
++------------------------------------------------------------------------------
+| Project : Device Filesystem
++------------------------------------------------------------------------------
+| Copyright 2004, 2005 www.fayfayspace.org.
+| All rights reserved.
+|------------------------------------------------------------------------------
+| File : dfs_util.h, some misc definitions of Device FileSystem
+|------------------------------------------------------------------------------
+| Chang Logs:
+| Date Author Notes
+| 2005-01-26 ffxz The first version
++------------------------------------------------------------------------------
+*/
+
+#ifndef __DFS_UTIL_H__
+#define __DFS_UTIL_H__
+
+#include <dfs_def.h>
+
+int dir_name(const char* path, char* dirname, int len);
+int file_name(const char* path, char* filename, int len);
+
+int next_dir_name(const char* path, int pos, char* next);
+void build_fullpath(const char *directory, const char *filename, char *fullpath);
+int str_is_prefix(const char* prefix, const char* str);
+
+#if !defined(RT_USING_MINILIBC) && !defined(RT_USING_NEWLIB)
+char *strrchr(const char *t, int c);
+#if defined (__ARMCC_VERSION) && (__ARMCC_VERSION / 10000 < 35)
+int strncasecmp(const char* s1, const char* s2, rt_size_t len);
+#endif /* end of __ARMCC_VERSION */
+#endif
+
+#endif
|
