jtux
Class UFile

java.lang.Object
  |
  +--jtux.UFile

public class UFile
extends java.lang.Object


Nested Class Summary
static class UFile.fd_set
          Java version of fd_set.
static class UFile.s_iovec
          Java version of C struct iovec.
static class UFile.s_pollfd
          Java version of C struct pollfd.
static class UFile.s_stat
          Java version of C struct stat.
static class UFile.s_statvfs
          Java version of C struct statvfs.
static class UFile.s_utimbuf
          Java version of C struct utimbuf.
 
Constructor Summary
UFile()
           
 
Method Summary
static void access(java.lang.String path, int what)
          Calls access.
static void chmod(java.lang.String path, int mode)
          Calls chmod.
static void chown(java.lang.String path, long uid, long gid)
          Calls chown.
static void close(int fd)
          Calls close.
static int creat(java.lang.String path, int perms)
          Does the equivalent of creat, by calling open.
static int dup(int fd)
          Calls dup.
static int dup2(int fd, int fd2)
          Calls dup2.
static void fchmod(int fd, int mode)
          Calls fchmod.
static void fchown(int fd, long uid, long gid)
          Calls fchown.
static int fcntl(int fd, int op, int arg)
          Calls fcntl.
static void FD_CLR(int fd, UFile.fd_set set)
          Calls FD_CLR.
static boolean FD_ISSET(int fd, UFile.fd_set set)
          Calls FD_ISSET.
static void FD_SET(int fd, UFile.fd_set set)
          Calls FD_SET.
static void FD_ZERO(UFile.fd_set set)
          Calls FD_ZERO.
static void fdatasync(int fd)
          Calls fdatasync.
static void fstat(int fd, UFile.s_stat buf)
          Calls fstat.
static void fstatvfs(int fd, UFile.s_statvfs buf)
          Calls fstatvfs.
static void fsync(int fd)
          Calls fsync.
static void ftruncate(int fd, long length)
          Calls ftruncate.
static void lchown(java.lang.String path, long uid, long gid)
          Calls lchown.
static void link(java.lang.String oldpath, java.lang.String newpath)
          Calls link.
static void lockf(int fd, int op, long len)
          Calls lockf.
static long lseek(int fd, long pos, int whence)
          Calls lseek.
static void lstat(java.lang.String path, UFile.s_stat buf)
          Calls lstat.
static void mkfifo(java.lang.String path, int perms)
          Calls mkfifo.
static void mknod(java.lang.String path, int mode, int dev)
          Calls mknod.
static int mkstemp(java.lang.StringBuffer template)
          Calls mkstemp.
static int open(java.lang.String path, int flags)
          Calls open.
static int open(java.lang.String path, int flags, int perms)
          Calls open.
static void pipe(int[] pfd)
          Calls pipe.
static int poll(UFile.s_pollfd[] fdinfo, int nfds, int timeout)
          Calls poll.
static int pread(int fd, byte[] buf, int nbytes, long offset)
          Calls pread.
static int pselect(int nfds, UFile.fd_set readset, UFile.fd_set writeset, UFile.fd_set errorset, UProcess.s_timespec timeout, UProcess.sigset_t sigmask)
          Calls pselect.
static int pwrite(int fd, byte[] buf, int nbytes, long position)
          Calls pwrite.
static int read(int fd, byte[] buf, int nbytes)
          Calls read.
static int readlink(java.lang.String path, byte[] buf, int bufsize)
          Calls readlink.
static int readv(int fd, UFile.s_iovec[] iov, int iovcnt)
          Calls readv.
static void rename(java.lang.String oldpath, java.lang.String newpath)
          Calls rename.
static boolean S_ISBLK(int mode)
          Calls S_ISBLK.
static boolean S_ISCHR(int mode)
          Calls S_ISCHR.
static boolean S_ISDIR(int mode)
          Calls S_ISDIR.
static boolean S_ISFIFO(int mode)
          Calls S_ISFIFO.
static boolean S_ISLNK(int mode)
          Calls S_ISLNK.
static boolean S_ISREG(int mode)
          Calls S_ISREG.
static boolean S_ISSOCK(int mode)
          Calls S_ISSOCK.
static int select(int nfds, UFile.fd_set readset, UFile.fd_set writeset, UFile.fd_set errorset, UProcess.s_timeval timeout)
          Calls select.
static void stat(java.lang.String path, UFile.s_stat buf)
          Calls stat.
static void statvfs(java.lang.String path, UFile.s_statvfs buf)
          Calls statvfs.
static void symlink(java.lang.String oldpath, java.lang.String newpath)
          Calls symlink.
static void sync()
          Calls sync.
static void truncate(java.lang.String path, long length)
          Calls truncate.
static void unlink(java.lang.String path)
          Calls unlink.
static void utime(java.lang.String path, UFile.s_utimbuf timbuf)
          Calls utime.
static int write(int fd, byte[] buf, int nbytes)
          Calls write.
static int writev(int fd, UFile.s_iovec[] iov, int iovcnt)
          Calls writev.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UFile

public UFile()
Method Detail

access

public static void access(java.lang.String path,
                          int what)
                   throws UErrorException
Calls access.

Click here for Posix/SUS C API.

UErrorException

chmod

public static void chmod(java.lang.String path,
                         int mode)
                  throws UErrorException
Calls chmod.

Click here for Posix/SUS C API.

UErrorException

chown

public static void chown(java.lang.String path,
                         long uid,
                         long gid)
                  throws UErrorException
Calls chown.

Click here for Posix/SUS C API.

UErrorException

close

public static void close(int fd)
                  throws UErrorException
Calls close.

Click here for Posix/SUS C API.

UErrorException

creat

public static int creat(java.lang.String path,
                        int perms)
                 throws UErrorException
Does the equivalent of creat, by calling open.

Click here for Posix/SUS C API.

UErrorException

dup

public static int dup(int fd)
               throws UErrorException
Calls dup.

Click here for Posix/SUS C API.

UErrorException

dup2

public static int dup2(int fd,
                       int fd2)
                throws UErrorException
Calls dup2.

Click here for Posix/SUS C API.

UErrorException

fchmod

public static void fchmod(int fd,
                          int mode)
                   throws UErrorException
Calls fchmod.

Click here for Posix/SUS C API.

UErrorException

fchown

public static void fchown(int fd,
                          long uid,
                          long gid)
                   throws UErrorException
Calls fchown.

Click here for Posix/SUS C API.

UErrorException

fcntl

public static int fcntl(int fd,
                        int op,
                        int arg)
                 throws UErrorException
Calls fcntl.

Click here for Posix/SUS C API.

UErrorException

FD_ZERO

public static void FD_ZERO(UFile.fd_set set)
Calls FD_ZERO.

Click here for Posix/SUS C API.


FD_SET

public static void FD_SET(int fd,
                          UFile.fd_set set)
Calls FD_SET.

Click here for Posix/SUS C API.


FD_CLR

public static void FD_CLR(int fd,
                          UFile.fd_set set)
Calls FD_CLR.

Click here for Posix/SUS C API.


FD_ISSET

public static boolean FD_ISSET(int fd,
                               UFile.fd_set set)
Calls FD_ISSET.

Click here for Posix/SUS C API.


fdatasync

public static void fdatasync(int fd)
                      throws UErrorException
Calls fdatasync.

Click here for Posix/SUS C API.

UErrorException

fstat

public static void fstat(int fd,
                         UFile.s_stat buf)
                  throws UErrorException
Calls fstat.

Click here for Posix/SUS C API.

UErrorException

fstatvfs

public static void fstatvfs(int fd,
                            UFile.s_statvfs buf)
                     throws UErrorException
Calls fstatvfs.

Click here for Posix/SUS C API.

UErrorException

fsync

public static void fsync(int fd)
                  throws UErrorException
Calls fsync.

Click here for Posix/SUS C API.

UErrorException

ftruncate

public static void ftruncate(int fd,
                             long length)
                      throws UErrorException
Calls ftruncate.

Click here for Posix/SUS C API.

UErrorException

lchown

public static void lchown(java.lang.String path,
                          long uid,
                          long gid)
                   throws UErrorException
Calls lchown.

Click here for Posix/SUS C API.

UErrorException

link

public static void link(java.lang.String oldpath,
                        java.lang.String newpath)
                 throws UErrorException
Calls link.

Click here for Posix/SUS C API.

UErrorException

lockf

public static void lockf(int fd,
                         int op,
                         long len)
                  throws UErrorException
Calls lockf.

Click here for Posix/SUS C API.

UErrorException

lseek

public static long lseek(int fd,
                         long pos,
                         int whence)
                  throws UErrorException
Calls lseek.

Click here for Posix/SUS C API.

UErrorException

lstat

public static void lstat(java.lang.String path,
                         UFile.s_stat buf)
                  throws UErrorException
Calls lstat.

Click here for Posix/SUS C API.

UErrorException

mkfifo

public static void mkfifo(java.lang.String path,
                          int perms)
                   throws UErrorException
Calls mkfifo.

Click here for Posix/SUS C API.

UErrorException

mknod

public static void mknod(java.lang.String path,
                         int mode,
                         int dev)
                  throws UErrorException
Calls mknod.

Click here for Posix/SUS C API.

UErrorException

mkstemp

public static int mkstemp(java.lang.StringBuffer template)
                   throws UErrorException
Calls mkstemp.

Click here for Posix/SUS C API.

UErrorException

open

public static int open(java.lang.String path,
                       int flags,
                       int perms)
                throws UErrorException
Calls open.

Click here for Posix/SUS C API.

UErrorException

open

public static int open(java.lang.String path,
                       int flags)
                throws UErrorException
Calls open.

Click here for Posix/SUS C API.

UErrorException

pipe

public static void pipe(int[] pfd)
                 throws UErrorException
Calls pipe.

Click here for Posix/SUS C API.

UErrorException

poll

public static int poll(UFile.s_pollfd[] fdinfo,
                       int nfds,
                       int timeout)
Calls poll.

Click here for Posix/SUS C API.


pread

public static int pread(int fd,
                        byte[] buf,
                        int nbytes,
                        long offset)
                 throws UErrorException
Calls pread.

Click here for Posix/SUS C API.

UErrorException

pselect

public static int pselect(int nfds,
                          UFile.fd_set readset,
                          UFile.fd_set writeset,
                          UFile.fd_set errorset,
                          UProcess.s_timespec timeout,
                          UProcess.sigset_t sigmask)
                   throws UErrorException
Calls pselect.

Click here for Posix/SUS C API.

UErrorException

pwrite

public static int pwrite(int fd,
                         byte[] buf,
                         int nbytes,
                         long position)
                  throws UErrorException
Calls pwrite.

Click here for Posix/SUS C API.

UErrorException

read

public static int read(int fd,
                       byte[] buf,
                       int nbytes)
                throws UErrorException
Calls read.

Click here for Posix/SUS C API.

UErrorException

readlink

public static int readlink(java.lang.String path,
                           byte[] buf,
                           int bufsize)
                    throws UErrorException
Calls readlink.

Click here for Posix/SUS C API.

UErrorException

readv

public static int readv(int fd,
                        UFile.s_iovec[] iov,
                        int iovcnt)
                 throws UErrorException
Calls readv.

Click here for Posix/SUS C API.

UErrorException

rename

public static void rename(java.lang.String oldpath,
                          java.lang.String newpath)
                   throws UErrorException
Calls rename.

Click here for Posix/SUS C API.

UErrorException

S_ISBLK

public static boolean S_ISBLK(int mode)
Calls S_ISBLK.


S_ISCHR

public static boolean S_ISCHR(int mode)
Calls S_ISCHR.


S_ISDIR

public static boolean S_ISDIR(int mode)
Calls S_ISDIR.


S_ISFIFO

public static boolean S_ISFIFO(int mode)
Calls S_ISFIFO.


S_ISLNK

public static boolean S_ISLNK(int mode)
Calls S_ISLNK.


S_ISREG

public static boolean S_ISREG(int mode)
Calls S_ISREG.


S_ISSOCK

public static boolean S_ISSOCK(int mode)
Calls S_ISSOCK.


select

public static int select(int nfds,
                         UFile.fd_set readset,
                         UFile.fd_set writeset,
                         UFile.fd_set errorset,
                         UProcess.s_timeval timeout)
                  throws UErrorException
Calls select.

Click here for Posix/SUS C API.

UErrorException

stat

public static void stat(java.lang.String path,
                        UFile.s_stat buf)
                 throws UErrorException
Calls stat.

Click here for Posix/SUS C API.

UErrorException

statvfs

public static void statvfs(java.lang.String path,
                           UFile.s_statvfs buf)
                    throws UErrorException
Calls statvfs.

Click here for Posix/SUS C API.

UErrorException

symlink

public static void symlink(java.lang.String oldpath,
                           java.lang.String newpath)
                    throws UErrorException
Calls symlink.

Click here for Posix/SUS C API.

UErrorException

sync

public static void sync()
Calls sync.

Click here for Posix/SUS C API.


truncate

public static void truncate(java.lang.String path,
                            long length)
                     throws UErrorException
Calls truncate.

Click here for Posix/SUS C API.

UErrorException

unlink

public static void unlink(java.lang.String path)
                   throws UErrorException
Calls unlink.

Click here for Posix/SUS C API.

UErrorException

utime

public static void utime(java.lang.String path,
                         UFile.s_utimbuf timbuf)
                  throws UErrorException
Calls utime.

Click here for Posix/SUS C API.

UErrorException

write

public static int write(int fd,
                        byte[] buf,
                        int nbytes)
                 throws UErrorException
Calls write.

Click here for Posix/SUS C API.

UErrorException

writev

public static int writev(int fd,
                         UFile.s_iovec[] iov,
                         int iovcnt)
                  throws UErrorException
Calls writev.

Click here for Posix/SUS C API.

UErrorException