[PATCH 1/1] sandbox: fix function descriptions in os.h

Simon Glass sjg at chromium.org
Mon Nov 7 18:33:01 CET 2022


Hi Heinrich,

On Sat, 5 Nov 2022 at 18:43, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
>
>
> On 11/6/22 01:37, Pali Rohár wrote:
> > On Sunday 06 November 2022 00:44:53 Heinrich Schuchardt wrote:
> >> alarm(), read(), write(), ... are not system calls but POSIX functions.
> >
> > Well, read() and write() are system calls as opposite of the printf()
>
> read() and write() are library functions on all POSIX system. If a
> system call with the same name exists and is used depends on the
> operating system.
>
> The U-Boot sandbox should not assume to be running on Linux. Nor should
> its documentation make such an assumption.

While I agree with the last paragraph I tend to agree with Pali that
there isn't much point in changing this.

As Pali says, things in man pages (section 2) are sys calls and not
just for linux as these predate linux. See [1] for a list.

Regards,
Simon

[1] https://man7.org/linux/man-pages/man2/syscalls.2.html


More information about the U-Boot mailing list