From owner-freebsd-hackers Sun Jul 9 01:07:09 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id BAA21062 for hackers-outgoing; Sun, 9 Jul 1995 01:07:09 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id BAA21041 for ; Sun, 9 Jul 1995 01:07:05 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA19091; Sun, 9 Jul 1995 10:07:03 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id KAA01517; Sun, 9 Jul 1995 10:07:02 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id IAA27669; Sun, 9 Jul 1995 08:20:50 +0200 From: J Wunsch Message-Id: <199507090620.IAA27669@uriah.heep.sax.de> Subject: Re: new getsid(2) system call for freebsd... To: ukkonen@aphrodite.funet.fi Date: Sun, 9 Jul 1995 08:20:50 +0200 (MET DST) Cc: hackers@freebsd.org In-Reply-To: <199507072142.AAA00799@jau.csc.fi> from "Jukka Ukkonen" at Jul 8, 95 00:42:04 am Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1064 Sender: hackers-owner@freebsd.org Precedence: bulk As Jukka Ukkonen wrote: > > > A couple of days ago I had a sudden moment of inspiration and > I added an initial version of a new SVR4 style system call > getsid(2) to FreeBSD. > The rationale for such a new system call is first and foremost > completeness and symmetry. The second reason is the fact that > X/Open might begin requiring such a service in their XPG, which > might become a portability issue one day. The third point is > that now and then there are things that would be somewhat easier > to do, if such an interface were available, and moreover it is > practically impossible to do exactly the same thing in a user > mode subroutine. While i don't know about the second point (and hope that anybody else here would comment on it), the third point is not acceptable (for me). Writing code that relies on a specific system call that's only present in a couple of systems is not a good idea. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)