Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 2002 10:45:23 -0400
From:      Mike Barcroft <mike@FreeBSD.org>
To:        standards@FreeBSD.org
Subject:   getpriority()/setpriority()
Message-ID:  <20021016104523.G22315@espresso.q9media.com>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021016104523.G22315>