>>>>> Junaid Iqbal writes:

 > hi all.
 > I m unable to undersatnd how system calls implemented in glibc (ver
 > 2.1.3).
 > for example __libc_system  function (defined in system.c) have these
 > lines
That's the fall back in sysdeps/generic/system.c, the function used on
Linux is in sysdeps/posix/system.c.  Read the documentation about the
sysdeps directory and have also a look at syscalls.list.

 > #include <errno.h>
 > #include <stdlib.h>


 > /* Execute LINE as a shell command.  */
 > int
 > __libc_system (line)
 >      const char *line;
 > {
 >   if (line == NULL)
 >     return 0;   /* This indicates no command processor.  */

 >   __sys_errno (ENOSYS);
 >   return -1;
 > }
 > weak_alias (__libc_system, system)


 > stub_warning (system)
 > #include <stub-tag.h>



 > can some one give me hand in understanding this?
 > thanks in advance.




-- 
 Andreas Jaeger
  SuSE Labs [EMAIL PROTECTED]
   private [EMAIL PROTECTED]

Reply via email to