[issue1390] Use id_t type for {get,set}priority()

Stathis Kamperis (via DragonFly issue tracker) sinknull at leaf.dragonflybsd.org
Tue May 26 10:26:34 PDT 2009


New submission from Stathis Kamperis <ekamperi at gmail.com>:

Salute!

Both get- and set-priority() functions take a `who' argument that may refer to 
process ID, group ID or a user ID depending on the situation. The id_t type,
which is already available in our src tree, guarantees that it's large enough to
hold pid, gid, etc.

The attached patch replaces `int' with `id_t' wherever appropriate. I have done
a build{world,kernel} and install{world,kernel} and I don't broke anything. Plus
some test cases I have, continue to pass.

If anyone objects to this patch speak now or forever hold your peace!

Cheers,
Stathis

----------
assignedto: Beket
files: 0001-Use-id_t-type-in-get-set-priority.patch
messages: 6691
nosy: Beket
priority: bug
status: unread
title: Use id_t type for {get,set}priority()

_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1390>
_____________________________________________________Attachment:
0001-Use-id_t-type-in-get-set-priority.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00001.bin
Type: application/octet-stream
Size: 2354 bytes
Desc: "Description: Binary data"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20090526/38e6eba3/attachment-0016.bin>


More information about the Bugs mailing list