Fedora Linux Support Community & Resources Center
  #1  
Old 16th March 2009, 08:47 PM
cola Offline
Registered User
 
Join Date: Sep 2007
Location: Dhaka,Bangladesh
Posts: 390
Link for getting the source code of "open" system call

Hi,
Can anyone give the link where I can get the source code of "open" system call?
__________________
fedora
Reply With Quote
  #2  
Old 16th March 2009, 10:10 PM
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
it's in the kernel source tree in fs/open.c

but why not just do

Code:
man 2 open
Reply With Quote
  #3  
Old 16th March 2009, 10:18 PM
cola Offline
Registered User
 
Join Date: Sep 2007
Location: Dhaka,Bangladesh
Posts: 390
Quote:
Originally Posted by sideways View Post
it's in the kernel source tree in fs/open.c

but why not just do

Code:
man 2 open
Would you please give the specific path for open.c?
__________________
fedora
Reply With Quote
  #4  
Old 16th March 2009, 10:25 PM
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
Do you know how to install the kernel source? search for "build kernel" on this forum, then it's

~/rpmbuild/BUILD/kernel*/llinux*/fs/open.c

I do wonder what your gonna do with it if you can't even find it!
Reply With Quote
  #5  
Old 17th March 2009, 10:43 AM
cola Offline
Registered User
 
Join Date: Sep 2007
Location: Dhaka,Bangladesh
Posts: 390
Quote:
Originally Posted by sideways View Post
Do you know how to install the kernel source? search for "build kernel" on this forum, then it's

~/rpmbuild/BUILD/kernel*/llinux*/fs/open.c

I do wonder what your gonna do with it if you can't even find it!
HTML Code:
[root@fedora10 rpmbuild]# pwd
/root/rpmbuild
[root@fedora10 rpmbuild]# ls
BUILD  BUILDROOT  RPMS  SOURCES  SPECS  SRPMS
[root@fedora10 rpmbuild]# 
Where is the kernel directory?
__________________
fedora
Reply With Quote
  #6  
Old 17th March 2009, 10:49 AM
Jake Offline
Registered User
 
Join Date: Oct 2008
Location: England, Lincolnshire
Posts: 1,576
in BUILD dir maybe?
__________________
Fedora user since FC6.
Linux user since 2003.
Registered Linux ID: #456478
OS: Fedora 16 x86_64
Reply With Quote
  #7  
Old 17th March 2009, 12:29 PM
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
geez, in the BUILD directory.

Code:
yumdownloader --source kernel
su -c 'yum-builddep kernel*.src.rpm'
rpm -ihv kernel*.src.rpm
rpmbuild -bp --target=$(uname -m) ~/rpmbuild/SPECS/kernel.spec
cd ~/rpmbuild/BUILD/kernel-2.6.27/linux-2.6.27.*/
less fs/open.c
http://forums.fedoraforum.org/showthread.php?t=216762
Reply With Quote
Reply

Tags
code, link, open, source

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error with the code line fopen("/proc/uptime", "r") A_n_H Programming & Packaging 4 21st May 2009 05:20 PM
Linux Free Open-Source MMORPG "Live" Project Review Phuein Gamers' Lounge 0 12th June 2008 04:22 PM
cannot open "System->Help" and "System->About fedora" fedora111 Hardware & Laptops 8 4th August 2007 05:57 AM
"expected specifier-qualifier-list" ERROR while adding a new system call ahm_irf Programming & Packaging 0 30th April 2007 05:49 AM
Source code for "Hardware Browser" soongwoo Using Fedora 4 13th November 2005 07:24 AM


Current GMT-time: 02:25 (Thursday, 18-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Hiyoshi Station Photos - Centro Historico, San Salvador Travel Photos - Kanyon Midpoint