From: "Maciej W. Rozycki" <firstname.lastname@example.org>
> On Mon, 24 Jun 2002, Carsten Langgaard wrote:
> > > What programs btw are using syscall()? To be honest I don't recall one
> > > ...
> > /sbin/rpc.lockd.
> > It use syscall() to indirectly call the 'sys_nfsservctl' syscall, why it
> > doesn't do the syscall directly is beyond me.
I can only speculate that at the time it was written, there was not
a universally respected library binding to get to the direct syscall.
> Hmm, shouldn't syscall() be a library wrapper? I think we should kill
While I agree that rpc.lockd should directly invoke the desired
system call if possible, having an indirect system call mechanism
is something that has proved useful to me in the past on other
Unices, and I would rather see it fixed than discarded.