LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-21-2009, 10:48 PM   #1
HSN
LQ Newbie
 
Registered: Dec 2006
Distribution: Ubuntu
Posts: 25

Rep: Reputation: 15
Modifying syscall.c


I need to modify syscall.c to do some tracing before a system call is handled. I have never modified a c library in linux. Can someone direct me to some resources or give me some info on how to do this?

Last edited by HSN; 09-21-2009 at 10:49 PM.
 
Old 09-22-2009, 02:31 AM   #2
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
& how is this diferent from modifying any other code?
 
Old 09-24-2009, 06:23 PM   #3
HSN
LQ Newbie
 
Registered: Dec 2006
Distribution: Ubuntu
Posts: 25

Original Poster
Rep: Reputation: 15
Well I think I need to rewrite this question.
What I need is to modify the system call wrapper function that is called by any function that needs a system call to be done.
First, I don't know where this file is kept? Is this one wrapper or there are more?
Second, is this going to be part of gcc or the Kernel? What should be recompiled?

Any ideas on these issues?
 
Old 09-24-2009, 09:52 PM   #4
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
if you talking about what i think you are talking about
i should be in glibc
but i maybe wrong
 
  


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
Syscall problems RepSTOSW Linux - Kernel 3 03-21-2010 11:57 AM
Modifying syscall table in newer kernels cRTrn13 Linux - Kernel 0 09-02-2009 02:15 AM
Syscall problems RepSTOSW Linux - Newbie 2 05-11-2009 08:00 PM
how to use kill syscall shifter Programming 19 05-28-2007 10:04 AM
syscall hook robertos Linux - Kernel 15 03-09-2007 07:33 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:22 PM.

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