Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2007 15:08:26 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Saifi Khan <saifi@twincling.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: __sys_fcntl() definition ?
Message-ID:  <20070731200826.GB8962@dan.emsphone.com>
In-Reply-To: <Pine.LNX.4.64.0708010106130.3637@speed.localdomain>
References:  <Pine.LNX.4.64.0708010106130.3637@speed.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Aug 01), Saifi Khan said:
> While working through the FreeBSD 6.2 codebase, I saw the following
> functions referred at multiple places.
> 
> __sys_fcntl()
> __sys_open()
> __sys_write()
> ...
> 
> Can somebody point out the file which contains the implementation
> of the __sys_* functions ?

Those are stub functions that invoke the equivalent syscall in the
kernel.  The "${SASM}:" rule in /usr/src/lib/libc/sys/Makefile.inc is
what generates the stubs themselves.  The actual code for most syscalls
in the kernel is in /usr/src/sys/kern/ .

-- 
	Dan Nelson
	dnelson@allantgroup.com



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