LinuxQuestions.org
Help answer threads with 0 replies.
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, 11: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 11:49 PM.
 
Old 09-22-2009, 03: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, 07: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, 10: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

All times are GMT -5. The time now is 07:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration