Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Oct 2010 17:27:21 +0700
From:      Eugene Grosbein <eugen@grosbein.pp.ru>
To:        hackers@freebsd.org
Subject:   syscall
Message-ID:  <4CBC2109.4030303@grosbein.pp.ru>

next in thread | raw e-mail | index | archive | help
Hi!

I've written an utility in C that does not link libc normally,
instead it includes <sys/syscall.h> and calls syscall().
It works nice for FreeBSD8/i386.

Now I'm porting it to FreeBSD8/amd64 and just cannot find
how to call syscall() directly from C code.

For arm, i386 and mips there are:

lib/libc/arm/sys/syscall.S
lib/libc/i386/sys/syscall.S
lib/libc/mips/sys/syscall.S

What about amd64?

Eugene Grosbein

P.S. Please reply to the list.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CBC2109.4030303>