From owner-freebsd-standards Wed Oct 16 7:53: 6 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45DB937B407 for ; Wed, 16 Oct 2002 07:53:05 -0700 (PDT) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05DD343ED4 for ; Wed, 16 Oct 2002 07:53:05 -0700 (PDT) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id 4EE0B9C0A; Wed, 16 Oct 2002 10:45:23 -0400 (EDT) Date: Wed, 16 Oct 2002 10:45:23 -0400 From: Mike Barcroft To: standards@FreeBSD.org Subject: getpriority()/setpriority() Message-ID: <20021016104523.G22315@espresso.q9media.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: The FreeBSD Project Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It seems to me that the `who' (int) parameter for getpriority(2) and setpriority(2) isn't capable of properly representing uid_t (unsigned int) in the PRIO_USER case for UID's greater than 2^32/2. This appears to work in practice (though implicit overflow?), but I think the correct thing to do would be to make the `who' parameter an id_t (int64_t) and add compatibility osyscalls for existing software. The alternative is to make id_t an int and leave the syscalls alone, with the exception of changing to spelling of int to id_t. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message