LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   'read' function in uClibc 0.9.32 (https://www.linuxquestions.org/questions/linux-kernel-70/read-function-in-uclibc-0-9-32-a-925577/)

unifoxz 01-25-2012 12:24 AM

'read' function in uClibc 0.9.32
 
What is the first function run in uClibc when user application call read(...)?

I only could find the following related code under uClibc-0.9.32\libc\sysdeps\linux\common\read.c.

Code:

_syscall3(ssize_t, read, int, fd, __ptr_t, buf, size_t, count)
#ifndef __LINUXTHREADS_OLD__
libc_hidden_def(read)
#else
libc_hidden_weak(read)
strong_alias(read,__libc_read)
#endif

Thank you.

nini09 01-27-2012 02:38 PM

You can try fread function in fread.c under /libc/stdio. Digging into the function, you should find read function.


All times are GMT -5. The time now is 06:16 PM.