public interface CLibrary
extends com.sun.jna.Library
Modifier and Type | Interface and Description |
---|---|
static class |
CLibrary.group |
static class |
CLibrary.Instance |
static class |
CLibrary.passwd
Comparing http://linux.die.net/man/3/getpwnam
and my Mac OS X reveals that the structure of this field isn't very portable.
|
Modifier and Type | Method and Description |
---|---|
int |
_getgroupsbymember(String user,
com.sun.jna.Memory groups,
int maxgids,
int numgids)
getgrouplist equivalent on Solaris.
|
com.sun.jna.Pointer |
calloc(int count,
int size) |
CLibrary.group |
getgrgid(int gid) |
CLibrary.group |
getgrnam(String name) |
int |
getgrouplist(String user,
int group,
com.sun.jna.Memory groups,
com.sun.jna.ptr.IntByReference ngroups)
Lists up group IDs of the given user.
|
int |
getpwnam_r(String username,
com.sun.jna.Pointer pwdStruct,
com.sun.jna.Pointer buf,
int bufSize,
com.sun.jna.ptr.PointerByReference result) |
CLibrary.passwd |
getpwnam(String username) |
com.sun.jna.Pointer |
strdup(String s) |
static final CLibrary libc
com.sun.jna.Pointer calloc(int count, int size)
com.sun.jna.Pointer strdup(String s)
CLibrary.passwd getpwnam(String username)
int getpwnam_r(String username, com.sun.jna.Pointer pwdStruct, com.sun.jna.Pointer buf, int bufSize, com.sun.jna.ptr.PointerByReference result)
int getgrouplist(String user, int group, com.sun.jna.Memory groups, com.sun.jna.ptr.IntByReference ngroups)
int _getgroupsbymember(String user, com.sun.jna.Memory groups, int maxgids, int numgids)
CLibrary.group getgrgid(int gid)
CLibrary.group getgrnam(String name)
Copyright © 2018. All rights reserved.