Showing the changes to java/pkg2/java/io/FileDescriptor_L.b (1 of 18352 files). Show all
Unified · Split
| @@ -0,0 +1,72 @@ | ||
| 1 | +implement FileDescriptor_L; | |
| 2 | + | |
| 3 | +# javal v1.3 generated file: edit with care | |
| 4 | + | |
| 5 | +include "jni.m"; | |
| 6 | + jni : JNI; | |
| 7 | + ClassModule, | |
| 8 | + JString, | |
| 9 | + JArray, | |
| 10 | + JArrayI, | |
| 11 | + JArrayC, | |
| 12 | + JArrayB, | |
| 13 | + JArrayS, | |
| 14 | + JArrayJ, | |
| 15 | + JArrayF, | |
| 16 | + JArrayD, | |
| 17 | + JArrayZ, | |
| 18 | + JArrayJObject, | |
| 19 | + JArrayJClass, | |
| 20 | + JArrayJString, | |
| 21 | + JClass, | |
| 22 | + JThread, | |
| 23 | + JObject : import jni; | |
| 24 | + | |
| 25 | +#>> extra pre includes here | |
| 26 | + sys : import jni; | |
| 27 | + FALSE : import jni; | |
| 28 | + TRUE : import jni; | |
| 29 | +#<< | |
| 30 | + | |
| 31 | +include "FileDescriptor_L.m"; | |
| 32 | + | |
| 33 | +#>> extra post includes here | |
| 34 | +#<< | |
| 35 | + | |
| 36 | +init( jni_p : JNI ) | |
| 37 | +{ | |
| 38 | + # save java native inteface mod instance | |
| 39 | + jni = jni_p; | |
| 40 | + #>>extra initialization here | |
| 41 | + sys = jni->sys; | |
| 42 | + #<< | |
| 43 | +} | |
| 44 | + | |
| 45 | +valid_Z( this : ref FileDescriptor_obj) : int | |
| 46 | +{#>> | |
| 47 | + if (this.fd != nil) | |
| 48 | + return TRUE; | |
| 49 | + else | |
| 50 | + return FALSE; | |
| 51 | +}#<< | |
| 52 | + | |
| 53 | +sync_V( this : ref FileDescriptor_obj) | |
| 54 | +{#>> | |
| 55 | + # this routine has no meaning in the limbo world because there is | |
| 56 | + # nothing to sync or flush. It may have meaning to each underlying | |
| 57 | + # file system (device driver) but at the present there is no devtab | |
| 58 | + # interface to the device driver for sync. As such, this routine is | |
| 59 | + # a noop. | |
| 60 | + jni->ThrowException("java.io.SyncFailedException", "sync not gauranteed"); | |
| 61 | +}#<< | |
| 62 | + | |
| 63 | +initSystemFD_rFileDescriptor_I_rFileDescriptor( p0 : ref FileDescriptor_obj,p1 : int) : ref FileDescriptor_obj | |
| 64 | +{#>> | |
| 65 | + p0.fd = sys->fildes(p1); | |
| 66 | + return (p0); | |
| 67 | +}#<< | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |