jtux
Class UPosixIPC

java.lang.Object
  extended by jtux.UPosixIPC

public class UPosixIPC
extends java.lang.Object


Nested Class Summary
static class UPosixIPC.s_mq_attr
          Java version of C struct mq_attr.
 
Constructor Summary
UPosixIPC()
           
 
Method Summary
static long mmap(long addr, int len, int prot, int flags, int fd, long off)
          Calls mmap.
static void mq_close(long mqd)
          Calls mq_close.
static void mq_getattr(long mqd, UPosixIPC.s_mq_attr attr)
          Calls mq_getattr.
static void mq_notify(long mqd, UProcess.s_sigevent ep)
          Calls mq_notify.
static long mq_open(java.lang.String name, int flags)
          Calls mq_open.
static long mq_open(java.lang.String name, int flags, int perms, UPosixIPC.s_mq_attr attr)
          Calls mq_open.
static int mq_receive(long mqd, byte[] msg, int msgsize, UUtil.IntHolder priority)
          Calls mq_receive.
static void mq_send(long mqd, byte[] msg, int msgsize, int priority)
          Calls mq_send.
static void mq_setattr(long mqd, UPosixIPC.s_mq_attr attr, UPosixIPC.s_mq_attr oattr)
          Calls mq_setattr.
static int mq_timedreceive(long mqd, byte[] msg, int msgsize, UUtil.IntHolder priority, UProcess.s_timespec tmout)
          Calls mq_timedreceive.
static void mq_timedsend(long mqd, byte[] msg, int msgsize, int priority, UProcess.s_timespec tmout)
          Calls mq_timedsend.
static void mq_unlink(java.lang.String name)
          Calls mq_unlink.
static void munmap(long addr, int len)
          Calls munmap.
static void sem_close(long sem)
          Calls sem_close.
static void sem_destroy(long sem)
          Calls sem_destroy.
static void sem_getvalue(long sem, UUtil.IntHolder valuep)
          Calls sem_getvalue.
static void sem_init(long sem, int pshared, int value)
          Calls sem_init.
static long sem_open(java.lang.String name, int flags)
          Calls sem_open.
static long sem_open(java.lang.String name, int flags, int perms, int value)
          Calls sem_open.
static void sem_post(long sem)
          Calls sem_post.
static void sem_timedwait(long sem, UProcess.s_timespec time)
          Calls sem_timedwait.
static void sem_trywait(long sem)
          Calls sem_trywait.
static void sem_unlink(java.lang.String name)
          Calls sem_unlink.
static void sem_wait(long sem)
          Calls sem_wait.
static int shm_open(java.lang.String name, int flags, int perms)
          Calls shm_open.
static void shm_unlink(java.lang.String name)
          Calls shm_unlink.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UPosixIPC

public UPosixIPC()
Method Detail

mmap

public static long mmap(long addr,
                        int len,
                        int prot,
                        int flags,
                        int fd,
                        long off)
                 throws UErrorException
Calls mmap.

Click here for Posix/SUS C API.

Throws:
UErrorException

mq_close

public static void mq_close(long mqd)
                     throws UErrorException
Calls mq_close.

Click here for Posix/SUS C API.

Throws:
UErrorException

mq_getattr

public static void mq_getattr(long mqd,
                              UPosixIPC.s_mq_attr attr)
                       throws UErrorException
Calls mq_getattr.

Click here for Posix/SUS C API.

Throws:
UErrorException

mq_notify

public static void mq_notify(long mqd,
                             UProcess.s_sigevent ep)
                      throws UErrorException
Calls mq_notify.

SIGEV_THREAD not supported. Almost works for SIGEV_SIGNAL, but JNI code for signal handler is unable to find some classes it needs (on Solaris and Java 1.3, anyway). Calls mq_notify.

Click here for Posix/SUS C API.

Throws:
UErrorException

mq_open

public static long mq_open(java.lang.String name,
                           int flags)
                    throws UErrorException
Calls mq_open.

Click here for Posix/SUS C API.

Throws:
UErrorException

mq_open

public static long mq_open(java.lang.String name,
                           int flags,
                           int perms,
                           UPosixIPC.s_mq_attr attr)
                    throws UErrorException
Calls mq_open.

Click here for Posix/SUS C API.

Throws:
UErrorException

mq_receive

public static int mq_receive(long mqd,
                             byte[] msg,
                             int msgsize,
                             UUtil.IntHolder priority)
                      throws UErrorException
Calls mq_receive.

Click here for Posix/SUS C API.

Throws:
UErrorException

mq_send

public static void mq_send(long mqd,
                           byte[] msg,
                           int msgsize,
                           int priority)
                    throws UErrorException
Calls mq_send.

Click here for Posix/SUS C API.

Throws:
UErrorException

mq_setattr

public static void mq_setattr(long mqd,
                              UPosixIPC.s_mq_attr attr,
                              UPosixIPC.s_mq_attr oattr)
                       throws UErrorException
Calls mq_setattr.

Click here for Posix/SUS C API.

Throws:
UErrorException

mq_timedreceive

public static int mq_timedreceive(long mqd,
                                  byte[] msg,
                                  int msgsize,
                                  UUtil.IntHolder priority,
                                  UProcess.s_timespec tmout)
                           throws UErrorException
Calls mq_timedreceive.

Click here for Posix/SUS C API.

Throws:
UErrorException

mq_timedsend

public static void mq_timedsend(long mqd,
                                byte[] msg,
                                int msgsize,
                                int priority,
                                UProcess.s_timespec tmout)
                         throws UErrorException
Calls mq_timedsend.

Click here for Posix/SUS C API.

Throws:
UErrorException

mq_unlink

public static void mq_unlink(java.lang.String name)
                      throws UErrorException
Calls mq_unlink.

Click here for Posix/SUS C API.

Throws:
UErrorException

munmap

public static void munmap(long addr,
                          int len)
                   throws UErrorException
Calls munmap.

Click here for Posix/SUS C API.

Throws:
UErrorException

sem_close

public static void sem_close(long sem)
                      throws UErrorException
Calls sem_close.

Click here for Posix/SUS C API.

Throws:
UErrorException

sem_destroy

public static void sem_destroy(long sem)
                        throws UErrorException
Calls sem_destroy.

Click here for Posix/SUS C API.

Throws:
UErrorException

sem_getvalue

public static void sem_getvalue(long sem,
                                UUtil.IntHolder valuep)
                         throws UErrorException
Calls sem_getvalue.

Click here for Posix/SUS C API.

Throws:
UErrorException

sem_init

public static void sem_init(long sem,
                            int pshared,
                            int value)
                     throws UErrorException
Calls sem_init.

Click here for Posix/SUS C API.

Throws:
UErrorException

sem_open

public static long sem_open(java.lang.String name,
                            int flags)
                     throws UErrorException
Calls sem_open.

Click here for Posix/SUS C API.

Throws:
UErrorException

sem_open

public static long sem_open(java.lang.String name,
                            int flags,
                            int perms,
                            int value)
                     throws UErrorException
Calls sem_open.

Click here for Posix/SUS C API.

Throws:
UErrorException

sem_post

public static void sem_post(long sem)
                     throws UErrorException
Calls sem_post.

Click here for Posix/SUS C API.

Throws:
UErrorException

sem_timedwait

public static void sem_timedwait(long sem,
                                 UProcess.s_timespec time)
                          throws UErrorException
Calls sem_timedwait.

Click here for Posix/SUS C API.

Throws:
UErrorException

sem_trywait

public static void sem_trywait(long sem)
                        throws UErrorException
Calls sem_trywait.

Click here for Posix/SUS C API.

Throws:
UErrorException

sem_unlink

public static void sem_unlink(java.lang.String name)
                       throws UErrorException
Calls sem_unlink.

Click here for Posix/SUS C API.

Throws:
UErrorException

sem_wait

public static void sem_wait(long sem)
                     throws UErrorException
Calls sem_wait.

Click here for Posix/SUS C API.

Throws:
UErrorException

shm_open

public static int shm_open(java.lang.String name,
                           int flags,
                           int perms)
                    throws UErrorException
Calls shm_open.

Click here for Posix/SUS C API.

Throws:
UErrorException

shm_unlink

public static void shm_unlink(java.lang.String name)
                       throws UErrorException
Calls shm_unlink.

Click here for Posix/SUS C API.

Throws:
UErrorException