1 |
/* javaio.c - Common java.io native functions |
/* javaio.c - Common java.io native functions |
2 |
Copyright (C) 1998 Free Software Foundation, Inc. |
Copyright (C) 1998, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
88 |
void |
void |
89 |
_javaio_close(JNIEnv *env, jint fd) |
_javaio_close(JNIEnv *env, jint fd) |
90 |
{ |
{ |
91 |
int rc; |
int rc = 0; |
92 |
|
|
93 |
|
if (fd != -1) |
94 |
|
rc = close(fd); |
95 |
|
|
|
rc = close(fd); |
|
96 |
if (rc == -1) |
if (rc == -1) |
97 |
JCL_ThrowException(env, "java/io/IOException", strerror(errno)); |
JCL_ThrowException(env, "java/io/IOException", strerror(errno)); |
98 |
} |
} |