Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2019 11:42:03 +0000
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        iam@sdf.org
Cc:        freebsd-questions@freebsd.org
Subject:   Re: what is libc?
Message-ID:  <20190115114203.be3a720eca52bd5970b8541d@sohara.org>
In-Reply-To: <201901151033.x0FAXCeg027256@sdf.org>
References:  <201901151033.x0FAXCeg027256@sdf.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Jan 2019 10:33:12 GMT
iam@sdf.org wrote:

> also, if suppose the userland were to be written in say "rust",
> would it theoretically be possible to write libc in "rust", and
> then would it have to be called "librust"?

	Just to extend Polytropon's excellent response a little. The lowest
level interface to the system in any kind of Unix is the kernel interface.
It is possible to create a higher level interface analogous but not
necessarily compatible in any way with libc in any language which is
capable of implementing the kernel interface. I don't know of any examples
though, it is far easier and more portable to sit on top of the documented
and system independent standards implemented in libc than to sit directly
on top of the kernel interface which is unique to each implementation in at
least some aspects.

-- 
Steve O'Hara-Smith <steve@sohara.org>



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