diff options
author | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2007-12-02 12:08:05 +0000 |
---|---|---|
committer | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2007-12-02 12:08:05 +0000 |
commit | 01af70933ca5884a8ddb19ca7b1ae534d5640cfb (patch) | |
tree | 9b7e49268045be8f23d6b5f3a8b38b951717bab1 /games | |
parent | e75d5e43f89cf35042d62d475afae7936d8cfd6d (diff) |
DIOC{GET,ADD}STATE incorrectly use a user provided pointer without using
copyin/out. Change the API so that the state is included in the ioctl
argument, so the ioctl wrappers take care of copying memory as appropriate.
Also change the DIOCGETSTATE API to be more useful. Instead of getting
an arbitrarily "numbered" state (using numbering that can change between
calls), instead search based on id and creatorid. If you want to monitor
only a particular state, you can now use the bulk functions first to find
the appropriate id/creatorid and then fetch it directly from then on.
ok dlg@ henning@
Diffstat (limited to 'games')
0 files changed, 0 insertions, 0 deletions