Skip site navigation (1)Skip section navigation (2)
Date:      18 Sep 2000 22:52:06 +0200
From:      naddy@mips.inka.de (Christian Weisgerber)
To:        freebsd-emulation@freebsd.org
Subject:   Linux getpgid()
Message-ID:  <8q5v9m$1lc2$1@ganerc.mips.inka.de>

next in thread | raw e-mail | index | archive | help
Noticed on 4.1-STABLE/i386:

Under the Linuxulator, getpgid(0) fails with ESRCH.  This is easy
enough to fix in sys/{i386,compat}/linux/linux_misc.c:linux_getpgid().

However, it raises the question why getpgid() was wrapped for the
Linux compatibility layer in the first place.  As far as I can
tell, getpgid() has exactly the semantics on FreeBSD and Linux--and
POSIX for that matter.  In fact, the only difference between
linux_getpgid() and the native getpgid() that I can see is that
the former doesn't handle getpgid(0).

Any reasons why we shouldn't just go with

132     NOPROTO LINUX   { int getpgid(int pid); }

?
-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8q5v9m$1lc2$1>