LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What happens internally when we create a file in Linux (https://www.linuxquestions.org/questions/linux-newbie-8/what-happens-internally-when-we-create-a-file-in-linux-856735/)

nikunjbadjatya 01-16-2011 11:22 PM

What happens internally when we create a file in Linux
 
Hi All,

I am using NetBSD-5.1.
1. I wanted to know what happens internally when we create a file in linux. ?

The header file STDIO.H present in "src/include/stdio.h" contains a "FILE" structure with various members like _p, _cookie, etc.

2. I wanted to know how does internally memory gets allocated for them.?

Thanks,

Niks
Bangalore, India

nenpa8lo 01-17-2011 05:29 AM

So I recommend you to read man page for fopen, and if that's not enough go to the source of fopen and study it.


All times are GMT -5. The time now is 12:18 PM.