Changeset 62d8a54 in rtems


Ignore:
Timestamp:
Feb 8, 2012, 2:54:54 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
28860ec0
Parents:
b9d56ea
Message:

POSIX conformance

For symbolic links, the length in bytes of the pathname contained in the
symbolic link should be returned in st_size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/imfs/imfs_stat.c

    rb9d56ea r62d8a54  
    1919
    2020#include <errno.h>
     21#include <string.h>
    2122#include "imfs.h"
    2223#include <rtems/libio_.h>
     
    4849
    4950    case IMFS_SYM_LINK:
    50       buf->st_size = 0;
     51      buf->st_size = strlen( the_jnode->info.sym_link.name );
    5152      break;
    5253
Note: See TracChangeset for help on using the changeset viewer.