From: "Steve Graegert" <graegerts@gmail.com>
To: Hendrik Visage <hvjunk@gmail.com>
Cc: Glynn Clements <glynn@gclements.plus.com>,
Shriramana Sharma <samjnaa@gmail.com>,
Linux C Programming List <linux-c-programming@vger.kernel.org>
Subject: Re: kernel provided system call is an API?
Date: Mon, 29 Oct 2007 21:36:58 +0100 [thread overview]
Message-ID: <6a00c8d50710291336y3cc5a2ffl6cef031371abe8f5@mail.gmail.com> (raw)
In-Reply-To: <d93f04c70710291317g750285adl8ec50f55e589e690@mail.gmail.com>
On 10/29/07, Hendrik Visage <hvjunk@gmail.com> wrote:
> On 10/27/07, Glynn Clements <glynn@gclements.plus.com> wrote:
> >
> > Shriramana Sharma wrote:
> >
> > > >> 1. Can the system calls provided by the kernel be considered an API?
> > > >
> > > > System calls aren't strictly an *application* programming interface.
> > > > Applications are supposed to use the libc functions.
> > >
> > > OK so is it at least a "programming interface"?
> >
> > Yes, although it's intended to be used solely by libc.
>
> I think the "more correct"(TM) explanation would be that:
>
> Each hardware architecture, and OS, will have different methods of
> invoking the actual system call. So from memory Linux and FreeBSD uses
> different methods to initiate a syscall.
And so do Windows, VMS and HP-UX, and many others.
> Althought the man read(2) "api" from the libc "user"'s perspective are all
> the same (specified by POSIX etc.) the nitty gritty of getting into the
> kernel differs.
Right, but we are talking about the interfaces to the _Linux_ kernel
and already illustrated in earlier threads what system calls are and
how they are invoked by making use of system call wrappers.
Anyhow, Glynn put it straight and did so in a concise manner.
\Steve
--
Steve Grägert
DigitalEther.de
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2007-10-29 20:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-26 16:25 kernel provided system call is an API? Shriramana Sharma
2007-10-26 21:05 ` Glynn Clements
2007-10-27 0:42 ` Shriramana Sharma
2007-10-27 1:33 ` Glynn Clements
2007-10-29 20:17 ` Hendrik Visage
2007-10-29 20:36 ` Steve Graegert [this message]
2007-10-29 22:11 ` Glynn Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6a00c8d50710291336y3cc5a2ffl6cef031371abe8f5@mail.gmail.com \
--to=graegerts@gmail.com \
--cc=glynn@gclements.plus.com \
--cc=hvjunk@gmail.com \
--cc=linux-c-programming@vger.kernel.org \
--cc=samjnaa@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).