mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Unable to find syscall number for some system calls
@ 2004-12-30  4:29 selvakumar nagendran
  2004-12-30 22:04 ` bert hubert
  0 siblings, 1 reply; 2+ messages in thread
From: selvakumar nagendran @ 2004-12-30  4:29 UTC (permalink / raw)
  To: linux-kernel

Hello,
    I am intercepting system calls in 2.4.28 kernel
for my project work. While I was looking for syscall
numbers for system calls related to semaphores like
semop,semget..the appropriate numbers were  missing in
the asm/unistd.h file. For other system calls like
sys_pipe numbers are present in the above file. What
should I do to intercept these system calls? Where
should I look for the related syscall numbers?

Thanks,
selva


		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Unable to find syscall number for some system calls
  2004-12-30  4:29 Unable to find syscall number for some system calls selvakumar nagendran
@ 2004-12-30 22:04 ` bert hubert
  0 siblings, 0 replies; 2+ messages in thread
From: bert hubert @ 2004-12-30 22:04 UTC (permalink / raw)
  To: selvakumar nagendran; +Cc: linux-kernel

On Wed, Dec 29, 2004 at 08:29:05PM -0800, selvakumar nagendran wrote:

>     I am intercepting system calls in 2.4.28 kernel
> for my project work. While I was looking for syscall
> numbers for system calls related to semaphores like
> semop,semget..the appropriate numbers were  missing in
> the asm/unistd.h file. For other system calls like
> sys_pipe numbers are present in the above file. What

Well, you also won't find sys_connect as these are all wrapped in
sys_socketcall. For intel, it turns out that it has been decided to wrap all
sem*() calls in sys_ipc().

./asm-i386/unistd.h:#define __NR_ipc		117

The 'royal way' to figure these things out is to trace the path from
semget() in libc to the kernel. You can download glibc from the GNU site I
think.

Good luck!

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-30 22:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-30  4:29 Unable to find syscall number for some system calls selvakumar nagendran
2004-12-30 22:04 ` bert hubert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®