ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Sat Apr 02, 2005 9:29 am Post subject: Problem with fioDclose()? |
|
|
In testing ps2client, I've come across a problem where I can't close a directory I've opened. Here's the log:
| Quote: | [*] TESTING DIRECTORY ACCESS
dopen name host:TEST
[REQ] BABE0161
[OPENDIR] TEST = -1209704440
dopen fd = -1209704440
[*] fioDopen('host:TEST') = -1209704440
[*] fioDclose(-1209704440) = -9 |
You can see when I fioDopen, the client receives request BABE0161, which is opendir. Then when I send fioDclose, it returns -9 without ever closedir sending a request to the client. I should be seeing BABE0171.
Here's what pksh fresh out of cvs sees:
| Quote: | log: [*] TESTING DIRECTORY ACCESS
log: dopen name host:TEST
log: dopen fd = -1209831416
log: [*] fioDopen('host:TEST') = -1209831416
log: [*] fioDclose(-1209831416) = -9 |
Any ideas? I figure it has to be in ps2link or ps2sdk somewhere, but I haven't come across any strange bugs in the code that stick out. Perhaps the fio code on the iop checks the fd before passing it on, rejecting it because it is below zero?
Hmm, perhaps making it an unsigned int instead will get it to send the request. |
|