Top Methods
jnr.posix

public Interface UnixLibC

extends LibC
Known Direct Subinterfaces
jnr.posix.AixLibC, jnr.posix.LinuxLibC, jnr.posix.SolarisLibC
Imports
jnr.ffi.Pointer, jnr.ffi.annotations.Direct, .In, .Out, jnr.ffi.byref.ByReference, .IntByReference, .NumberByReference, .ShortByReference, jnr.ffi.types.pid_t, java.nio.ByteBuffer

Method Summary

Modifier and TypeMethod and Description
public int
mkfifo(CharSequence filename, int mode)

public int
posix_spawn(ByReference<T> pid, CharSequence path, Pointer fileActions, Pointer attr, CharSequence[] argv, CharSequence[] envp)

public int
posix_spawn_file_actions_addclose(Pointer fileActions, int filedes)

public int
posix_spawn_file_actions_adddup2(Pointer fileActions, int filedes, int newfiledes)

public int
posix_spawn_file_actions_addopen(Pointer fileActions, int filedes, CharSequence path, int oflag, int mode)

Deprecated due to CVE-2014-4043 (https://bugzilla.redhat.com/show_bug.cgi?id=1983750)
public int
posix_spawn_file_actions_addopen(Pointer fileActions, int filedes, ByteBuffer path, int oflag, int mode)

public int
public int
public int
public int
public int
public int
public int
public int
public int
posix_spawnattr_setflags(Pointer attr, short flags)

public int
public int
public int
public int
posix_spawnp(ByReference<T> pid, CharSequence path, Pointer fileActions, Pointer attr, CharSequence[] argv, CharSequence[] envp)

public int
sigprocmask(int how, Pointer set, Pointer get)

Inherited from jnr.posix.LibC:
accesschdirchmodchowncloseconfstrdaemondupdup2endgrentendpwentenvironexecvexecvefchmodfchownfcntlfcntlfcntlfcntlfcntlfdatasyncflockforkfpathconffstatfstat64fsyncftruncatefutimensfutimensfutimesgetcwdgetdtablesizegetegidgetenvgeteuidgetgidgetgrentgetgrgidgetgrnamgetgroupsgethostnamegetlogingetpgidgetpgidgetpgrpgetpidgetppidgetprioritygetpwentgetpwnamgetpwuidgetrlimitgetrlimitgetsockoptgettimeofdaygetuidisattykillkilllchmodlchownlinklseeklstatlstat64lutimesmkdirnl_langinfoopenpipepreadpreadpreadpreadpwritepwritepwritepwriteraisereadreadreadreadreadlinkreadlinkreadlinkrecvmsgrenamermdirsendmsgsetegidsetenvseteuidsetgidsetgrentsetlocalesetpgidsetpgrpsetprioritysetpwentsetrlimitsetrlimitsetsidsetsockoptsetuidsignalsocketpairstatstat64strerrorsymlinksyscallsyscallsyscallsyscallsysconftimestruncateumaskunlinkunsetenvutimensatutimensatutimesutimeswaitwaitpidwritewritewritewrite

Method Detail

mkfifoback to summary
public int mkfifo(CharSequence filename, int mode)
posix_spawnback to summary
public int posix_spawn(ByReference<T> pid, CharSequence path, Pointer fileActions, Pointer attr, CharSequence[] argv, CharSequence[] envp)
posix_spawn_file_actions_addcloseback to summary
public int posix_spawn_file_actions_addclose(Pointer fileActions, int filedes)
posix_spawn_file_actions_adddup2back to summary
public int posix_spawn_file_actions_adddup2(Pointer fileActions, int filedes, int newfiledes)
posix_spawn_file_actions_addopenback to summary
public int posix_spawn_file_actions_addopen(Pointer fileActions, int filedes, CharSequence path, int oflag, int mode)

Deprecated

due to CVE-2014-4043 (https://bugzilla.redhat.com/show_bug.cgi?id=1983750)

Annotations
@Deprecated
posix_spawn_file_actions_addopenback to summary
public int posix_spawn_file_actions_addopen(Pointer fileActions, int filedes, ByteBuffer path, int oflag, int mode)
posix_spawn_file_actions_destroyback to summary
public int posix_spawn_file_actions_destroy(Pointer fileActions)
posix_spawn_file_actions_initback to summary
public int posix_spawn_file_actions_init(Pointer fileActions)
posix_spawnattr_destroyback to summary
public int posix_spawnattr_destroy(Pointer attr)
posix_spawnattr_getflagsback to summary
public int posix_spawnattr_getflags(Pointer attr, ShortByReference flags)
posix_spawnattr_getpgroupback to summary
public int posix_spawnattr_getpgroup(Pointer attr, NumberByReference pgroup)
posix_spawnattr_getsigdefaultback to summary
public int posix_spawnattr_getsigdefault(Pointer attr, Pointer sigdefault)
posix_spawnattr_getsigmaskback to summary
public int posix_spawnattr_getsigmask(Pointer attr, Pointer sigmask)
posix_spawnattr_initback to summary
public int posix_spawnattr_init(Pointer attr)
posix_spawnattr_setflagsback to summary
public int posix_spawnattr_setflags(Pointer attr, short flags)
posix_spawnattr_setpgroupback to summary
public int posix_spawnattr_setpgroup(Pointer attr, long pgroup)
posix_spawnattr_setsigdefaultback to summary
public int posix_spawnattr_setsigdefault(Pointer attr, Pointer sigdefault)
posix_spawnattr_setsigmaskback to summary
public int posix_spawnattr_setsigmask(Pointer attr, Pointer sigmask)
posix_spawnpback to summary
public int posix_spawnp(ByReference<T> pid, CharSequence path, Pointer fileActions, Pointer attr, CharSequence[] argv, CharSequence[] envp)
sigprocmaskback to summary
public int sigprocmask(int how, Pointer set, Pointer get)