|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.squawk.platform.posix.natives.LibCImpl
public abstract class LibCImpl
Nested Class Summary | |
---|---|
static class |
LibCImpl.statImpl
|
Nested classes/interfaces inherited from interface com.sun.squawk.platform.posix.natives.LibC |
---|
LibC.stat |
Field Summary | |
---|---|
protected Function |
closePtr
|
protected Function |
fcntlPtr
|
protected Function |
fstatPtr
|
protected Function |
fsyncPtr
|
protected Function |
lseekPtr
|
protected Function |
openPtr
|
protected Function |
readPtr
|
protected Function |
statPtr
|
protected Function |
unlinkPtr
|
protected Function |
writePtr
|
Constructor Summary | |
---|---|
LibCImpl()
|
Method Summary | |
---|---|
int |
close(int arg0)
delete a descriptor |
int |
fcntl(int arg0,
int arg1,
int arg2)
provides for control over descriptors. |
int |
fstat(int arg0,
LibC.stat arg1)
Get information on the open file with file descriptor "fd". |
int |
fsync(int arg0)
Flush output on a descriptor |
int |
lseek(int arg0,
long arg1,
int arg2)
reposition read/write file offset |
int |
open(String arg0,
int arg1,
int arg2)
open or create a file for reading or writing |
int |
read(int arg0,
byte[] arg1,
int arg2)
read input |
String |
realName(String nominalName)
Allow platforms to substitute different names. |
int |
stat(String arg0,
LibC.stat arg1)
Get information on the named "name". |
int |
unlink(String arg0)
Remove the directory entry for name (may delete the file) |
int |
write(int arg0,
byte[] arg1,
int arg2)
write output |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sun.cldc.jna.Library |
---|
initConstInt |
Field Detail |
---|
protected final Function openPtr
protected final Function statPtr
protected final Function fcntlPtr
protected final Function writePtr
protected final Function closePtr
protected final Function readPtr
protected final Function fstatPtr
protected final Function fsyncPtr
protected final Function lseekPtr
protected final Function unlinkPtr
Constructor Detail |
---|
public LibCImpl()
Method Detail |
---|
public int open(String arg0, int arg1, int arg2)
LibC
open
in interface LibC
arg0
- Stringarg1
- std libc open flagsarg2
- the mode for any created file
public int stat(String arg0, LibC.stat arg1)
LibC
stat
in interface LibC
arg0
- Stringarg1
- Stat structure that will be filled with the current values
public int fcntl(int arg0, int arg1, int arg2)
LibC
fcntl
in interface LibC
arg0
- a descriptor to be operated on by cmdarg1
- one of the cmd constants
public int write(int arg0, byte[] arg1, int arg2)
LibC
write
in interface LibC
arg0
- file descriptorarg1
- data buffer to writearg2
- number of bytes to read
public int close(int arg0)
LibC
close
in interface LibC
arg0
- a descriptor to be operated on by cmd
public int read(int arg0, byte[] arg1, int arg2)
LibC
read
in interface LibC
arg0
- file descriptorarg1
- data buffer to read intoarg2
- number of bytes to read
public int fstat(int arg0, LibC.stat arg1)
LibC
fstat
in interface LibC
arg0
- file descriptorarg1
- Stat structure that will be filled with the current values
public int fsync(int arg0)
LibC
fsync
in interface LibC
arg0
- a descriptor to be flushed
public int lseek(int arg0, long arg1, int arg2)
LibC
lseek
in interface LibC
arg0
- file descriptorarg1
- the offset to seek toarg2
- the kind of offset (SEEK_SET, SEEK_CUR, or SEEK_END)
public int unlink(String arg0)
LibC
unlink
in interface LibC
arg0
- String
public String realName(String nominalName)
nominalName
-
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |