Sankar Subramanian Salvady wrote:
All,
This is not exactly a question pertaining to Kernel. However it would
be great if u can help me.
I am programming in Linux , wherein I need to know a couple of things.
1) Does an API exist that can copy file onto another file ( an API
equivalent of 'cp') ?
2) Is there an API that tells me the disk usage ( equivalent for
cmdline 'du' ) ?
Any pointers would be greatly appreciated.
Thanks n regards
Sankar
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/
As I known VFS supply a API to copy file, it is sendfile(), you can
see more from fs.h. But I never use it. and maybe not every
filesystem implement it.
BR
lyb
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/