forked from Imagelibrary/rtems
2011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_readlink.c: readlink filesystem entry should return ssize_t.
This commit is contained in:
@@ -525,7 +525,7 @@ extern int IMFS_symlink(
|
||||
const char *node_name
|
||||
);
|
||||
|
||||
extern int IMFS_readlink(
|
||||
extern ssize_t IMFS_readlink(
|
||||
rtems_filesystem_location_info_t *loc, /* IN */
|
||||
char *buf, /* OUT */
|
||||
size_t bufsize
|
||||
|
||||
@@ -23,14 +23,14 @@
|
||||
#include <rtems/libio_.h>
|
||||
#include <rtems/seterr.h>
|
||||
|
||||
int IMFS_readlink(
|
||||
ssize_t IMFS_readlink(
|
||||
rtems_filesystem_location_info_t *loc,
|
||||
char *buf, /* OUT */
|
||||
size_t bufsize
|
||||
char *buf, /* OUT */
|
||||
size_t bufsize
|
||||
)
|
||||
{
|
||||
IMFS_jnode_t *node;
|
||||
int i;
|
||||
ssize_t i;
|
||||
|
||||
node = loc->node_access;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user