Libcsupport - Where is fstatvfs() function ?

Joel Sherrill joel.sherrill at oarcorp.com
Tue Dec 16 00:48:06 UTC 2014


On 12/13/2014 10:24 PM, Thomas Kim wrote:
> Dear Gedare,
>
> I guess that newlib of RSB is included in libc.a, libgcc.a.
> also, current newlib of RSB does not include fstatvfs() function.
>
> Is it correct ?
>
> At this time, when I use fstatvfs() in my application code, there is
> below linking error with <undefined reference to `fstatvfs'>
>
> Please advise me.
>
If the method is missing, then no one has needed it before. :)
It doesn't sound like much advice but it simply needs to be implemented
if you needed. It would go in cpukit/libcsupport/src.

Given that Chris Johns implemented statvfs.c, maybe he has some
specific implementation advice. 

FWIW this is a nice example of how things get added to RTEMS.
No one cares until they need it, then it gets added. Either by the
person implementing or arranging for a core developer to be
sponsored to do it.
> Best Regards,
> Thomas Kim
>
>
>
>
>  
>
> 2014-12-14 12:49 GMT+09:00 Gedare Bloom <gedare at rtems.org
> <mailto:gedare at rtems.org>>:
>
>     newlib
>
>     On Sat, Dec 13, 2014 at 11:42 AM, Thomas Kim
>     <thomas73.kim at gmail.com <mailto:thomas73.kim at gmail.com>> wrote:
>     > Dear Sir,
>     >
>     > As I checked in libcsupport, there is below extern declaration in
>     > libcsupport/include/sys/statvfs.h.
>     > extern int fstatvfs(int, struct statvfs *);
>     >
>     > But, there is not implementation code for fstatvfs() function.
>     >
>     > Where is this fstatvfs() function ?
>     >
>     > Best Regards,
>     > Thomas Kim
>     >
>     > _______________________________________________
>     > users mailing list
>     > users at rtems.org <mailto:users at rtems.org>
>     > http://lists.rtems.org/mailman/listinfo/users
>

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20141215/d016d4b7/attachment-0002.html>


More information about the users mailing list