[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reg flow of system call
On Sat, Aug 25, 2001 at 05:57:02PM +0530, SATHISH.J wrote:
| Hi,
| Someone please help me telling the path from open()(wrapper routine) to
| sys_open() in open.c. Please explain me the flow of open syscall from
| open() to sys_open().
One easy way to see __libc_open() talking to sys_open() is to create a
simple program (one line) that issues an open() call and compile it with
"-ggdb -static" and the debug it. You can use parameters like
0xaaaaaaaa and 0xbbbbbbbb that are easy to recognize on the stack.
I've been doing that to learn about write and read.
Luis
--
[ Luis Claudio R. Goncalves lclaudio@conectiva.com.br ]
[ MSc coming soon -- Conectiva HA Team - Gospel User - Linuxer - !Java ]
[ Fault Tolerance - Real-Time - Distributed Systems - IECLB - IS 40:31 ]
[ LateNite Programmer -- Jesus Is The Solid Rock On Which I Stand -- ]
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.kernelnewbies.org/