1 |
/* FileOutputStream.c - Native methods for java.io.FileOutputStream class |
/* FileOutputStream.c - Native methods for java.io.FileOutputStream class |
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 |
|
|
70 |
int rc = lseek(fd, 0, SEEK_END); |
int rc = lseek(fd, 0, SEEK_END); |
71 |
if (rc == -1) |
if (rc == -1) |
72 |
{ |
{ |
73 |
JCL_ThrowException(env, "java/io/IOException", strerror(errno)); |
JCL_ThrowException(env, "java/io/FileNotFoundException", |
74 |
|
strerror(errno)); |
75 |
close(fd); |
close(fd); |
76 |
return(-1); |
return(-1); |
77 |
} |
} |