| From: | "Stathis Kamperis \(via DragonFly issue tracker\)" <sinknull@xxxxxxxxxxxxxxxxxxxxx> |
| Date: | Tue, 26 May 2009 17:25:04 +0000 |
New submission from Stathis Kamperis <ekamperi@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@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1390>
_____________________________________________________Attachment:
0001-Use-id_t-type-in-get-set-priority.patch
Description: Binary data