From owner-freebsd-current Wed Oct 16 9:31: 1 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6402137B401; Wed, 16 Oct 2002 09:31:00 -0700 (PDT) Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3CF743EAC; Wed, 16 Oct 2002 09:30:59 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0308.cvx40-bradley.dialup.earthlink.net ([216.244.43.53] helo=mindspring.com) by pintail.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 181r4U-0005Yw-00; Wed, 16 Oct 2002 09:30:58 -0700 Message-ID: <3DAD93FB.78324E0E@mindspring.com> Date: Wed, 16 Oct 2002 09:29:47 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Maxim Sobolev Cc: Robert Watson , "Danny J. Zerkel" , "Vladimir B. Grebenschikov,Moscow,408-7227,123-4567,Some-info" , freebsd-arch@FreeBSD.ORG, freebsd-current@FreeBSD.ORG Subject: Re: short uid/gid References: <3DAD2B79.AD5412CA@mindspring.com> <20021016093048.GB10908@vega.vega.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Maxim Sobolev wrote: > > You could also simply use non-intersecting cmd parameter values > > for the new calls, which avaids the special flag, and leaves the > > backward compatability without adding grundles of new system calls. > > What about source-level compatibility, which IMO is a good thing, > at least if it doesn't add too much complexity (it clearly doesn't > in this case)? Also, handling single flag should be easier from > the coding perspective than a load of new values, after all > we can do something like: > > #define IPC_STAT_OLD 0xXY > #define IPC_SET_OLD 0xZW > [...] > > #define IPC_64 0x100 > > #define IPC_STAT (IPC_STAT_OLD | IPC_64) > #define IPC_SET (IPC_SET_OLD | IPC_64) > [...] > > Which automagically will bring 64-version of syscalls after > recompilation, while retaining ABI compatibility. This is exactly what I was suggesting. In Linux, you do this manually (read their header files). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message