| Modifier and Type | Field and Description |
|---|---|
| private static final ValueLayout. | |
| private static final ValueLayout. | |
| private static final ValueLayout. | |
| private static final AddressLayout | |
| private static final ValueLayout | |
| private static final boolean | |
| private static final StructLayout | |
| private static final int | |
| protected long | gid
The current group ID. |
| protected long[] | groups
The current list of groups. |
| private static final Linker | |
| private static final MethodHandle | |
| private static final MethodHandle | |
| private static final MethodHandle | |
| private static final MethodHandle | |
| private static final GroupLayout | |
| private static final SymbolLookup | |
| protected long | uid
The current user ID. |
| protected String | username
The current username. |
| private static final VarHandle | |
| private static final VarHandle | |
| private static final VarHandle | |
| private static final VarHandle |
| Access | Constructor and Description |
|---|---|
| public | UnixSystem()
Instantiate a |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public long[] | Returns: the supplementary groups for the current Unix user.Get the supplementary groups for the current Unix user. |
| public long | |
| public String | Returns: the username for the current Unix user.Get the username for the current Unix user. |
| C_CHAR | back to summary |
|---|---|
| private static final ValueLayout. | |
| C_INT | back to summary |
|---|---|
| private static final ValueLayout. | |
| C_LONG | back to summary |
|---|---|
| private static final ValueLayout. | |
| C_POINTER | back to summary |
|---|---|
| private static final AddressLayout C_POINTER | |
| C_SIZE_T | back to summary |
|---|---|
| private static final ValueLayout C_SIZE_T | |
| calling_convention_requires_int_as_long | back to summary |
|---|---|
| private static final boolean calling_convention_requires_int_as_long | |
| CAPTURE_STATE_LAYOUT | back to summary |
|---|---|
| private static final StructLayout CAPTURE_STATE_LAYOUT | |
| GETPW_R_SIZE_MAX | back to summary |
|---|---|
| private static final int GETPW_R_SIZE_MAX | |
| gid | back to summary |
|---|---|
| protected long gid The current group ID. | |
| groups | back to summary |
|---|---|
| protected long[] groups The current list of groups. | |
| LINKER | back to summary |
|---|---|
| private static final Linker LINKER | |
| MH_getgroups | back to summary |
|---|---|
| private static final MethodHandle MH_getgroups | |
| MH_getpwuid_r | back to summary |
|---|---|
| private static final MethodHandle MH_getpwuid_r | |
| MH_getuid | back to summary |
|---|---|
| private static final MethodHandle MH_getuid | |
| MH_strerror | back to summary |
|---|---|
| private static final MethodHandle MH_strerror | |
| ML_passwd | back to summary |
|---|---|
| private static final GroupLayout ML_passwd | |
| SYMBOL_LOOKUP | back to summary |
|---|---|
| private static final SymbolLookup SYMBOL_LOOKUP | |
| uid | back to summary |
|---|---|
| protected long uid The current user ID. | |
| username | back to summary |
|---|---|
| protected String username The current username. | |
| VH_errno | back to summary |
|---|---|
| private static final VarHandle VH_errno | |
| VH_pw_gid | back to summary |
|---|---|
| private static final VarHandle VH_pw_gid | |
| VH_pw_name | back to summary |
|---|---|
| private static final VarHandle VH_pw_name | |
| VH_pw_uid | back to summary |
|---|---|
| private static final VarHandle VH_pw_uid | |
| UnixSystem | back to summary |
|---|---|
| public UnixSystem() Instantiate a | |
| getGid | back to summary |
|---|---|
| public long getGid() Get the GID for the current Unix user.
| |
| getGroups | back to summary |
|---|---|
| public long[] getGroups() Get the supplementary groups for the current Unix user.
| |
| getUid | back to summary |
|---|---|
| public long getUid() Get the UID for the current Unix user.
| |
| getUsername | back to summary |
|---|---|
| public String getUsername() Get the username for the current Unix user.
| |