Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th March 2009, 07: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, 09: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, 09: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, 09: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, 09: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, 09: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, 11:29 AM
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 04:20 PM
Linux Free Open-Source MMORPG "Live" Project Review Phuein Gamers' Lounge 0 12th June 2008 03:22 PM
cannot open "System->Help" and "System->About fedora" fedora111 Hardware & Laptops 8 4th August 2007 04:57 AM
"expected specifier-qualifier-list" ERROR while adding a new system call ahm_irf Programming & Packaging 0 30th April 2007 04:49 AM
Source code for "Hardware Browser" soongwoo Using Fedora 4 13th November 2005 06:24 AM


Current GMT-time: 10:42 (Tuesday, 29-07-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