6 #include "structdefs.h"
10 void ___FileOutputStream______nativeWrite____I__AR_B(int fd, struct ArrayObject * ao) {
11 int length=ao->___length___;
12 char * string= (((char *)& ao->___length___)+sizeof(int));
13 int status=write(fd, string, length);
16 void ___FileOutputStream______nativeClose____I(int fd) {
20 int ___FileOutputStream______nativeOpen_____AR_B(struct ArrayObject * ao) {
21 int length=ao->___length___;
22 char* filename= (((char *)& ao->___length___)+sizeof(int));
23 int fd=open(filename, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU);
27 int ___FileOutputStream______nativeAppend_____AR_B(struct ArrayObject * ao) {
28 int length=ao->___length___;
29 char* filename= (((char *)& ao->___length___)+sizeof(int));
30 int fd=open(filename, O_WRONLY|O_CREAT|O_APPEND, S_IRWXU);
34 int ___FileInputStream______nativeOpen_____AR_B(struct ArrayObject * ao) {
35 int length=ao->___length___;
36 char* filename= (((char *)& ao->___length___)+sizeof(int));
37 int fd=open(filename, O_RDONLY, 0);
41 void ___FileInputStream______nativeClose____I(int fd) {
45 int ___FileInputStream______nativeRead____I__AR_B_I(int fd, struct ArrayObject * ao, int numBytes) {
46 int toread=ao->___length___;
47 char* string= (((char *)& ao->___length___)+sizeof(int));
53 status=read(fd, string, toread);
57 long long ___File______nativeLength_____AR_B(struct ArrayObject * ao) {
58 int length=ao->___length___;
59 char* filename= (((char *)& ao->___length___)+sizeof(int));