359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
|
- (int)fileDescriptorForWriting
{
return _writePipe[1];
}
- (void)closeForWriting
{
if (_writePipe[1] != -1)
close(_writePipe[1]);
_writePipe[1] = -1;
}
- (void)close
{
if (_readPipe[0] == -1)
|
|
>
>
|
|
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
|
- (int)fileDescriptorForWriting
{
return _writePipe[1];
}
- (void)closeForWriting
{
if (_readPipe[0] == -1 || _writePipe[1] == -1)
@throw [OFNotOpenException exceptionWithObject: self];
close(_writePipe[1]);
_writePipe[1] = -1;
}
- (void)close
{
if (_readPipe[0] == -1)
|