diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-28 18:25:49 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-28 18:25:49 +0100 |
commit | 29fa2419bfff57811453b081d0ac771e9158e469 (patch) | |
tree | 4451541dfb3b297019fdd85ce649f167a2b43136 /cpukit/libfs/src/imfs/imfs_readlink.c | |
parent | IMFS: Replace node union with individual struct (diff) | |
download | rtems-29fa2419bfff57811453b081d0ac771e9158e469.tar.bz2 |
IMFS: Aggregate link support in dedicated modules
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_readlink.c')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_readlink.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_readlink.c b/cpukit/libfs/src/imfs/imfs_readlink.c deleted file mode 100644 index 2c26954c6a..0000000000 --- a/cpukit/libfs/src/imfs/imfs_readlink.c +++ /dev/null @@ -1,38 +0,0 @@ -/** - * @file - * - * @brief IMFS Put Symbolic Link into Buffer - * @ingroup IMFS - */ - -/* - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#if HAVE_CONFIG_H - #include "config.h" -#endif - -#include "imfs.h" - -ssize_t IMFS_readlink( - const rtems_filesystem_location_info_t *loc, - char *buf, - size_t bufsize -) -{ - IMFS_sym_link_t *sym_link; - ssize_t i; - - sym_link = loc->node_access; - - for( i=0; ((i<bufsize) && (sym_link->name[i] != '\0')); i++ ) - buf[i] = sym_link->name[i]; - - return i; -} |