From: Manish Regmi <regmi.manish@gmail.com>
To: linux-newbie@vger.kernel.org
Subject: Re: Syscall() vs _syscallN()
Date: Wed, 30 Mar 2005 22:41:53 +0545 [thread overview]
Message-ID: <652016d305033008562e969e7f@mail.gmail.com> (raw)
In-Reply-To: <000101c534c9$230750c0$90b3c68a@st.com>
On Wed, 30 Mar 2005 09:38:09 +0800, Alex LIU <alex.liu@st.com> wrote:
> Sorry for my unclear words...
> I want to know the DIFFERENCE between SYSCALL() and _SYSCALLN()...
> _syscallN() ( _syscall0(),_syscall1(),...._syscall6() ) is a macro defined
> in include/asm/unist.h while syscall() is a glibc function which I'm not
> sure. Thanks!
>
> Alex
>
You are absolutely correct.
_syscallN is a macro on unistd.h whah takes no of parameters according
to the value of N. i.e _syscall0() does not take any parameters
whereas _syscall6() takes 6 parameters.
_syscallN calls calls the glibc function syscall which is an assembly
entry in sysdeps\unix\sysv\linux\i386\syscall.S (glibc source).
regards
Manish Regmi
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
prev parent reply other threads:[~2005-03-30 16:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-29 7:20 Syscall() vs _syscallN() Alex LIU
2005-03-29 9:36 ` J.
2005-03-30 1:38 ` Alex LIU
2005-03-30 13:05 ` J.
2005-04-01 7:35 ` Alex LIU
2005-03-30 16:56 ` Manish Regmi [this message]
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=652016d305033008562e969e7f@mail.gmail.com \
--to=regmi.manish@gmail.com \
--cc=linux-newbie@vger.kernel.org \
/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