jtux
Class USysVIPC

java.lang.Object
  extended by jtux.USysVIPC

public class USysVIPC
extends java.lang.Object


Nested Class Summary
static class USysVIPC.s_ipc_perm
          Java version of C struct ipc_perm.
static class USysVIPC.s_msqid_ds
          Java version of C struct msqid_ds.
static class USysVIPC.s_sembuf
          Java version of C struct sembuf.
static class USysVIPC.s_semid_ds
          Java version of C struct semid_ds.
static class USysVIPC.s_shmid_ds
          Java version of C struct shmid_ds.
static class USysVIPC.u_semun
          Java version of C union semun.
static class USysVIPC.u_semun_array
           
static class USysVIPC.u_semun_int
           
static class USysVIPC.u_semun_struct
           
 
Constructor Summary
USysVIPC()
           
 
Method Summary
static long ftok(java.lang.String path, int id)
          Calls ftok.
static int msg_set_type(long msgtype, byte[] msgp)
          Set message type.
static void msgctl(int msqid, int cmd, USysVIPC.s_msqid_ds data)
          Calls msgctl.
static int msgget(long key, int flags)
          Calls msgget.
static int msgrcv(int msqid, byte[] msgp, int mtextsize, long msgtype, int flags)
          Calls msgrcv.
static void msgsnd(int msqid, byte[] msgp, int msgsize, int flags)
          Calls msgsnd.
static int semctl(int semid, int semnum, int cmd, USysVIPC.u_semun arg)
          Calls semctl.
static int semget(long key, int nsems, int flags)
          Calls semget.
static void semop(int semid, USysVIPC.s_sembuf[] sops, int nsops)
          Calls semop.
static long shmat(int shmid, long shmaddr, int flags)
          Calls shmat.
static void shmctl(int shmid, int cmd, USysVIPC.s_shmid_ds data)
          Calls shmctl.
static void shmdt(long shmaddr)
          Calls shmdt.
static int shmget(long key, int size, int flags)
          Calls shmget.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

USysVIPC

public USysVIPC()
Method Detail

ftok

public static long ftok(java.lang.String path,
                        int id)
                 throws UErrorException
Calls ftok.

Click here for Posix/SUS C API.

Throws:
UErrorException

msg_set_type

public static int msg_set_type(long msgtype,
                               byte[] msgp)
                        throws UErrorException
Set message type.

Convenience function (non-standard) to set the first few bytes of a message to the message type. Number of bytes used for the type (typically 4) is retunred. Data should start at the next byte.

Throws:
UErrorException

msgctl

public static void msgctl(int msqid,
                          int cmd,
                          USysVIPC.s_msqid_ds data)
                   throws UErrorException
Calls msgctl.

Click here for Posix/SUS C API.

Throws:
UErrorException

msgget

public static int msgget(long key,
                         int flags)
                  throws UErrorException
Calls msgget.

Click here for Posix/SUS C API.

Throws:
UErrorException

msgrcv

public static int msgrcv(int msqid,
                         byte[] msgp,
                         int mtextsize,
                         long msgtype,
                         int flags)
                  throws UErrorException
Calls msgrcv.

Click here for Posix/SUS C API.

Throws:
UErrorException

msgsnd

public static void msgsnd(int msqid,
                          byte[] msgp,
                          int msgsize,
                          int flags)
                   throws UErrorException
Calls msgsnd.

Click here for Posix/SUS C API.

Throws:
UErrorException

semctl

public static int semctl(int semid,
                         int semnum,
                         int cmd,
                         USysVIPC.u_semun arg)
                  throws UErrorException
Calls semctl.

Click here for Posix/SUS C API.

Throws:
UErrorException

semget

public static int semget(long key,
                         int nsems,
                         int flags)
                  throws UErrorException
Calls semget.

Click here for Posix/SUS C API.

Throws:
UErrorException

semop

public static void semop(int semid,
                         USysVIPC.s_sembuf[] sops,
                         int nsops)
                  throws UErrorException
Calls semop.

Click here for Posix/SUS C API.

Throws:
UErrorException

shmat

public static long shmat(int shmid,
                         long shmaddr,
                         int flags)
                  throws UErrorException
Calls shmat.

Click here for Posix/SUS C API.

Throws:
UErrorException

shmctl

public static void shmctl(int shmid,
                          int cmd,
                          USysVIPC.s_shmid_ds data)
                   throws UErrorException
Calls shmctl.

Click here for Posix/SUS C API.

Throws:
UErrorException

shmdt

public static void shmdt(long shmaddr)
                  throws UErrorException
Calls shmdt.

Click here for Posix/SUS C API.

Throws:
UErrorException

shmget

public static int shmget(long key,
                         int size,
                         int flags)
                  throws UErrorException
Calls shmget.

Click here for Posix/SUS C API.

Throws:
UErrorException