This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Implementation of read() under Linux
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: vintya at excite dot com
- Cc: gcc-help at gcc dot gnu dot org
- Date: 26 Jan 2004 15:50:22 -0500
- Subject: Re: Implementation of read() under Linux
- References: <20040126203807.F06B7299FB@xprdmailfe23.nwk.excite.com>
"Vineet Joglekar" <vintya@excite.com> writes:
> For my project, I need to trace the read() function call till the
> VFS level. I know that read() makes the kernel invoke sys_read() and
> I want to do the same thing with some additional
> functionalities. Can i get the implementation of the read() function
> in gcc source code (maybe in the source file like unistd.c) so that
> on the parallel lines I will be able to write my own my_read()
> function which in turn will call the sys_read() too?
read() is a library routine which is not provided by gcc. On
GNU/Linux systems, it is provided by glibc. See
http://sources.redhat.com/glibc/
Ian