1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

close0 is private. and should throw exception.

This commit is contained in:
Alain Magloire 2002-10-17 13:59:00 +00:00
parent 4570abc614
commit badcff4119

View file

@ -59,15 +59,15 @@ public class PTYOutputStream extends OutputStream {
return; return;
int status = close0(fd); int status = close0(fd);
if (status == -1) if (status == -1)
throw new IOException("close error"); throw new IOException("close error"); //$NON-NLS-1$
fd = -1; fd = -1;
} }
private native int write0(int fd, byte[] b, int len); private native int write0(int fd, byte[] b, int len) throws IOException;
private native int close0(int fd); private native int close0(int fd) throws IOException;
static { static {
System.loadLibrary("pty"); System.loadLibrary("pty"); //$NON-NLS-1$
} }
} }