LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-16-2011, 11:22 PM   #1
nikunjbadjatya
Member
 
Registered: Sep 2009
Location: Bangalore
Posts: 33

Rep: Reputation: 0
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
 
Old 01-17-2011, 05:29 AM   #2
nenpa8lo
Member
 
Registered: Oct 2008
Location: Ireland
Distribution: Slackware 13.0, Slackware 13.37
Posts: 68
Blog Entries: 2

Rep: Reputation: 18
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create a .bin file in linux sharad Linux - General 6 12-03-2009 03:59 AM
How to create a device file in linux? chaitanya1982 Linux - Newbie 3 09-24-2008 12:42 PM
how to create a batch file in linux sting1220 Linux - Newbie 7 12-23-2007 11:58 PM
how to create an executable like file in linux?? suliman_shah Programming 6 08-17-2007 12:06 AM
how to create a new .C file in linux amirthakumar Linux - General 3 08-09-2007 05:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration