> The Linux Test Project (http://linux-test-project.github.io) would help
> not only with finding missing syscalls, but also with finding bugs /
> missing functionality in the existing Linux emul code.
Yes this is a great idea! Although my interpretation of the project
idea is that the
> Locks are on files, not file descriptors.
Except they aren't. They're on open file table entries, something
remarkably difficult to describe in a way that doesn't just refer to
the kernel-internal mechanism behind it (which for _this_ list isn't a
big deal, but...). If they were truly on
Date:Sat, 18 Mar 2023 11:32:37 -0400 (EDT)
From:Mouse
Message-ID: <202303181532.laa29...@stone.rodents-montreal.org>
| On examination, the manpages available to me (including the one at
| http://man.netbsd.org/flock.2) turn out to say nothing to clarify this.
I ran into an issue, which turned out to be, loosely put, that an open
file table entry cannot lock against itself. Here's a small test
program (most error checking omitted for brevity):
#include
#include
#include
#include
#include
#include
#include
static int fd;
int main(void);
int
Hi Theodore --
The Linux Test Project (http://linux-test-project.github.io) would help
not only with finding missing syscalls, but also with finding bugs /
missing functionality in the existing Linux emul code. It would be nice to
have this running on NetBSD.
Take care,
Jared
On Mon, 13