-
Notifications
You must be signed in to change notification settings - Fork 3
/
UDir.java
executable file
·72 lines (69 loc) · 2.3 KB
/
UDir.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package jtux;
/**
Class for directory system calls.
*/
public class UDir {
static {
System.loadLibrary("jtux");
}
/**
Java version of C struct dirent.
<p>
<font size="-1"><b><i>Click {@link <a href="doc-files/synopses.html#struct_dirent">here</a>} for Posix/SUS C API.</i></b></font>
*/
public static class s_dirent {
/** i-number */
public int d_ino;
/** name */
public String d_name;
}
/**
Calls closedir.
<p>
<font size="-1"><b><i>Click {@link <a href="doc-files/synopses.html#closedir">here</a>} for Posix/SUS C API.</i></b></font>
*/
public native static void closedir(long dirp) throws UErrorException;
/**
Calls mkdir.
<p>
<font size="-1"><b><i>Click {@link <a href="doc-files/synopses.html#mkdir">here</a>} for Posix/SUS C API.</i></b></font>
*/
public native static void mkdir(String path, int mode) throws UErrorException;
/**
Calls opendir.
<p>
<font size="-1"><b><i>Click {@link <a href="doc-files/synopses.html#opendir">here</a>} for Posix/SUS C API.</i></b></font>
*/
public native static long opendir(String path) throws UErrorException;
/**
Calls readdir_r. Uses passes buffer in to C function and creates a new object to be
returned on each call.
<p>
<font size="-1"><b><i>Click {@link <a href="doc-files/synopses.html#readdir">here</a>} for Posix/SUS C API.</i></b></font>
*/
public native static s_dirent readdir(long dirp) throws UErrorException;
/**
Calls rewinddir.
<p>
<font size="-1"><b><i>Click {@link <a href="doc-files/synopses.html#rewinddir">here</a>} for Posix/SUS C API.</i></b></font>
*/
public native static void rewinddir(long dirp) throws UErrorException;
/**
Calls rmdir.
<p>
<font size="-1"><b><i>Click {@link <a href="doc-files/synopses.html#rmdir">here</a>} for Posix/SUS C API.</i></b></font>
*/
public native static void rmdir(String path) throws UErrorException;
/**
Calls seekdir.
<p>
<font size="-1"><b><i>Click {@link <a href="doc-files/synopses.html#seekdir">here</a>} for Posix/SUS C API.</i></b></font>
*/
public native static void seekdir(long dirp, long loc) throws UErrorException;
/**
Calls telldir.
<p>
<font size="-1"><b><i>Click {@link <a href="doc-files/synopses.html#telldir">here</a>} for Posix/SUS C API.</i></b></font>
*/
public native static long telldir(long dirp) throws UErrorException;
}