protected static interface VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixLibrary extends Library
| Modifier and Type | Interface and Description |
|---|---|
static class |
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixLibrary.SemaphoreOperation
A structure to represent a semaphore operation for
semop. |
Library.Handler| 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.
|
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER| Modifier and Type | Method and Description |
|---|---|
int |
chmod(String path,
int mode)
Runs the
chmod 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 LastErrorException
getpid command.LastErrorException - If an error occurred.int getuid()
throws LastErrorException
getuid command.LastErrorException - If an error occurred.int kill(int processId,
int signal)
throws LastErrorException
kill command.processId - The target process id.signal - The signal to send.LastErrorException - If an error occurred.int chmod(String path, int mode) throws LastErrorException
chmod command.path - The file path.mode - The mode to set.LastErrorException - If an error occurred.int ftok(String path, int id) throws LastErrorException
ftok command.path - The file path.id - The id being used for creating the generated key.LastErrorException - If an error occurred.int semget(int key,
int count,
int flags)
throws LastErrorException
semget command.key - The key of the semaphore.count - The initial count of the semaphore.flags - The flags to set.LastErrorException - If an error occurred.int semop(int id,
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixLibrary.SemaphoreOperation operation,
int flags)
throws LastErrorException
semop command.id - The id of the semaphore.operation - The initial count of the semaphore.flags - The flags to set.LastErrorException - If the operation was not successful.Copyright © 2014–2022. All rights reserved.