statfs not included at stat.h
Last Post 05 Mar 2013 08:50 AM by ANDREAS GOERING. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Resolved
ANDREAS GOERING
New Member
New Member
Posts:39

--
22 Feb 2013 08:42 AM

Hi C/C++ developers,

while trying to compiling some code i got the error that structure definition "statfs" not included in stat.h.

I hope anyone out there has had such an issue already and can help me out.

Also, i was searching for the stat.h somewhere in a source file, but cant find it all. Obviously that is implicit available during compiling time? 

Thank you in advance

Andi

Scott Klement
Editorial Staff Member
Editorial Staff Member
Posts:16314
Avatar

--
22 Feb 2013 02:27 PM

What is statfs?   I know there's a CL command by that name, but...   it's not a C function, is it?

Do you mean statvfs?   

Barbara Morris
Senior Member
Senior Member
Posts:5198

--
22 Feb 2013 04:35 PM Accepted Answer
There is a statvfs(). See QSYSINC/SYS(STATVFS).

This page says that statfs() is deprecated in favour of statvfs(), so maybe that's why the IBM i doesn't have it. (Just a guess.)
http://stackoverflow.com/questions/...stem-calls
ANDREAS GOERING
New Member
New Member
Posts:39

--
05 Mar 2013 08:50 AM
Dear Barbara,
dear Scott,

thank you for your answers.

i replaced with statvfs and it worked :-)

Regards
Andi
You are not authorized to post a reply.

Acceptable Use Policy