library function vs system calls



Dear all,

I was going through peter van der linden's book expert C programming
there i found the following:-

Library call
------------

*call to a routine in a library
*linked with user program
*executes in user address space
*counts as a part of user time
*has the lower head overhead of procedure call.

system call
-----------
* call to the kernel for a service
* is an entry point to the OS
* executes in the kernel address space
* has high overhead switch to kernel and back

then the author says that , remember many routines in the C library do
their work by making system calls and system() call is
actually a library call.

then how valid is the above explanation on the differences between
library call versus system call ?

why system() call is treated as a library call ?
.



Relevant Pages

  • Re: [PATCH 0 of 4] Generic AIO by scheduling stacks
    ... thought we couldn't do native kernel threads for "normal" threading ... disciplines in question: i hacked on scheduling, 1:1 threading, on Tux, ... the programmer from the risks and complexities of thread programming, ... Having a 1:1 relationship between user-space and kernel-space context is ...
    (Linux-Kernel)
  • Re: Native Code vs PCode OT
    ... > register Left-to-right Routine Yes ... claim influence or invention from Pascal. ... invented by a Russian first. ... to that new concept - Structured Programming. ...
    (microsoft.public.vb.general.discussion)
  • the problem of constants
    ... literal constants, ... Matlab's "copy on write" behaviour to provide the efficiency. ... prevent any routine from accidently changing the master ... to be any better, in terms of programming theory or efficiency, ...
    (comp.soft-sys.matlab)
  • Re: Win32 API and Kernel
    ... The Win32 API is the published programming interface for support user space ... For instance the Win32 API: ... Now inside the kernel, there is a set of Kernel Support Routines ...
    (microsoft.public.win32.programmer.kernel)
  • Re: [BUG] 2.6.23-rc3-mm1 Kernel panic - not syncing: Cant create pid_1 cachep
    ... Following Kernel panic is raised while booting up with 2.6.23-rc3-mm1 kernel. ... Initializing HighMem for node 0 ... virtual kernel memory layout: ... Calibrating delay using timer specific routine.. ...
    (Linux-Kernel)