*at family of syscalls in FreeBSD

Daniel Eischen deischen at freebsd.org
Mon Jun 4 16:55:02 UTC 2007


On Mon, 4 Jun 2007, Roman Divacky wrote:

> Hi,
>
> Starting from Linux 2.6.16, there is available so called *at syscalls. For example
> openat(), linkat() etc. Those syscalls are used to avoid races in threaded programs
> and to implement per-thread CWD. in other words they are usefull. Thats why Linux
> implemented them.
>
> I am currently implementing those in our Linuxulator. As suggested by Robert Watson
> I implemented general kern_fooat() functions and wrapped them around those kern_fooat()
> functions. It works ok and everything. But I want to introduce native *at syscalls
> for FreeBSD binaries. Hence I am here to discuss the API.
>
> My suggestion:
>
> use Linux API with some slight naming changes:

These are (unless Linux added some new interfaces) defined by POSIX.
The API and behavior should be conformant with POSIX.  See the
POSIX spec for more info:

   http://www.opengroup.org/onlinepubs/009695399/toc.htm

-- 
DE


More information about the freebsd-arch mailing list