/[classpath]/classpath/native/jni/java-io/java_io_RandomAccessFile.c
ViewVC logotype

Diff of /classpath/native/jni/java-io/java_io_RandomAccessFile.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mark, Tue Jan 22 22:27:02 2002 UTC revision 1.3 by mark, Tue Aug 13 21:15:03 2002 UTC
# Line 53  exception statement from your version. * Line 53  exception statement from your version. *
53    
54  /*  /*
55   * Returns the length of the file being read.   * Returns the length of the file being read.
56     *
57     * Class:     java_io_RandomAccessFile
58     * Method:    lengthInternal
59     * Signature: (I)J
60   */   */
61    
62  JNIEXPORT jlong JNICALL  JNIEXPORT jlong JNICALL
# Line 65  Java_java_io_RandomAccessFile_lengthInte Line 69  Java_java_io_RandomAccessFile_lengthInte
69    
70  /*  /*
71   * Method to skip bytes in a file.   * Method to skip bytes in a file.
72     *
73     * Class:     java_io_RandomAccessFile
74     * Method:    skipInternal
75     * Signature: (II)I
76   */   */
77    
78  JNIEXPORT jint JNICALL  JNIEXPORT jint JNICALL
# Line 77  Java_java_io_RandomAccessFile_skipIntern Line 85  Java_java_io_RandomAccessFile_skipIntern
85  /*************************************************************************/  /*************************************************************************/
86    
87  /*  /*
88   * Opens the file for reading   * Opens the file for reading.
89     *
90     * Class:     java_io_RandomAccessFile
91     * Method:    open
92     * Signature: (Ljava/lang/String;Z)I
93   */   */
94    
95  JNIEXPORT jint JNICALL  JNIEXPORT jint JNICALL
# Line 93  Java_java_io_RandomAccessFile_open(JNIEn Line 105  Java_java_io_RandomAccessFile_open(JNIEn
105  /*************************************************************************/  /*************************************************************************/
106    
107  /*  /*
108   * Closes the file   * Closes the file.
109     *
110     * Class:     java_io_RandomAccessFile
111     * Method:    closeInternal
112     * Signature: (I)V
113   */   */
114    
115  JNIEXPORT void JNICALL  JNIEXPORT void JNICALL
# Line 105  Java_java_io_RandomAccessFile_closeInter Line 121  Java_java_io_RandomAccessFile_closeInter
121  /*************************************************************************/  /*************************************************************************/
122    
123  /*  /*
124   * Reads bytes from the file   * Reads bytes from the file.
125     *
126     * Class:     java_io_RandomAccessFile
127     * Method:    readInternal
128     * Signature: (I[BII)I
129   */   */
130    
131  JNIEXPORT jint JNICALL  JNIEXPORT jint JNICALL
# Line 118  Java_java_io_RandomAccessFile_readIntern Line 138  Java_java_io_RandomAccessFile_readIntern
138  /*************************************************************************/  /*************************************************************************/
139    
140  /*  /*
141   * Write bytes to the file   * Write bytes to the file.
142     *
143     * Class:     java_io_RandomAccessFile
144     * Method:    writeInternal
145     * Signature: (I[BII)V
146   */   */
147    
148  JNIEXPORT void JNICALL  JNIEXPORT void JNICALL
# Line 131  Java_java_io_RandomAccessFile_writeInter Line 155  Java_java_io_RandomAccessFile_writeInter
155  /*************************************************************************/  /*************************************************************************/
156    
157  /*  /*
158   * This method returns the current position in the file   * This method returns the current position in the file.
159     *
160     * Class:     java_io_RandomAccessFile
161     * Method:    getFilePointerInternal
162     * Signature: (I)J
163   */   */
164    
165  JNIEXPORT jlong JNICALL  JNIEXPORT jlong JNICALL
# Line 148  Java_java_io_RandomAccessFile_getFilePoi Line 176  Java_java_io_RandomAccessFile_getFilePoi
176  /*************************************************************************/  /*************************************************************************/
177    
178  /*  /*
179   * This method seeks to the specified position from the beginning of the file   * This method seeks to the specified position from the beginning of the file.
180     *
181     * Class:     java_io_RandomAccessFile
182     * Method:    seekInternal
183     * Signature: (IJ)V
184   */   */
185    
186  JNIEXPORT void JNICALL  JNIEXPORT void JNICALL
# Line 165  Java_java_io_RandomAccessFile_seekIntern Line 197  Java_java_io_RandomAccessFile_seekIntern
197  /*  /*
198   * This method sets the length of the file.  Hmm.  Do all platforms have   * This method sets the length of the file.  Hmm.  Do all platforms have
199   * ftruncate?  Probably not so we migth have to do some non-atomic stuff   * ftruncate?  Probably not so we migth have to do some non-atomic stuff
200   * on those   * on those.
201     *
202     * Class:     java_io_RandomAccessFile
203     * Method:    setLengthInternal
204     * Signature: (IJ)V
205   */   */
206    
207  JNIEXPORT void JNICALL  JNIEXPORT void JNICALL

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26