protected static interface VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixLibrary
extends com.sun.jna.Library
| Modifier and Type | Interface and Description |
|---|---|
static class |
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixLibrary.SemaphoreOperation
A structure to represent a semaphore operation for
semop. |
| Modifier and Type | Field and Description |
|---|---|
static int |
EAGAIN
Indicates that a request timed out.
|
static int |
EDEADLK
Indicates a dead lock on a resource.
|
static int |
ESRCH
Indicates that a process does not exist.
|
static short |
IPC_NOWAIT
Indicates that one should not wait for the release of a semaphore if it is not currently available.
|
static int |
NULL_SIGNAL
A null signal.
|
static short |
SEM_UNDO
Indicates that a semaphore's operations should be undone at process shutdown.
|
| Modifier and Type | Method and Description |
|---|---|
int |
chmod(String path,
int mode)
Runs the
chmod command. |
int |
chown(String path,
long userId)
Runs the
chown command. |
int |
ftok(String path,
int id)
Runs the
ftok command. |
int |
getpid()
Runs the
getpid command. |
int |
getuid()
Runs the
getuid command. |
int |
kill(int processId,
int signal)
Runs the
kill command. |
int |
semget(int key,
int count,
int flags)
Runs the
semget command. |
int |
semop(int id,
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixLibrary.SemaphoreOperation operation,
int flags)
Runs the
semop command. |
static final int NULL_SIGNAL
static final int ESRCH
static final int EAGAIN
static final int EDEADLK
static final short SEM_UNDO
static final short IPC_NOWAIT
int getpid()
throws com.sun.jna.LastErrorException
getpid command.com.sun.jna.LastErrorException - If an error occurred.int getuid()
throws com.sun.jna.LastErrorException
getuid command.com.sun.jna.LastErrorException - If an error occurred.int kill(int processId,
int signal)
throws com.sun.jna.LastErrorException
kill command.processId - The target process id.signal - The signal to send.com.sun.jna.LastErrorException - If an error occurred.int chmod(String path, int mode) throws com.sun.jna.LastErrorException
chmod command.path - The file path.mode - The mode to set.com.sun.jna.LastErrorException - If an error occurred.int chown(String path, long userId) throws com.sun.jna.LastErrorException
chown command.path - The file path.userId - The user id to set.com.sun.jna.LastErrorException - If an error occurred.int ftok(String path, int id) throws com.sun.jna.LastErrorException
ftok command.path - The file path.id - The id being used for creating the generated key.com.sun.jna.LastErrorException - If an error occurred.int semget(int key,
int count,
int flags)
throws com.sun.jna.LastErrorException
semget command.key - The key of the semaphore.count - The initial count of the semaphore.flags - The flags to set.com.sun.jna.LastErrorException - If an error occurred.int semop(int id,
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixLibrary.SemaphoreOperation operation,
int flags)
throws com.sun.jna.LastErrorException
semop command.id - The id of the semaphore.operation - The initial count of the semaphore.flags - The flags to set.com.sun.jna.LastErrorException - If the operation was not successful.Copyright © 2014–2025. All rights reserved.