mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
close0 is private. and should throw exception.
This commit is contained in:
parent
4570abc614
commit
badcff4119
1 changed files with 4 additions and 4 deletions
|
@ -59,15 +59,15 @@ public class PTYOutputStream extends OutputStream {
|
|||
return;
|
||||
int status = close0(fd);
|
||||
if (status == -1)
|
||||
throw new IOException("close error");
|
||||
throw new IOException("close error"); //$NON-NLS-1$
|
||||
fd = -1;
|
||||
}
|
||||
|
||||
private native int write0(int fd, byte[] b, int len);
|
||||
private native int close0(int fd);
|
||||
private native int write0(int fd, byte[] b, int len) throws IOException;
|
||||
private native int close0(int fd) throws IOException;
|
||||
|
||||
static {
|
||||
System.loadLibrary("pty");
|
||||
System.loadLibrary("pty"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue