public final class Globals
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static long |
___runetype(int arg1)
See comments in
|
static int |
___tolower(int arg1) |
static int |
___toupper(int arg1) |
static void |
__assert_rtn(java.lang.String arg1,
java.lang.String arg2,
int arg3,
java.lang.String arg4) |
static double |
__cospi(double arg1) |
static float |
__cospif(float arg1)
__sinpi(x) returns the sine of pi times x; __cospi(x) and __tanpi(x) return
the cosine and tangent, respectively.
|
static int |
__darwin_check_fd_set_overflow(int arg1,
org.moe.natj.general.ptr.ConstVoidPtr arg2,
int arg3) |
static int |
__darwin_check_fd_set(int _a,
org.moe.natj.general.ptr.ConstVoidPtr _b) |
static void |
__darwin_fd_clr(int _fd,
fd_set _p) |
static int |
__darwin_fd_isset(int _fd,
fd_set _p)
This inline avoids argument side-effect issues with FD_ISSET()
|
static void |
__darwin_fd_set(int _fd,
fd_set _p) |
static mach_header |
__dso_handle() |
static org.moe.natj.general.ptr.IntPtr |
__error() |
static double |
__exp10(double arg1) |
static float |
__exp10f(float arg1)
__exp10(x) returns 10**x.
|
static int |
__fpclassifyd(double arg1) |
static int |
__fpclassifyf(float arg1) |
static int |
__inline_isfinited(double arg1) |
static int |
__inline_isfinitef(float arg1) |
static int |
__inline_isinfd(double arg1) |
static int |
__inline_isinff(float arg1) |
static int |
__inline_isnand(double arg1) |
static int |
__inline_isnanf(float arg1) |
static int |
__inline_isnormald(double arg1) |
static int |
__inline_isnormalf(float arg1) |
static int |
__inline_signbitd(double arg1) |
static int |
__inline_signbitf(float arg1) |
static int |
__isctype(int _c,
long _f) |
static int |
__istype(int _c,
long _f) |
static int |
__maskrune(int arg1,
long arg2) |
static int |
__math_errhandling() |
static int |
__mb_cur_max() |
static int |
__sigbits(int __signo)
List definitions after function declarations, or Reiser cpp gets upset.
|
static __double2 |
__sincos_stret(double arg1) |
static void |
__sincos(double __x,
org.moe.natj.general.ptr.DoublePtr __sinp,
org.moe.natj.general.ptr.DoublePtr __cosp) |
static __float2 |
__sincosf_stret(float arg1) |
static void |
__sincosf(float __x,
org.moe.natj.general.ptr.FloatPtr __sinp,
org.moe.natj.general.ptr.FloatPtr __cosp)
__sincos(x,sinp,cosp) computes the sine and cosine of x with a single
function call, storing the sine in the memory pointed to by sinp, and
the cosine in the memory pointed to by cosp.
|
static __double2 |
__sincospi_stret(double arg1) |
static void |
__sincospi(double __x,
org.moe.natj.general.ptr.DoublePtr __sinp,
org.moe.natj.general.ptr.DoublePtr __cosp) |
static __float2 |
__sincospif_stret(float arg1) |
static void |
__sincospif(float __x,
org.moe.natj.general.ptr.FloatPtr __sinp,
org.moe.natj.general.ptr.FloatPtr __cosp)
__sincospi(x,sinp,cosp) computes the sine and cosine of pi times x with a
single function call, storing the sine in the memory pointed to by sinp,
and the cosine in the memory pointed to by cosp.
|
static double |
__sinpi(double arg1) |
static float |
__sinpif(float arg1) |
static int |
__snprintf_chk(org.moe.natj.general.ptr.BytePtr arg1,
long arg2,
int arg3,
long arg4,
java.lang.String arg5,
java.lang.Object... varargs) |
static int |
__sprintf_chk(org.moe.natj.general.ptr.BytePtr arg1,
int arg2,
long arg3,
java.lang.String arg4,
java.lang.Object... varargs) |
static int |
__sputc(int _c,
FILE _p) |
static int |
__srget(FILE arg1)
Functions internal to the implementation.
|
static FILE |
__stderrp() |
static FILE |
__stdinp() |
static FILE |
__stdoutp() |
static int |
__svfscanf(FILE arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.BytePtr arg3) |
static int |
__swbuf(int arg1,
FILE arg2) |
static double |
__tanpi(double arg1) |
static float |
__tanpif(float arg1) |
static int |
__tolower(int arg1) |
static int |
__toupper(int arg1) |
static int |
__vsnprintf_chk(org.moe.natj.general.ptr.BytePtr arg1,
long arg2,
int arg3,
long arg4,
java.lang.String arg5,
org.moe.natj.general.ptr.BytePtr arg6) |
static int |
__vsprintf_chk(org.moe.natj.general.ptr.BytePtr arg1,
int arg2,
long arg3,
java.lang.String arg4,
org.moe.natj.general.ptr.BytePtr arg5) |
static int |
__wcwidth(int _c) |
static org.moe.natj.general.ptr.VoidPtr |
_Block_copy(org.moe.natj.general.ptr.ConstVoidPtr aBlock)
Create a heap based copy of a Block or simply add a reference to an existing one.
|
static void |
_Block_object_assign(org.moe.natj.general.ptr.VoidPtr arg1,
org.moe.natj.general.ptr.ConstVoidPtr arg2,
int arg3)
Used by the compiler.
|
static void |
_Block_object_dispose(org.moe.natj.general.ptr.ConstVoidPtr arg1,
int arg2)
Used by the compiler.
|
static void |
_Block_release(org.moe.natj.general.ptr.ConstVoidPtr aBlock)
Lose the reference, and if heap based and last reference, recover the memory
|
static _RuneLocale |
_CurrentRuneLocale() |
static _RuneLocale |
_DefaultRuneLocale() |
static void |
_dispatch_object_validate(NSObject object) |
static void |
_dispatch_once_f(org.moe.natj.general.ptr.NIntPtr predicate,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function__dispatch_once_f function) |
static void |
_dispatch_once(org.moe.natj.general.ptr.NIntPtr predicate,
Globals.Block__dispatch_once block) |
static void |
_exit(int arg1)
POSIX.1-1990
|
static void |
_Exit(int arg1) |
static void |
_os_activity_initiate_f(org.moe.natj.general.ptr.VoidPtr dso,
java.lang.String description,
int flags,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function__os_activity_initiate_f function)
[@function] _os_activity_initiate_f
|
static void |
_os_activity_initiate(org.moe.natj.general.ptr.VoidPtr dso,
java.lang.String description,
int flags,
Globals.Block__os_activity_initiate activity_block)
[@function] _os_activity_initiate
|
static void |
_os_activity_label_useraction(org.moe.natj.general.ptr.VoidPtr dso,
java.lang.String name)
[@function] _os_activity_label_useraction
|
static void |
_os_activity_set_breadcrumb(org.moe.natj.general.ptr.VoidPtr dso,
java.lang.String name)
[@function] _os_activity_set_breadcrumb
|
static long |
_os_activity_start(org.moe.natj.general.ptr.VoidPtr dso,
java.lang.String description,
int flags)
[@function] _os_activity_start
|
static NSObject |
_os_log_create(org.moe.natj.general.ptr.VoidPtr dso,
java.lang.String subsystem,
java.lang.String category) |
static void |
_os_log_debug_impl(org.moe.natj.general.ptr.VoidPtr dso,
NSObject log,
byte type,
java.lang.String format,
org.moe.natj.general.ptr.BytePtr buf,
int size)
[@function] _os_log_debug_impl
|
static void |
_os_log_error_impl(org.moe.natj.general.ptr.VoidPtr dso,
NSObject log,
byte type,
java.lang.String format,
org.moe.natj.general.ptr.BytePtr buf,
int size)
[@function] _os_log_error_impl
|
static void |
_os_log_fault_impl(org.moe.natj.general.ptr.VoidPtr dso,
NSObject log,
byte type,
java.lang.String format,
org.moe.natj.general.ptr.BytePtr buf,
int size)
[@function] _os_log_fault_impl
|
static void |
_os_log_impl(org.moe.natj.general.ptr.VoidPtr dso,
NSObject log,
byte type,
java.lang.String format,
org.moe.natj.general.ptr.BytePtr buf,
int size)
[@function] _os_log_impl
|
static void |
_os_log_internal(org.moe.natj.general.ptr.VoidPtr dso,
NSObject log,
byte type,
java.lang.String message,
java.lang.Object... varargs)
Support for older iteration of API for source compatibility only...
|
static void |
_os_log_sensitive_deprecated() |
static void |
_os_signpost_emit_with_name_impl(org.moe.natj.general.ptr.VoidPtr dso,
NSObject log,
byte type,
long spid,
java.lang.String name,
java.lang.String format,
org.moe.natj.general.ptr.BytePtr buf,
int size) |
static void |
_os_trace_with_buffer(org.moe.natj.general.ptr.VoidPtr dso,
java.lang.String message,
byte type,
org.moe.natj.general.ptr.ConstVoidPtr buffer,
long buffer_size,
Globals.Block__os_trace_with_buffer payload)
[@function] _os_trace_with_buffer
|
static char |
_OSReadInt16(org.moe.natj.general.ptr.ConstVoidPtr base,
long byteOffset)
Functions for loading native endian values.
|
static int |
_OSReadInt32(org.moe.natj.general.ptr.ConstVoidPtr base,
long byteOffset) |
static long |
_OSReadInt64(org.moe.natj.general.ptr.ConstVoidPtr base,
long byteOffset) |
static char |
_OSSwapInt16(char _data)
Generic byte swapping functions.
|
static int |
_OSSwapInt32(int _data) |
static long |
_OSSwapInt64(long _data) |
static void |
_OSWriteInt16(org.moe.natj.general.ptr.VoidPtr base,
long byteOffset,
char data)
Functions for storing native endian values.
|
static void |
_OSWriteInt32(org.moe.natj.general.ptr.VoidPtr base,
long byteOffset,
int data) |
static void |
_OSWriteInt64(org.moe.natj.general.ptr.VoidPtr base,
long byteOffset,
long data) |
static int |
_setjmp(org.moe.natj.general.ptr.IntPtr arg1) |
static long |
a64l(java.lang.String arg1) |
static void |
abort() |
static int |
abs(int arg1) |
static int |
accept(int arg1,
sockaddr arg2,
org.moe.natj.general.ptr.IntPtr arg3) |
static int |
access(java.lang.String arg1,
int arg2) |
static int |
accessx_np(accessx_descriptor arg1,
long arg2,
org.moe.natj.general.ptr.IntPtr arg3,
int arg4) |
static int |
acct(java.lang.String arg1) |
static int |
acl_add_flag_np(acl_flagset_t flagset_d,
int flag)
nonstandard - manipulate flags on ACLs and entries
|
static int |
acl_add_perm(acl_permset_t permset_d,
int perm)
23.1.6.2 (2) Manipulate permissions within an ACL entry
|
static int |
acl_calc_mask(org.moe.natj.general.ptr.Ptr<acl_t> acl_p) |
static int |
acl_clear_flags_np(acl_flagset_t flagset_d) |
static int |
acl_clear_perms(acl_permset_t permset_d) |
static int |
acl_copy_entry(acl_entry_t dest_d,
acl_entry_t src_d)
23.1.6.2 (1) ACL Entry manipulation
|
static long |
acl_copy_ext_native(org.moe.natj.general.ptr.VoidPtr buf_p,
acl_t acl,
long size) |
static long |
acl_copy_ext(org.moe.natj.general.ptr.VoidPtr buf_p,
acl_t acl,
long size)
23.1.6.4 ACL Format translation
|
static acl_t |
acl_copy_int_native(org.moe.natj.general.ptr.ConstVoidPtr buf_p) |
static acl_t |
acl_copy_int(org.moe.natj.general.ptr.ConstVoidPtr buf_p) |
static int |
acl_create_entry_np(org.moe.natj.general.ptr.Ptr<acl_t> acl_p,
org.moe.natj.general.ptr.Ptr<acl_entry_t> entry_p,
int entry_index) |
static int |
acl_create_entry(org.moe.natj.general.ptr.Ptr<acl_t> acl_p,
org.moe.natj.general.ptr.Ptr<acl_entry_t> entry_p) |
static int |
acl_delete_def_file(java.lang.String path_p)
23.1.6.3 ACL manipulation on an Object
|
static int |
acl_delete_entry(acl_t acl,
acl_entry_t entry_d) |
static int |
acl_delete_flag_np(acl_flagset_t flagset_d,
int flag) |
static int |
acl_delete_perm(acl_permset_t permset_d,
int perm) |
static acl_t |
acl_dup(acl_t acl)
23.1.6.1 ACL Storage Management
|
static int |
acl_free(org.moe.natj.general.ptr.VoidPtr obj_p) |
static acl_t |
acl_from_text(java.lang.String buf_p) |
static int |
acl_get_entry(acl_t acl,
int entry_id,
org.moe.natj.general.ptr.Ptr<acl_entry_t> entry_p) |
static acl_t |
acl_get_fd_np(int fd,
int type) |
static acl_t |
acl_get_fd(int fd) |
static acl_t |
acl_get_file(java.lang.String path_p,
int type) |
static int |
acl_get_flag_np(acl_flagset_t flagset_d,
int flag) |
static int |
acl_get_flagset_np(org.moe.natj.general.ptr.VoidPtr obj_p,
org.moe.natj.general.ptr.Ptr<acl_flagset_t> flagset_p) |
static acl_t |
acl_get_link_np(java.lang.String path_p,
int type) |
static int |
acl_get_perm_np(acl_permset_t permset_d,
int perm) |
static int |
acl_get_permset_mask_np(acl_entry_t entry_d,
org.moe.natj.general.ptr.LongPtr mask_p) |
static int |
acl_get_permset(acl_entry_t entry_d,
org.moe.natj.general.ptr.Ptr<acl_permset_t> permset_p) |
static org.moe.natj.general.ptr.VoidPtr |
acl_get_qualifier(acl_entry_t entry_d)
23.1.6.2 (3) Manipulate ACL entry tag type and qualifier
|
static int |
acl_get_tag_type(acl_entry_t entry_d,
org.moe.natj.general.ptr.IntPtr tag_type_p) |
static acl_t |
acl_init(int count) |
static int |
acl_maximal_permset_mask_np(org.moe.natj.general.ptr.LongPtr mask_p)
nonstandard - manipulate permissions within an ACL entry using bitmasks
|
static int |
acl_set_fd_np(int fd,
acl_t acl,
int acl_type) |
static int |
acl_set_fd(int fd,
acl_t acl) |
static int |
acl_set_file(java.lang.String path_p,
int type,
acl_t acl) |
static int |
acl_set_flagset_np(org.moe.natj.general.ptr.VoidPtr obj_p,
acl_flagset_t flagset_d) |
static int |
acl_set_link_np(java.lang.String path_p,
int type,
acl_t acl) |
static int |
acl_set_permset_mask_np(acl_entry_t entry_d,
long mask) |
static int |
acl_set_permset(acl_entry_t entry_d,
acl_permset_t permset_d) |
static int |
acl_set_qualifier(acl_entry_t entry_d,
org.moe.natj.general.ptr.ConstVoidPtr tag_qualifier_p) |
static int |
acl_set_tag_type(acl_entry_t entry_d,
int tag_type) |
static long |
acl_size(acl_t acl) |
static org.moe.natj.general.ptr.BytePtr |
acl_to_text(acl_t acl,
org.moe.natj.general.ptr.NIntPtr len_p) |
static int |
acl_valid_fd_np(int fd,
int type,
acl_t acl) |
static int |
acl_valid_file_np(java.lang.String path,
int type,
acl_t acl) |
static int |
acl_valid_link_np(java.lang.String path,
int type,
acl_t acl) |
static int |
acl_valid(acl_t acl) |
static double |
acos(double arg1) |
static float |
acosf(float arg1)
*
Math Functions *
*
****************************************************************************
|
static double |
acosh(double arg1) |
static float |
acoshf(float arg1) |
static int |
add_profil(org.moe.natj.general.ptr.BytePtr arg1,
long arg2,
long arg3,
int arg4) |
static int |
adjtime(timeval arg1,
timeval arg2) |
static int |
alarm(int arg1) |
static org.moe.natj.general.ptr.VoidPtr |
aligned_alloc(long __alignment,
long __size) |
static org.moe.natj.general.ptr.VoidPtr |
alloca(long arg1) |
static void |
arc4random_addrandom(org.moe.natj.general.ptr.BytePtr arg1,
int arg2) |
static void |
arc4random_buf(org.moe.natj.general.ptr.VoidPtr __buf,
long __nbytes) |
static void |
arc4random_stir() |
static int |
arc4random_uniform(int __upper_bound) |
static int |
arc4random() |
static org.moe.natj.general.ptr.BytePtr |
asctime_r(tm arg1,
org.moe.natj.general.ptr.BytePtr arg2)
[TSF] Thread safe functions
|
static org.moe.natj.general.ptr.BytePtr |
asctime(tm arg1) |
static double |
asin(double arg1) |
static float |
asinf(float arg1) |
static double |
asinh(double arg1) |
static float |
asinhf(float arg1) |
static int |
asprintf(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
java.lang.String arg2,
java.lang.Object... varargs) |
static double |
atan(double arg1) |
static double |
atan2(double arg1,
double arg2) |
static float |
atan2f(float arg1,
float arg2) |
static float |
atanf(float arg1) |
static double |
atanh(double arg1) |
static float |
atanhf(float arg1) |
static int |
atexit_b(Globals.Block_atexit_b arg1) |
static int |
atexit(Globals.Function_atexit arg1) |
static double |
atof(java.lang.String arg1) |
static int |
atoi(java.lang.String arg1) |
static long |
atol(java.lang.String arg1) |
static long |
atoll(java.lang.String arg1) |
static int |
audit_session_join(int port) |
static int |
audit_session_port(int asid,
org.moe.natj.general.ptr.IntPtr portname) |
static int |
audit_session_self() |
static int |
audit(org.moe.natj.general.ptr.ConstVoidPtr arg1,
int arg2) |
static int |
auditctl(java.lang.String arg1) |
static int |
auditon(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
int arg3) |
static int |
bcmp(org.moe.natj.general.ptr.ConstVoidPtr arg1,
org.moe.natj.general.ptr.ConstVoidPtr arg2,
long arg3) |
static void |
bcopy(org.moe.natj.general.ptr.ConstVoidPtr arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
long arg3) |
static int |
bind(int arg1,
sockaddr arg2,
int arg3) |
static int |
bindresvport_sa(int arg1,
sockaddr arg2) |
static int |
bindresvport(int arg1,
sockaddr_in arg2) |
static org.moe.natj.general.ptr.VoidPtr |
brk(org.moe.natj.general.ptr.ConstVoidPtr arg1)
Deprecated.
|
static Globals.Function_bsd_signal_ret |
bsd_signal(int arg1,
Globals.Function_bsd_signal arg2) |
static org.moe.natj.general.ptr.VoidPtr |
bsearch_b(org.moe.natj.general.ptr.ConstVoidPtr __key,
org.moe.natj.general.ptr.ConstVoidPtr __base,
long __nel,
long __width,
Globals.Block_bsearch_b __compar) |
static org.moe.natj.general.ptr.VoidPtr |
bsearch(org.moe.natj.general.ptr.ConstVoidPtr __key,
org.moe.natj.general.ptr.ConstVoidPtr __base,
long __nel,
long __width,
Globals.Function_bsearch __compar) |
static void |
bzero(org.moe.natj.general.ptr.VoidPtr arg1,
long arg2) |
static org.moe.natj.general.ptr.VoidPtr |
calloc(long __count,
long __size) |
static double |
cbrt(double arg1) |
static float |
cbrtf(float arg1) |
static double |
ceil(double arg1) |
static float |
ceilf(float arg1) |
static org.moe.natj.general.ptr.BytePtr |
cgetcap(org.moe.natj.general.ptr.BytePtr arg1,
java.lang.String arg2,
int arg3)
getcap(3) functions
|
static int |
cgetclose() |
static int |
cgetent(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2,
java.lang.String arg3) |
static int |
cgetfirst(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2) |
static int |
cgetmatch(java.lang.String arg1,
java.lang.String arg2) |
static int |
cgetnext(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2) |
static int |
cgetnum(org.moe.natj.general.ptr.BytePtr arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.NIntPtr arg3) |
static int |
cgetset(java.lang.String arg1) |
static int |
cgetstr(org.moe.natj.general.ptr.BytePtr arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg3) |
static int |
cgetustr(org.moe.natj.general.ptr.BytePtr arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg3) |
static int |
chdir(java.lang.String arg1) |
static int |
chown(java.lang.String arg1,
int arg2,
int arg3) |
static int |
chroot(java.lang.String arg1) |
static void |
clearerr(FILE arg1)
ANSI-C
|
static int |
clock_getres(int __clock_id,
timespec __res) |
static long |
clock_gettime_nsec_np(int __clock_id) |
static int |
clock_gettime(int __clock_id,
timespec __tp) |
static long |
clock() |
static int |
close(int arg1) |
static long |
confstr(int arg1,
org.moe.natj.general.ptr.BytePtr arg2,
long arg3) |
static int |
connect(int arg1,
sockaddr arg2,
int arg3) |
static int |
connectx(int arg1,
sa_endpoints arg2,
int arg3,
int arg4,
iovec arg5,
int arg6,
org.moe.natj.general.ptr.NUIntPtr arg7,
org.moe.natj.general.ptr.IntPtr arg8) |
static double |
copysign(double arg1,
double arg2) |
static float |
copysignf(float arg1,
float arg2) |
static double |
cos(double arg1) |
static float |
cosf(float arg1) |
static double |
cosh(double arg1) |
static float |
coshf(float arg1) |
static int |
creat(java.lang.String arg1,
char arg2) |
static org.moe.natj.general.ptr.BytePtr |
crypt(java.lang.String arg1,
java.lang.String arg2) |
static org.moe.natj.general.ptr.BytePtr |
ctermid_r(org.moe.natj.general.ptr.BytePtr arg1) |
static org.moe.natj.general.ptr.BytePtr |
ctermid(org.moe.natj.general.ptr.BytePtr arg1) |
static org.moe.natj.general.ptr.BytePtr |
ctime_r(org.moe.natj.general.ptr.ConstNIntPtr arg1,
org.moe.natj.general.ptr.BytePtr arg2) |
static org.moe.natj.general.ptr.BytePtr |
ctime(org.moe.natj.general.ptr.ConstNIntPtr arg1) |
static int |
daemon(int arg1,
int arg2)
Deprecated.
|
static int |
daylight() |
static org.moe.natj.general.ptr.BytePtr |
devname_r(int arg1,
char arg2,
org.moe.natj.general.ptr.BytePtr buf,
int len) |
static org.moe.natj.general.ptr.BytePtr |
devname(int arg1,
char arg2) |
static double |
difftime(long arg1,
long arg2) |
static int |
digittoint(int _c) |
static int |
disconnectx(int arg1,
int arg2,
int arg3) |
static void |
dispatch_activate(NSObject object)
[@function] dispatch_activate
|
static void |
dispatch_after_f(long when,
NSObject queue,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function_dispatch_after_f work)
[@function] dispatch_after_f
|
static void |
dispatch_after(long when,
NSObject queue,
Globals.Block_dispatch_after block) |
static void |
dispatch_apply_f(long iterations,
NSObject queue,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function_dispatch_apply_f work)
[@function] dispatch_apply_f
|
static void |
dispatch_apply(long iterations,
NSObject queue,
Globals.Block_dispatch_apply block) |
static void |
dispatch_assert_queue_barrier(NSObject queue)
[@function] dispatch_assert_queue_barrier
|
static void |
dispatch_assert_queue_not(NSObject queue)
[@function] dispatch_assert_queue_not
|
static void |
dispatch_assert_queue(NSObject queue)
[@function] dispatch_assert_queue
|
static void |
dispatch_async_and_wait_f(NSObject queue,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function_dispatch_async_and_wait_f work)
[@function] dispatch_async_and_wait_f
|
static void |
dispatch_async_and_wait(NSObject queue,
Globals.Block_dispatch_async_and_wait block) |
static void |
dispatch_async_f(NSObject queue,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function_dispatch_async_f work)
[@function] dispatch_async_f
|
static void |
dispatch_async(NSObject queue,
Globals.Block_dispatch_async block) |
static void |
dispatch_barrier_async_and_wait_f(NSObject queue,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function_dispatch_barrier_async_and_wait_f work)
[@function] dispatch_barrier_async_and_wait_f
|
static void |
dispatch_barrier_async_and_wait(NSObject queue,
Globals.Block_dispatch_barrier_async_and_wait block) |
static void |
dispatch_barrier_async_f(NSObject queue,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function_dispatch_barrier_async_f work)
[@function] dispatch_barrier_async_f
|
static void |
dispatch_barrier_async(NSObject queue,
Globals.Block_dispatch_barrier_async block) |
static void |
dispatch_barrier_sync_f(NSObject queue,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function_dispatch_barrier_sync_f work)
[@function] dispatch_barrier_sync_f
|
static void |
dispatch_barrier_sync(NSObject queue,
Globals.Block_dispatch_barrier_sync block) |
static void |
dispatch_block_cancel(Globals.Block_dispatch_block_cancel block)
[@function] dispatch_block_cancel
|
static Globals.Block_dispatch_block_create_with_qos_class_ret |
dispatch_block_create_with_qos_class(long flags,
int qos_class,
int relative_priority,
Globals.Block_dispatch_block_create_with_qos_class block)
[@function] dispatch_block_create_with_qos_class
|
static Globals.Block_dispatch_block_create_ret |
dispatch_block_create(long flags,
Globals.Block_dispatch_block_create block)
[@function] dispatch_block_create
|
static void |
dispatch_block_notify(Globals.Block_dispatch_block_notify_0 block,
NSObject queue,
Globals.Block_dispatch_block_notify_2 notification_block)
[@function] dispatch_block_notify
|
static void |
dispatch_block_perform(long flags,
Globals.Block_dispatch_block_perform block)
[@function] dispatch_block_perform
|
static long |
dispatch_block_testcancel(Globals.Block_dispatch_block_testcancel block)
[@function] dispatch_block_testcancel
|
static long |
dispatch_block_wait(Globals.Block_dispatch_block_wait block,
long timeout)
[@function] dispatch_block_wait
|
static boolean |
dispatch_data_apply(NSObject data,
Globals.Block_dispatch_data_apply applier)
[@function] dispatch_data_apply
Traverse the memory regions represented by the specified dispatch data object
in logical order and invoke the specified block once for every contiguous
memory region encountered.
|
static NSObject |
dispatch_data_copy_region(NSObject data,
long location,
org.moe.natj.general.ptr.NUIntPtr offset_ptr)
[@function] dispatch_data_copy_region
Finds the contiguous memory region containing the specified location among
the regions represented by the specified object and returns a copy of the
internal dispatch data object representing that region along with its logical
offset in the specified object.
|
static NSObject |
dispatch_data_create_concat(NSObject data1,
NSObject data2)
[@function] dispatch_data_create_concat
Returns a new dispatch data object representing the concatenation of the
specified data objects.
|
static NSObject |
dispatch_data_create_map(NSObject data,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> buffer_ptr,
org.moe.natj.general.ptr.NUIntPtr size_ptr)
[@function] dispatch_data_create_map
Maps the memory represented by the specified dispatch data object as a single
contiguous memory region and returns a new data object representing it.
|
static NSObject |
dispatch_data_create_subrange(NSObject data,
long offset,
long length)
[@function] dispatch_data_create_subrange
Returns a new dispatch data object representing a subrange of the specified
data object, which may be released by the application after the call returns
(however, the system might not deallocate the memory region(s) described by
that object until the newly created object has also been released).
|
static NSObject |
dispatch_data_create(org.moe.natj.general.ptr.ConstVoidPtr buffer,
long size,
NSObject queue,
Globals.Block_dispatch_data_create destructor)
[@function] dispatch_data_create
Creates a dispatch data object from the given contiguous buffer of memory.
|
static long |
dispatch_data_get_size(NSObject data)
[@function] dispatch_data_get_size
Returns the logical size of the memory region(s) represented by the specified
dispatch data object.
|
static void |
dispatch_debug(NSObject object,
java.lang.String message,
java.lang.Object... varargs)
Deprecated.
|
static void |
dispatch_debugv(NSObject object,
java.lang.String message,
org.moe.natj.general.ptr.BytePtr ap)
Deprecated.
|
static org.moe.natj.general.ptr.VoidPtr |
dispatch_get_context(NSObject object)
[@function] dispatch_get_context
|
static NSObject |
dispatch_get_current_queue()
Deprecated.
|
static NSObject |
dispatch_get_global_queue(long identifier,
long flags)
[@function] dispatch_get_global_queue
|
static NSObject |
dispatch_get_main_queue()
[@function] dispatch_get_main_queue
|
static org.moe.natj.general.ptr.VoidPtr |
dispatch_get_specific(org.moe.natj.general.ptr.ConstVoidPtr key)
[@function] dispatch_get_specific
|
static void |
dispatch_group_async_f(NSObject group,
NSObject queue,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function_dispatch_group_async_f work)
[@function] dispatch_group_async_f
|
static void |
dispatch_group_async(NSObject group,
NSObject queue,
Globals.Block_dispatch_group_async block) |
static NSObject |
dispatch_group_create()
[@function] dispatch_group_create
|
static void |
dispatch_group_enter(NSObject group)
[@function] dispatch_group_enter
|
static void |
dispatch_group_leave(NSObject group)
[@function] dispatch_group_leave
|
static void |
dispatch_group_notify_f(NSObject group,
NSObject queue,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function_dispatch_group_notify_f work)
[@function] dispatch_group_notify_f
|
static void |
dispatch_group_notify(NSObject group,
NSObject queue,
Globals.Block_dispatch_group_notify block) |
static long |
dispatch_group_wait(NSObject group,
long timeout)
[@function] dispatch_group_wait
|
static void |
dispatch_io_barrier(NSObject channel,
Globals.Block_dispatch_io_barrier barrier)
[@function] dispatch_io_barrier
Schedule a barrier operation on the specified I/O channel; all previously
scheduled operations on the channel will complete before the provided
barrier block is enqueued onto the global queue determined by the channel's
target queue, and no subsequently scheduled operations will start until the
barrier block has returned.
|
static void |
dispatch_io_close(NSObject channel,
long flags)
[@function] dispatch_io_close
Close the specified I/O channel to new read or write operations; scheduling
operations on a closed channel results in their handler returning an error.
|
static NSObject |
dispatch_io_create_with_io(long type,
NSObject io,
NSObject queue,
Globals.Block_dispatch_io_create_with_io cleanup_handler)
[@function] dispatch_io_create_with_io
Create a new dispatch I/O channel from an existing dispatch I/O channel.
|
static NSObject |
dispatch_io_create_with_path(long type,
java.lang.String path,
int oflag,
char mode,
NSObject queue,
Globals.Block_dispatch_io_create_with_path cleanup_handler)
[@function] dispatch_io_create_with_path
Create a dispatch I/O channel associated with a path name.
|
static NSObject |
dispatch_io_create(long type,
int fd,
NSObject queue,
Globals.Block_dispatch_io_create cleanup_handler)
[@function] dispatch_io_create
Create a dispatch I/O channel associated with a file descriptor.
|
static int |
dispatch_io_get_descriptor(NSObject channel)
[@function] dispatch_io_get_descriptor
Returns the file descriptor underlying a dispatch I/O channel.
|
static void |
dispatch_io_read(NSObject channel,
long offset,
long length,
NSObject queue,
Globals.Block_dispatch_io_read io_handler)
[@function] dispatch_io_read
Schedule a read operation for asynchronous execution on the specified I/O
channel.
|
static void |
dispatch_io_set_high_water(NSObject channel,
long high_water)
[@function] dispatch_io_set_high_water
Set a high water mark on the I/O channel for all operations.
|
static void |
dispatch_io_set_interval(NSObject channel,
long interval,
long flags)
[@function] dispatch_io_set_interval
Set a nanosecond interval at which I/O handlers are to be enqueued on the
I/O channel for all operations.
|
static void |
dispatch_io_set_low_water(NSObject channel,
long low_water)
[@function] dispatch_io_set_low_water
Set a low water mark on the I/O channel for all operations.
|
static void |
dispatch_io_write(NSObject channel,
long offset,
NSObject data,
NSObject queue,
Globals.Block_dispatch_io_write io_handler)
[@function] dispatch_io_write
Schedule a write operation for asynchronous execution on the specified I/O
channel.
|
static void |
dispatch_main()
[@function] dispatch_main
|
static void |
dispatch_once_f(org.moe.natj.general.ptr.NIntPtr predicate,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function_dispatch_once_f function) |
static void |
dispatch_once(org.moe.natj.general.ptr.NIntPtr predicate,
Globals.Block_dispatch_once block) |
static NSObject |
dispatch_queue_attr_make_initially_inactive(NSObject attr)
[@function] dispatch_queue_attr_make_initially_inactive
|
static NSObject |
dispatch_queue_attr_make_with_autorelease_frequency(NSObject attr,
long frequency)
[@function] dispatch_queue_attr_make_with_autorelease_frequency
|
static NSObject |
dispatch_queue_attr_make_with_qos_class(NSObject attr,
int qos_class,
int relative_priority)
[@function] dispatch_queue_attr_make_with_qos_class
|
static NSObject |
dispatch_queue_create_with_target(java.lang.String label,
NSObject attr,
NSObject target)
[@function] dispatch_queue_create_with_target
|
static NSObject |
dispatch_queue_create(java.lang.String label,
NSObject attr)
[@function] dispatch_queue_create
|
static java.lang.String |
dispatch_queue_get_label(NSObject queue)
[@function] dispatch_queue_get_label
|
static int |
dispatch_queue_get_qos_class(NSObject queue,
org.moe.natj.general.ptr.IntPtr relative_priority_ptr)
[@function] dispatch_queue_get_qos_class
|
static org.moe.natj.general.ptr.VoidPtr |
dispatch_queue_get_specific(NSObject queue,
org.moe.natj.general.ptr.ConstVoidPtr key)
[@function] dispatch_queue_get_specific
|
static void |
dispatch_queue_set_specific(NSObject queue,
org.moe.natj.general.ptr.ConstVoidPtr key,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function_dispatch_queue_set_specific destructor)
[@function] dispatch_queue_set_specific
|
static void |
dispatch_read(int fd,
long length,
NSObject queue,
Globals.Block_dispatch_read handler)
[@function] dispatch_read
Schedule a read operation for asynchronous execution on the specified file
descriptor.
|
static void |
dispatch_release(NSObject object)
[@function] dispatch_release
|
static void |
dispatch_resume(NSObject object)
[@function] dispatch_resume
|
static void |
dispatch_retain(NSObject object)
[@function] dispatch_retain
|
static NSObject |
dispatch_semaphore_create(long value)
[@function] dispatch_semaphore_create
|
static long |
dispatch_semaphore_signal(NSObject dsema)
[@function] dispatch_semaphore_signal
|
static long |
dispatch_semaphore_wait(NSObject dsema,
long timeout)
[@function] dispatch_semaphore_wait
|
static void |
dispatch_set_context(NSObject object,
org.moe.natj.general.ptr.VoidPtr context)
[@function] dispatch_set_context
|
static void |
dispatch_set_finalizer_f(NSObject object,
Globals.Function_dispatch_set_finalizer_f finalizer)
[@function] dispatch_set_finalizer_f
|
static void |
dispatch_set_qos_class_floor(NSObject object,
int qos_class,
int relative_priority)
[@function] dispatch_set_qos_class_floor
|
static void |
dispatch_set_target_queue(NSObject object,
NSObject queue)
[@function] dispatch_set_target_queue
|
static void |
dispatch_source_cancel(NSObject source)
[@function] dispatch_source_cancel
|
static NSObject |
dispatch_source_create(dispatch_source_type_t type,
long handle,
long mask,
NSObject queue)
[@function] dispatch_source_create
|
static long |
dispatch_source_get_data(NSObject source)
[@function] dispatch_source_get_data
|
static long |
dispatch_source_get_handle(NSObject source)
[@function] dispatch_source_get_handle
|
static long |
dispatch_source_get_mask(NSObject source)
[@function] dispatch_source_get_mask
|
static void |
dispatch_source_merge_data(NSObject source,
long value)
[@function] dispatch_source_merge_data
|
static void |
dispatch_source_set_cancel_handler_f(NSObject source,
Globals.Function_dispatch_source_set_cancel_handler_f handler)
[@function] dispatch_source_set_cancel_handler_f
|
static void |
dispatch_source_set_cancel_handler(NSObject source,
Globals.Block_dispatch_source_set_cancel_handler handler) |
static void |
dispatch_source_set_event_handler_f(NSObject source,
Globals.Function_dispatch_source_set_event_handler_f handler)
[@function] dispatch_source_set_event_handler_f
|
static void |
dispatch_source_set_event_handler(NSObject source,
Globals.Block_dispatch_source_set_event_handler handler) |
static void |
dispatch_source_set_registration_handler_f(NSObject source,
Globals.Function_dispatch_source_set_registration_handler_f handler)
[@function] dispatch_source_set_registration_handler_f
|
static void |
dispatch_source_set_registration_handler(NSObject source,
Globals.Block_dispatch_source_set_registration_handler handler) |
static void |
dispatch_source_set_timer(NSObject source,
long start,
long interval,
long leeway)
[@function] dispatch_source_set_timer
|
static long |
dispatch_source_testcancel(NSObject source)
[@function] dispatch_source_testcancel
|
static void |
dispatch_suspend(NSObject object)
[@function] dispatch_suspend
|
static void |
dispatch_sync_f(NSObject queue,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function_dispatch_sync_f work)
[@function] dispatch_sync_f
|
static void |
dispatch_sync(NSObject queue,
Globals.Block_dispatch_sync block) |
static long |
dispatch_time(long when,
long delta)
[@function] dispatch_time
|
static long |
dispatch_walltime(timespec when,
long delta)
[@function] dispatch_walltime
|
static NSObject |
dispatch_workloop_create_inactive(java.lang.String label)
[@function] dispatch_workloop_create_inactive
|
static NSObject |
dispatch_workloop_create(java.lang.String label)
[@function] dispatch_workloop_create
|
static void |
dispatch_workloop_set_autorelease_frequency(NSObject workloop,
long frequency)
[@function] dispatch_workloop_set_autorelease_frequency
|
static void |
dispatch_workloop_set_os_workgroup(NSObject workloop,
OS_os_workgroup workgroup)
[@function] dispatch_workloop_set_os_workgroup
|
static void |
dispatch_write(int fd,
NSObject data,
NSObject queue,
Globals.Block_dispatch_write handler)
[@function] dispatch_write
Schedule a write operation for asynchronous execution on the specified file
descriptor.
|
static div_t |
div(int arg1,
int arg2)
calloc is now declared in _malloc.h
|
static int |
DNSServiceAddRecord(DNSServiceRef sdRef,
org.moe.natj.general.ptr.Ptr<DNSRecordRef> RecordRef,
int flags,
char rrtype,
char rdlen,
org.moe.natj.general.ptr.ConstVoidPtr rdata,
int ttl)
DNSServiceAddRecord()
|
static int |
DNSServiceBrowse(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef,
int flags,
int interfaceIndex,
java.lang.String regtype,
java.lang.String domain,
Globals.Function_DNSServiceBrowse callBack,
org.moe.natj.general.ptr.VoidPtr context)
DNSServiceBrowse() Parameters:
|
static int |
DNSServiceConstructFullName(org.moe.natj.general.ptr.BytePtr fullName,
java.lang.String service,
java.lang.String regtype,
java.lang.String domain)
DNSServiceConstructFullName()
|
static int |
DNSServiceCreateConnection(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef)
DNSServiceCreateConnection()
|
static int |
DNSServiceEnumerateDomains(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef,
int flags,
int interfaceIndex,
Globals.Function_DNSServiceEnumerateDomains callBack,
org.moe.natj.general.ptr.VoidPtr context)
DNSServiceEnumerateDomains() Parameters:
|
static int |
DNSServiceGetAddrInfo(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef,
int flags,
int interfaceIndex,
int protocol,
java.lang.String hostname,
Globals.Function_DNSServiceGetAddrInfo callBack,
org.moe.natj.general.ptr.VoidPtr context)
DNSServiceGetAddrInfo() Parameters:
|
static int |
DNSServiceGetProperty(java.lang.String property,
org.moe.natj.general.ptr.VoidPtr result,
org.moe.natj.general.ptr.IntPtr size)
DNSServiceGetProperty() Parameters:
|
static int |
DNSServiceNATPortMappingCreate(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef,
int flags,
int interfaceIndex,
int protocol,
char internalPort,
char externalPort,
int ttl,
Globals.Function_DNSServiceNATPortMappingCreate callBack,
org.moe.natj.general.ptr.VoidPtr context)
DNSServiceNATPortMappingCreate() Parameters:
|
static int |
DNSServiceProcessResult(DNSServiceRef sdRef)
DNSServiceProcessResult()
|
static int |
DNSServiceQueryRecord(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef,
int flags,
int interfaceIndex,
java.lang.String fullname,
char rrtype,
char rrclass,
Globals.Function_DNSServiceQueryRecord callBack,
org.moe.natj.general.ptr.VoidPtr context)
DNSServiceQueryRecord() Parameters:
|
static int |
DNSServiceReconfirmRecord(int flags,
int interfaceIndex,
java.lang.String fullname,
char rrtype,
char rrclass,
char rdlen,
org.moe.natj.general.ptr.ConstVoidPtr rdata)
DNSServiceReconfirmRecord
|
static void |
DNSServiceRefDeallocate(DNSServiceRef sdRef)
DNSServiceRefDeallocate()
|
static int |
DNSServiceRefSockFD(DNSServiceRef sdRef)
DNSServiceRefSockFD()
|
static int |
DNSServiceRegister(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef,
int flags,
int interfaceIndex,
java.lang.String name,
java.lang.String regtype,
java.lang.String domain,
java.lang.String host,
char port,
char txtLen,
org.moe.natj.general.ptr.ConstVoidPtr txtRecord,
Globals.Function_DNSServiceRegister callBack,
org.moe.natj.general.ptr.VoidPtr context)
DNSServiceRegister() Parameters:
|
static int |
DNSServiceRegisterRecord(DNSServiceRef sdRef,
org.moe.natj.general.ptr.Ptr<DNSRecordRef> RecordRef,
int flags,
int interfaceIndex,
java.lang.String fullname,
char rrtype,
char rrclass,
char rdlen,
org.moe.natj.general.ptr.ConstVoidPtr rdata,
int ttl,
Globals.Function_DNSServiceRegisterRecord callBack,
org.moe.natj.general.ptr.VoidPtr context)
DNSServiceRegisterRecord() Parameters:
|
static int |
DNSServiceRemoveRecord(DNSServiceRef sdRef,
DNSRecordRef RecordRef,
int flags)
DNSServiceRemoveRecord
|
static int |
DNSServiceResolve(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef,
int flags,
int interfaceIndex,
java.lang.String name,
java.lang.String regtype,
java.lang.String domain,
Globals.Function_DNSServiceResolve callBack,
org.moe.natj.general.ptr.VoidPtr context)
DNSServiceResolve() Parameters
|
static int |
DNSServiceSetDispatchQueue(DNSServiceRef service,
NSObject queue)
DNSServiceSetDispatchQueue
|
static int |
DNSServiceSleepKeepalive(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef,
int flags,
int fd,
int timeout,
Globals.Function_DNSServiceSleepKeepalive callBack,
org.moe.natj.general.ptr.VoidPtr context) |
static int |
DNSServiceUpdateRecord(DNSServiceRef sdRef,
DNSRecordRef RecordRef,
int flags,
char rdlen,
org.moe.natj.general.ptr.ConstVoidPtr rdata,
int ttl)
DNSServiceUpdateRecord
|
static int |
dprintf(int arg1,
java.lang.String arg2,
java.lang.Object... varargs) |
static double |
drand48() |
static int |
dup(int arg1) |
static int |
dup2(int arg1,
int arg2) |
static org.moe.natj.general.ptr.BytePtr |
ecvt(double arg1,
int arg2,
org.moe.natj.general.ptr.IntPtr arg3,
org.moe.natj.general.ptr.IntPtr arg4) |
static void |
encrypt(org.moe.natj.general.ptr.BytePtr arg1,
int arg2) |
static void |
endusershell() |
static double |
erf(double arg1) |
static double |
erfc(double arg1) |
static float |
erfcf(float arg1) |
static float |
erff(float arg1) |
static int |
exchangedata(java.lang.String arg1,
java.lang.String arg2,
int arg3) |
static int |
execl(java.lang.String __path,
java.lang.String __arg0,
java.lang.Object... varargs) |
static int |
execle(java.lang.String __path,
java.lang.String __arg0,
java.lang.Object... varargs) |
static int |
execlp(java.lang.String __file,
java.lang.String __arg0,
java.lang.Object... varargs) |
static int |
execv(java.lang.String __path,
org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> __argv) |
static int |
execve(java.lang.String __file,
org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> __argv,
org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> __envp) |
static int |
execvp(java.lang.String __file,
org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> __argv) |
static int |
execvP(java.lang.String __file,
java.lang.String __searchpath,
org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> __argv) |
static void |
exit(int arg1) |
static double |
exp(double arg1) |
static double |
exp2(double arg1) |
static float |
exp2f(float arg1) |
static float |
expf(float arg1) |
static double |
expm1(double arg1) |
static float |
expm1f(float arg1) |
static double |
fabs(double arg1) |
static float |
fabsf(float arg1) |
static int |
faccessat(int arg1,
java.lang.String arg2,
int arg3,
int arg4) |
static int |
fchdir(int arg1) |
static int |
fchown(int arg1,
int arg2,
int arg3) |
static int |
fchownat(int arg1,
java.lang.String arg2,
int arg3,
int arg4,
int arg5) |
static int |
fclose(FILE arg1) |
static int |
fcntl(int arg1,
int arg2,
java.lang.Object... varargs) |
static org.moe.natj.general.ptr.BytePtr |
fcvt(double arg1,
int arg2,
org.moe.natj.general.ptr.IntPtr arg3,
org.moe.natj.general.ptr.IntPtr arg4) |
static double |
fdim(double arg1,
double arg2) |
static float |
fdimf(float arg1,
float arg2) |
static FILE |
fdopen(int arg1,
java.lang.String arg2) |
static int |
feof(FILE arg1) |
static int |
ferror(FILE arg1) |
static org.moe.natj.general.ptr.BytePtr |
fflagstostr(long arg1) |
static int |
fflush(FILE arg1) |
static int |
ffs(int arg1) |
static int |
ffsctl(int arg1,
long arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
int arg4) |
static int |
ffsl(long arg1) |
static int |
ffsll(long arg1) |
static int |
fgetattrlist(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
long arg4,
int arg5) |
static int |
fgetc(FILE arg1) |
static org.moe.natj.general.ptr.BytePtr |
fgetln(FILE arg1,
org.moe.natj.general.ptr.NUIntPtr arg2) |
static int |
fgetpos(FILE arg1,
org.moe.natj.general.ptr.LongPtr arg2) |
static org.moe.natj.general.ptr.BytePtr |
fgets(org.moe.natj.general.ptr.BytePtr arg1,
int arg2,
FILE arg3) |
static int |
fileno(FILE arg1) |
static filesec_t |
filesec_dup(filesec_t arg1) |
static void |
filesec_free(filesec_t arg1) |
static int |
filesec_get_property(filesec_t arg1,
int arg2,
org.moe.natj.general.ptr.VoidPtr arg3) |
static filesec_t |
filesec_init() |
static int |
filesec_query_property(filesec_t arg1,
int arg2,
org.moe.natj.general.ptr.IntPtr arg3) |
static int |
filesec_set_property(filesec_t arg1,
int arg2,
org.moe.natj.general.ptr.ConstVoidPtr arg3) |
static int |
filesec_unset_property(filesec_t arg1,
int arg2) |
static int |
flock(int arg1,
int arg2) |
static void |
flockfile(FILE arg1) |
static double |
floor(double arg1) |
static float |
floorf(float arg1) |
static int |
fls(int arg1) |
static int |
flsl(long arg1) |
static int |
flsll(long arg1) |
static double |
fma(double arg1,
double arg2,
double arg3) |
static float |
fmaf(float arg1,
float arg2,
float arg3) |
static double |
fmax(double arg1,
double arg2) |
static float |
fmaxf(float arg1,
float arg2) |
static FILE |
fmemopen(org.moe.natj.general.ptr.VoidPtr __buf,
long __size,
java.lang.String __mode) |
static double |
fmin(double arg1,
double arg2) |
static float |
fminf(float arg1,
float arg2) |
static double |
fmod(double arg1,
double arg2) |
static float |
fmodf(float arg1,
float arg2) |
static java.lang.String |
fmtcheck(java.lang.String arg1,
java.lang.String arg2) |
static FILE |
fopen(java.lang.String __filename,
java.lang.String __mode) |
static int |
fork() |
static long |
fpathconf(int arg1,
int arg2) |
static int |
fprintf(FILE arg1,
java.lang.String arg2,
java.lang.Object... varargs) |
static int |
fpurge(FILE arg1) |
static int |
fputc(int arg1,
FILE arg2) |
static int |
fputs(java.lang.String arg1,
FILE arg2) |
static long |
fread(org.moe.natj.general.ptr.VoidPtr __ptr,
long __size,
long __nitems,
FILE __stream) |
static void |
free(org.moe.natj.general.ptr.VoidPtr arg1) |
static FILE |
freopen(java.lang.String arg1,
java.lang.String arg2,
FILE arg3) |
static double |
frexp(double arg1,
org.moe.natj.general.ptr.IntPtr arg2) |
static float |
frexpf(float arg1,
org.moe.natj.general.ptr.IntPtr arg2) |
static int |
fscanf(FILE arg1,
java.lang.String arg2,
java.lang.Object... varargs) |
static int |
fsctl(java.lang.String arg1,
long arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
int arg4) |
static int |
fseek(FILE arg1,
long arg2,
int arg3) |
static int |
fseeko(FILE __stream,
long __offset,
int __whence) |
static int |
fsetattrlist(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
long arg4,
int arg5) |
static int |
fsetpos(FILE arg1,
org.moe.natj.general.ptr.ConstLongPtr arg2) |
static int |
fsync_volume_np(int arg1,
int arg2) |
static int |
fsync(int arg1)
End XSI
|
static long |
ftell(FILE arg1) |
static long |
ftello(FILE __stream) |
static int |
ftruncate(int arg1,
long arg2) |
static int |
ftrylockfile(FILE arg1) |
static void |
funlockfile(FILE arg1) |
static FILE |
funopen(org.moe.natj.general.ptr.ConstVoidPtr arg1,
Globals.Function_funopen_1 arg2,
Globals.Function_funopen_2 arg3,
Globals.Function_funopen_3 arg4,
Globals.Function_funopen_4 arg5)
Stdio function-access interface.
|
static int |
futimes(int arg1,
timeval arg2) |
static long |
fwrite(org.moe.natj.general.ptr.ConstVoidPtr __ptr,
long __size,
long __nitems,
FILE __stream) |
static org.moe.natj.general.ptr.BytePtr |
gcvt(double arg1,
int arg2,
org.moe.natj.general.ptr.BytePtr arg3) |
static int |
getattrlist(java.lang.String arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
long arg4,
int arg5) |
static int |
getattrlistat(int arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
org.moe.natj.general.ptr.VoidPtr arg4,
long arg5,
long arg6) |
static int |
getattrlistbulk(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
long arg4,
long arg5) |
static int |
getaudit_addr(auditinfo_addr arg1,
int arg2) |
static int |
getaudit(auditinfo arg1)
Deprecated.
|
static int |
getauid(org.moe.natj.general.ptr.IntPtr arg1) |
static org.moe.natj.general.ptr.BytePtr |
getbsize(org.moe.natj.general.ptr.IntPtr arg1,
org.moe.natj.general.ptr.NIntPtr arg2) |
static int |
getc_unlocked(FILE arg1) |
static int |
getc(FILE arg1) |
static int |
getchar_unlocked() |
static int |
getchar() |
static org.moe.natj.general.ptr.BytePtr |
getcwd(org.moe.natj.general.ptr.BytePtr arg1,
long arg2) |
static int |
getdate_err() |
static tm |
getdate(java.lang.String arg1) |
static long |
getdelim(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __linep,
org.moe.natj.general.ptr.NUIntPtr __linecapp,
int __delimiter,
FILE __stream) |
static int |
getdirentriesattr(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
long arg4,
org.moe.natj.general.ptr.IntPtr arg5,
org.moe.natj.general.ptr.IntPtr arg6,
org.moe.natj.general.ptr.IntPtr arg7,
int arg8) |
static int |
getdomainname(org.moe.natj.general.ptr.BytePtr arg1,
int arg2) |
static int |
getdtablesize() |
static int |
getegid() |
static org.moe.natj.general.ptr.BytePtr |
getenv(java.lang.String arg1)
free is now declared in _malloc.h
|
static int |
geteuid() |
static int |
getgid() |
static int |
getgrouplist(java.lang.String arg1,
int arg2,
org.moe.natj.general.ptr.IntPtr arg3,
org.moe.natj.general.ptr.IntPtr arg4) |
static int |
getgroups(int arg1,
org.moe.natj.general.ptr.IntPtr arg2) |
static long |
gethostid() |
static int |
gethostname(org.moe.natj.general.ptr.BytePtr arg1,
long arg2) |
static int |
getiopolicy_np(int arg1,
int arg2) |
static int |
getipv4sourcefilter(int arg1,
in_addr arg2,
in_addr arg3,
org.moe.natj.general.ptr.IntPtr arg4,
org.moe.natj.general.ptr.IntPtr arg5,
in_addr arg6) |
static int |
getitimer(int arg1,
itimerval arg2) |
static long |
getline(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __linep,
org.moe.natj.general.ptr.NUIntPtr __linecapp,
FILE __stream) |
static int |
getloadavg(org.moe.natj.general.ptr.DoublePtr arg1,
int arg2) |
static int |
getlogin_r(org.moe.natj.general.ptr.BytePtr arg1,
long arg2) |
static org.moe.natj.general.ptr.BytePtr |
getlogin() |
static char |
getmode(org.moe.natj.general.ptr.ConstVoidPtr arg1,
char arg2) |
static int |
getopt(int arg1,
org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> arg2,
java.lang.String arg3) |
static int |
getpagesize() |
static org.moe.natj.general.ptr.BytePtr |
getpass(java.lang.String arg1) |
static int |
getpeereid(int arg1,
org.moe.natj.general.ptr.IntPtr arg2,
org.moe.natj.general.ptr.IntPtr arg3) |
static int |
getpeername(int arg1,
sockaddr arg2,
org.moe.natj.general.ptr.IntPtr arg3) |
static int |
getpgid(int arg1) |
static int |
getpgrp() |
static int |
getpid() |
static int |
getppid() |
static int |
getpriority(int arg1,
int arg2) |
static java.lang.String |
getprogname() |
static int |
getrlimit(int arg1,
rlimit arg2) |
static int |
getrusage(int arg1,
rusage arg2) |
static org.moe.natj.general.ptr.BytePtr |
gets(org.moe.natj.general.ptr.BytePtr arg1) |
static int |
getsid(int arg1) |
static int |
getsockname(int arg1,
sockaddr arg2,
org.moe.natj.general.ptr.IntPtr arg3) |
static int |
getsockopt(int arg1,
int arg2,
int arg3,
org.moe.natj.general.ptr.VoidPtr arg4,
org.moe.natj.general.ptr.IntPtr arg5) |
static int |
getsourcefilter(int arg1,
int arg2,
sockaddr arg3,
int arg4,
org.moe.natj.general.ptr.IntPtr arg5,
org.moe.natj.general.ptr.IntPtr arg6,
sockaddr_storage arg7) |
static int |
getsubopt(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> arg2,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg3) |
static int |
gettimeofday(timeval arg1,
org.moe.natj.general.ptr.VoidPtr arg2) |
static int |
getuid() |
static org.moe.natj.general.ptr.BytePtr |
getusershell() |
static int |
getw(FILE arg1) |
static org.moe.natj.general.ptr.BytePtr |
getwd(org.moe.natj.general.ptr.BytePtr arg1) |
static tm |
gmtime_r(org.moe.natj.general.ptr.ConstNIntPtr arg1,
tm arg2) |
static tm |
gmtime(org.moe.natj.general.ptr.ConstNIntPtr arg1) |
static int |
grantpt(int arg1) |
static int |
heapsort_b(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
Globals.Block_heapsort_b __compar) |
static int |
heapsort(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
Globals.Function_heapsort __compar) |
static double |
hypot(double arg1,
double arg2) |
static float |
hypotf(float arg1,
float arg2) |
static int |
ilogb(double arg1) |
static int |
ilogbf(float arg1) |
static long |
imaxabs(long j)
7.8.2.1
|
static imaxdiv_t |
imaxdiv(long __numer,
long __denom) |
static org.moe.natj.general.ptr.BytePtr |
index(java.lang.String arg1,
int arg2) |
static int |
inet6_opt_append(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2,
int arg3,
byte arg4,
int arg5,
byte arg6,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.VoidPtr> arg7) |
static int |
inet6_opt_find(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2,
int arg3,
byte arg4,
org.moe.natj.general.ptr.IntPtr arg5,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.VoidPtr> arg6) |
static int |
inet6_opt_finish(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2,
int arg3) |
static int |
inet6_opt_get_val(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
int arg4) |
static int |
inet6_opt_init(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2) |
static int |
inet6_opt_next(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2,
int arg3,
org.moe.natj.general.ptr.BytePtr arg4,
org.moe.natj.general.ptr.IntPtr arg5,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.VoidPtr> arg6) |
static int |
inet6_opt_set_val(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
int arg4) |
static org.moe.natj.general.ptr.BytePtr |
inet6_option_alloc(cmsghdr arg1,
int arg2,
int arg3,
int arg4) |
static int |
inet6_option_append(cmsghdr arg1,
java.lang.String arg2,
int arg3,
int arg4) |
static int |
inet6_option_find(cmsghdr arg1,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2,
int arg3) |
static int |
inet6_option_init(org.moe.natj.general.ptr.VoidPtr arg1,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.Ptr<cmsghdr>> arg2,
int arg3) |
static int |
inet6_option_next(cmsghdr arg1,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2) |
static int |
inet6_option_space(int arg1) |
static int |
inet6_rth_add(org.moe.natj.general.ptr.VoidPtr arg1,
org.moe.natj.general.ptr.VoidPtr arg2) |
static org.moe.natj.general.ptr.VoidPtr |
inet6_rth_getaddr(org.moe.natj.general.ptr.ConstVoidPtr arg1,
int arg2) |
static org.moe.natj.general.ptr.VoidPtr |
inet6_rth_init(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2,
int arg3,
int arg4) |
static int |
inet6_rth_reverse(org.moe.natj.general.ptr.ConstVoidPtr arg1,
org.moe.natj.general.ptr.VoidPtr arg2) |
static int |
inet6_rth_segments(org.moe.natj.general.ptr.ConstVoidPtr arg1) |
static int |
inet6_rth_space(int arg1,
int arg2) |
static int |
inet6_rthdr_add(cmsghdr arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
int arg3) |
static org.moe.natj.general.ptr.VoidPtr |
inet6_rthdr_getaddr(cmsghdr arg1,
int arg2) |
static int |
inet6_rthdr_getflags(cmsghdr arg1,
int arg2) |
static cmsghdr |
inet6_rthdr_init(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2) |
static int |
inet6_rthdr_lasthop(cmsghdr arg1,
int arg2) |
static int |
inet6_rthdr_segments(cmsghdr arg1) |
static long |
inet6_rthdr_space(int arg1,
int arg2) |
static int |
initgroups(java.lang.String arg1,
int arg2) |
static org.moe.natj.general.ptr.BytePtr |
initstate(int arg1,
org.moe.natj.general.ptr.BytePtr arg2,
long arg3) |
static int |
iruserok_sa(org.moe.natj.general.ptr.ConstVoidPtr arg1,
int arg2,
int arg3,
java.lang.String arg4,
java.lang.String arg5)
Deprecated.
|
static int |
iruserok(long arg1,
int arg2,
java.lang.String arg3,
java.lang.String arg4)
Deprecated.
|
static int |
isalnum(int _c) |
static int |
isalpha(int _c) |
static int |
isascii(int _c) |
static int |
isatty(int arg1) |
static int |
isblank(int _c) |
static int |
iscntrl(int _c) |
static int |
isdigit(int _c)
ANSI -- locale independent
|
static int |
isgraph(int _c) |
static int |
ishexnumber(int _c) |
static int |
isideogram(int _c) |
static int |
islower(int _c) |
static int |
isnumber(int _c) |
static int |
isphonogram(int _c) |
static int |
isprint(int _c) |
static int |
ispunct(int _c) |
static int |
isrune(int _c) |
static int |
issetugid() |
static int |
isspace(int _c) |
static int |
isspecial(int _c) |
static int |
isupper(int _c) |
static int |
isxdigit(int _c)
ANSI -- locale independent
|
static double |
j0(double arg1) |
static double |
j1(double arg1) |
static double |
jn(int arg1,
double arg2) |
static audit_token_t |
KERNEL_AUDIT_TOKEN() |
static security_token_t |
KERNEL_SECURITY_TOKEN() |
static int |
kill(int arg1,
int arg2) |
static int |
killpg(int arg1,
int arg2) |
static org.moe.natj.general.ptr.BytePtr |
l64a(long arg1) |
static long |
labs(long arg1) |
static int |
lchown(java.lang.String arg1,
int arg2,
int arg3) |
static double |
ldexp(double arg1,
int arg2) |
static float |
ldexpf(float arg1,
int arg2) |
static ldiv_t |
ldiv(long arg1,
long arg2) |
static double |
lgamma(double arg1) |
static float |
lgammaf(float arg1)
lgammaf, lgamma, and lgammal are not thread-safe.
|
static int |
link(java.lang.String arg1,
java.lang.String arg2) |
static int |
linkat(int arg1,
java.lang.String arg2,
int arg3,
java.lang.String arg4,
int arg5) |
static int |
listen(int arg1,
int arg2) |
static long |
llabs(long arg1) |
static lldiv_t |
lldiv(long arg1,
long arg2) |
static long |
llrint(double arg1) |
static long |
llrintf(float arg1) |
static long |
llround(double arg1) |
static long |
llroundf(float arg1) |
static lconv |
localeconv() |
static tm |
localtime_r(org.moe.natj.general.ptr.ConstNIntPtr arg1,
tm arg2) |
static tm |
localtime(org.moe.natj.general.ptr.ConstNIntPtr arg1) |
static int |
lockf(int arg1,
int arg2,
long arg3) |
static double |
log(double arg1) |
static double |
log10(double arg1) |
static float |
log10f(float arg1) |
static double |
log1p(double arg1) |
static float |
log1pf(float arg1) |
static double |
log2(double arg1) |
static float |
log2f(float arg1) |
static double |
logb(double arg1) |
static float |
logbf(float arg1) |
static float |
logf(float arg1) |
static void |
longjmp(org.moe.natj.general.ptr.IntPtr arg1,
int arg2) |
static void |
longjmperror() |
static long |
lrand48() |
static long |
lrint(double arg1) |
static long |
lrintf(float arg1) |
static long |
lround(double arg1) |
static long |
lroundf(float arg1) |
static long |
lseek(int arg1,
long arg2,
int arg3) |
static int |
lutimes(java.lang.String arg1,
timeval arg2) |
static int |
mach_msg_overwrite(mach_msg_header_t msg,
int option,
int send_size,
int rcv_size,
int rcv_name,
int timeout,
int notify_,
mach_msg_header_t rcv_msg,
int rcv_limit)
Routine: mach_msg_overwrite
Purpose:
Send and/or receive a message.
|
static int |
mach_msg(mach_msg_header_t msg,
int option,
int send_size,
int rcv_size,
int rcv_name,
int timeout,
int notify_)
Routine: mach_msg
Purpose:
Send and/or receive a message.
|
static int |
mach_voucher_deallocate(int voucher)
Routine: mach_voucher_deallocate
Purpose:
Deallocate a mach voucher created or received in a message.
|
static org.moe.natj.general.ptr.VoidPtr |
malloc(long __size) |
static int |
mblen(java.lang.String __s,
long __n)
malloc is now declared in _malloc.h
|
static long |
mbstowcs(org.moe.natj.general.ptr.IntPtr arg1,
java.lang.String arg2,
long arg3) |
static int |
mbtowc(org.moe.natj.general.ptr.IntPtr arg1,
java.lang.String arg2,
long arg3) |
static org.moe.natj.general.ptr.VoidPtr |
memccpy(org.moe.natj.general.ptr.VoidPtr __dst,
org.moe.natj.general.ptr.ConstVoidPtr __src,
int __c,
long __n) |
static org.moe.natj.general.ptr.VoidPtr |
memchr(org.moe.natj.general.ptr.ConstVoidPtr __s,
int __c,
long __n)
ANSI-C
|
static int |
memcmp(org.moe.natj.general.ptr.ConstVoidPtr __s1,
org.moe.natj.general.ptr.ConstVoidPtr __s2,
long __n) |
static org.moe.natj.general.ptr.VoidPtr |
memcpy(org.moe.natj.general.ptr.VoidPtr __dst,
org.moe.natj.general.ptr.ConstVoidPtr __src,
long __n) |
static org.moe.natj.general.ptr.VoidPtr |
memmem(org.moe.natj.general.ptr.ConstVoidPtr __big,
long __big_len,
org.moe.natj.general.ptr.ConstVoidPtr __little,
long __little_len) |
static org.moe.natj.general.ptr.VoidPtr |
memmove(org.moe.natj.general.ptr.VoidPtr __dst,
org.moe.natj.general.ptr.ConstVoidPtr __src,
long __len) |
static void |
memset_pattern16(org.moe.natj.general.ptr.VoidPtr __b,
org.moe.natj.general.ptr.ConstVoidPtr __pattern16,
long __len) |
static void |
memset_pattern4(org.moe.natj.general.ptr.VoidPtr __b,
org.moe.natj.general.ptr.ConstVoidPtr __pattern4,
long __len) |
static void |
memset_pattern8(org.moe.natj.general.ptr.VoidPtr __b,
org.moe.natj.general.ptr.ConstVoidPtr __pattern8,
long __len) |
static org.moe.natj.general.ptr.VoidPtr |
memset(org.moe.natj.general.ptr.VoidPtr __b,
int __c,
long __len) |
static int |
mergesort_b(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
Globals.Block_mergesort_b __compar) |
static int |
mergesort(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
Globals.Function_mergesort __compar) |
static org.moe.natj.general.ptr.BytePtr |
mkdtemp(org.moe.natj.general.ptr.BytePtr arg1) |
static org.moe.natj.general.ptr.BytePtr |
mkdtempat_np(int dfd,
org.moe.natj.general.ptr.BytePtr path) |
static int |
mknod(java.lang.String arg1,
char arg2,
int arg3) |
static int |
mkostemp(org.moe.natj.general.ptr.BytePtr path,
int oflags) |
static int |
mkostemps(org.moe.natj.general.ptr.BytePtr path,
int slen,
int oflags) |
static int |
mkostempsat_np(int dfd,
org.moe.natj.general.ptr.BytePtr path,
int slen,
int oflags) |
static int |
mkpath_np(java.lang.String path,
char omode) |
static int |
mkpathat_np(int dfd,
java.lang.String path,
char omode) |
static int |
mkstemp_dprotected_np(org.moe.natj.general.ptr.BytePtr path,
int dpclass,
int dpflags)
Non-portable mkstemp that uses open_dprotected_np
|
static int |
mkstemp(org.moe.natj.general.ptr.BytePtr arg1) |
static int |
mkstemps(org.moe.natj.general.ptr.BytePtr arg1,
int arg2) |
static int |
mkstempsat_np(int dfd,
org.moe.natj.general.ptr.BytePtr path,
int slen) |
static org.moe.natj.general.ptr.BytePtr |
mktemp(org.moe.natj.general.ptr.BytePtr arg1) |
static long |
mktime(tm arg1) |
static double |
modf(double arg1,
org.moe.natj.general.ptr.DoublePtr arg2) |
static float |
modff(float arg1,
org.moe.natj.general.ptr.FloatPtr arg2) |
static long |
mrand48() |
static double |
nan(java.lang.String arg1) |
static float |
nanf(java.lang.String arg1) |
static int |
nanosleep(timespec __rqtp,
timespec __rmtp) |
static double |
nearbyint(double arg1) |
static float |
nearbyintf(float arg1) |
static double |
nextafter(double arg1,
double arg2) |
static float |
nextafterf(float arg1,
float arg2) |
static int |
nfssvc(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2) |
static int |
nice(int arg1) |
static long |
NXConvertHostDoubleToSwapped(double x)
Deprecated.
|
static long |
NXConvertHostFloatToSwapped(float x)
Deprecated.
|
static double |
NXConvertSwappedDoubleToHost(long x)
Deprecated.
|
static float |
NXConvertSwappedFloatToHost(long x)
Deprecated.
|
static int |
NXHostByteOrder() |
static double |
NXSwapBigDoubleToHost(long x)
Deprecated.
|
static float |
NXSwapBigFloatToHost(long x)
Deprecated.
|
static int |
NXSwapBigIntToHost(int x)
Deprecated.
|
static long |
NXSwapBigLongLongToHost(long x)
Deprecated.
|
static long |
NXSwapBigLongToHost(long x)
Deprecated.
|
static char |
NXSwapBigShortToHost(char x)
Deprecated.
|
static long |
NXSwapDouble(long x)
Deprecated.
|
static long |
NXSwapFloat(long x)
Deprecated.
|
static long |
NXSwapHostDoubleToBig(double x)
Deprecated.
|
static long |
NXSwapHostDoubleToLittle(double x)
Deprecated.
|
static long |
NXSwapHostFloatToBig(float x)
Deprecated.
|
static long |
NXSwapHostFloatToLittle(float x)
Deprecated.
|
static int |
NXSwapHostIntToBig(int x)
Deprecated.
|
static int |
NXSwapHostIntToLittle(int x)
Deprecated.
|
static long |
NXSwapHostLongLongToBig(long x)
Deprecated.
|
static long |
NXSwapHostLongLongToLittle(long x)
Deprecated.
|
static long |
NXSwapHostLongToBig(long x)
Deprecated.
|
static long |
NXSwapHostLongToLittle(long x)
Deprecated.
|
static char |
NXSwapHostShortToBig(char x)
Deprecated.
|
static char |
NXSwapHostShortToLittle(char x)
Deprecated.
|
static int |
NXSwapInt(int inv)
Deprecated.
|
static double |
NXSwapLittleDoubleToHost(long x)
Deprecated.
|
static float |
NXSwapLittleFloatToHost(long x)
Deprecated.
|
static int |
NXSwapLittleIntToHost(int x)
Deprecated.
|
static long |
NXSwapLittleLongLongToHost(long x)
Deprecated.
|
static long |
NXSwapLittleLongToHost(long x)
Deprecated.
|
static char |
NXSwapLittleShortToHost(char x)
Deprecated.
|
static long |
NXSwapLong(long inv)
Deprecated.
|
static long |
NXSwapLongLong(long inv)
Deprecated.
|
static char |
NXSwapShort(char inv)
Deprecated.
|
static java.lang.String |
object_getClassName(java.lang.Object obj)
Returns the class name of a given object.
|
static org.moe.natj.general.ptr.VoidPtr |
object_getIndexedIvars(java.lang.Object obj)
Returns a pointer to any extra bytes allocated with an instance given object.
|
static int |
open_dprotected_np(java.lang.String arg1,
int arg2,
int arg3,
int arg4,
java.lang.Object... varargs)
data-protected non-portable open(2) :
int open_dprotected_np(user_addr_t path, int flags, int class, int dpflags, int mode)
|
static FILE |
open_memstream(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __bufp,
org.moe.natj.general.ptr.NUIntPtr __sizep) |
static int |
open(java.lang.String arg1,
int arg2,
java.lang.Object... varargs) |
static int |
openat(int arg1,
java.lang.String arg2,
int arg3,
java.lang.Object... varargs) |
static int |
openx_np(java.lang.String arg1,
int arg2,
filesec_t arg3) |
static org.moe.natj.general.ptr.BytePtr |
optarg()
getopt(3) external variables
|
static int |
opterr() |
static int |
optind() |
static int |
optopt() |
static int |
optreset() |
static void |
os_activity_end(long activity)
[@function] os_activity_end
|
static int |
os_activity_get_active(org.moe.natj.general.ptr.LongPtr entries,
org.moe.natj.general.ptr.IntPtr count)
[@function] os_activity_get_active
|
static long |
os_activity_get_identifier(long activity,
org.moe.natj.general.ptr.LongPtr parent_id)
[@function] os_activity_get_identifier
|
static NSObject |
os_log_create(java.lang.String subsystem,
java.lang.String category)
[@function] os_log_create
|
static boolean |
os_log_is_debug_enabled(NSObject log) |
static boolean |
os_log_is_enabled(NSObject log) |
static boolean |
os_log_type_enabled(NSObject oslog,
byte type)
[@function] os_log_type_enabled
|
static void |
os_release(org.moe.natj.general.ptr.VoidPtr object)
[@function] os_release
|
static org.moe.natj.general.ptr.VoidPtr |
os_retain(org.moe.natj.general.ptr.VoidPtr object)
[@function] os_retain
|
static boolean |
os_signpost_enabled(NSObject log)
[@function] os_signpost_enabled
|
static long |
os_signpost_id_generate(NSObject log)
[@function] os_signpost_id_generate
|
static long |
os_signpost_id_make_with_pointer(NSObject log,
org.moe.natj.general.ptr.ConstVoidPtr ptr)
[@function] os_signpost_id_make_with_pointer
|
static boolean |
os_trace_debug_enabled()
[@function] os_trace_debug_enabled
|
static boolean |
os_trace_info_enabled()
[@function] os_trace_info_enabled
|
static boolean |
os_trace_type_enabled(byte type)
[@function] os_trace_type_enabled
|
static void |
os_unfair_lock_assert_not_owner(os_unfair_lock_s lock)
[@function] os_unfair_lock_assert_not_owner
|
static void |
os_unfair_lock_assert_owner(os_unfair_lock_s lock)
[@function] os_unfair_lock_assert_owner
|
static void |
os_unfair_lock_lock(os_unfair_lock_s lock)
[@function] os_unfair_lock_lock
|
static boolean |
os_unfair_lock_trylock(os_unfair_lock_s lock)
[@function] os_unfair_lock_trylock
|
static void |
os_unfair_lock_unlock(os_unfair_lock_s lock)
[@function] os_unfair_lock_unlock
|
static void |
os_workgroup_cancel(OS_os_workgroup wg)
[@function] os_workgroup_cancel
|
static OS_os_workgroup |
os_workgroup_create_with_workgroup(java.lang.String name,
OS_os_workgroup wg)
[@function] os_workgroup_create_with_workgroup
|
static org.moe.natj.general.ptr.VoidPtr |
os_workgroup_get_working_arena(OS_os_workgroup wg,
org.moe.natj.general.ptr.IntPtr index_out)
[@function] os_workgroup_get_working_arena
|
static int |
os_workgroup_interval_finish(OS_os_workgroup wg,
os_workgroup_interval_data_opaque_s data)
[@function] os_workgroup_interval_finish
|
static int |
os_workgroup_interval_start(OS_os_workgroup wg,
long start,
long deadline,
os_workgroup_interval_data_opaque_s data)
[@function] os_workgroup_interval_start
|
static int |
os_workgroup_interval_update(OS_os_workgroup wg,
long deadline,
os_workgroup_interval_data_opaque_s data)
[@function] os_workgroup_interval_update
|
static int |
os_workgroup_join(OS_os_workgroup wg,
os_workgroup_join_token_opaque_s token_out)
[@function] os_workgroup_join
|
static void |
os_workgroup_leave(OS_os_workgroup wg,
os_workgroup_join_token_opaque_s token)
[@function] os_workgroup_leave
|
static int |
os_workgroup_max_parallel_threads(OS_os_workgroup wg,
os_workgroup_mpt_attr_t attr)
[@function] os_workgroup_max_parallel_threads
|
static OS_os_workgroup |
os_workgroup_parallel_create(java.lang.String name,
os_workgroup_attr_opaque_s attr)
[@function] os_workgroup_parallel_create
|
static int |
os_workgroup_set_working_arena(OS_os_workgroup wg,
org.moe.natj.general.ptr.VoidPtr arena,
int max_workers,
Globals.Function_os_workgroup_set_working_arena destructor)
[@function] os_workgroup_set_working_arena
|
static boolean |
os_workgroup_testcancel(OS_os_workgroup wg)
[@function] os_workgroup_testcancel
|
static int |
OSHostByteOrder() |
static char |
OSReadSwapInt16(org.moe.natj.general.ptr.ConstVoidPtr _base,
long _offset) |
static int |
OSReadSwapInt32(org.moe.natj.general.ptr.ConstVoidPtr _base,
long _offset) |
static long |
OSReadSwapInt64(org.moe.natj.general.ptr.ConstVoidPtr _base,
long _offset) |
static void |
OSWriteSwapInt16(org.moe.natj.general.ptr.VoidPtr _base,
long _offset,
char _data) |
static void |
OSWriteSwapInt32(org.moe.natj.general.ptr.VoidPtr _base,
long _offset,
int _data) |
static void |
OSWriteSwapInt64(org.moe.natj.general.ptr.VoidPtr _base,
long _offset,
long _data) |
static long |
pathconf(java.lang.String arg1,
int arg2) |
static int |
pause() |
static int |
pclose(FILE arg1) |
static int |
PeerConnectionRelease(int flags,
java.lang.String name,
java.lang.String regtype,
java.lang.String domain)
PeerConnectionRelease() Parameters
|
static void |
perror(java.lang.String arg1) |
static void |
pfctlinput(int arg1,
sockaddr arg2) |
static FILE |
popen(java.lang.String arg1,
java.lang.String arg2) |
static int |
posix_memalign(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.VoidPtr> __memptr,
long __alignment,
long __size) |
static int |
posix_openpt(int arg1) |
static long |
posix2time(long arg1) |
static double |
pow(double arg1,
double arg2) |
static float |
powf(float arg1,
float arg2) |
static long |
pread(int __fd,
org.moe.natj.general.ptr.VoidPtr __buf,
long __nbyte,
long __offset) |
static int |
printf(java.lang.String arg1,
java.lang.Object... varargs) |
static int |
profil(org.moe.natj.general.ptr.BytePtr arg1,
long arg2,
long arg3,
int arg4) |
static int |
pselect(int arg1,
fd_set arg2,
fd_set arg3,
fd_set arg4,
timespec arg5,
org.moe.natj.general.ptr.ConstIntPtr arg6) |
static void |
psignal(int arg1,
java.lang.String arg2) |
static void |
psort_b(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
Globals.Block_psort_b __compar) |
static void |
psort_r(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
org.moe.natj.general.ptr.VoidPtr arg4,
Globals.Function_psort_r __compar) |
static void |
psort(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
Globals.Function_psort __compar) |
static int |
pthread_getugid_np(org.moe.natj.general.ptr.IntPtr arg1,
org.moe.natj.general.ptr.IntPtr arg2) |
static int |
pthread_kill(_opaque_pthread_t arg1,
int arg2) |
static int |
pthread_setugid_np(int arg1,
int arg2)
Deprecated.
|
static int |
pthread_sigmask(int arg1,
org.moe.natj.general.ptr.ConstIntPtr arg2,
org.moe.natj.general.ptr.IntPtr arg3) |
static int |
ptsname_r(int fildes,
org.moe.natj.general.ptr.BytePtr buffer,
long buflen) |
static org.moe.natj.general.ptr.BytePtr |
ptsname(int arg1) |
static int |
putc_unlocked(int arg1,
FILE arg2) |
static int |
putc(int arg1,
FILE arg2) |
static int |
putchar_unlocked(int arg1) |
static int |
putchar(int arg1) |
static int |
putenv(org.moe.natj.general.ptr.BytePtr arg1) |
static int |
puts(java.lang.String arg1) |
static int |
putw(int arg1,
FILE arg2) |
static long |
pwrite(int __fd,
org.moe.natj.general.ptr.ConstVoidPtr __buf,
long __nbyte,
long __offset) |
static int |
qos_class_main()
[@function] qos_class_main
|
static int |
qos_class_self()
[@function] qos_class_self
|
static void |
qsort_b(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
Globals.Block_qsort_b __compar) |
static void |
qsort_r(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
org.moe.natj.general.ptr.VoidPtr arg4,
Globals.Function_qsort_r __compar) |
static void |
qsort(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
Globals.Function_qsort __compar)
posix_memalign is now declared in _malloc.h
|
static int |
radixsort(java.lang.String[] __base,
int __nel,
java.lang.String __table,
int __endbyte) |
static int |
raise(int arg1) |
static int |
rand_r(org.moe.natj.general.ptr.IntPtr arg1) |
static int |
rand() |
static long |
random() |
static int |
rcmd_af(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
int arg2,
java.lang.String arg3,
java.lang.String arg4,
java.lang.String arg5,
org.moe.natj.general.ptr.IntPtr arg6,
int arg7)
Deprecated.
|
static int |
rcmd(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
int arg2,
java.lang.String arg3,
java.lang.String arg4,
java.lang.String arg5,
org.moe.natj.general.ptr.IntPtr arg6)
Deprecated.
|
static long |
read(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
long arg3) |
static long |
readlink(java.lang.String arg1,
org.moe.natj.general.ptr.BytePtr arg2,
long arg3) |
static long |
readlinkat(int arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.BytePtr arg3,
long arg4) |
static org.moe.natj.general.ptr.VoidPtr |
realloc(org.moe.natj.general.ptr.VoidPtr __ptr,
long __size) |
static org.moe.natj.general.ptr.VoidPtr |
reallocf(org.moe.natj.general.ptr.VoidPtr __ptr,
long __size) |
static org.moe.natj.general.ptr.BytePtr |
realpath(java.lang.String arg1,
org.moe.natj.general.ptr.BytePtr arg2) |
static int |
reboot(int arg1) |
static long |
recv(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
long arg3,
int arg4) |
static long |
recvfrom(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
long arg3,
int arg4,
sockaddr arg5,
org.moe.natj.general.ptr.IntPtr arg6) |
static long |
recvmsg(int arg1,
msghdr arg2,
int arg3) |
static double |
remainder(double arg1,
double arg2) |
static float |
remainderf(float arg1,
float arg2) |
static int |
remove(java.lang.String arg1) |
static double |
remquo(double arg1,
double arg2,
org.moe.natj.general.ptr.IntPtr arg3) |
static float |
remquof(float arg1,
float arg2,
org.moe.natj.general.ptr.IntPtr arg3) |
static int |
rename(java.lang.String __old,
java.lang.String __new) |
static int |
renameat(int arg1,
java.lang.String arg2,
int arg3,
java.lang.String arg4) |
static int |
renameatx_np(int arg1,
java.lang.String arg2,
int arg3,
java.lang.String arg4,
int arg5) |
static int |
renamex_np(java.lang.String arg1,
java.lang.String arg2,
int arg3) |
static int |
revoke(java.lang.String arg1) |
static void |
rewind(FILE arg1) |
static org.moe.natj.general.ptr.BytePtr |
rindex(java.lang.String arg1,
int arg2) |
static double |
rint(double arg1) |
static float |
rintf(float arg1) |
static int |
rmdir(java.lang.String arg1) |
static double |
round(double arg1) |
static float |
roundf(float arg1) |
static int |
rpmatch(java.lang.String arg1) |
static int |
rresvport_af(org.moe.natj.general.ptr.IntPtr arg1,
int arg2)
Deprecated.
|
static int |
rresvport(org.moe.natj.general.ptr.IntPtr arg1)
Deprecated.
|
static int |
ruserok(java.lang.String arg1,
int arg2,
java.lang.String arg3,
java.lang.String arg4)
Deprecated.
|
static org.moe.natj.general.ptr.VoidPtr |
sbrk(int arg1)
Deprecated.
|
static double |
scalb(double arg1,
double arg2) |
static double |
scalbln(double arg1,
long arg2) |
static float |
scalblnf(float arg1,
long arg2) |
static double |
scalbn(double arg1,
int arg2) |
static float |
scalbnf(float arg1,
int arg2) |
static int |
scanf(java.lang.String arg1,
java.lang.Object... varargs) |
static int |
searchfs(java.lang.String arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
org.moe.natj.general.ptr.NUIntPtr arg3,
int arg4,
int arg5,
org.moe.natj.general.ptr.VoidPtr arg6) |
static java.lang.String |
sel_getName(org.moe.natj.objc.SEL sel)
Returns the name of the method specified by a given selector.
|
static org.moe.natj.objc.SEL |
sel_getUid(java.lang.String str)
Registers a method name with the Objective-C runtime system.
|
static boolean |
sel_isMapped(org.moe.natj.objc.SEL sel)
Identifies a selector as being valid or invalid.
|
static org.moe.natj.objc.SEL |
sel_registerName(java.lang.String str)
Registers a method with the Objective-C runtime system, maps the method
name to a selector, and returns the selector value.
|
static int |
select(int arg1,
fd_set arg2,
fd_set arg3,
fd_set arg4,
timeval arg5) |
static long |
send(int arg1,
org.moe.natj.general.ptr.ConstVoidPtr arg2,
long arg3,
int arg4) |
static int |
sendfile(int arg1,
int arg2,
long arg3,
org.moe.natj.general.ptr.LongPtr arg4,
sf_hdtr arg5,
int arg6) |
static long |
sendmsg(int arg1,
msghdr arg2,
int arg3) |
static long |
sendto(int arg1,
org.moe.natj.general.ptr.ConstVoidPtr arg2,
long arg3,
int arg4,
sockaddr arg5,
int arg6) |
static int |
setattrlist(java.lang.String arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
long arg4,
int arg5) |
static int |
setattrlistat(int arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
org.moe.natj.general.ptr.VoidPtr arg4,
long arg5,
int arg6) |
static int |
setaudit_addr(auditinfo_addr arg1,
int arg2) |
static int |
setaudit(auditinfo arg1)
Deprecated.
|
static int |
setauid(org.moe.natj.general.ptr.ConstIntPtr arg1) |
static void |
setbuf(FILE arg1,
org.moe.natj.general.ptr.BytePtr arg2) |
static void |
setbuffer(FILE arg1,
org.moe.natj.general.ptr.BytePtr arg2,
int arg3) |
static int |
setdomainname(java.lang.String arg1,
int arg2) |
static int |
setegid(int arg1) |
static int |
setenv(java.lang.String __name,
java.lang.String __value,
int __overwrite) |
static int |
seteuid(int arg1) |
static int |
setgid(int arg1) |
static int |
setgroups(int arg1,
org.moe.natj.general.ptr.ConstIntPtr arg2) |
static void |
sethostid(long arg1) |
static int |
sethostname(java.lang.String arg1,
int arg2) |
static int |
setiopolicy_np(int arg1,
int arg2,
int arg3) |
static int |
setipv4sourcefilter(int arg1,
in_addr arg2,
in_addr arg3,
int arg4,
int arg5,
in_addr arg6)
Advanced (Full-state) APIs [RFC3678]
The RFC specifies uint_t for the 6th argument to [sg]etsourcefilter().
|
static int |
setitimer(int arg1,
itimerval arg2,
itimerval arg3) |
static int |
setjmp(org.moe.natj.general.ptr.IntPtr arg1) |
static void |
setkey(java.lang.String arg1) |
static int |
setlinebuf(FILE arg1) |
static org.moe.natj.general.ptr.BytePtr |
setlocale(int arg1,
java.lang.String arg2) |
static int |
setlogin(java.lang.String arg1) |
static org.moe.natj.general.ptr.VoidPtr |
setmode(java.lang.String arg1) |
static int |
setpgid(int arg1,
int arg2) |
static int |
setpgrp() |
static int |
setpriority(int arg1,
int arg2,
int arg3) |
static void |
setprogname(java.lang.String arg1) |
static int |
setregid(int arg1,
int arg2) |
static int |
setreuid(int arg1,
int arg2) |
static int |
setrgid(int arg1) |
static int |
setrlimit(int arg1,
rlimit arg2) |
static int |
setruid(int arg1) |
static int |
setsid() |
static int |
setsockopt(int arg1,
int arg2,
int arg3,
org.moe.natj.general.ptr.ConstVoidPtr arg4,
int arg5) |
static int |
setsourcefilter(int arg1,
int arg2,
sockaddr arg3,
int arg4,
int arg5,
int arg6,
sockaddr_storage arg7) |
static org.moe.natj.general.ptr.BytePtr |
setstate(java.lang.String arg1) |
static int |
settimeofday(timeval arg1,
timezone arg2) |
static int |
setuid(int arg1) |
static void |
setusershell() |
static int |
setvbuf(FILE arg1,
org.moe.natj.general.ptr.BytePtr arg2,
int arg3,
long arg4) |
static int |
shutdown(int arg1,
int arg2) |
static int |
sigaction(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
org.moe.natj.general.ptr.VoidPtr arg3) |
static int |
sigaddset(org.moe.natj.general.ptr.IntPtr arg1,
int arg2) |
static int |
sigaltstack(stack_t arg1,
stack_t arg2) |
static int |
sigblock(int arg1) |
static int |
sigdelset(org.moe.natj.general.ptr.IntPtr arg1,
int arg2) |
static int |
sigemptyset(org.moe.natj.general.ptr.IntPtr arg1) |
static int |
sigfillset(org.moe.natj.general.ptr.IntPtr arg1) |
static int |
sighold(int arg1) |
static int |
sigignore(int arg1) |
static int |
siginterrupt(int arg1,
int arg2) |
static int |
sigismember(org.moe.natj.general.ptr.ConstIntPtr arg1,
int arg2) |
static Globals.Function_signal_ret |
signal(int arg1,
Globals.Function_signal arg2)
For historical reasons; programs expect signal's return value to be
defined by
|
static int |
signgam() |
static int |
sigpause(int arg1) |
static int |
sigpending(org.moe.natj.general.ptr.IntPtr arg1) |
static int |
sigprocmask(int arg1,
org.moe.natj.general.ptr.ConstIntPtr arg2,
org.moe.natj.general.ptr.IntPtr arg3) |
static int |
sigrelse(int arg1) |
static Globals.Function_sigset_ret |
sigset(int arg1,
Globals.Function_sigset arg2) |
static int |
sigsetjmp(org.moe.natj.general.ptr.IntPtr arg1,
int arg2) |
static int |
sigsetmask(int arg1) |
static int |
sigsuspend(org.moe.natj.general.ptr.ConstIntPtr arg1) |
static int |
sigvec(int arg1,
sigvec arg2,
sigvec arg3) |
static int |
sigwait(org.moe.natj.general.ptr.ConstIntPtr arg1,
org.moe.natj.general.ptr.IntPtr arg2) |
static float |
simd_fast_recip(float x)
A fast approximation to 1/x.
|
static float |
simd_fast_rsqrt(float x)
A fast approximation to 1/sqrt(x).
|
static float |
simd_fract(float x)
The "fractional part" of x, lying in the range [0, 1).
|
static float |
simd_mix(float x,
float y,
float t)
Linearly interpolates between x and y, taking the value x when
t=0 and y when t=1
|
static float |
simd_muladd(float x,
float y,
float z)
Computes accum + x*y by the most efficient means available;
either a fused multiply add or separate multiply and add instructions.
|
static float |
simd_precise_recip(float x)
A good approximation to 1/x.
|
static float |
simd_precise_rsqrt(float x)
A good approximation to 1/sqrt(x).
|
static float |
simd_recip(float x)
An approximation to 1/x.
|
static float |
simd_rsqrt(float x)
An approximation to 1/sqrt(x).
|
static float |
simd_sign(float x)
-1 if x is negative, +1 if x is positive, and 0 otherwise.
|
static float |
simd_smoothstep(float edge0,
float edge1,
float x)
Interpolates smoothly between 0 at edge0 and 1 at edge1
|
static float |
simd_step(float edge,
float x)
0 if x < edge, and 1 otherwise.
|
static double |
sin(double arg1) |
static float |
sinf(float arg1) |
static double |
sinh(double arg1) |
static float |
sinhf(float arg1) |
static int |
sleep(int arg1) |
static int |
snprintf(org.moe.natj.general.ptr.BytePtr __str,
long __size,
java.lang.String __format,
java.lang.Object... varargs) |
static int |
sockatmark(int arg1) |
static int |
socket(int arg1,
int arg2,
int arg3) |
static int |
socketpair(int arg1,
int arg2,
int arg3,
org.moe.natj.general.ptr.IntPtr arg4) |
static int |
sprintf(org.moe.natj.general.ptr.BytePtr arg1,
java.lang.String arg2,
java.lang.Object... varargs) |
static double |
sqrt(double arg1) |
static float |
sqrtf(float arg1) |
static int |
sradixsort(java.lang.String[] __base,
int __nel,
java.lang.String __table,
int __endbyte) |
static void |
srand(int arg1)
realloc is now declared in _malloc.h
|
static void |
srand48(long arg1) |
static void |
sranddev() |
static void |
srandom(int arg1) |
static void |
srandomdev() |
static int |
sscanf(java.lang.String arg1,
java.lang.String arg2,
java.lang.Object... varargs) |
static org.moe.natj.general.ptr.BytePtr |
stpcpy(org.moe.natj.general.ptr.BytePtr __dst,
java.lang.String __src) |
static org.moe.natj.general.ptr.BytePtr |
stpncpy(org.moe.natj.general.ptr.BytePtr __dst,
java.lang.String __src,
long __n) |
static int |
strcasecmp(java.lang.String arg1,
java.lang.String arg2) |
static org.moe.natj.general.ptr.BytePtr |
strcasestr(java.lang.String __big,
java.lang.String __little) |
static org.moe.natj.general.ptr.BytePtr |
strcat(org.moe.natj.general.ptr.BytePtr __s1,
java.lang.String __s2) |
static org.moe.natj.general.ptr.BytePtr |
strchr(java.lang.String __s,
int __c) |
static int |
strcmp(java.lang.String __s1,
java.lang.String __s2) |
static int |
strcoll(java.lang.String __s1,
java.lang.String __s2) |
static org.moe.natj.general.ptr.BytePtr |
strcpy(org.moe.natj.general.ptr.BytePtr __dst,
java.lang.String __src) |
static long |
strcspn(java.lang.String __s,
java.lang.String __charset) |
static org.moe.natj.general.ptr.BytePtr |
strdup(java.lang.String __s1) |
static int |
strerror_r(int __errnum,
org.moe.natj.general.ptr.BytePtr __strerrbuf,
long __buflen) |
static org.moe.natj.general.ptr.BytePtr |
strerror(int __errnum) |
static long |
strftime(org.moe.natj.general.ptr.BytePtr arg1,
long arg2,
java.lang.String arg3,
tm arg4) |
static long |
strlcat(org.moe.natj.general.ptr.BytePtr __dst,
java.lang.String __source,
long __size) |
static long |
strlcpy(org.moe.natj.general.ptr.BytePtr __dst,
java.lang.String __source,
long __size) |
static long |
strlen(java.lang.String __s) |
static void |
strmode(int __mode,
org.moe.natj.general.ptr.BytePtr __bp) |
static int |
strncasecmp(java.lang.String arg1,
java.lang.String arg2,
long arg3) |
static org.moe.natj.general.ptr.BytePtr |
strncat(org.moe.natj.general.ptr.BytePtr __s1,
java.lang.String __s2,
long __n) |
static int |
strncmp(java.lang.String __s1,
java.lang.String __s2,
long __n) |
static org.moe.natj.general.ptr.BytePtr |
strncpy(org.moe.natj.general.ptr.BytePtr __dst,
java.lang.String __src,
long __n) |
static org.moe.natj.general.ptr.BytePtr |
strndup(java.lang.String __s1,
long __n) |
static long |
strnlen(java.lang.String __s1,
long __n) |
static org.moe.natj.general.ptr.BytePtr |
strnstr(java.lang.String __big,
java.lang.String __little,
long __len) |
static org.moe.natj.general.ptr.BytePtr |
strpbrk(java.lang.String __s,
java.lang.String __charset) |
static org.moe.natj.general.ptr.BytePtr |
strptime(java.lang.String arg1,
java.lang.String arg2,
tm arg3) |
static org.moe.natj.general.ptr.BytePtr |
strrchr(java.lang.String __s,
int __c) |
static org.moe.natj.general.ptr.BytePtr |
strsep(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __stringp,
java.lang.String __delim) |
static int |
strsignal_r(int __sig,
org.moe.natj.general.ptr.BytePtr __strsignalbuf,
long __buflen) |
static org.moe.natj.general.ptr.BytePtr |
strsignal(int __sig) |
static long |
strspn(java.lang.String __s,
java.lang.String __charset) |
static org.moe.natj.general.ptr.BytePtr |
strstr(java.lang.String __big,
java.lang.String __little) |
static double |
strtod(java.lang.String arg1,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2) |
static float |
strtof(java.lang.String arg1,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2) |
static int |
strtofflags(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
org.moe.natj.general.ptr.NUIntPtr arg2,
org.moe.natj.general.ptr.NUIntPtr arg3) |
static long |
strtoimax(java.lang.String __nptr,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
int __base)
7.8.2.3
|
static org.moe.natj.general.ptr.BytePtr |
strtok_r(org.moe.natj.general.ptr.BytePtr __str,
java.lang.String __sep,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __lasts) |
static org.moe.natj.general.ptr.BytePtr |
strtok(org.moe.natj.general.ptr.BytePtr __str,
java.lang.String __sep) |
static long |
strtol(java.lang.String __str,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
int __base) |
static long |
strtoll(java.lang.String __str,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
int __base) |
static long |
strtonum(java.lang.String __numstr,
long __minval,
long __maxval,
java.lang.String[] __errstrp) |
static long |
strtoq(java.lang.String __str,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
int __base) |
static long |
strtoul(java.lang.String __str,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
int __base) |
static long |
strtoull(java.lang.String __str,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
int __base) |
static long |
strtoumax(java.lang.String __nptr,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
int __base) |
static long |
strtouq(java.lang.String __str,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
int __base) |
static long |
strxfrm(org.moe.natj.general.ptr.BytePtr __s1,
java.lang.String __s2,
long __n) |
static org.moe.natj.general.ptr.BytePtr |
suboptarg()
getsubopt(3) external variable
|
static void |
swab(org.moe.natj.general.ptr.ConstVoidPtr arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
long arg3)
SUS places swab() in unistd.h.
|
static int |
swapon(java.lang.String arg1) |
static int |
symlink(java.lang.String arg1,
java.lang.String arg2) |
static int |
symlinkat(java.lang.String arg1,
int arg2,
java.lang.String arg3) |
static int |
sync_volume_np(java.lang.String arg1,
int arg2) |
static void |
sync() |
static org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.ConstBytePtr> |
sys_errlist() |
static int |
sys_nerr()
perror(3) external variables
|
static int |
syscall(int arg1,
java.lang.Object... varargs) |
static long |
sysconf(int arg1) |
static double |
tan(double arg1) |
static float |
tanf(float arg1) |
static double |
tanh(double arg1) |
static float |
tanhf(float arg1) |
static int |
tcgetpgrp(int arg1) |
static int |
tcsetpgrp(int arg1,
int arg2) |
static org.moe.natj.general.ptr.BytePtr |
tempnam(java.lang.String __dir,
java.lang.String __prefix)
Deprecated.
|
static double |
tgamma(double arg1) |
static float |
tgammaf(float arg1) |
static long |
time(org.moe.natj.general.ptr.NIntPtr arg1) |
static long |
time2posix(long arg1) |
static long |
timegm(tm arg1) |
static long |
timelocal(tm arg1) |
static int |
timespec_get(timespec ts,
int base) |
static long |
timezone() |
static int |
timingsafe_bcmp(org.moe.natj.general.ptr.ConstVoidPtr __b1,
org.moe.natj.general.ptr.ConstVoidPtr __b2,
long __len) |
static FILE |
tmpfile() |
static org.moe.natj.general.ptr.BytePtr |
tmpnam(org.moe.natj.general.ptr.BytePtr arg1)
Deprecated.
|
static int |
toascii(int _c) |
static int |
tolower(int _c) |
static int |
toupper(int _c) |
static double |
trunc(double arg1) |
static int |
truncate(java.lang.String arg1,
long arg2) |
static float |
truncf(float arg1) |
static int |
ttyname_r(int arg1,
org.moe.natj.general.ptr.BytePtr arg2,
long arg3) |
static org.moe.natj.general.ptr.BytePtr |
ttyname(int arg1) |
static int |
ttyslot() |
static int |
TXTRecordContainsKey(char txtLen,
org.moe.natj.general.ptr.ConstVoidPtr txtRecord,
java.lang.String key)
TXTRecordContainsKey()
|
static void |
TXTRecordCreate(org.moe.natj.general.ptr.VoidPtr txtRecord,
char bufferLen,
org.moe.natj.general.ptr.VoidPtr buffer)
TXTRecordCreate()
|
static void |
TXTRecordDeallocate(org.moe.natj.general.ptr.VoidPtr txtRecord)
TXTRecordDeallocate()
|
static org.moe.natj.general.ptr.ConstVoidPtr |
TXTRecordGetBytesPtr(org.moe.natj.general.ptr.VoidPtr txtRecord)
TXTRecordGetBytesPtr()
|
static char |
TXTRecordGetCount(char txtLen,
org.moe.natj.general.ptr.ConstVoidPtr txtRecord)
TXTRecordGetCount()
|
static int |
TXTRecordGetItemAtIndex(char txtLen,
org.moe.natj.general.ptr.ConstVoidPtr txtRecord,
char itemIndex,
char keyBufLen,
org.moe.natj.general.ptr.BytePtr key,
org.moe.natj.general.ptr.BytePtr valueLen,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> value)
TXTRecordGetItemAtIndex()
|
static char |
TXTRecordGetLength(org.moe.natj.general.ptr.VoidPtr txtRecord)
TXTRecordGetLength()
|
static org.moe.natj.general.ptr.ConstVoidPtr |
TXTRecordGetValuePtr(char txtLen,
org.moe.natj.general.ptr.ConstVoidPtr txtRecord,
java.lang.String key,
org.moe.natj.general.ptr.BytePtr valueLen)
TXTRecordGetValuePtr()
|
static int |
TXTRecordRemoveValue(org.moe.natj.general.ptr.VoidPtr txtRecord,
java.lang.String key)
TXTRecordRemoveValue()
|
static int |
TXTRecordSetValue(org.moe.natj.general.ptr.VoidPtr txtRecord,
java.lang.String key,
byte valueSize,
org.moe.natj.general.ptr.ConstVoidPtr value)
TXTRecordSetValue()
|
static org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> |
tzname() |
static void |
tzset() |
static void |
tzsetwall() |
static int |
ualarm(int arg1,
int arg2) |
static int |
undelete(java.lang.String arg1) |
static int |
ungetc(int arg1,
FILE arg2) |
static int |
unlink(java.lang.String arg1) |
static int |
unlinkat(int arg1,
java.lang.String arg2,
int arg3) |
static int |
unlockpt(int arg1) |
static int |
unsetenv(java.lang.String arg1) |
static int |
unwhiteout(java.lang.String arg1) |
static int |
usleep(int arg1) |
static int |
utimes(java.lang.String arg1,
timeval arg2) |
static double |
vabdd_f64(double __p0,
double __p1) |
static float |
vabds_f32(float __p0,
float __p1) |
static long |
vabsd_s64(long __p0) |
static long |
vaddd_s64(long __p0,
long __p1) |
static long |
vaddd_u64(long __p0,
long __p1) |
static org.moe.natj.general.ptr.VoidPtr |
valloc(long arg1) |
static int |
vasprintf(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.BytePtr arg3) |
static long |
vcaged_f64(double __p0,
double __p1) |
static int |
vcages_f32(float __p0,
float __p1) |
static long |
vcagtd_f64(double __p0,
double __p1) |
static int |
vcagts_f32(float __p0,
float __p1) |
static long |
vcaled_f64(double __p0,
double __p1) |
static int |
vcales_f32(float __p0,
float __p1) |
static long |
vcaltd_f64(double __p0,
double __p1) |
static int |
vcalts_f32(float __p0,
float __p1) |
static long |
vceqd_f64(double __p0,
double __p1) |
static long |
vceqd_s64(long __p0,
long __p1) |
static long |
vceqd_u64(long __p0,
long __p1) |
static int |
vceqs_f32(float __p0,
float __p1) |
static long |
vceqzd_f64(double __p0) |
static long |
vceqzd_s64(long __p0) |
static long |
vceqzd_u64(long __p0) |
static int |
vceqzs_f32(float __p0) |
static long |
vcged_f64(double __p0,
double __p1) |
static long |
vcged_s64(long __p0,
long __p1) |
static long |
vcged_u64(long __p0,
long __p1) |
static int |
vcges_f32(float __p0,
float __p1) |
static long |
vcgezd_f64(double __p0) |
static long |
vcgezd_s64(long __p0) |
static int |
vcgezs_f32(float __p0) |
static long |
vcgtd_f64(double __p0,
double __p1) |
static long |
vcgtd_s64(long __p0,
long __p1) |
static long |
vcgtd_u64(long __p0,
long __p1) |
static int |
vcgts_f32(float __p0,
float __p1) |
static long |
vcgtzd_f64(double __p0) |
static long |
vcgtzd_s64(long __p0) |
static int |
vcgtzs_f32(float __p0) |
static long |
vcled_f64(double __p0,
double __p1) |
static long |
vcled_s64(long __p0,
long __p1) |
static long |
vcled_u64(long __p0,
long __p1) |
static int |
vcles_f32(float __p0,
float __p1) |
static long |
vclezd_f64(double __p0) |
static long |
vclezd_s64(long __p0) |
static int |
vclezs_f32(float __p0) |
static long |
vcltd_f64(double __p0,
double __p1) |
static long |
vcltd_s64(long __p0,
long __p1) |
static long |
vcltd_u64(long __p0,
long __p1) |
static int |
vclts_f32(float __p0,
float __p1) |
static long |
vcltzd_f64(double __p0) |
static long |
vcltzd_s64(long __p0) |
static int |
vcltzs_f32(float __p0) |
static long |
vcvtad_s64_f64(double __p0) |
static long |
vcvtad_u64_f64(double __p0) |
static int |
vcvtas_s32_f32(float __p0) |
static int |
vcvtas_u32_f32(float __p0) |
static double |
vcvtd_f64_s64(long __p0) |
static double |
vcvtd_f64_u64(long __p0) |
static long |
vcvtd_s64_f64(double __p0) |
static long |
vcvtd_u64_f64(double __p0) |
static long |
vcvtmd_s64_f64(double __p0) |
static long |
vcvtmd_u64_f64(double __p0) |
static int |
vcvtms_s32_f32(float __p0) |
static int |
vcvtms_u32_f32(float __p0) |
static long |
vcvtnd_s64_f64(double __p0) |
static long |
vcvtnd_u64_f64(double __p0) |
static int |
vcvtns_s32_f32(float __p0) |
static int |
vcvtns_u32_f32(float __p0) |
static long |
vcvtpd_s64_f64(double __p0) |
static long |
vcvtpd_u64_f64(double __p0) |
static int |
vcvtps_s32_f32(float __p0) |
static int |
vcvtps_u32_f32(float __p0) |
static float |
vcvts_f32_s32(int __p0) |
static float |
vcvts_f32_u32(int __p0) |
static int |
vcvts_s32_f32(float __p0) |
static int |
vcvts_u32_f32(float __p0) |
static float |
vcvtxd_f32_f64(double __p0) |
static int |
vdprintf(int arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.BytePtr arg3) |
static int |
vfork()
Deprecated.
|
static int |
vfprintf(FILE arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.BytePtr arg3) |
static int |
vfscanf(FILE __stream,
java.lang.String __format,
org.moe.natj.general.ptr.BytePtr arg3) |
static double |
vmulxd_f64(double __p0,
double __p1) |
static float |
vmulxs_f32(float __p0,
float __p1) |
static long |
vnegd_s64(long __p0) |
static int |
vprintf(java.lang.String arg1,
org.moe.natj.general.ptr.BytePtr arg2) |
static byte |
vqabsb_s8(byte __p0) |
static long |
vqabsd_s64(long __p0) |
static short |
vqabsh_s16(short __p0) |
static int |
vqabss_s32(int __p0) |
static byte |
vqaddb_s8(byte __p0,
byte __p1) |
static byte |
vqaddb_u8(byte __p0,
byte __p1) |
static long |
vqaddd_s64(long __p0,
long __p1) |
static long |
vqaddd_u64(long __p0,
long __p1) |
static short |
vqaddh_s16(short __p0,
short __p1) |
static char |
vqaddh_u16(char __p0,
char __p1) |
static int |
vqadds_s32(int __p0,
int __p1) |
static int |
vqadds_u32(int __p0,
int __p1) |
static int |
vqdmlalh_s16(int __p0,
short __p1,
short __p2) |
static long |
vqdmlals_s32(long __p0,
int __p1,
int __p2) |
static int |
vqdmlslh_s16(int __p0,
short __p1,
short __p2) |
static long |
vqdmlsls_s32(long __p0,
int __p1,
int __p2) |
static short |
vqdmulhh_s16(short __p0,
short __p1) |
static int |
vqdmulhs_s32(int __p0,
int __p1) |
static int |
vqdmullh_s16(short __p0,
short __p1) |
static long |
vqdmulls_s32(int __p0,
int __p1) |
static int |
vqmovnd_s64(long __p0) |
static int |
vqmovnd_u64(long __p0) |
static byte |
vqmovnh_s16(short __p0) |
static byte |
vqmovnh_u16(char __p0) |
static short |
vqmovns_s32(int __p0) |
static char |
vqmovns_u32(int __p0) |
static int |
vqmovund_s64(long __p0) |
static byte |
vqmovunh_s16(short __p0) |
static char |
vqmovuns_s32(int __p0) |
static byte |
vqnegb_s8(byte __p0) |
static long |
vqnegd_s64(long __p0) |
static short |
vqnegh_s16(short __p0) |
static int |
vqnegs_s32(int __p0) |
static short |
vqrdmulhh_s16(short __p0,
short __p1) |
static int |
vqrdmulhs_s32(int __p0,
int __p1) |
static byte |
vqrshlb_s8(byte __p0,
byte __p1) |
static byte |
vqrshlb_u8(byte __p0,
byte __p1) |
static long |
vqrshld_s64(long __p0,
long __p1) |
static long |
vqrshld_u64(long __p0,
long __p1) |
static short |
vqrshlh_s16(short __p0,
short __p1) |
static char |
vqrshlh_u16(char __p0,
short __p1) |
static int |
vqrshls_s32(int __p0,
int __p1) |
static int |
vqrshls_u32(int __p0,
int __p1) |
static byte |
vqshlb_s8(byte __p0,
byte __p1) |
static byte |
vqshlb_u8(byte __p0,
byte __p1) |
static long |
vqshld_s64(long __p0,
long __p1) |
static long |
vqshld_u64(long __p0,
long __p1) |
static short |
vqshlh_s16(short __p0,
short __p1) |
static char |
vqshlh_u16(char __p0,
short __p1) |
static int |
vqshls_s32(int __p0,
int __p1) |
static int |
vqshls_u32(int __p0,
int __p1) |
static byte |
vqsubb_s8(byte __p0,
byte __p1) |
static byte |
vqsubb_u8(byte __p0,
byte __p1) |
static long |
vqsubd_s64(long __p0,
long __p1) |
static long |
vqsubd_u64(long __p0,
long __p1) |
static short |
vqsubh_s16(short __p0,
short __p1) |
static char |
vqsubh_u16(char __p0,
char __p1) |
static int |
vqsubs_s32(int __p0,
int __p1) |
static int |
vqsubs_u32(int __p0,
int __p1) |
static double |
vrecped_f64(double __p0) |
static float |
vrecpes_f32(float __p0) |
static double |
vrecpsd_f64(double __p0,
double __p1) |
static float |
vrecpss_f32(float __p0,
float __p1) |
static double |
vrecpxd_f64(double __p0) |
static float |
vrecpxs_f32(float __p0) |
static float |
vrndns_f32(float __p0) |
static long |
vrshld_s64(long __p0,
long __p1) |
static long |
vrshld_u64(long __p0,
long __p1) |
static double |
vrsqrted_f64(double __p0) |
static float |
vrsqrtes_f32(float __p0) |
static double |
vrsqrtsd_f64(double __p0,
double __p1) |
static float |
vrsqrtss_f32(float __p0,
float __p1) |
static int |
vscanf(java.lang.String __format,
org.moe.natj.general.ptr.BytePtr arg2) |
static int |
vsha1h_u32(int __p0) |
static long |
vshld_s64(long __p0,
long __p1) |
static long |
vshld_u64(long __p0,
long __p1) |
static int |
vsnprintf(org.moe.natj.general.ptr.BytePtr __str,
long __size,
java.lang.String __format,
org.moe.natj.general.ptr.BytePtr arg4) |
static int |
vsprintf(org.moe.natj.general.ptr.BytePtr arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.BytePtr arg3) |
static byte |
vsqaddb_u8(byte __p0,
byte __p1) |
static long |
vsqaddd_u64(long __p0,
long __p1) |
static char |
vsqaddh_u16(char __p0,
short __p1) |
static int |
vsqadds_u32(int __p0,
int __p1) |
static int |
vsscanf(java.lang.String __str,
java.lang.String __format,
org.moe.natj.general.ptr.BytePtr arg3) |
static long |
vsubd_s64(long __p0,
long __p1) |
static long |
vsubd_u64(long __p0,
long __p1) |
static long |
vtstd_s64(long __p0,
long __p1) |
static long |
vtstd_u64(long __p0,
long __p1) |
static byte |
vuqaddb_s8(byte __p0,
byte __p1) |
static long |
vuqaddd_s64(long __p0,
long __p1) |
static short |
vuqaddh_s16(short __p0,
char __p1) |
static int |
vuqadds_s32(int __p0,
int __p1) |
static int |
wait_c(org.moe.natj.general.ptr.IntPtr arg1) |
static int |
wait3(org.moe.natj.general.ptr.IntPtr arg1,
int arg2,
rusage arg3) |
static int |
wait4(int arg1,
org.moe.natj.general.ptr.IntPtr arg2,
int arg3,
rusage arg4) |
static int |
waitid(int arg1,
int arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
int arg4) |
static int |
waitpid(int arg1,
org.moe.natj.general.ptr.IntPtr arg2,
int arg3) |
static long |
wcstoimax(org.moe.natj.general.ptr.ConstIntPtr __nptr,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.IntPtr> __endptr,
int __base)
7.8.2.4
|
static long |
wcstombs(org.moe.natj.general.ptr.BytePtr arg1,
org.moe.natj.general.ptr.ConstIntPtr arg2,
long arg3) |
static long |
wcstoumax(org.moe.natj.general.ptr.ConstIntPtr __nptr,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.IntPtr> __endptr,
int __base) |
static int |
wctomb(org.moe.natj.general.ptr.BytePtr arg1,
int arg2) |
static long |
write(int __fd,
org.moe.natj.general.ptr.ConstVoidPtr __buf,
long __nbyte) |
static double |
y0(double arg1) |
static double |
y1(double arg1) |
static double |
yn(int arg1,
double arg2) |
public static char _OSSwapInt16(char _data)
public static int _OSSwapInt32(int _data)
public static long _OSSwapInt64(long _data)
public static char OSReadSwapInt16(org.moe.natj.general.ptr.ConstVoidPtr _base,
long _offset)
public static int OSReadSwapInt32(org.moe.natj.general.ptr.ConstVoidPtr _base,
long _offset)
public static long OSReadSwapInt64(org.moe.natj.general.ptr.ConstVoidPtr _base,
long _offset)
public static void OSWriteSwapInt16(org.moe.natj.general.ptr.VoidPtr _base,
long _offset,
char _data)
public static void OSWriteSwapInt32(org.moe.natj.general.ptr.VoidPtr _base,
long _offset,
int _data)
public static void OSWriteSwapInt64(org.moe.natj.general.ptr.VoidPtr _base,
long _offset,
long _data)
public static int __darwin_fd_isset(int _fd,
fd_set _p)
public static java.lang.String sel_getName(org.moe.natj.objc.SEL sel)
sel - A pointer of type \c SEL. Pass the selector whose name you wish to determine.public static org.moe.natj.objc.SEL sel_registerName(java.lang.String str)
[@note] You must register a method name with the Objective-C runtime system to obtain the method’s selector before you can add the method to a class definition. If the method name has already been registered, this function simply returns the selector.
str - A pointer to a C string. Pass the name of the method you wish to register.public static java.lang.String object_getClassName(java.lang.Object obj)
obj - An Objective-C object.public static boolean sel_isMapped(org.moe.natj.objc.SEL sel)
[@warning] On some platforms, an invalid reference (to invalid memory addresses) can cause a crash.
sel - The selector you want to identify.public static org.moe.natj.objc.SEL sel_getUid(java.lang.String str)
[@note] The implementation of this method is identical to the implementation of \c sel_registerName. [@note] Prior to OS X version 10.0, this method tried to find the selector mapped to the given name and returned \c NULL if the selector was not found. This was changed for safety, because it was observed that many of the callers of this function did not check the return value for \c NULL.
str - A pointer to a C string. Pass the name of the method you wish to register.public static int getattrlistbulk(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
long arg4,
long arg5)
public static int faccessat(int arg1,
java.lang.String arg2,
int arg3,
int arg4)
public static int fchownat(int arg1,
java.lang.String arg2,
int arg3,
int arg4,
int arg5)
public static int linkat(int arg1,
java.lang.String arg2,
int arg3,
java.lang.String arg4,
int arg5)
public static long readlinkat(int arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.BytePtr arg3,
long arg4)
public static int symlinkat(java.lang.String arg1,
int arg2,
java.lang.String arg3)
public static int unlinkat(int arg1,
java.lang.String arg2,
int arg3)
public static int getattrlistat(int arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
org.moe.natj.general.ptr.VoidPtr arg4,
long arg5,
long arg6)
public static void _exit(int arg1)
public static int access(java.lang.String arg1,
int arg2)
public static int alarm(int arg1)
public static int chdir(java.lang.String arg1)
public static int chown(java.lang.String arg1,
int arg2,
int arg3)
public static int close(int arg1)
public static int dup(int arg1)
public static int dup2(int arg1,
int arg2)
public static int execl(java.lang.String __path,
java.lang.String __arg0,
java.lang.Object... varargs)
public static int execle(java.lang.String __path,
java.lang.String __arg0,
java.lang.Object... varargs)
public static int execlp(java.lang.String __file,
java.lang.String __arg0,
java.lang.Object... varargs)
public static int execv(java.lang.String __path,
org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> __argv)
public static int execve(java.lang.String __file,
org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> __argv,
org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> __envp)
public static int execvp(java.lang.String __file,
org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> __argv)
public static int fork()
public static long fpathconf(int arg1,
int arg2)
public static org.moe.natj.general.ptr.BytePtr getcwd(org.moe.natj.general.ptr.BytePtr arg1,
long arg2)
public static int getegid()
public static int geteuid()
public static int getgid()
public static int getgroups(int arg1,
org.moe.natj.general.ptr.IntPtr arg2)
public static org.moe.natj.general.ptr.BytePtr getlogin()
public static int getpgrp()
public static int getpid()
public static int getppid()
public static int getuid()
public static int isatty(int arg1)
public static int link(java.lang.String arg1,
java.lang.String arg2)
public static long lseek(int arg1,
long arg2,
int arg3)
public static long pathconf(java.lang.String arg1,
int arg2)
public static int pause()
public static long read(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
long arg3)
public static int rmdir(java.lang.String arg1)
public static int setgid(int arg1)
public static int setpgid(int arg1,
int arg2)
public static int setsid()
public static int setuid(int arg1)
public static int sleep(int arg1)
public static long sysconf(int arg1)
public static int tcgetpgrp(int arg1)
public static int tcsetpgrp(int arg1,
int arg2)
public static org.moe.natj.general.ptr.BytePtr ttyname(int arg1)
public static int ttyname_r(int arg1,
org.moe.natj.general.ptr.BytePtr arg2,
long arg3)
public static int unlink(java.lang.String arg1)
public static long write(int __fd,
org.moe.natj.general.ptr.ConstVoidPtr __buf,
long __nbyte)
public static long confstr(int arg1,
org.moe.natj.general.ptr.BytePtr arg2,
long arg3)
public static int getopt(int arg1,
org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> arg2,
java.lang.String arg3)
@Deprecated public static org.moe.natj.general.ptr.VoidPtr brk(org.moe.natj.general.ptr.ConstVoidPtr arg1)
public static int chroot(java.lang.String arg1)
public static org.moe.natj.general.ptr.BytePtr crypt(java.lang.String arg1,
java.lang.String arg2)
public static org.moe.natj.general.ptr.BytePtr ctermid(org.moe.natj.general.ptr.BytePtr arg1)
public static void encrypt(org.moe.natj.general.ptr.BytePtr arg1,
int arg2)
public static int fchdir(int arg1)
public static long gethostid()
public static int getpgid(int arg1)
public static int getsid(int arg1)
public static int getdtablesize()
public static int getpagesize()
public static org.moe.natj.general.ptr.BytePtr getpass(java.lang.String arg1)
public static org.moe.natj.general.ptr.BytePtr getwd(org.moe.natj.general.ptr.BytePtr arg1)
public static int lchown(java.lang.String arg1,
int arg2,
int arg3)
public static int lockf(int arg1,
int arg2,
long arg3)
public static int nice(int arg1)
public static long pread(int __fd,
org.moe.natj.general.ptr.VoidPtr __buf,
long __nbyte,
long __offset)
public static long pwrite(int __fd,
org.moe.natj.general.ptr.ConstVoidPtr __buf,
long __nbyte,
long __offset)
@Deprecated public static org.moe.natj.general.ptr.VoidPtr sbrk(int arg1)
public static int setpgrp()
public static int setregid(int arg1,
int arg2)
public static int setreuid(int arg1,
int arg2)
public static void swab(org.moe.natj.general.ptr.ConstVoidPtr arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
long arg3)
public static void sync()
public static int truncate(java.lang.String arg1,
long arg2)
public static int ualarm(int arg1,
int arg2)
public static int usleep(int arg1)
@Deprecated public static int vfork()
public static int fsync(int arg1)
public static int ftruncate(int arg1,
long arg2)
public static int getlogin_r(org.moe.natj.general.ptr.BytePtr arg1,
long arg2)
public static int fchown(int arg1,
int arg2,
int arg3)
public static int gethostname(org.moe.natj.general.ptr.BytePtr arg1,
long arg2)
public static long readlink(java.lang.String arg1,
org.moe.natj.general.ptr.BytePtr arg2,
long arg3)
public static int setegid(int arg1)
public static int seteuid(int arg1)
public static int symlink(java.lang.String arg1,
java.lang.String arg2)
public static int pselect(int arg1,
fd_set arg2,
fd_set arg3,
fd_set arg4,
timespec arg5,
org.moe.natj.general.ptr.ConstIntPtr arg6)
public static void _Exit(int arg1)
public static int accessx_np(accessx_descriptor arg1, long arg2, org.moe.natj.general.ptr.IntPtr arg3, int arg4)
public static int acct(java.lang.String arg1)
public static int add_profil(org.moe.natj.general.ptr.BytePtr arg1,
long arg2,
long arg3,
int arg4)
public static void endusershell()
public static int execvP(java.lang.String __file,
java.lang.String __searchpath,
org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> __argv)
public static org.moe.natj.general.ptr.BytePtr fflagstostr(long arg1)
public static int getdomainname(org.moe.natj.general.ptr.BytePtr arg1,
int arg2)
public static int getgrouplist(java.lang.String arg1,
int arg2,
org.moe.natj.general.ptr.IntPtr arg3,
org.moe.natj.general.ptr.IntPtr arg4)
public static char getmode(org.moe.natj.general.ptr.ConstVoidPtr arg1,
char arg2)
public static int getpeereid(int arg1,
org.moe.natj.general.ptr.IntPtr arg2,
org.moe.natj.general.ptr.IntPtr arg3)
public static org.moe.natj.general.ptr.BytePtr getusershell()
public static int initgroups(java.lang.String arg1,
int arg2)
public static int issetugid()
public static org.moe.natj.general.ptr.BytePtr mkdtemp(org.moe.natj.general.ptr.BytePtr arg1)
public static int mknod(java.lang.String arg1,
char arg2,
int arg3)
public static int mkpath_np(java.lang.String path,
char omode)
public static int mkpathat_np(int dfd,
java.lang.String path,
char omode)
public static int mkstemp(org.moe.natj.general.ptr.BytePtr arg1)
public static int mkstemps(org.moe.natj.general.ptr.BytePtr arg1,
int arg2)
public static org.moe.natj.general.ptr.BytePtr mktemp(org.moe.natj.general.ptr.BytePtr arg1)
public static int mkostemp(org.moe.natj.general.ptr.BytePtr path,
int oflags)
public static int mkostemps(org.moe.natj.general.ptr.BytePtr path,
int slen,
int oflags)
public static int mkstemp_dprotected_np(org.moe.natj.general.ptr.BytePtr path,
int dpclass,
int dpflags)
public static int nfssvc(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2)
public static int profil(org.moe.natj.general.ptr.BytePtr arg1,
long arg2,
long arg3,
int arg4)
@Deprecated
public static int pthread_setugid_np(int arg1,
int arg2)
public static int pthread_getugid_np(org.moe.natj.general.ptr.IntPtr arg1,
org.moe.natj.general.ptr.IntPtr arg2)
public static int reboot(int arg1)
public static int revoke(java.lang.String arg1)
@Deprecated
public static int rcmd(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
int arg2,
java.lang.String arg3,
java.lang.String arg4,
java.lang.String arg5,
org.moe.natj.general.ptr.IntPtr arg6)
@Deprecated
public static int rcmd_af(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
int arg2,
java.lang.String arg3,
java.lang.String arg4,
java.lang.String arg5,
org.moe.natj.general.ptr.IntPtr arg6,
int arg7)
@Deprecated public static int rresvport(org.moe.natj.general.ptr.IntPtr arg1)
@Deprecated
public static int rresvport_af(org.moe.natj.general.ptr.IntPtr arg1,
int arg2)
@Deprecated
public static int iruserok(long arg1,
int arg2,
java.lang.String arg3,
java.lang.String arg4)
@Deprecated
public static int iruserok_sa(org.moe.natj.general.ptr.ConstVoidPtr arg1,
int arg2,
int arg3,
java.lang.String arg4,
java.lang.String arg5)
@Deprecated
public static int ruserok(java.lang.String arg1,
int arg2,
java.lang.String arg3,
java.lang.String arg4)
public static int setdomainname(java.lang.String arg1,
int arg2)
public static int setgroups(int arg1,
org.moe.natj.general.ptr.ConstIntPtr arg2)
public static void sethostid(long arg1)
public static int sethostname(java.lang.String arg1,
int arg2)
public static void setkey(java.lang.String arg1)
public static int setlogin(java.lang.String arg1)
public static org.moe.natj.general.ptr.VoidPtr setmode(java.lang.String arg1)
public static int setrgid(int arg1)
public static int setruid(int arg1)
public static void setusershell()
public static int strtofflags(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
org.moe.natj.general.ptr.NUIntPtr arg2,
org.moe.natj.general.ptr.NUIntPtr arg3)
public static int swapon(java.lang.String arg1)
public static int ttyslot()
public static int undelete(java.lang.String arg1)
public static int unwhiteout(java.lang.String arg1)
public static org.moe.natj.general.ptr.VoidPtr valloc(long arg1)
public static int syscall(int arg1,
java.lang.Object... varargs)
public static int getsubopt(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> arg2,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg3)
public static int fgetattrlist(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
long arg4,
int arg5)
public static int fsetattrlist(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
long arg4,
int arg5)
public static int getattrlist(java.lang.String arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
long arg4,
int arg5)
public static int setattrlist(java.lang.String arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
long arg4,
int arg5)
public static int exchangedata(java.lang.String arg1,
java.lang.String arg2,
int arg3)
public static int getdirentriesattr(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
long arg4,
org.moe.natj.general.ptr.IntPtr arg5,
org.moe.natj.general.ptr.IntPtr arg6,
org.moe.natj.general.ptr.IntPtr arg7,
int arg8)
public static int searchfs(java.lang.String arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
org.moe.natj.general.ptr.NUIntPtr arg3,
int arg4,
int arg5,
org.moe.natj.general.ptr.VoidPtr arg6)
public static int fsctl(java.lang.String arg1,
long arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
int arg4)
public static int ffsctl(int arg1,
long arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
int arg4)
public static int fsync_volume_np(int arg1,
int arg2)
public static int sync_volume_np(java.lang.String arg1,
int arg2)
public static int open(java.lang.String arg1,
int arg2,
java.lang.Object... varargs)
public static int openat(int arg1,
java.lang.String arg2,
int arg3,
java.lang.Object... varargs)
public static int creat(java.lang.String arg1,
char arg2)
public static int fcntl(int arg1,
int arg2,
java.lang.Object... varargs)
public static int openx_np(java.lang.String arg1,
int arg2,
filesec_t arg3)
public static int open_dprotected_np(java.lang.String arg1,
int arg2,
int arg3,
int arg4,
java.lang.Object... varargs)
public static int flock(int arg1,
int arg2)
public static filesec_t filesec_init()
public static void filesec_free(filesec_t arg1)
public static int filesec_get_property(filesec_t arg1, int arg2, org.moe.natj.general.ptr.VoidPtr arg3)
public static int filesec_query_property(filesec_t arg1, int arg2, org.moe.natj.general.ptr.IntPtr arg3)
public static int filesec_set_property(filesec_t arg1, int arg2, org.moe.natj.general.ptr.ConstVoidPtr arg3)
public static int filesec_unset_property(filesec_t arg1, int arg2)
public static org.moe.natj.general.ptr.VoidPtr os_retain(org.moe.natj.general.ptr.VoidPtr object)
Increment the reference count of an os_object.
On a platform with the modern Objective-C runtime this is exactly equivalent to sending the object the -[retain] message.
object - The object to retain.public static void os_release(org.moe.natj.general.ptr.VoidPtr object)
Decrement the reference count of a os_object.
On a platform with the modern Objective-C runtime this is exactly equivalent to sending the object the -[release] message.
object - The object to release.public static long dispatch_time(long when,
long delta)
Create a dispatch_time_t relative to the current value of the default or wall time clock, or modify an existing dispatch_time_t.
On Apple platforms, the default clock is based on mach_absolute_time().
when - An optional dispatch_time_t to add nanoseconds to. If DISPATCH_TIME_NOW is
passed, then dispatch_time() will use the default clock (which is based on
mach_absolute_time() on Apple platforms). If DISPATCH_WALLTIME_NOW is used,
dispatch_time() will use the value returned by gettimeofday(3).
dispatch_time(DISPATCH_WALLTIME_NOW, delta) is equivalent to
dispatch_walltime(NULL, delta).delta - Nanoseconds to add.public static long dispatch_walltime(timespec when, long delta)
Create a dispatch_time_t using the wall clock.
On Mac OS X the wall clock is based on gettimeofday(3).
when - A struct timespec to add time to. If NULL is passed, then
dispatch_walltime() will use the result of gettimeofday(3).
dispatch_walltime(NULL, delta) returns the same value as
dispatch_time(DISPATCH_WALLTIME_NOW, delta).delta - Nanoseconds to add.public static void _dispatch_object_validate(NSObject object)
public static void dispatch_retain(NSObject object)
Increment the reference count of a dispatch object.
Calls to dispatch_retain() must be balanced with calls to dispatch_release().
object - The object to retain.
The result of passing NULL in this parameter is undefined.public static void dispatch_release(NSObject object)
Decrement the reference count of a dispatch object.
A dispatch object is asynchronously deallocated once all references are released (i.e. the reference count becomes zero). The system does not guarantee that a given client is the last or only reference to a given object.
object - The object to release.
The result of passing NULL in this parameter is undefined.public static org.moe.natj.general.ptr.VoidPtr dispatch_get_context(NSObject object)
Returns the application defined context of the object.
object - The result of passing NULL in this parameter is undefined.public static void dispatch_set_context(NSObject object, org.moe.natj.general.ptr.VoidPtr context)
Associates an application defined context with the object.
object - The result of passing NULL in this parameter is undefined.context - The new client defined context for the object. This may be NULL.public static void dispatch_set_finalizer_f(NSObject object, Globals.Function_dispatch_set_finalizer_f finalizer)
Set the finalizer function for a dispatch object.
A dispatch object's finalizer will be invoked on the object's target queue after all references to the object have been released. This finalizer may be used by the application to release any resources associated with the object, such as freeing the object's context. The context parameter passed to the finalizer function is the current context of the dispatch object at the time the finalizer call is made.
object - The dispatch object to modify.
The result of passing NULL in this parameter is undefined.finalizer - The finalizer function pointer.public static void dispatch_activate(NSObject object)
Activates the specified dispatch object.
Dispatch objects such as queues and sources may be created in an inactive state. Objects in this state have to be activated before any blocks associated with them will be invoked.
The target queue of inactive objects can be changed using dispatch_set_target_queue(). Change of target queue is no longer permitted once an initially inactive object has been activated.
Calling dispatch_activate() on an active object has no effect. Releasing the last reference count on an inactive object is undefined.
object - The object to be activated.
The result of passing NULL in this parameter is undefined.public static void dispatch_suspend(NSObject object)
Suspends the invocation of blocks on a dispatch object.
A suspended object will not invoke any blocks associated with it. The suspension of an object will occur after any running block associated with the object completes.
Calls to dispatch_suspend() must be balanced with calls to dispatch_resume().
object - The object to be suspended.
The result of passing NULL in this parameter is undefined.public static void dispatch_resume(NSObject object)
Resumes the invocation of blocks on a dispatch object.
Dispatch objects can be suspended with dispatch_suspend(), which increments an internal suspension count. dispatch_resume() is the inverse operation, and consumes suspension counts. When the last suspension count is consumed, blocks associated with the object will be invoked again.
For backward compatibility reasons, dispatch_resume() on an inactive and not otherwise suspended dispatch source object has the same effect as calling dispatch_activate(). For new code, using dispatch_activate() is preferred.
If the specified object has zero suspension count and is not an inactive source, this function will result in an assertion and the process being terminated.
object - The object to be resumed.
The result of passing NULL in this parameter is undefined.@Deprecated public static void dispatch_debug(NSObject object, java.lang.String message, java.lang.Object... varargs)
Programmatically log debug information about a dispatch object.
Programmatically log debug information about a dispatch object. By default, the log output is sent to syslog at notice level. In the debug version of the library, the log output is sent to a file in /var/tmp. The log output destination can be configured via the LIBDISPATCH_LOG environment variable, valid values are: YES, NO, syslog, stderr, file.
This function is deprecated and will be removed in a future release. Objective-C callers may use -debugDescription instead.
object - The object to introspect.message - The message to log above and beyond the introspection.@Deprecated public static void dispatch_debugv(NSObject object, java.lang.String message, org.moe.natj.general.ptr.BytePtr ap)
public static int qos_class_self()
Returns the requested QOS class of the current thread.
public static int qos_class_main()
Returns the initial requested QOS class of the main thread.
The QOS class that the main thread of a process is created with depends on the type of process (e.g. application or daemon) and on how it has been launched.
This function returns that initial requested QOS class value chosen by the system to enable propagation of that classification to matching work not executing on the main thread.
public static void dispatch_async(NSObject queue, Globals.Block_dispatch_async block)
public static void dispatch_async_f(NSObject queue, org.moe.natj.general.ptr.VoidPtr context, Globals.Function_dispatch_async_f work)
Submits a function for asynchronous execution on a dispatch queue.
See dispatch_async() for details.
queue - The target dispatch queue to which the function is submitted.
The system will hold a reference on the target queue until the function
has returned.
The result of passing NULL in this parameter is undefined.context - The application-defined context parameter to pass to the function.work - The application-defined function to invoke on the target queue. The first
parameter passed to this function is the context provided to
dispatch_async_f().
The result of passing NULL in this parameter is undefined.public static void dispatch_sync(NSObject queue, Globals.Block_dispatch_sync block)
public static void dispatch_sync_f(NSObject queue, org.moe.natj.general.ptr.VoidPtr context, Globals.Function_dispatch_sync_f work)
Submits a function for synchronous execution on a dispatch queue.
See dispatch_sync() for details.
queue - The target dispatch queue to which the function is submitted.
The result of passing NULL in this parameter is undefined.context - The application-defined context parameter to pass to the function.work - The application-defined function to invoke on the target queue. The first
parameter passed to this function is the context provided to
dispatch_sync_f().
The result of passing NULL in this parameter is undefined.public static void dispatch_apply(long iterations,
NSObject queue,
Globals.Block_dispatch_apply block)
public static void dispatch_apply_f(long iterations,
NSObject queue,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function_dispatch_apply_f work)
Submits a function to a dispatch queue for parallel invocation.
See dispatch_apply() for details.
iterations - The number of iterations to perform.queue - The dispatch queue to which the function is submitted.
The preferred value to pass is DISPATCH_APPLY_AUTO to automatically use
a queue appropriate for the calling thread.context - The application-defined context parameter to pass to the function.work - The application-defined function to invoke on the specified queue. The first
parameter passed to this function is the context provided to
dispatch_apply_f(). The second parameter passed to this function is the
current index of iteration.
The result of passing NULL in this parameter is undefined.@Deprecated public static NSObject dispatch_get_current_queue()
Returns the queue on which the currently executing block is running.
Returns the queue on which the currently executing block is running.
When dispatch_get_current_queue() is called outside of the context of a submitted block, it will return the default concurrent queue.
Recommended for debugging and logging purposes only: The code must not make any assumptions about the queue returned, unless it is one of the global queues or a queue the code has itself created. The code must not assume that synchronous execution onto a queue is safe from deadlock if that queue is not the one returned by dispatch_get_current_queue().
When dispatch_get_current_queue() is called on the main thread, it may or may not return the same value as dispatch_get_main_queue(). Comparing the two is not a valid way to test whether code is executing on the main thread (see dispatch_assert_queue() and dispatch_assert_queue_not()).
This function is deprecated and will be removed in a future release.
public static NSObject dispatch_get_main_queue()
Returns the default queue that is bound to the main thread.
In order to invoke blocks submitted to the main queue, the application must call dispatch_main(), NSApplicationMain(), or use a CFRunLoop on the main thread.
The main queue is meant to be used in application context to interact with the main thread and the main runloop.
Because the main queue doesn't behave entirely like a regular serial queue, it may have unwanted side-effects when used in processes that are not UI apps (daemons). For such processes, the main queue should be avoided.
dispatch_queue_main_tpublic static NSObject dispatch_get_global_queue(long identifier, long flags)
Returns a well-known global concurrent queue of a given quality of service class.
See dispatch_queue_global_t.
identifier - A quality of service class defined in qos_class_t or a priority defined in
dispatch_queue_priority_t.
It is recommended to use quality of service class values to identify the well-known global concurrent queues: - QOS_CLASS_USER_INTERACTIVE - QOS_CLASS_USER_INITIATED - QOS_CLASS_DEFAULT - QOS_CLASS_UTILITY - QOS_CLASS_BACKGROUND
The global concurrent queues may still be identified by their priority, which map to the following QOS classes: - DISPATCH_QUEUE_PRIORITY_HIGH: QOS_CLASS_USER_INITIATED - DISPATCH_QUEUE_PRIORITY_DEFAULT: QOS_CLASS_DEFAULT - DISPATCH_QUEUE_PRIORITY_LOW: QOS_CLASS_UTILITY - DISPATCH_QUEUE_PRIORITY_BACKGROUND: QOS_CLASS_BACKGROUND
flags - Reserved for future use. Passing any value other than zero may result in
a NULL return value.public static NSObject dispatch_queue_attr_make_initially_inactive(NSObject attr)
Returns an attribute value which may be provided to dispatch_queue_create() or dispatch_queue_create_with_target(), in order to make the created queue initially inactive.
Dispatch queues may be created in an inactive state. Queues in this state have to be activated before any blocks associated with them will be invoked.
A queue in inactive state cannot be deallocated, dispatch_activate() must be called before the last reference to a queue created with this attribute is released.
The target queue of a queue in inactive state can be changed using dispatch_set_target_queue(). Change of target queue is no longer permitted once an initially inactive queue has been activated.
attr - A queue attribute value to be combined with the initially inactive attribute.public static NSObject dispatch_queue_attr_make_with_autorelease_frequency(NSObject attr, long frequency)
Returns a dispatch queue attribute value with the autorelease frequency set to the specified value.
When a queue uses the per-workitem autorelease frequency (either directly
or inherithed from its target queue), any block submitted asynchronously to
this queue (via dispatch_async(), dispatch_barrier_async(),
dispatch_group_notify(), etc...) is executed as if surrounded by a individual
Objective-C @autoreleasepool scope.
Autorelease frequency has no effect on blocks that are submitted synchronously to a queue (via dispatch_sync(), dispatch_barrier_sync()).
The global concurrent queues have the DISPATCH_AUTORELEASE_FREQUENCY_NEVER behavior. Manually created dispatch queues use DISPATCH_AUTORELEASE_FREQUENCY_INHERIT by default.
Queues created with this attribute cannot change target queues after having been activated. See dispatch_set_target_queue() and dispatch_activate().
attr - A queue attribute value to be combined with the specified autorelease
frequency or NULL.frequency - The requested autorelease frequency.public static NSObject dispatch_queue_attr_make_with_qos_class(NSObject attr, int qos_class, int relative_priority)
Returns an attribute value which may be provided to dispatch_queue_create() or dispatch_queue_create_with_target(), in order to assign a QOS class and relative priority to the queue.
When specified in this manner, the QOS class and relative priority take precedence over those inherited from the dispatch queue's target queue (if any) as long that does not result in a lower QOS class and relative priority.
The global queue priorities map to the following QOS classes: - DISPATCH_QUEUE_PRIORITY_HIGH: QOS_CLASS_USER_INITIATED - DISPATCH_QUEUE_PRIORITY_DEFAULT: QOS_CLASS_DEFAULT - DISPATCH_QUEUE_PRIORITY_LOW: QOS_CLASS_UTILITY - DISPATCH_QUEUE_PRIORITY_BACKGROUND: QOS_CLASS_BACKGROUND
Example:
dispatch_queue_t queue;
dispatch_queue_attr_t attr;
attr = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL,
QOS_CLASS_UTILITY, 0);
queue = dispatch_queue_create("com.example.myqueue", attr);
The QOS class and relative priority set this way on a queue have no effect on blocks that are submitted synchronously to a queue (via dispatch_sync(), dispatch_barrier_sync()).
attr - A queue attribute value to be combined with the QOS class, or NULL.qos_class - A QOS class value:
- QOS_CLASS_USER_INTERACTIVE
- QOS_CLASS_USER_INITIATED
- QOS_CLASS_DEFAULT
- QOS_CLASS_UTILITY
- QOS_CLASS_BACKGROUND
Passing any other value results in NULL being returned.relative_priority - A relative priority within the QOS class. This value is a negative
offset from the maximum supported scheduler priority for the given class.
Passing a value greater than zero or less than QOS_MIN_RELATIVE_PRIORITY
results in NULL being returned.public static NSObject dispatch_queue_create_with_target(java.lang.String label, NSObject attr, NSObject target)
Creates a new dispatch queue with a specified target queue.
Dispatch queues created with the DISPATCH_QUEUE_SERIAL or a NULL attribute invoke blocks serially in FIFO order.
Dispatch queues created with the DISPATCH_QUEUE_CONCURRENT attribute may invoke blocks concurrently (similarly to the global concurrent queues, but potentially with more overhead), and support barrier blocks submitted with the dispatch barrier API, which e.g. enables the implementation of efficient reader-writer schemes.
When a dispatch queue is no longer needed, it should be released with dispatch_release(). Note that any pending blocks submitted asynchronously to a queue will hold a reference to that queue. Therefore a queue will not be deallocated until all pending blocks have finished.
When using a dispatch queue attribute @a attr specifying a QoS class (derived from the result of dispatch_queue_attr_make_with_qos_class()), passing the result of dispatch_get_global_queue() in @a target will ignore the QoS class of that global queue and will use the global queue with the QoS class specified by attr instead.
Queues created with dispatch_queue_create_with_target() cannot have their target queue changed, unless created inactive (See dispatch_queue_attr_make_initially_inactive()), in which case the target queue can be changed until the newly created queue is activated with dispatch_activate().
label - A string label to attach to the queue.
This parameter is optional and may be NULL.attr - A predefined attribute such as DISPATCH_QUEUE_SERIAL,
DISPATCH_QUEUE_CONCURRENT, or the result of a call to
a dispatch_queue_attr_make_with_* function.target - The target queue for the newly created queue. The target queue is retained.
If this parameter is DISPATCH_TARGET_QUEUE_DEFAULT, sets the queue's target
queue to the default target queue for the given queue type.public static NSObject dispatch_queue_create(java.lang.String label, NSObject attr)
Creates a new dispatch queue to which blocks may be submitted.
Dispatch queues created with the DISPATCH_QUEUE_SERIAL or a NULL attribute invoke blocks serially in FIFO order.
Dispatch queues created with the DISPATCH_QUEUE_CONCURRENT attribute may invoke blocks concurrently (similarly to the global concurrent queues, but potentially with more overhead), and support barrier blocks submitted with the dispatch barrier API, which e.g. enables the implementation of efficient reader-writer schemes.
When a dispatch queue is no longer needed, it should be released with dispatch_release(). Note that any pending blocks submitted asynchronously to a queue will hold a reference to that queue. Therefore a queue will not be deallocated until all pending blocks have finished.
Passing the result of the dispatch_queue_attr_make_with_qos_class() function to the attr parameter of this function allows a quality of service class and relative priority to be specified for the newly created queue. The quality of service class so specified takes precedence over the quality of service class of the newly created dispatch queue's target queue (if any) as long that does not result in a lower QOS class and relative priority.
When no quality of service class is specified, the target queue of a newly created dispatch queue is the default priority global concurrent queue.
label - A string label to attach to the queue.
This parameter is optional and may be NULL.attr - A predefined attribute such as DISPATCH_QUEUE_SERIAL,
DISPATCH_QUEUE_CONCURRENT, or the result of a call to
a dispatch_queue_attr_make_with_* function.public static java.lang.String dispatch_queue_get_label(NSObject queue)
Returns the label of the given queue, as specified when the queue was created, or the empty string if a NULL label was specified.
Passing DISPATCH_CURRENT_QUEUE_LABEL will return the label of the current queue.
queue - The queue to query, or DISPATCH_CURRENT_QUEUE_LABEL.public static int dispatch_queue_get_qos_class(NSObject queue, org.moe.natj.general.ptr.IntPtr relative_priority_ptr)
Returns the QOS class and relative priority of the given queue.
If the given queue was created with an attribute value returned from dispatch_queue_attr_make_with_qos_class(), this function returns the QOS class and relative priority specified at that time; for any other attribute value it returns a QOS class of QOS_CLASS_UNSPECIFIED and a relative priority of 0.
If the given queue is one of the global queues, this function returns its assigned QOS class value as documented under dispatch_get_global_queue() and a relative priority of 0; in the case of the main queue it returns the QOS value provided by qos_class_main() and a relative priority of 0.
queue - The queue to query.relative_priority_ptr - A pointer to an int variable to be filled with the relative priority offset
within the QOS class, or NULL.public static void dispatch_set_target_queue(NSObject object, NSObject queue)
Sets the target queue for the given object.
An object's target queue is responsible for processing the object.
When no quality of service class and relative priority is specified for a dispatch queue at the time of creation, a dispatch queue's quality of service class is inherited from its target queue. The dispatch_get_global_queue() function may be used to obtain a target queue of a specific quality of service class, however the use of dispatch_queue_attr_make_with_qos_class() is recommended instead.
Blocks submitted to a serial queue whose target queue is another serial queue will not be invoked concurrently with blocks submitted to the target queue or to any other queue with that same target queue.
The result of introducing a cycle into the hierarchy of target queues is undefined.
A dispatch source's target queue specifies where its event handler and cancellation handler blocks will be submitted.
A dispatch I/O channel's target queue specifies where where its I/O operations are executed. If the channel's target queue's priority is set to DISPATCH_QUEUE_PRIORITY_BACKGROUND, then the I/O operations performed by dispatch_io_read() or dispatch_io_write() on that queue will be throttled when there is I/O contention.
For all other dispatch object types, the only function of the target queue is to determine where an object's finalizer function is invoked.
In general, changing the target queue of an object is an asynchronous operation that doesn't take effect immediately, and doesn't affect blocks already associated with the specified object.
However, if an object is inactive at the time dispatch_set_target_queue() is called, then the target queue change takes effect immediately, and will affect blocks already associated with the specified object. After an initially inactive object has been activated, calling dispatch_set_target_queue() results in an assertion and the process being terminated.
If a dispatch queue is active and targeted by other dispatch objects, changing its target queue results in undefined behavior.
object - The object to modify.
The result of passing NULL in this parameter is undefined.queue - The new target queue for the object. The queue is retained, and the
previous target queue, if any, is released.
If queue is DISPATCH_TARGET_QUEUE_DEFAULT, set the object's target queue
to the default target queue for the given object type.public static void dispatch_main()
Execute blocks submitted to the main queue.
This function "parks" the main thread and waits for blocks to be submitted to the main queue. This function never returns.
Applications that call NSApplicationMain() or CFRunLoopRun() on the main thread do not need to call dispatch_main().
public static void dispatch_after(long when,
NSObject queue,
Globals.Block_dispatch_after block)
public static void dispatch_after_f(long when,
NSObject queue,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function_dispatch_after_f work)
Schedule a function for execution on a given queue at a specified time.
See dispatch_after() for details.
when - A temporal milestone returned by dispatch_time() or dispatch_walltime().queue - A queue to which the given function will be submitted at the specified time.
The result of passing NULL in this parameter is undefined.context - The application-defined context parameter to pass to the function.work - The application-defined function to invoke on the target queue. The first
parameter passed to this function is the context provided to
dispatch_after_f().
The result of passing NULL in this parameter is undefined.public static void dispatch_barrier_async(NSObject queue, Globals.Block_dispatch_barrier_async block)
public static void dispatch_barrier_async_f(NSObject queue, org.moe.natj.general.ptr.VoidPtr context, Globals.Function_dispatch_barrier_async_f work)
Submits a barrier function for asynchronous execution on a dispatch queue.
Submits a function to a dispatch queue like dispatch_async_f(), but marks that function as a barrier (relevant only on DISPATCH_QUEUE_CONCURRENT queues).
See dispatch_async_f() for details and "Dispatch Barrier API" for a description of the barrier semantics.
queue - The target dispatch queue to which the function is submitted.
The system will hold a reference on the target queue until the function
has returned.
The result of passing NULL in this parameter is undefined.context - The application-defined context parameter to pass to the function.work - The application-defined function to invoke on the target queue. The first
parameter passed to this function is the context provided to
dispatch_barrier_async_f().
The result of passing NULL in this parameter is undefined.public static void dispatch_barrier_sync(NSObject queue, Globals.Block_dispatch_barrier_sync block)
public static void dispatch_barrier_sync_f(NSObject queue, org.moe.natj.general.ptr.VoidPtr context, Globals.Function_dispatch_barrier_sync_f work)
Submits a barrier function for synchronous execution on a dispatch queue.
Submits a function to a dispatch queue like dispatch_sync_f(), but marks that fuction as a barrier (relevant only on DISPATCH_QUEUE_CONCURRENT queues).
See dispatch_sync_f() for details.
queue - The target dispatch queue to which the function is submitted.
The result of passing NULL in this parameter is undefined.context - The application-defined context parameter to pass to the function.work - The application-defined function to invoke on the target queue. The first
parameter passed to this function is the context provided to
dispatch_barrier_sync_f().
The result of passing NULL in this parameter is undefined.public static void dispatch_queue_set_specific(NSObject queue, org.moe.natj.general.ptr.ConstVoidPtr key, org.moe.natj.general.ptr.VoidPtr context, Globals.Function_dispatch_queue_set_specific destructor)
Associates a subsystem-specific context with a dispatch queue, for a key unique to the subsystem.
The specified destructor will be invoked with the context on the default priority global concurrent queue when a new context is set for the same key, or after all references to the queue have been released.
queue - The dispatch queue to modify.
The result of passing NULL in this parameter is undefined.key - The key to set the context for, typically a pointer to a static variable
specific to the subsystem. Keys are only compared as pointers and never
dereferenced. Passing a string constant directly is not recommended.
The NULL key is reserved and attempts to set a context for it are ignored.context - The new subsystem-specific context for the object. This may be NULL.destructor - The destructor function pointer. This may be NULL and is ignored if context
is NULL.public static org.moe.natj.general.ptr.VoidPtr dispatch_queue_get_specific(NSObject queue, org.moe.natj.general.ptr.ConstVoidPtr key)
Returns the subsystem-specific context associated with a dispatch queue, for a key unique to the subsystem.
Returns the context for the specified key if it has been set on the specified queue.
queue - The dispatch queue to query.
The result of passing NULL in this parameter is undefined.key - The key to get the context for, typically a pointer to a static variable
specific to the subsystem. Keys are only compared as pointers and never
dereferenced. Passing a string constant directly is not recommended.public static org.moe.natj.general.ptr.VoidPtr dispatch_get_specific(org.moe.natj.general.ptr.ConstVoidPtr key)
Returns the current subsystem-specific context for a key unique to the subsystem.
When called from a block executing on a queue, returns the context for the specified key if it has been set on the queue, otherwise returns the result of dispatch_get_specific() executed on the queue's target queue or NULL if the current queue is a global concurrent queue.
key - The key to get the context for, typically a pointer to a static variable
specific to the subsystem. Keys are only compared as pointers and never
dereferenced. Passing a string constant directly is not recommended.public static void dispatch_assert_queue(NSObject queue)
Verifies that the current block is executing on a given dispatch queue.
Some code expects to be run on a specific dispatch queue. This function verifies that that expectation is true.
If the currently executing block was submitted to the specified queue or to any queue targeting it (see dispatch_set_target_queue()), this function returns.
If the currently executing block was submitted with a synchronous API (dispatch_sync(), dispatch_barrier_sync(), ...), the context of the submitting block is also evaluated (recursively). If a synchronously submitting block is found that was itself submitted to the specified queue or to any queue targeting it, this function returns.
Otherwise this function asserts: it logs an explanation to the system log and terminates the application.
Passing the result of dispatch_get_main_queue() to this function verifies that the current block was submitted to the main queue, or to a queue targeting it, or is running on the main thread (in any context).
When dispatch_assert_queue() is called outside of the context of a submitted block (for example from the context of a thread created manually with pthread_create()) then this function will also assert and terminate the application.
The variant dispatch_assert_queue_debug() is compiled out when the preprocessor macro NDEBUG is defined. (See also assert(3)).
queue - The dispatch queue that the current block is expected to run on.
The result of passing NULL in this parameter is undefined.public static void dispatch_assert_queue_barrier(NSObject queue)
Verifies that the current block is executing on a given dispatch queue, and that the block acts as a barrier on that queue.
This behaves exactly like dispatch_assert_queue(), with the additional check that the current block acts as a barrier on the specified queue, which is always true if the specified queue is serial (see DISPATCH_BLOCK_BARRIER or dispatch_barrier_async() for details).
The variant dispatch_assert_queue_barrier_debug() is compiled out when the preprocessor macro NDEBUG is defined. (See also assert()).
queue - The dispatch queue that the current block is expected to run as a barrier on.
The result of passing NULL in this parameter is undefined.public static void dispatch_assert_queue_not(NSObject queue)
Verifies that the current block is not executing on a given dispatch queue.
This function is the equivalent of dispatch_assert_queue() with the test for equality inverted. That means that it will terminate the application when dispatch_assert_queue() would return, and vice-versa. See discussion there.
The variant dispatch_assert_queue_not_debug() is compiled out when the preprocessor macro NDEBUG is defined. (See also assert(3)).
queue - The dispatch queue that the current block is expected not to run on.
The result of passing NULL in this parameter is undefined.public static Globals.Block_dispatch_block_create_ret dispatch_block_create(long flags, Globals.Block_dispatch_block_create block)
Create a new dispatch block object on the heap from an existing block and the given flags.
The provided block is Block_copy'ed to the heap and retained by the newly created dispatch block object.
The returned dispatch block object is intended to be submitted to a dispatch queue with dispatch_async() and related functions, but may also be invoked directly. Both operations can be performed an arbitrary number of times but only the first completed execution of a dispatch block object can be waited on with dispatch_block_wait() or observed with dispatch_block_notify().
If the returned dispatch block object is submitted to a dispatch queue, the submitted block instance will be associated with the QOS class current at the time of submission, unless one of the following flags assigned a specific QOS class (or no QOS class) at the time of block creation: - DISPATCH_BLOCK_ASSIGN_CURRENT - DISPATCH_BLOCK_NO_QOS_CLASS - DISPATCH_BLOCK_DETACHED The QOS class the block object will be executed with also depends on the QOS class assigned to the queue and which of the following flags was specified or defaulted to: - DISPATCH_BLOCK_INHERIT_QOS_CLASS (default for asynchronous execution) - DISPATCH_BLOCK_ENFORCE_QOS_CLASS (default for synchronous execution) See description of dispatch_block_flags_t for details.
If the returned dispatch block object is submitted directly to a serial queue and is configured to execute with a specific QOS class, the system will make a best effort to apply the necessary QOS overrides to ensure that blocks submitted earlier to the serial queue are executed at that same QOS class or higher.
flags - Configuration flags for the block object.
Passing a value that is not a bitwise OR of flags from dispatch_block_flags_t
results in NULL being returned.block - The block to create the dispatch block object from.public static Globals.Block_dispatch_block_create_with_qos_class_ret dispatch_block_create_with_qos_class(long flags, int qos_class, int relative_priority, Globals.Block_dispatch_block_create_with_qos_class block)
Create a new dispatch block object on the heap from an existing block and the given flags, and assign it the specified QOS class and relative priority.
The provided block is Block_copy'ed to the heap and retained by the newly created dispatch block object.
The returned dispatch block object is intended to be submitted to a dispatch queue with dispatch_async() and related functions, but may also be invoked directly. Both operations can be performed an arbitrary number of times but only the first completed execution of a dispatch block object can be waited on with dispatch_block_wait() or observed with dispatch_block_notify().
If invoked directly, the returned dispatch block object will be executed with the assigned QOS class as long as that does not result in a lower QOS class than what is current on the calling thread.
If the returned dispatch block object is submitted to a dispatch queue, the QOS class it will be executed with depends on the QOS class assigned to the block, the QOS class assigned to the queue and which of the following flags was specified or defaulted to: - DISPATCH_BLOCK_INHERIT_QOS_CLASS: default for asynchronous execution - DISPATCH_BLOCK_ENFORCE_QOS_CLASS: default for synchronous execution See description of dispatch_block_flags_t for details.
If the returned dispatch block object is submitted directly to a serial queue and is configured to execute with a specific QOS class, the system will make a best effort to apply the necessary QOS overrides to ensure that blocks submitted earlier to the serial queue are executed at that same QOS class or higher.
flags - Configuration flags for the new block object.
Passing a value that is not a bitwise OR of flags from dispatch_block_flags_t
results in NULL being returned.qos_class - A QOS class value:
- QOS_CLASS_USER_INTERACTIVE
- QOS_CLASS_USER_INITIATED
- QOS_CLASS_DEFAULT
- QOS_CLASS_UTILITY
- QOS_CLASS_BACKGROUND
- QOS_CLASS_UNSPECIFIED
Passing QOS_CLASS_UNSPECIFIED is equivalent to specifying the
DISPATCH_BLOCK_NO_QOS_CLASS flag. Passing any other value results in NULL
being returned.relative_priority - A relative priority within the QOS class. This value is a negative
offset from the maximum supported scheduler priority for the given class.
Passing a value greater than zero or less than QOS_MIN_RELATIVE_PRIORITY
results in NULL being returned.block - The block to create the dispatch block object from.public static void dispatch_block_perform(long flags,
Globals.Block_dispatch_block_perform block)
Create, synchronously execute and release a dispatch block object from the specified block and flags.
Behaves identically to the sequence
dispatch_block_t b = dispatch_block_create(flags, block);
b();
Block_release(b);
but may be implemented more efficiently internally by not requiring a copy
to the heap of the specified block or the allocation of a new block object.
flags - Configuration flags for the temporary block object.
The result of passing a value that is not a bitwise OR of flags from
dispatch_block_flags_t is undefined.block - The block to create the temporary block object from.public static long dispatch_block_wait(Globals.Block_dispatch_block_wait block, long timeout)
Wait synchronously until execution of the specified dispatch block object has completed or until the specified timeout has elapsed.
This function will return immediately if execution of the block object has already completed.
It is not possible to wait for multiple executions of the same block object with this interface; use dispatch_group_wait() for that purpose. A single dispatch block object may either be waited on once and executed once, or it may be executed any number of times. The behavior of any other combination is undefined. Submission to a dispatch queue counts as an execution, even if cancellation (dispatch_block_cancel) means the block's code never runs.
The result of calling this function from multiple threads simultaneously with the same dispatch block object is undefined, but note that doing so would violate the rules described in the previous paragraph.
If this function returns indicating that the specified timeout has elapsed, then that invocation does not count as the one allowed wait.
If at the time this function is called, the specified dispatch block object has been submitted directly to a serial queue, the system will make a best effort to apply the necessary QOS overrides to ensure that the block and any blocks submitted earlier to that serial queue are executed at the QOS class (or higher) of the thread calling dispatch_block_wait().
block - The dispatch block object to wait on.
The result of passing NULL or a block object not returned by one of the
dispatch_block_create* functions is undefined.timeout - When to timeout (see dispatch_time). As a convenience, there are the
DISPATCH_TIME_NOW and DISPATCH_TIME_FOREVER constants.public static void dispatch_block_notify(Globals.Block_dispatch_block_notify_0 block, NSObject queue, Globals.Block_dispatch_block_notify_2 notification_block)
Schedule a notification block to be submitted to a queue when the execution of a specified dispatch block object has completed.
This function will submit the notification block immediately if execution of the observed block object has already completed.
It is not possible to be notified of multiple executions of the same block object with this interface, use dispatch_group_notify() for that purpose.
A single dispatch block object may either be observed one or more times and executed once, or it may be executed any number of times. The behavior of any other combination is undefined. Submission to a dispatch queue counts as an execution, even if cancellation (dispatch_block_cancel) means the block's code never runs.
If multiple notification blocks are scheduled for a single block object, there is no defined order in which the notification blocks will be submitted to their associated queues.
block - The dispatch block object to observe.
The result of passing NULL or a block object not returned by one of the
dispatch_block_create* functions is undefined.queue - The queue to which the supplied notification block will be submitted when
the observed block completes.notification_block - The notification block to submit when the observed block object completes.public static void dispatch_block_cancel(Globals.Block_dispatch_block_cancel block)
Asynchronously cancel the specified dispatch block object.
Cancellation causes any future execution of the dispatch block object to return immediately, but does not affect any execution of the block object that is already in progress.
Release of any resources associated with the block object will be delayed until execution of the block object is next attempted (or any execution already in progress completes).
NOTE: care needs to be taken to ensure that a block object that may be canceled does not capture any resources that require execution of the block body in order to be released (e.g. memory allocated with malloc(3) that the block body calls free(3) on). Such resources will be leaked if the block body is never executed due to cancellation.
block - The dispatch block object to cancel.
The result of passing NULL or a block object not returned by one of the
dispatch_block_create* functions is undefined.public static long dispatch_block_testcancel(Globals.Block_dispatch_block_testcancel block)
Tests whether the given dispatch block object has been canceled.
block - The dispatch block object to test.
The result of passing NULL or a block object not returned by one of the
dispatch_block_create* functions is undefined.public static int mach_msg_overwrite(mach_msg_header_t msg, int option, int send_size, int rcv_size, int rcv_name, int timeout, int notify_, mach_msg_header_t rcv_msg, int rcv_limit)
Distinct send and receive buffers may be specified. If no separate receive buffer is specified, the msg parameter will be used for both send and receive operations.
In addition to a distinct receive buffer, that buffer may already contain scatter control information to direct the receiving of the message.
public static int mach_msg(mach_msg_header_t msg, int option, int send_size, int rcv_size, int rcv_name, int timeout, int notify_)
public static int mach_voucher_deallocate(int voucher)
public static Globals.Function_signal_ret signal(int arg1, Globals.Function_signal arg2)
public static NSObject dispatch_source_create(dispatch_source_type_t type, long handle, long mask, NSObject queue)
Creates a new dispatch source to monitor low-level system objects and auto- matically submit a handler block to a dispatch queue in response to events.
Dispatch sources are not reentrant. Any events received while the dispatch source is suspended or while the event handler block is currently executing will be coalesced and delivered after the dispatch source is resumed or the event handler block has returned.
Dispatch sources are created in an inactive state. After creating the source and setting any desired attributes (i.e. the handler, context, etc.), a call must be made to dispatch_activate() in order to begin event delivery.
Calling dispatch_set_target_queue() on a source once it has been activated is not allowed (see dispatch_activate() and dispatch_set_target_queue()).
For backward compatibility reasons, dispatch_resume() on an inactive, and not otherwise suspended source has the same effect as calling dispatch_activate(). For new code, using dispatch_activate() is preferred.
type - Declares the type of the dispatch source. Must be one of the defined
dispatch_source_type_t constants.handle - The underlying system handle to monitor. The interpretation of this argument
is determined by the constant provided in the type parameter.mask - A mask of flags specifying which events are desired. The interpretation of
this argument is determined by the constant provided in the type parameter.queue - The dispatch queue to which the event handler block will be submitted.
If queue is DISPATCH_TARGET_QUEUE_DEFAULT, the source will submit the event
handler block to the default priority global queue.public static void dispatch_source_set_event_handler(NSObject source, Globals.Block_dispatch_source_set_event_handler handler)
public static void dispatch_source_set_event_handler_f(NSObject source, Globals.Function_dispatch_source_set_event_handler_f handler)
Sets the event handler function for the given dispatch source.
source - The dispatch source to modify.
The result of passing NULL in this parameter is undefined.handler - The event handler function to submit to the source's target queue.
The context parameter passed to the event handler function is the context of
the dispatch source current at the time the event handler was set.public static void dispatch_source_set_cancel_handler(NSObject source, Globals.Block_dispatch_source_set_cancel_handler handler)
public static void dispatch_source_set_cancel_handler_f(NSObject source, Globals.Function_dispatch_source_set_cancel_handler_f handler)
Sets the cancellation handler function for the given dispatch source.
See dispatch_source_set_cancel_handler() for more details.
source - The dispatch source to modify.
The result of passing NULL in this parameter is undefined.handler - The cancellation handler function to submit to the source's target queue.
The context parameter passed to the event handler function is the current
context of the dispatch source at the time the handler call is made.public static void dispatch_source_cancel(NSObject source)
Asynchronously cancel the dispatch source, preventing any further invocation of its event handler block.
Cancellation prevents any further invocation of the event handler block for the specified dispatch source, but does not interrupt an event handler block that is already in progress.
The cancellation handler is submitted to the source's target queue once the the source's event handler has finished, indicating it is now safe to close the source's handle (i.e. file descriptor or mach port).
See dispatch_source_set_cancel_handler() for more information.
source - The dispatch source to be canceled.
The result of passing NULL in this parameter is undefined.public static long dispatch_source_testcancel(NSObject source)
Tests whether the given dispatch source has been canceled.
source - The dispatch source to be tested.
The result of passing NULL in this parameter is undefined.public static long dispatch_source_get_handle(NSObject source)
Returns the underlying system handle associated with this dispatch source.
source - The result of passing NULL in this parameter is undefined.DISPATCH_SOURCE_TYPE_DATA_ADD: n/a DISPATCH_SOURCE_TYPE_DATA_OR: n/a DISPATCH_SOURCE_TYPE_DATA_REPLACE: n/a DISPATCH_SOURCE_TYPE_MACH_SEND: mach port (mach_port_t) DISPATCH_SOURCE_TYPE_MACH_RECV: mach port (mach_port_t) DISPATCH_SOURCE_TYPE_MEMORYPRESSURE n/a DISPATCH_SOURCE_TYPE_PROC: process identifier (pid_t) DISPATCH_SOURCE_TYPE_READ: file descriptor (int) DISPATCH_SOURCE_TYPE_SIGNAL: signal number (int) DISPATCH_SOURCE_TYPE_TIMER: n/a DISPATCH_SOURCE_TYPE_VNODE: file descriptor (int) DISPATCH_SOURCE_TYPE_WRITE: file descriptor (int)
public static long dispatch_source_get_mask(NSObject source)
Returns the mask of events monitored by the dispatch source.
source - The result of passing NULL in this parameter is undefined.DISPATCH_SOURCE_TYPE_DATA_ADD: n/a DISPATCH_SOURCE_TYPE_DATA_OR: n/a DISPATCH_SOURCE_TYPE_DATA_REPLACE: n/a DISPATCH_SOURCE_TYPE_MACH_SEND: dispatch_source_mach_send_flags_t DISPATCH_SOURCE_TYPE_MACH_RECV: dispatch_source_mach_recv_flags_t DISPATCH_SOURCE_TYPE_MEMORYPRESSURE dispatch_source_memorypressure_flags_t DISPATCH_SOURCE_TYPE_PROC: dispatch_source_proc_flags_t DISPATCH_SOURCE_TYPE_READ: n/a DISPATCH_SOURCE_TYPE_SIGNAL: n/a DISPATCH_SOURCE_TYPE_TIMER: dispatch_source_timer_flags_t DISPATCH_SOURCE_TYPE_VNODE: dispatch_source_vnode_flags_t DISPATCH_SOURCE_TYPE_WRITE: n/a
public static long dispatch_source_get_data(NSObject source)
Returns pending data for the dispatch source.
This function is intended to be called from within the event handler block. The result of calling this function outside of the event handler callback is undefined.
source - The result of passing NULL in this parameter is undefined.DISPATCH_SOURCE_TYPE_DATA_ADD: application defined data DISPATCH_SOURCE_TYPE_DATA_OR: application defined data DISPATCH_SOURCE_TYPE_DATA_REPLACE: application defined data DISPATCH_SOURCE_TYPE_MACH_SEND: dispatch_source_mach_send_flags_t DISPATCH_SOURCE_TYPE_MACH_RECV: dispatch_source_mach_recv_flags_t DISPATCH_SOURCE_TYPE_MEMORYPRESSURE dispatch_source_memorypressure_flags_t DISPATCH_SOURCE_TYPE_PROC: dispatch_source_proc_flags_t DISPATCH_SOURCE_TYPE_READ: estimated bytes available to read DISPATCH_SOURCE_TYPE_SIGNAL: number of signals delivered since the last handler invocation DISPATCH_SOURCE_TYPE_TIMER: number of times the timer has fired since the last handler invocation DISPATCH_SOURCE_TYPE_VNODE: dispatch_source_vnode_flags_t DISPATCH_SOURCE_TYPE_WRITE: estimated buffer space available
public static void dispatch_source_merge_data(NSObject source, long value)
Merges data into a dispatch source of type DISPATCH_SOURCE_TYPE_DATA_ADD, DISPATCH_SOURCE_TYPE_DATA_OR or DISPATCH_SOURCE_TYPE_DATA_REPLACE, and submits its event handler block to its target queue.
source - The result of passing NULL in this parameter is undefined.value - The value to coalesce with the pending data using a logical OR or an ADD
as specified by the dispatch source type. A value of zero has no effect
and will not result in the submission of the event handler block.public static void dispatch_source_set_timer(NSObject source, long start, long interval, long leeway)
Sets a start time, interval, and leeway value for a timer source.
Once this function returns, any pending source data accumulated for the previous timer values has been cleared; the next fire of the timer will occur at 'start', and every 'interval' nanoseconds thereafter until the timer source is canceled.
Any fire of the timer may be delayed by the system in order to improve power consumption and system performance. The upper limit to the allowable delay may be configured with the 'leeway' argument, the lower limit is under the control of the system.
For the initial timer fire at 'start', the upper limit to the allowable delay is set to 'leeway' nanoseconds. For the subsequent timer fires at 'start' + N * 'interval', the upper limit is MIN('leeway','interval'/2).
The lower limit to the allowable delay may vary with process state such as visibility of application UI. If the specified timer source was created with a mask of DISPATCH_TIMER_STRICT, the system will make a best effort to strictly observe the provided 'leeway' value even if it is smaller than the current lower limit. Note that a minimal amount of delay is to be expected even if this flag is specified.
The 'start' argument also determines which clock will be used for the timer: If 'start' is DISPATCH_TIME_NOW or was created with dispatch_time(3), the timer is based on up time (which is obtained from mach_absolute_time() on Apple platforms). If 'start' was created with dispatch_walltime(3), the timer is based on gettimeofday(3).
Calling this function has no effect if the timer source has already been canceled.
start - The start time of the timer. See dispatch_time() and dispatch_walltime()
for more information.interval - The nanosecond interval for the timer. Use DISPATCH_TIME_FOREVER for a
one-shot timer.leeway - The nanosecond leeway for the timer.public static void dispatch_source_set_registration_handler(NSObject source, Globals.Block_dispatch_source_set_registration_handler handler)
public static void dispatch_source_set_registration_handler_f(NSObject source, Globals.Function_dispatch_source_set_registration_handler_f handler)
Sets the registration handler function for the given dispatch source.
See dispatch_source_set_registration_handler() for more details.
source - The dispatch source to modify.
The result of passing NULL in this parameter is undefined.handler - The registration handler function to submit to the source's target queue.
The context parameter passed to the registration handler function is the
current context of the dispatch source at the time the handler call is made.public static NSObject dispatch_group_create()
Creates new group with which blocks may be associated.
This function creates a new group with which blocks may be associated. The dispatch group may be used to wait for the completion of the blocks it references. The group object memory is freed with dispatch_release().
public static void dispatch_group_async(NSObject group, NSObject queue, Globals.Block_dispatch_group_async block)
public static void dispatch_group_async_f(NSObject group, NSObject queue, org.moe.natj.general.ptr.VoidPtr context, Globals.Function_dispatch_group_async_f work)
Submits a function to a dispatch queue and associates the block with the given dispatch group.
See dispatch_group_async() for details.
group - A dispatch group to associate with the submitted function.
The result of passing NULL in this parameter is undefined.queue - The dispatch queue to which the function will be submitted for asynchronous
invocation.context - The application-defined context parameter to pass to the function.work - The application-defined function to invoke on the target queue. The first
parameter passed to this function is the context provided to
dispatch_group_async_f().public static long dispatch_group_wait(NSObject group, long timeout)
Wait synchronously until all the blocks associated with a group have completed or until the specified timeout has elapsed.
This function waits for the completion of the blocks associated with the given dispatch group, and returns after all blocks have completed or when the specified timeout has elapsed.
This function will return immediately if there are no blocks associated with the dispatch group (i.e. the group is empty).
The result of calling this function from multiple threads simultaneously with the same dispatch group is undefined.
After the successful return of this function, the dispatch group is empty. It may either be released with dispatch_release() or re-used for additional blocks. See dispatch_group_async() for more information.
group - The dispatch group to wait on.
The result of passing NULL in this parameter is undefined.timeout - When to timeout (see dispatch_time). As a convenience, there are the
DISPATCH_TIME_NOW and DISPATCH_TIME_FOREVER constants.public static void dispatch_group_notify(NSObject group, NSObject queue, Globals.Block_dispatch_group_notify block)
public static void dispatch_group_notify_f(NSObject group, NSObject queue, org.moe.natj.general.ptr.VoidPtr context, Globals.Function_dispatch_group_notify_f work)
Schedule a function to be submitted to a queue when all the blocks associated with a group have completed.
See dispatch_group_notify() for details.
group - The dispatch group to observe.
The result of passing NULL in this parameter is undefined.context - The application-defined context parameter to pass to the function.work - The application-defined function to invoke on the target queue. The first
parameter passed to this function is the context provided to
dispatch_group_notify_f().public static void dispatch_group_enter(NSObject group)
Manually indicate a block has entered the group
Calling this function indicates another block has joined the group through a means other than dispatch_group_async(). Calls to this function must be balanced with dispatch_group_leave().
group - The dispatch group to update.
The result of passing NULL in this parameter is undefined.public static void dispatch_group_leave(NSObject group)
Manually indicate a block in the group has completed
Calling this function indicates block has completed and left the dispatch group by a means other than dispatch_group_async().
group - The dispatch group to update.
The result of passing NULL in this parameter is undefined.public static NSObject dispatch_semaphore_create(long value)
Creates new counting semaphore with an initial value.
Passing zero for the value is useful for when two threads need to reconcile the completion of a particular event. Passing a value greater than zero is useful for managing a finite pool of resources, where the pool size is equal to the value.
value - The starting value for the semaphore. Passing a value less than zero will
cause NULL to be returned.public static long dispatch_semaphore_wait(NSObject dsema, long timeout)
Wait (decrement) for a semaphore.
Decrement the counting semaphore. If the resulting value is less than zero, this function waits for a signal to occur before returning.
dsema - The semaphore. The result of passing NULL in this parameter is undefined.timeout - When to timeout (see dispatch_time). As a convenience, there are the
DISPATCH_TIME_NOW and DISPATCH_TIME_FOREVER constants.public static long dispatch_semaphore_signal(NSObject dsema)
Signal (increment) a semaphore.
Increment the counting semaphore. If the previous value was less than zero, this function wakes a waiting thread before returning.
dsema - The counting semaphore.
The result of passing NULL in this parameter is undefined.public static void dispatch_once(org.moe.natj.general.ptr.NIntPtr predicate,
Globals.Block_dispatch_once block)
public static void _dispatch_once(org.moe.natj.general.ptr.NIntPtr predicate,
Globals.Block__dispatch_once block)
public static void dispatch_once_f(org.moe.natj.general.ptr.NIntPtr predicate,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function_dispatch_once_f function)
public static void _dispatch_once_f(org.moe.natj.general.ptr.NIntPtr predicate,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function__dispatch_once_f function)
public static NSObject dispatch_data_create(org.moe.natj.general.ptr.ConstVoidPtr buffer, long size, NSObject queue, Globals.Block_dispatch_data_create destructor)
If the DISPATCH_DATA_DESTRUCTOR_FREE destructor is provided the buffer will be freed via free(3) and the queue argument ignored.
If the DISPATCH_DATA_DESTRUCTOR_DEFAULT destructor is provided, data object creation will copy the buffer into internal memory managed by the system.
buffer - A contiguous buffer of data.size - The size of the contiguous buffer of data.queue - The queue to which the destructor should be submitted.destructor - The destructor responsible for freeing the data when it
is no longer needed.public static long dispatch_data_get_size(NSObject data)
data - The dispatch data object to query.public static NSObject dispatch_data_create_map(NSObject data, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> buffer_ptr, org.moe.natj.general.ptr.NUIntPtr size_ptr)
data - The dispatch data object to map.buffer_ptr - A pointer to a pointer variable to be filled with the
location of the mapped contiguous memory region, or
NULL.size_ptr - A pointer to a size_t variable to be filled with the
size of the mapped contiguous memory region, or NULL.public static NSObject dispatch_data_create_concat(NSObject data1, NSObject data2)
data1 - The data object representing the region(s) of memory to place
at the beginning of the newly created object.data2 - The data object representing the region(s) of memory to place
at the end of the newly created object.public static NSObject dispatch_data_create_subrange(NSObject data, long offset, long length)
data - The data object representing the region(s) of memory to
create a subrange of.offset - The offset into the data object where the subrange
starts.length - The length of the range.public static boolean dispatch_data_apply(NSObject data, Globals.Block_dispatch_data_apply applier)
Each invocation of the block is passed a data object representing the current region and its logical offset, along with the memory location and extent of the region. These allow direct read access to the memory region, but are only valid until the passed-in region object is released. Note that the region object is released by the system when the block returns, it is the responsibility of the application to retain it if the region object or the associated memory location are needed after the block returns.
data - The data object to traverse.applier - The block to be invoked for every contiguous memory
region in the data object.public static NSObject dispatch_data_copy_region(NSObject data, long location, org.moe.natj.general.ptr.NUIntPtr offset_ptr)
data - The dispatch data object to query.location - The logical position in the data object to query.offset_ptr - A pointer to a size_t variable to be filled with the
logical offset of the returned region object to the
start of the queried data object.public static void dispatch_read(int fd,
long length,
NSObject queue,
Globals.Block_dispatch_read handler)
The data object passed to the handler will be automatically released by the system when the handler returns. It is the responsibility of the application to retain, concatenate or copy the data object if it is needed after the handler returns.
The data object passed to the handler will only contain as much data as is currently available from the file descriptor (up to the specified length).
If an unrecoverable error occurs on the file descriptor, the handler will be enqueued with the appropriate error code along with a data object of any data that could be read successfully.
An invocation of the handler with an error code of zero and an empty data object indicates that EOF was reached.
The system takes control of the file descriptor until the handler is enqueued, and during this time file descriptor flags such as O_NONBLOCK will be modified by the system on behalf of the application. It is an error for the application to modify a file descriptor directly while it is under the control of the system, but it may create additional dispatch I/O convenience operations or dispatch I/O channels associated with that file descriptor.
fd - The file descriptor from which to read the data.length - The length of data to read from the file descriptor,
or SIZE_MAX to indicate that all of the data currently
available from the file descriptor should be read.queue - The dispatch queue to which the handler should be
submitted.handler - The handler to enqueue when data is ready to be
delivered.
param data The data read from the file descriptor.
param error An errno condition for the read operation or
zero if the read was successful.public static void dispatch_write(int fd,
NSObject data,
NSObject queue,
Globals.Block_dispatch_write handler)
If an unrecoverable error occurs on the file descriptor, the handler will be enqueued with the appropriate error code along with the data that could not be successfully written.
An invocation of the handler with an error code of zero indicates that the data was fully written to the channel.
The system takes control of the file descriptor until the handler is enqueued, and during this time file descriptor flags such as O_NONBLOCK will be modified by the system on behalf of the application. It is an error for the application to modify a file descriptor directly while it is under the control of the system, but it may create additional dispatch I/O convenience operations or dispatch I/O channels associated with that file descriptor.
fd - The file descriptor to which to write the data.data - The data object to write to the file descriptor.queue - The dispatch queue to which the handler should be
submitted.handler - The handler to enqueue when the data has been written.
param data The data that could not be written to the I/O
channel, or NULL.
param error An errno condition for the write operation or
zero if the write was successful.public static NSObject dispatch_io_create(long type, int fd, NSObject queue, Globals.Block_dispatch_io_create cleanup_handler)
While a file descriptor is under the control of a dispatch I/O channel, file descriptor flags such as O_NONBLOCK will be modified by the system on behalf of the application. It is an error for the application to modify a file descriptor directly while it is under the control of a dispatch I/O channel, but it may create additional channels associated with that file descriptor.
type - The desired type of I/O channel (DISPATCH_IO_STREAM
or DISPATCH_IO_RANDOM).fd - The file descriptor to associate with the I/O channel.queue - The dispatch queue to which the handler should be submitted.cleanup_handler - The handler to enqueue when the system
relinquishes control over the file descriptor.
param error An errno condition if control is relinquished
because channel creation failed, zero otherwise.public static NSObject dispatch_io_create_with_path(long type, java.lang.String path, int oflag, char mode, NSObject queue, Globals.Block_dispatch_io_create_with_path cleanup_handler)
type - The desired type of I/O channel (DISPATCH_IO_STREAM
or DISPATCH_IO_RANDOM).path - The absolute path to associate with the I/O channel.oflag - The flags to pass to open(2) when opening the file at
path.mode - The mode to pass to open(2) when creating the file at
path (i.e. with flag O_CREAT), zero otherwise.queue - The dispatch queue to which the handler should be
submitted.cleanup_handler - The handler to enqueue when the system
has closed the file at path.
param error An errno condition if control is relinquished
because channel creation or opening of the
specified file failed, zero otherwise.public static NSObject dispatch_io_create_with_io(long type, NSObject io, NSObject queue, Globals.Block_dispatch_io_create_with_io cleanup_handler)
If the existing channel is associated with a file descriptor, control by the system over that file descriptor is extended until the new channel is also closed, an error occurs on the file descriptor, or all references to both channels are released. At that time the specified cleanup handler will be enqueued and control over the file descriptor relinquished.
While a file descriptor is under the control of a dispatch I/O channel, file descriptor flags such as O_NONBLOCK will be modified by the system on behalf of the application. It is an error for the application to modify a file descriptor directly while it is under the control of a dispatch I/O channel, but it may create additional channels associated with that file descriptor.
type - The desired type of I/O channel (DISPATCH_IO_STREAM
or DISPATCH_IO_RANDOM).io - The existing channel to create the new I/O channel from.queue - The dispatch queue to which the handler should be submitted.cleanup_handler - The handler to enqueue when the system
relinquishes control over the file descriptor
(resp. closes the file at path) associated with
the existing channel.
param error An errno condition if control is relinquished
because channel creation failed, zero otherwise.public static void dispatch_io_read(NSObject channel, long offset, long length, NSObject queue, Globals.Block_dispatch_io_read io_handler)
Any data read from the channel is described by the dispatch data object passed to the I/O handler. This object will be automatically released by the system when the I/O handler returns. It is the responsibility of the application to retain, concatenate or copy the data object if it is needed after the I/O handler returns.
Dispatch I/O handlers are not reentrant. The system will ensure that no new I/O handler instance is invoked until the previously enqueued handler block has returned.
An invocation of the I/O handler with the done flag set indicates that the read operation is complete and that the handler will not be enqueued again.
If an unrecoverable error occurs on the I/O channel's underlying file descriptor, the I/O handler will be enqueued with the done flag set, the appropriate error code and a NULL data object.
An invocation of the I/O handler with the done flag set, an error code of zero and an empty data object indicates that EOF was reached.
channel - The dispatch I/O channel from which to read the data.offset - The offset relative to the channel position from which
to start reading (only for DISPATCH_IO_RANDOM).length - The length of data to read from the I/O channel, or
SIZE_MAX to indicate that data should be read until EOF
is reached.queue - The dispatch queue to which the I/O handler should be
submitted.io_handler - The I/O handler to enqueue when data is ready to be
delivered.
param done A flag indicating whether the operation is complete.
param data An object with the data most recently read from the
I/O channel as part of this read operation, or NULL.
param error An errno condition for the read operation or zero if
the read was successful.public static void dispatch_io_write(NSObject channel, long offset, NSObject data, NSObject queue, Globals.Block_dispatch_io_write io_handler)
Any data remaining to be written to the I/O channel is described by the dispatch data object passed to the I/O handler. This object will be automatically released by the system when the I/O handler returns. It is the responsibility of the application to retain, concatenate or copy the data object if it is needed after the I/O handler returns.
Dispatch I/O handlers are not reentrant. The system will ensure that no new I/O handler instance is invoked until the previously enqueued handler block has returned.
An invocation of the I/O handler with the done flag set indicates that the write operation is complete and that the handler will not be enqueued again.
If an unrecoverable error occurs on the I/O channel's underlying file descriptor, the I/O handler will be enqueued with the done flag set, the appropriate error code and an object containing the data that could not be written.
An invocation of the I/O handler with the done flag set and an error code of zero indicates that the data was fully written to the channel.
channel - The dispatch I/O channel on which to write the data.offset - The offset relative to the channel position from which
to start writing (only for DISPATCH_IO_RANDOM).data - The data to write to the I/O channel. The data object
will be retained by the system until the write operation
is complete.queue - The dispatch queue to which the I/O handler should be
submitted.io_handler - The I/O handler to enqueue when data has been delivered.
param done A flag indicating whether the operation is complete.
param data An object of the data remaining to be
written to the I/O channel as part of this write
operation, or NULL.
param error An errno condition for the write operation or zero
if the write was successful.public static void dispatch_io_close(NSObject channel, long flags)
If the DISPATCH_IO_STOP flag is provided, the system will make a best effort to interrupt any outstanding read and write operations on the I/O channel, otherwise those operations will run to completion normally. Partial results of read and write operations may be returned even after a channel is closed with the DISPATCH_IO_STOP flag. The final invocation of an I/O handler of an interrupted operation will be passed an ECANCELED error code, as will the I/O handler of an operation scheduled on a closed channel.
channel - The dispatch I/O channel to close.flags - The flags for the close operation.public static void dispatch_io_barrier(NSObject channel, Globals.Block_dispatch_io_barrier barrier)
If multiple channels are associated with the same file descriptor, a barrier operation scheduled on any of these channels will act as a barrier across all channels in question, i.e. all previously scheduled operations on any of the channels will complete before the barrier block is enqueued, and no operations subsequently scheduled on any of the channels will start until the barrier block has returned.
While the barrier block is running, it may safely operate on the channel's underlying file descriptor with fsync(2), lseek(2) etc. (but not close(2)).
channel - The dispatch I/O channel to schedule the barrier on.barrier - The barrier block.public static int dispatch_io_get_descriptor(NSObject channel)
Will return -1 for a channel closed with dispatch_io_close() and for a channel associated with a path name that has not yet been open(2)ed.
If called from a barrier block scheduled on a channel associated with a path name that has not yet been open(2)ed, this will trigger the channel open(2) operation and return the resulting file descriptor.
channel - The dispatch I/O channel to query.public static void dispatch_io_set_high_water(NSObject channel, long high_water)
The system will make a best effort to enqueue I/O handlers with partial results as soon the number of bytes processed by an operation (i.e. read or written) reaches the high water mark.
The size of data objects passed to I/O handlers for this channel will never exceed the specified high water mark.
The default value for the high water mark is unlimited (i.e. SIZE_MAX).
channel - The dispatch I/O channel on which to set the policy.high_water - The number of bytes to use as a high water mark.public static void dispatch_io_set_low_water(NSObject channel, long low_water)
The system will process (i.e. read or write) at least the low water mark number of bytes for an operation before enqueueing I/O handlers with partial results.
The size of data objects passed to intermediate I/O handler invocations for this channel (i.e. excluding the final invocation) will never be smaller than the specified low water mark, except if the channel has an interval with the DISPATCH_IO_STRICT_INTERVAL flag set or if EOF or an error was encountered.
I/O handlers should be prepared to receive amounts of data significantly larger than the low water mark in general. If an I/O handler requires intermediate results of fixed size, set both the low and and the high water mark to that size.
The default value for the low water mark is unspecified, but must be assumed to be such that intermediate handler invocations may occur. If I/O handler invocations with partial results are not desired, set the low water mark to SIZE_MAX.
channel - The dispatch I/O channel on which to set the policy.low_water - The number of bytes to use as a low water mark.public static void dispatch_io_set_interval(NSObject channel, long interval, long flags)
This allows an application to receive periodic feedback on the progress of read and write operations, e.g. for the purposes of displaying progress bars.
If the amount of data ready to be delivered to an I/O handler at the interval is inferior to the channel low water mark, the handler will only be enqueued if the DISPATCH_IO_STRICT_INTERVAL flag is set.
Note that the system may defer enqueueing interval I/O handlers by a small unspecified amount of leeway in order to align with other system activity for improved system performance or power consumption.
channel - The dispatch I/O channel on which to set the policy.interval - The interval in nanoseconds at which delivery of the I/O
handler is desired.flags - Flags indicating desired data delivery behavior at
interval time.public static int __math_errhandling()
public static int __fpclassifyf(float arg1)
public static int __fpclassifyd(double arg1)
public static int __inline_isfinitef(float arg1)
public static int __inline_isfinited(double arg1)
public static int __inline_isinff(float arg1)
public static int __inline_isinfd(double arg1)
public static int __inline_isnanf(float arg1)
public static int __inline_isnand(double arg1)
public static int __inline_isnormalf(float arg1)
public static int __inline_isnormald(double arg1)
public static int __inline_signbitf(float arg1)
public static int __inline_signbitd(double arg1)
public static float acosf(float arg1)
public static double acos(double arg1)
public static float asinf(float arg1)
public static double asin(double arg1)
public static float atanf(float arg1)
public static double atan(double arg1)
public static float atan2f(float arg1,
float arg2)
public static double atan2(double arg1,
double arg2)
public static float cosf(float arg1)
public static double cos(double arg1)
public static float sinf(float arg1)
public static double sin(double arg1)
public static float tanf(float arg1)
public static double tan(double arg1)
public static float acoshf(float arg1)
public static double acosh(double arg1)
public static float asinhf(float arg1)
public static double asinh(double arg1)
public static float atanhf(float arg1)
public static double atanh(double arg1)
public static float coshf(float arg1)
public static double cosh(double arg1)
public static float sinhf(float arg1)
public static double sinh(double arg1)
public static float tanhf(float arg1)
public static double tanh(double arg1)
public static float expf(float arg1)
public static double exp(double arg1)
public static float exp2f(float arg1)
public static double exp2(double arg1)
public static float expm1f(float arg1)
public static double expm1(double arg1)
public static float logf(float arg1)
public static double log(double arg1)
public static float log10f(float arg1)
public static double log10(double arg1)
public static float log2f(float arg1)
public static double log2(double arg1)
public static float log1pf(float arg1)
public static double log1p(double arg1)
public static float logbf(float arg1)
public static double logb(double arg1)
public static float modff(float arg1,
org.moe.natj.general.ptr.FloatPtr arg2)
public static double modf(double arg1,
org.moe.natj.general.ptr.DoublePtr arg2)
public static float ldexpf(float arg1,
int arg2)
public static double ldexp(double arg1,
int arg2)
public static float frexpf(float arg1,
org.moe.natj.general.ptr.IntPtr arg2)
public static double frexp(double arg1,
org.moe.natj.general.ptr.IntPtr arg2)
public static int ilogbf(float arg1)
public static int ilogb(double arg1)
public static float scalbnf(float arg1,
int arg2)
public static double scalbn(double arg1,
int arg2)
public static float scalblnf(float arg1,
long arg2)
public static double scalbln(double arg1,
long arg2)
public static float fabsf(float arg1)
public static double fabs(double arg1)
public static float cbrtf(float arg1)
public static double cbrt(double arg1)
public static float hypotf(float arg1,
float arg2)
public static double hypot(double arg1,
double arg2)
public static float powf(float arg1,
float arg2)
public static double pow(double arg1,
double arg2)
public static float sqrtf(float arg1)
public static double sqrt(double arg1)
public static float erff(float arg1)
public static double erf(double arg1)
public static float erfcf(float arg1)
public static double erfc(double arg1)
public static float lgammaf(float arg1)
public static double lgamma(double arg1)
public static float tgammaf(float arg1)
public static double tgamma(double arg1)
public static float ceilf(float arg1)
public static double ceil(double arg1)
public static float floorf(float arg1)
public static double floor(double arg1)
public static float nearbyintf(float arg1)
public static double nearbyint(double arg1)
public static float rintf(float arg1)
public static double rint(double arg1)
public static long lrintf(float arg1)
public static long lrint(double arg1)
public static float roundf(float arg1)
public static double round(double arg1)
public static long lroundf(float arg1)
public static long lround(double arg1)
public static long llrintf(float arg1)
public static long llrint(double arg1)
public static long llroundf(float arg1)
public static long llround(double arg1)
public static float truncf(float arg1)
public static double trunc(double arg1)
public static float fmodf(float arg1,
float arg2)
public static double fmod(double arg1,
double arg2)
public static float remainderf(float arg1,
float arg2)
public static double remainder(double arg1,
double arg2)
public static float remquof(float arg1,
float arg2,
org.moe.natj.general.ptr.IntPtr arg3)
public static double remquo(double arg1,
double arg2,
org.moe.natj.general.ptr.IntPtr arg3)
public static float copysignf(float arg1,
float arg2)
public static double copysign(double arg1,
double arg2)
public static float nanf(java.lang.String arg1)
public static double nan(java.lang.String arg1)
public static float nextafterf(float arg1,
float arg2)
public static double nextafter(double arg1,
double arg2)
public static float fdimf(float arg1,
float arg2)
public static double fdim(double arg1,
double arg2)
public static float fmaxf(float arg1,
float arg2)
public static double fmax(double arg1,
double arg2)
public static float fminf(float arg1,
float arg2)
public static double fmin(double arg1,
double arg2)
public static float fmaf(float arg1,
float arg2,
float arg3)
public static double fma(double arg1,
double arg2,
double arg3)
public static float __exp10f(float arg1)
public static double __exp10(double arg1)
public static void __sincosf(float __x,
org.moe.natj.general.ptr.FloatPtr __sinp,
org.moe.natj.general.ptr.FloatPtr __cosp)
public static void __sincos(double __x,
org.moe.natj.general.ptr.DoublePtr __sinp,
org.moe.natj.general.ptr.DoublePtr __cosp)
public static float __cospif(float arg1)
public static double __cospi(double arg1)
public static float __sinpif(float arg1)
public static double __sinpi(double arg1)
public static float __tanpif(float arg1)
public static double __tanpi(double arg1)
public static void __sincospif(float __x,
org.moe.natj.general.ptr.FloatPtr __sinp,
org.moe.natj.general.ptr.FloatPtr __cosp)
These functions were introduced in OSX 10.9 and iOS 7.0. Because they are implemented as header inlines, weak-linking does not function as normal, and they are simply hidden when targeting earlier OS versions.
public static void __sincospi(double __x,
org.moe.natj.general.ptr.DoublePtr __sinp,
org.moe.natj.general.ptr.DoublePtr __cosp)
public static __float2 __sincosf_stret(float arg1)
public static __double2 __sincos_stret(double arg1)
public static __float2 __sincospif_stret(float arg1)
public static __double2 __sincospi_stret(double arg1)
public static double j0(double arg1)
public static double j1(double arg1)
public static double jn(int arg1,
double arg2)
public static double y0(double arg1)
public static double y1(double arg1)
public static double yn(int arg1,
double arg2)
public static double scalb(double arg1,
double arg2)
public static org.moe.natj.general.ptr.VoidPtr _Block_copy(org.moe.natj.general.ptr.ConstVoidPtr aBlock)
public static void _Block_release(org.moe.natj.general.ptr.ConstVoidPtr aBlock)
public static void _Block_object_assign(org.moe.natj.general.ptr.VoidPtr arg1,
org.moe.natj.general.ptr.ConstVoidPtr arg2,
int arg3)
public static void _Block_object_dispose(org.moe.natj.general.ptr.ConstVoidPtr arg1,
int arg2)
public static void __assert_rtn(java.lang.String arg1,
java.lang.String arg2,
int arg3,
java.lang.String arg4)
public static long ___runetype(int arg1)
public static int ___tolower(int arg1)
public static int ___toupper(int arg1)
public static int isascii(int _c)
public static int __maskrune(int arg1,
long arg2)
public static int __istype(int _c,
long _f)
public static int __isctype(int _c,
long _f)
public static int __toupper(int arg1)
public static int __tolower(int arg1)
public static int __wcwidth(int _c)
public static int isalnum(int _c)
public static int isalpha(int _c)
public static int isblank(int _c)
public static int iscntrl(int _c)
public static int isdigit(int _c)
public static int isgraph(int _c)
public static int islower(int _c)
public static int isprint(int _c)
public static int ispunct(int _c)
public static int isspace(int _c)
public static int isupper(int _c)
public static int isxdigit(int _c)
public static int toascii(int _c)
public static int tolower(int _c)
public static int toupper(int _c)
public static int digittoint(int _c)
public static int ishexnumber(int _c)
public static int isideogram(int _c)
public static int isnumber(int _c)
public static int isphonogram(int _c)
public static int isrune(int _c)
public static int isspecial(int _c)
public static org.moe.natj.general.ptr.IntPtr __error()
public static lconv localeconv()
public static org.moe.natj.general.ptr.BytePtr setlocale(int arg1,
java.lang.String arg2)
public static int setjmp(org.moe.natj.general.ptr.IntPtr arg1)
public static void longjmp(org.moe.natj.general.ptr.IntPtr arg1,
int arg2)
public static int _setjmp(org.moe.natj.general.ptr.IntPtr arg1)
public static int sigsetjmp(org.moe.natj.general.ptr.IntPtr arg1,
int arg2)
public static void longjmperror()
public static int raise(int arg1)
public static Globals.Function_bsd_signal_ret bsd_signal(int arg1, Globals.Function_bsd_signal arg2)
public static int kill(int arg1,
int arg2)
public static int killpg(int arg1,
int arg2)
public static int pthread_kill(_opaque_pthread_t arg1, int arg2)
public static int pthread_sigmask(int arg1,
org.moe.natj.general.ptr.ConstIntPtr arg2,
org.moe.natj.general.ptr.IntPtr arg3)
public static int sigaction(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
org.moe.natj.general.ptr.VoidPtr arg3)
public static int sigaddset(org.moe.natj.general.ptr.IntPtr arg1,
int arg2)
public static int sigdelset(org.moe.natj.general.ptr.IntPtr arg1,
int arg2)
public static int sigemptyset(org.moe.natj.general.ptr.IntPtr arg1)
public static int sigfillset(org.moe.natj.general.ptr.IntPtr arg1)
public static int sighold(int arg1)
public static int sigignore(int arg1)
public static int siginterrupt(int arg1,
int arg2)
public static int sigismember(org.moe.natj.general.ptr.ConstIntPtr arg1,
int arg2)
public static int sigpause(int arg1)
public static int sigpending(org.moe.natj.general.ptr.IntPtr arg1)
public static int sigprocmask(int arg1,
org.moe.natj.general.ptr.ConstIntPtr arg2,
org.moe.natj.general.ptr.IntPtr arg3)
public static int sigrelse(int arg1)
public static Globals.Function_sigset_ret sigset(int arg1, Globals.Function_sigset arg2)
public static int sigsuspend(org.moe.natj.general.ptr.ConstIntPtr arg1)
public static int sigwait(org.moe.natj.general.ptr.ConstIntPtr arg1,
org.moe.natj.general.ptr.IntPtr arg2)
public static void psignal(int arg1,
java.lang.String arg2)
public static int sigblock(int arg1)
public static int sigsetmask(int arg1)
public static int renameat(int arg1,
java.lang.String arg2,
int arg3,
java.lang.String arg4)
public static int renamex_np(java.lang.String arg1,
java.lang.String arg2,
int arg3)
public static int renameatx_np(int arg1,
java.lang.String arg2,
int arg3,
java.lang.String arg4,
int arg5)
public static void clearerr(FILE arg1)
public static int fclose(FILE arg1)
public static int feof(FILE arg1)
public static int ferror(FILE arg1)
public static int fflush(FILE arg1)
public static int fgetc(FILE arg1)
public static int fgetpos(FILE arg1, org.moe.natj.general.ptr.LongPtr arg2)
public static org.moe.natj.general.ptr.BytePtr fgets(org.moe.natj.general.ptr.BytePtr arg1,
int arg2,
FILE arg3)
public static FILE fopen(java.lang.String __filename, java.lang.String __mode)
public static int fprintf(FILE arg1, java.lang.String arg2, java.lang.Object... varargs)
public static int fputc(int arg1,
FILE arg2)
public static int fputs(java.lang.String arg1,
FILE arg2)
public static long fread(org.moe.natj.general.ptr.VoidPtr __ptr,
long __size,
long __nitems,
FILE __stream)
public static int fscanf(FILE arg1, java.lang.String arg2, java.lang.Object... varargs)
public static int fseek(FILE arg1, long arg2, int arg3)
public static int fsetpos(FILE arg1, org.moe.natj.general.ptr.ConstLongPtr arg2)
public static long ftell(FILE arg1)
public static long fwrite(org.moe.natj.general.ptr.ConstVoidPtr __ptr,
long __size,
long __nitems,
FILE __stream)
public static int getc(FILE arg1)
public static int getchar()
public static org.moe.natj.general.ptr.BytePtr gets(org.moe.natj.general.ptr.BytePtr arg1)
public static void perror(java.lang.String arg1)
public static int printf(java.lang.String arg1,
java.lang.Object... varargs)
public static int putc(int arg1,
FILE arg2)
public static int putchar(int arg1)
public static int puts(java.lang.String arg1)
public static int remove(java.lang.String arg1)
public static int rename(java.lang.String __old,
java.lang.String __new)
public static void rewind(FILE arg1)
public static int scanf(java.lang.String arg1,
java.lang.Object... varargs)
public static void setbuf(FILE arg1, org.moe.natj.general.ptr.BytePtr arg2)
public static int setvbuf(FILE arg1, org.moe.natj.general.ptr.BytePtr arg2, int arg3, long arg4)
public static int sprintf(org.moe.natj.general.ptr.BytePtr arg1,
java.lang.String arg2,
java.lang.Object... varargs)
public static int sscanf(java.lang.String arg1,
java.lang.String arg2,
java.lang.Object... varargs)
public static FILE tmpfile()
@Deprecated public static org.moe.natj.general.ptr.BytePtr tmpnam(org.moe.natj.general.ptr.BytePtr arg1)
public static int ungetc(int arg1,
FILE arg2)
public static int vfprintf(FILE arg1, java.lang.String arg2, org.moe.natj.general.ptr.BytePtr arg3)
public static int vprintf(java.lang.String arg1,
org.moe.natj.general.ptr.BytePtr arg2)
public static int vsprintf(org.moe.natj.general.ptr.BytePtr arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.BytePtr arg3)
public static FILE fdopen(int arg1, java.lang.String arg2)
public static int fileno(FILE arg1)
public static int pclose(FILE arg1)
public static FILE popen(java.lang.String arg1, java.lang.String arg2)
public static int __srget(FILE arg1)
public static int __svfscanf(FILE arg1, java.lang.String arg2, org.moe.natj.general.ptr.BytePtr arg3)
public static int __swbuf(int arg1,
FILE arg2)
public static int __sputc(int _c,
FILE _p)
public static void flockfile(FILE arg1)
public static int ftrylockfile(FILE arg1)
public static void funlockfile(FILE arg1)
public static int getc_unlocked(FILE arg1)
public static int getchar_unlocked()
public static int putc_unlocked(int arg1,
FILE arg2)
public static int putchar_unlocked(int arg1)
public static int getw(FILE arg1)
public static int putw(int arg1,
FILE arg2)
@Deprecated
public static org.moe.natj.general.ptr.BytePtr tempnam(java.lang.String __dir,
java.lang.String __prefix)
public static int fseeko(FILE __stream, long __offset, int __whence)
public static long ftello(FILE __stream)
public static int snprintf(org.moe.natj.general.ptr.BytePtr __str,
long __size,
java.lang.String __format,
java.lang.Object... varargs)
public static int vfscanf(FILE __stream, java.lang.String __format, org.moe.natj.general.ptr.BytePtr arg3)
public static int vscanf(java.lang.String __format,
org.moe.natj.general.ptr.BytePtr arg2)
public static int vsnprintf(org.moe.natj.general.ptr.BytePtr __str,
long __size,
java.lang.String __format,
org.moe.natj.general.ptr.BytePtr arg4)
public static int vsscanf(java.lang.String __str,
java.lang.String __format,
org.moe.natj.general.ptr.BytePtr arg3)
public static int dprintf(int arg1,
java.lang.String arg2,
java.lang.Object... varargs)
public static int vdprintf(int arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.BytePtr arg3)
public static long getdelim(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __linep,
org.moe.natj.general.ptr.NUIntPtr __linecapp,
int __delimiter,
FILE __stream)
public static long getline(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __linep,
org.moe.natj.general.ptr.NUIntPtr __linecapp,
FILE __stream)
public static int asprintf(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
java.lang.String arg2,
java.lang.Object... varargs)
public static org.moe.natj.general.ptr.BytePtr ctermid_r(org.moe.natj.general.ptr.BytePtr arg1)
public static org.moe.natj.general.ptr.BytePtr fgetln(FILE arg1, org.moe.natj.general.ptr.NUIntPtr arg2)
public static java.lang.String fmtcheck(java.lang.String arg1,
java.lang.String arg2)
public static int fpurge(FILE arg1)
public static void setbuffer(FILE arg1, org.moe.natj.general.ptr.BytePtr arg2, int arg3)
public static int setlinebuf(FILE arg1)
public static int vasprintf(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.BytePtr arg3)
public static FILE funopen(org.moe.natj.general.ptr.ConstVoidPtr arg1, Globals.Function_funopen_1 arg2, Globals.Function_funopen_2 arg3, Globals.Function_funopen_3 arg4, Globals.Function_funopen_4 arg5)
public static int __sprintf_chk(org.moe.natj.general.ptr.BytePtr arg1,
int arg2,
long arg3,
java.lang.String arg4,
java.lang.Object... varargs)
public static int __snprintf_chk(org.moe.natj.general.ptr.BytePtr arg1,
long arg2,
int arg3,
long arg4,
java.lang.String arg5,
java.lang.Object... varargs)
public static int __vsprintf_chk(org.moe.natj.general.ptr.BytePtr arg1,
int arg2,
long arg3,
java.lang.String arg4,
org.moe.natj.general.ptr.BytePtr arg5)
public static int __vsnprintf_chk(org.moe.natj.general.ptr.BytePtr arg1,
long arg2,
int arg3,
long arg4,
java.lang.String arg5,
org.moe.natj.general.ptr.BytePtr arg6)
public static int getpriority(int arg1,
int arg2)
public static int getiopolicy_np(int arg1,
int arg2)
public static int getrlimit(int arg1,
rlimit arg2)
public static int getrusage(int arg1,
rusage arg2)
public static int setpriority(int arg1,
int arg2,
int arg3)
public static int setiopolicy_np(int arg1,
int arg2,
int arg3)
public static int setrlimit(int arg1,
rlimit arg2)
public static int wait_c(org.moe.natj.general.ptr.IntPtr arg1)
public static int waitpid(int arg1,
org.moe.natj.general.ptr.IntPtr arg2,
int arg3)
public static int waitid(int arg1,
int arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
int arg4)
public static int wait3(org.moe.natj.general.ptr.IntPtr arg1,
int arg2,
rusage arg3)
public static int wait4(int arg1,
org.moe.natj.general.ptr.IntPtr arg2,
int arg3,
rusage arg4)
public static org.moe.natj.general.ptr.VoidPtr alloca(long arg1)
public static void abort()
public static int abs(int arg1)
public static int atexit(Globals.Function_atexit arg1)
public static double atof(java.lang.String arg1)
public static int atoi(java.lang.String arg1)
public static long atol(java.lang.String arg1)
public static long atoll(java.lang.String arg1)
public static org.moe.natj.general.ptr.VoidPtr bsearch(org.moe.natj.general.ptr.ConstVoidPtr __key,
org.moe.natj.general.ptr.ConstVoidPtr __base,
long __nel,
long __width,
Globals.Function_bsearch __compar)
public static org.moe.natj.general.ptr.VoidPtr calloc(long __count,
long __size)
public static div_t div(int arg1, int arg2)
public static void exit(int arg1)
public static void free(org.moe.natj.general.ptr.VoidPtr arg1)
public static org.moe.natj.general.ptr.BytePtr getenv(java.lang.String arg1)
public static long labs(long arg1)
public static ldiv_t ldiv(long arg1, long arg2)
public static long llabs(long arg1)
public static lldiv_t lldiv(long arg1, long arg2)
public static org.moe.natj.general.ptr.VoidPtr malloc(long __size)
public static int mblen(java.lang.String __s,
long __n)
public static long mbstowcs(org.moe.natj.general.ptr.IntPtr arg1,
java.lang.String arg2,
long arg3)
public static int mbtowc(org.moe.natj.general.ptr.IntPtr arg1,
java.lang.String arg2,
long arg3)
public static int posix_memalign(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.VoidPtr> __memptr,
long __alignment,
long __size)
public static void qsort(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
Globals.Function_qsort __compar)
public static int rand()
public static org.moe.natj.general.ptr.VoidPtr realloc(org.moe.natj.general.ptr.VoidPtr __ptr,
long __size)
public static void srand(int arg1)
public static double strtod(java.lang.String arg1,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2)
public static float strtof(java.lang.String arg1,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2)
public static long strtol(java.lang.String __str,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
int __base)
public static long strtoll(java.lang.String __str,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
int __base)
public static long strtoul(java.lang.String __str,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
int __base)
public static long strtoull(java.lang.String __str,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
int __base)
public static long wcstombs(org.moe.natj.general.ptr.BytePtr arg1,
org.moe.natj.general.ptr.ConstIntPtr arg2,
long arg3)
public static int wctomb(org.moe.natj.general.ptr.BytePtr arg1,
int arg2)
public static long a64l(java.lang.String arg1)
public static double drand48()
public static org.moe.natj.general.ptr.BytePtr ecvt(double arg1,
int arg2,
org.moe.natj.general.ptr.IntPtr arg3,
org.moe.natj.general.ptr.IntPtr arg4)
public static org.moe.natj.general.ptr.BytePtr fcvt(double arg1,
int arg2,
org.moe.natj.general.ptr.IntPtr arg3,
org.moe.natj.general.ptr.IntPtr arg4)
public static org.moe.natj.general.ptr.BytePtr gcvt(double arg1,
int arg2,
org.moe.natj.general.ptr.BytePtr arg3)
public static int grantpt(int arg1)
public static org.moe.natj.general.ptr.BytePtr initstate(int arg1,
org.moe.natj.general.ptr.BytePtr arg2,
long arg3)
public static org.moe.natj.general.ptr.BytePtr l64a(long arg1)
public static long lrand48()
public static long mrand48()
public static int posix_openpt(int arg1)
public static org.moe.natj.general.ptr.BytePtr ptsname(int arg1)
public static int putenv(org.moe.natj.general.ptr.BytePtr arg1)
public static long random()
public static int rand_r(org.moe.natj.general.ptr.IntPtr arg1)
public static org.moe.natj.general.ptr.BytePtr realpath(java.lang.String arg1,
org.moe.natj.general.ptr.BytePtr arg2)
public static int setenv(java.lang.String __name,
java.lang.String __value,
int __overwrite)
public static org.moe.natj.general.ptr.BytePtr setstate(java.lang.String arg1)
public static void srand48(long arg1)
public static void srandom(int arg1)
public static int unlockpt(int arg1)
public static int unsetenv(java.lang.String arg1)
public static int arc4random()
public static void arc4random_addrandom(org.moe.natj.general.ptr.BytePtr arg1,
int arg2)
public static void arc4random_buf(org.moe.natj.general.ptr.VoidPtr __buf,
long __nbytes)
public static void arc4random_stir()
public static int arc4random_uniform(int __upper_bound)
public static int atexit_b(Globals.Block_atexit_b arg1)
public static org.moe.natj.general.ptr.VoidPtr bsearch_b(org.moe.natj.general.ptr.ConstVoidPtr __key,
org.moe.natj.general.ptr.ConstVoidPtr __base,
long __nel,
long __width,
Globals.Block_bsearch_b __compar)
public static org.moe.natj.general.ptr.BytePtr cgetcap(org.moe.natj.general.ptr.BytePtr arg1,
java.lang.String arg2,
int arg3)
public static int cgetclose()
public static int cgetent(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2,
java.lang.String arg3)
public static int cgetfirst(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2)
public static int cgetmatch(java.lang.String arg1,
java.lang.String arg2)
public static int cgetnext(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg1,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2)
public static int cgetnum(org.moe.natj.general.ptr.BytePtr arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.NIntPtr arg3)
public static int cgetset(java.lang.String arg1)
public static int cgetstr(org.moe.natj.general.ptr.BytePtr arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg3)
public static int cgetustr(org.moe.natj.general.ptr.BytePtr arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg3)
@Deprecated
public static int daemon(int arg1,
int arg2)
public static org.moe.natj.general.ptr.BytePtr devname(int arg1,
char arg2)
public static org.moe.natj.general.ptr.BytePtr devname_r(int arg1,
char arg2,
org.moe.natj.general.ptr.BytePtr buf,
int len)
public static org.moe.natj.general.ptr.BytePtr getbsize(org.moe.natj.general.ptr.IntPtr arg1,
org.moe.natj.general.ptr.NIntPtr arg2)
public static int getloadavg(org.moe.natj.general.ptr.DoublePtr arg1,
int arg2)
public static java.lang.String getprogname()
public static int heapsort(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
Globals.Function_heapsort __compar)
public static int heapsort_b(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
Globals.Block_heapsort_b __compar)
public static int mergesort(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
Globals.Function_mergesort __compar)
public static int mergesort_b(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
Globals.Block_mergesort_b __compar)
public static void psort(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
Globals.Function_psort __compar)
public static void psort_b(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
Globals.Block_psort_b __compar)
public static void psort_r(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
org.moe.natj.general.ptr.VoidPtr arg4,
Globals.Function_psort_r __compar)
public static void qsort_b(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
Globals.Block_qsort_b __compar)
public static void qsort_r(org.moe.natj.general.ptr.VoidPtr __base,
long __nel,
long __width,
org.moe.natj.general.ptr.VoidPtr arg4,
Globals.Function_qsort_r __compar)
public static int radixsort(java.lang.String[] __base,
int __nel,
java.lang.String __table,
int __endbyte)
public static void setprogname(java.lang.String arg1)
public static int sradixsort(java.lang.String[] __base,
int __nel,
java.lang.String __table,
int __endbyte)
public static void sranddev()
public static void srandomdev()
public static org.moe.natj.general.ptr.VoidPtr reallocf(org.moe.natj.general.ptr.VoidPtr __ptr,
long __size)
public static long strtoq(java.lang.String __str,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
int __base)
public static long strtouq(java.lang.String __str,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
int __base)
public static org.moe.natj.general.ptr.VoidPtr memchr(org.moe.natj.general.ptr.ConstVoidPtr __s,
int __c,
long __n)
public static int memcmp(org.moe.natj.general.ptr.ConstVoidPtr __s1,
org.moe.natj.general.ptr.ConstVoidPtr __s2,
long __n)
public static org.moe.natj.general.ptr.VoidPtr memcpy(org.moe.natj.general.ptr.VoidPtr __dst,
org.moe.natj.general.ptr.ConstVoidPtr __src,
long __n)
public static org.moe.natj.general.ptr.VoidPtr memmove(org.moe.natj.general.ptr.VoidPtr __dst,
org.moe.natj.general.ptr.ConstVoidPtr __src,
long __len)
public static org.moe.natj.general.ptr.VoidPtr memset(org.moe.natj.general.ptr.VoidPtr __b,
int __c,
long __len)
public static org.moe.natj.general.ptr.BytePtr strcat(org.moe.natj.general.ptr.BytePtr __s1,
java.lang.String __s2)
public static org.moe.natj.general.ptr.BytePtr strchr(java.lang.String __s,
int __c)
public static int strcmp(java.lang.String __s1,
java.lang.String __s2)
public static int strcoll(java.lang.String __s1,
java.lang.String __s2)
public static org.moe.natj.general.ptr.BytePtr strcpy(org.moe.natj.general.ptr.BytePtr __dst,
java.lang.String __src)
public static long strcspn(java.lang.String __s,
java.lang.String __charset)
public static org.moe.natj.general.ptr.BytePtr strerror(int __errnum)
public static long strlen(java.lang.String __s)
public static org.moe.natj.general.ptr.BytePtr strncat(org.moe.natj.general.ptr.BytePtr __s1,
java.lang.String __s2,
long __n)
public static int strncmp(java.lang.String __s1,
java.lang.String __s2,
long __n)
public static org.moe.natj.general.ptr.BytePtr strncpy(org.moe.natj.general.ptr.BytePtr __dst,
java.lang.String __src,
long __n)
public static org.moe.natj.general.ptr.BytePtr strpbrk(java.lang.String __s,
java.lang.String __charset)
public static org.moe.natj.general.ptr.BytePtr strrchr(java.lang.String __s,
int __c)
public static long strspn(java.lang.String __s,
java.lang.String __charset)
public static org.moe.natj.general.ptr.BytePtr strstr(java.lang.String __big,
java.lang.String __little)
public static org.moe.natj.general.ptr.BytePtr strtok(org.moe.natj.general.ptr.BytePtr __str,
java.lang.String __sep)
public static long strxfrm(org.moe.natj.general.ptr.BytePtr __s1,
java.lang.String __s2,
long __n)
public static org.moe.natj.general.ptr.BytePtr strtok_r(org.moe.natj.general.ptr.BytePtr __str,
java.lang.String __sep,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __lasts)
public static int strerror_r(int __errnum,
org.moe.natj.general.ptr.BytePtr __strerrbuf,
long __buflen)
public static org.moe.natj.general.ptr.BytePtr strdup(java.lang.String __s1)
public static org.moe.natj.general.ptr.VoidPtr memccpy(org.moe.natj.general.ptr.VoidPtr __dst,
org.moe.natj.general.ptr.ConstVoidPtr __src,
int __c,
long __n)
public static org.moe.natj.general.ptr.BytePtr stpcpy(org.moe.natj.general.ptr.BytePtr __dst,
java.lang.String __src)
public static org.moe.natj.general.ptr.BytePtr stpncpy(org.moe.natj.general.ptr.BytePtr __dst,
java.lang.String __src,
long __n)
public static org.moe.natj.general.ptr.BytePtr strndup(java.lang.String __s1,
long __n)
public static long strnlen(java.lang.String __s1,
long __n)
public static org.moe.natj.general.ptr.BytePtr strsignal(int __sig)
public static org.moe.natj.general.ptr.VoidPtr memmem(org.moe.natj.general.ptr.ConstVoidPtr __big,
long __big_len,
org.moe.natj.general.ptr.ConstVoidPtr __little,
long __little_len)
public static void memset_pattern4(org.moe.natj.general.ptr.VoidPtr __b,
org.moe.natj.general.ptr.ConstVoidPtr __pattern4,
long __len)
public static void memset_pattern8(org.moe.natj.general.ptr.VoidPtr __b,
org.moe.natj.general.ptr.ConstVoidPtr __pattern8,
long __len)
public static void memset_pattern16(org.moe.natj.general.ptr.VoidPtr __b,
org.moe.natj.general.ptr.ConstVoidPtr __pattern16,
long __len)
public static org.moe.natj.general.ptr.BytePtr strcasestr(java.lang.String __big,
java.lang.String __little)
public static org.moe.natj.general.ptr.BytePtr strnstr(java.lang.String __big,
java.lang.String __little,
long __len)
public static long strlcat(org.moe.natj.general.ptr.BytePtr __dst,
java.lang.String __source,
long __size)
public static long strlcpy(org.moe.natj.general.ptr.BytePtr __dst,
java.lang.String __source,
long __size)
public static void strmode(int __mode,
org.moe.natj.general.ptr.BytePtr __bp)
public static org.moe.natj.general.ptr.BytePtr strsep(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __stringp,
java.lang.String __delim)
public static int bcmp(org.moe.natj.general.ptr.ConstVoidPtr arg1,
org.moe.natj.general.ptr.ConstVoidPtr arg2,
long arg3)
public static void bcopy(org.moe.natj.general.ptr.ConstVoidPtr arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
long arg3)
public static void bzero(org.moe.natj.general.ptr.VoidPtr arg1,
long arg2)
public static org.moe.natj.general.ptr.BytePtr index(java.lang.String arg1,
int arg2)
public static org.moe.natj.general.ptr.BytePtr rindex(java.lang.String arg1,
int arg2)
public static int ffs(int arg1)
public static int strcasecmp(java.lang.String arg1,
java.lang.String arg2)
public static int strncasecmp(java.lang.String arg1,
java.lang.String arg2,
long arg3)
public static int ffsl(long arg1)
public static int ffsll(long arg1)
public static int fls(int arg1)
public static int flsl(long arg1)
public static int flsll(long arg1)
public static org.moe.natj.general.ptr.BytePtr asctime(tm arg1)
public static long clock()
public static org.moe.natj.general.ptr.BytePtr ctime(org.moe.natj.general.ptr.ConstNIntPtr arg1)
public static double difftime(long arg1,
long arg2)
public static tm getdate(java.lang.String arg1)
public static tm gmtime(org.moe.natj.general.ptr.ConstNIntPtr arg1)
public static tm localtime(org.moe.natj.general.ptr.ConstNIntPtr arg1)
public static long mktime(tm arg1)
public static long strftime(org.moe.natj.general.ptr.BytePtr arg1,
long arg2,
java.lang.String arg3,
tm arg4)
public static org.moe.natj.general.ptr.BytePtr strptime(java.lang.String arg1,
java.lang.String arg2,
tm arg3)
public static long time(org.moe.natj.general.ptr.NIntPtr arg1)
public static void tzset()
public static org.moe.natj.general.ptr.BytePtr asctime_r(tm arg1, org.moe.natj.general.ptr.BytePtr arg2)
public static org.moe.natj.general.ptr.BytePtr ctime_r(org.moe.natj.general.ptr.ConstNIntPtr arg1,
org.moe.natj.general.ptr.BytePtr arg2)
public static long posix2time(long arg1)
public static void tzsetwall()
public static long time2posix(long arg1)
public static long timelocal(tm arg1)
public static long timegm(tm arg1)
public static int clock_getres(int __clock_id,
timespec __res)
public static int clock_gettime(int __clock_id,
timespec __tp)
public static long clock_gettime_nsec_np(int __clock_id)
public static long imaxabs(long j)
public static imaxdiv_t imaxdiv(long __numer, long __denom)
public static long strtoimax(java.lang.String __nptr,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
int __base)
public static long strtoumax(java.lang.String __nptr,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
int __base)
public static long wcstoimax(org.moe.natj.general.ptr.ConstIntPtr __nptr,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.IntPtr> __endptr,
int __base)
public static long wcstoumax(org.moe.natj.general.ptr.ConstIntPtr __nptr,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.IntPtr> __endptr,
int __base)
public static int OSHostByteOrder()
public static char _OSReadInt16(org.moe.natj.general.ptr.ConstVoidPtr base,
long byteOffset)
public static int _OSReadInt32(org.moe.natj.general.ptr.ConstVoidPtr base,
long byteOffset)
public static long _OSReadInt64(org.moe.natj.general.ptr.ConstVoidPtr base,
long byteOffset)
public static void _OSWriteInt16(org.moe.natj.general.ptr.VoidPtr base,
long byteOffset,
char data)
public static void _OSWriteInt32(org.moe.natj.general.ptr.VoidPtr base,
long byteOffset,
int data)
public static void _OSWriteInt64(org.moe.natj.general.ptr.VoidPtr base,
long byteOffset,
long data)
public static int acl_free(org.moe.natj.general.ptr.VoidPtr obj_p)
public static acl_t acl_init(int count)
public static int acl_copy_entry(acl_entry_t dest_d, acl_entry_t src_d)
public static int acl_create_entry(org.moe.natj.general.ptr.Ptr<acl_t> acl_p, org.moe.natj.general.ptr.Ptr<acl_entry_t> entry_p)
public static int acl_create_entry_np(org.moe.natj.general.ptr.Ptr<acl_t> acl_p, org.moe.natj.general.ptr.Ptr<acl_entry_t> entry_p, int entry_index)
public static int acl_delete_entry(acl_t acl, acl_entry_t entry_d)
public static int acl_get_entry(acl_t acl, int entry_id, org.moe.natj.general.ptr.Ptr<acl_entry_t> entry_p)
public static int acl_valid(acl_t acl)
public static int acl_valid_fd_np(int fd,
int type,
acl_t acl)
public static int acl_valid_file_np(java.lang.String path,
int type,
acl_t acl)
public static int acl_valid_link_np(java.lang.String path,
int type,
acl_t acl)
public static int acl_add_perm(acl_permset_t permset_d, int perm)
public static int acl_calc_mask(org.moe.natj.general.ptr.Ptr<acl_t> acl_p)
public static int acl_clear_perms(acl_permset_t permset_d)
public static int acl_delete_perm(acl_permset_t permset_d, int perm)
public static int acl_get_perm_np(acl_permset_t permset_d, int perm)
public static int acl_get_permset(acl_entry_t entry_d, org.moe.natj.general.ptr.Ptr<acl_permset_t> permset_p)
public static int acl_set_permset(acl_entry_t entry_d, acl_permset_t permset_d)
public static int acl_maximal_permset_mask_np(org.moe.natj.general.ptr.LongPtr mask_p)
public static int acl_get_permset_mask_np(acl_entry_t entry_d, org.moe.natj.general.ptr.LongPtr mask_p)
public static int acl_set_permset_mask_np(acl_entry_t entry_d, long mask)
public static int acl_add_flag_np(acl_flagset_t flagset_d, int flag)
public static int acl_clear_flags_np(acl_flagset_t flagset_d)
public static int acl_delete_flag_np(acl_flagset_t flagset_d, int flag)
public static int acl_get_flag_np(acl_flagset_t flagset_d, int flag)
public static int acl_get_flagset_np(org.moe.natj.general.ptr.VoidPtr obj_p,
org.moe.natj.general.ptr.Ptr<acl_flagset_t> flagset_p)
public static int acl_set_flagset_np(org.moe.natj.general.ptr.VoidPtr obj_p,
acl_flagset_t flagset_d)
public static org.moe.natj.general.ptr.VoidPtr acl_get_qualifier(acl_entry_t entry_d)
public static int acl_get_tag_type(acl_entry_t entry_d, org.moe.natj.general.ptr.IntPtr tag_type_p)
public static int acl_set_qualifier(acl_entry_t entry_d, org.moe.natj.general.ptr.ConstVoidPtr tag_qualifier_p)
public static int acl_set_tag_type(acl_entry_t entry_d, int tag_type)
public static int acl_delete_def_file(java.lang.String path_p)
public static acl_t acl_get_fd(int fd)
public static acl_t acl_get_fd_np(int fd, int type)
public static acl_t acl_get_file(java.lang.String path_p, int type)
public static acl_t acl_get_link_np(java.lang.String path_p, int type)
public static int acl_set_fd(int fd,
acl_t acl)
public static int acl_set_fd_np(int fd,
acl_t acl,
int acl_type)
public static int acl_set_file(java.lang.String path_p,
int type,
acl_t acl)
public static int acl_set_link_np(java.lang.String path_p,
int type,
acl_t acl)
public static long acl_copy_ext(org.moe.natj.general.ptr.VoidPtr buf_p,
acl_t acl,
long size)
public static long acl_copy_ext_native(org.moe.natj.general.ptr.VoidPtr buf_p,
acl_t acl,
long size)
public static acl_t acl_copy_int(org.moe.natj.general.ptr.ConstVoidPtr buf_p)
public static acl_t acl_copy_int_native(org.moe.natj.general.ptr.ConstVoidPtr buf_p)
public static acl_t acl_from_text(java.lang.String buf_p)
public static long acl_size(acl_t acl)
public static org.moe.natj.general.ptr.BytePtr acl_to_text(acl_t acl, org.moe.natj.general.ptr.NIntPtr len_p)
public static void os_unfair_lock_lock(os_unfair_lock_s lock)
Locks an os_unfair_lock.
lock - Pointer to an os_unfair_lock.public static boolean os_unfair_lock_trylock(os_unfair_lock_s lock)
Locks an os_unfair_lock if it is not already locked.
It is invalid to surround this function with a retry loop, if this function returns false, the program must be able to proceed without having acquired the lock, or it must call os_unfair_lock_lock() directly (a retry loop around os_unfair_lock_trylock() amounts to an inefficient implementation of os_unfair_lock_lock() that hides the lock waiter from the system and prevents resolution of priority inversions).
lock - Pointer to an os_unfair_lock.public static void os_unfair_lock_unlock(os_unfair_lock_s lock)
Unlocks an os_unfair_lock.
lock - Pointer to an os_unfair_lock.public static int accept(int arg1,
sockaddr arg2,
org.moe.natj.general.ptr.IntPtr arg3)
public static int bind(int arg1,
sockaddr arg2,
int arg3)
public static int connect(int arg1,
sockaddr arg2,
int arg3)
public static int getpeername(int arg1,
sockaddr arg2,
org.moe.natj.general.ptr.IntPtr arg3)
public static int getsockname(int arg1,
sockaddr arg2,
org.moe.natj.general.ptr.IntPtr arg3)
public static int getsockopt(int arg1,
int arg2,
int arg3,
org.moe.natj.general.ptr.VoidPtr arg4,
org.moe.natj.general.ptr.IntPtr arg5)
public static int listen(int arg1,
int arg2)
public static long recv(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
long arg3,
int arg4)
public static long recvfrom(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
long arg3,
int arg4,
sockaddr arg5,
org.moe.natj.general.ptr.IntPtr arg6)
public static long recvmsg(int arg1,
msghdr arg2,
int arg3)
public static long send(int arg1,
org.moe.natj.general.ptr.ConstVoidPtr arg2,
long arg3,
int arg4)
public static long sendmsg(int arg1,
msghdr arg2,
int arg3)
public static long sendto(int arg1,
org.moe.natj.general.ptr.ConstVoidPtr arg2,
long arg3,
int arg4,
sockaddr arg5,
int arg6)
public static int setsockopt(int arg1,
int arg2,
int arg3,
org.moe.natj.general.ptr.ConstVoidPtr arg4,
int arg5)
public static int shutdown(int arg1,
int arg2)
public static int sockatmark(int arg1)
public static int socket(int arg1,
int arg2,
int arg3)
public static int socketpair(int arg1,
int arg2,
int arg3,
org.moe.natj.general.ptr.IntPtr arg4)
public static int sendfile(int arg1,
int arg2,
long arg3,
org.moe.natj.general.ptr.LongPtr arg4,
sf_hdtr arg5,
int arg6)
public static void pfctlinput(int arg1,
sockaddr arg2)
public static int connectx(int arg1,
sa_endpoints arg2,
int arg3,
int arg4,
iovec arg5,
int arg6,
org.moe.natj.general.ptr.NUIntPtr arg7,
org.moe.natj.general.ptr.IntPtr arg8)
public static int disconnectx(int arg1,
int arg2,
int arg3)
public static int setipv4sourcefilter(int arg1,
in_addr arg2,
in_addr arg3,
int arg4,
int arg5,
in_addr arg6)
public static int getipv4sourcefilter(int arg1,
in_addr arg2,
in_addr arg3,
org.moe.natj.general.ptr.IntPtr arg4,
org.moe.natj.general.ptr.IntPtr arg5,
in_addr arg6)
public static int setsourcefilter(int arg1,
int arg2,
sockaddr arg3,
int arg4,
int arg5,
int arg6,
sockaddr_storage arg7)
public static int getsourcefilter(int arg1,
int arg2,
sockaddr arg3,
int arg4,
org.moe.natj.general.ptr.IntPtr arg5,
org.moe.natj.general.ptr.IntPtr arg6,
sockaddr_storage arg7)
public static int inet6_option_space(int arg1)
public static int inet6_option_init(org.moe.natj.general.ptr.VoidPtr arg1,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.Ptr<cmsghdr>> arg2,
int arg3)
public static int inet6_option_append(cmsghdr arg1, java.lang.String arg2, int arg3, int arg4)
public static org.moe.natj.general.ptr.BytePtr inet6_option_alloc(cmsghdr arg1, int arg2, int arg3, int arg4)
public static int inet6_option_next(cmsghdr arg1, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2)
public static int inet6_option_find(cmsghdr arg1, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2, int arg3)
public static long inet6_rthdr_space(int arg1,
int arg2)
public static cmsghdr inet6_rthdr_init(org.moe.natj.general.ptr.VoidPtr arg1, int arg2)
public static int inet6_rthdr_add(cmsghdr arg1, org.moe.natj.general.ptr.VoidPtr arg2, int arg3)
public static int inet6_rthdr_lasthop(cmsghdr arg1, int arg2)
public static int inet6_rthdr_segments(cmsghdr arg1)
public static org.moe.natj.general.ptr.VoidPtr inet6_rthdr_getaddr(cmsghdr arg1, int arg2)
public static int inet6_rthdr_getflags(cmsghdr arg1, int arg2)
public static int inet6_opt_init(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2)
public static int inet6_opt_append(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2,
int arg3,
byte arg4,
int arg5,
byte arg6,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.VoidPtr> arg7)
public static int inet6_opt_finish(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2,
int arg3)
public static int inet6_opt_set_val(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
int arg4)
public static int inet6_opt_next(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2,
int arg3,
org.moe.natj.general.ptr.BytePtr arg4,
org.moe.natj.general.ptr.IntPtr arg5,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.VoidPtr> arg6)
public static int inet6_opt_find(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2,
int arg3,
byte arg4,
org.moe.natj.general.ptr.IntPtr arg5,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.VoidPtr> arg6)
public static int inet6_opt_get_val(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
int arg4)
public static int inet6_rth_space(int arg1,
int arg2)
public static org.moe.natj.general.ptr.VoidPtr inet6_rth_init(org.moe.natj.general.ptr.VoidPtr arg1,
int arg2,
int arg3,
int arg4)
public static int inet6_rth_add(org.moe.natj.general.ptr.VoidPtr arg1,
org.moe.natj.general.ptr.VoidPtr arg2)
public static int inet6_rth_reverse(org.moe.natj.general.ptr.ConstVoidPtr arg1,
org.moe.natj.general.ptr.VoidPtr arg2)
public static int inet6_rth_segments(org.moe.natj.general.ptr.ConstVoidPtr arg1)
public static org.moe.natj.general.ptr.VoidPtr inet6_rth_getaddr(org.moe.natj.general.ptr.ConstVoidPtr arg1,
int arg2)
public static int bindresvport(int arg1,
sockaddr_in arg2)
public static int bindresvport_sa(int arg1,
sockaddr arg2)
public static org.moe.natj.general.ptr.BytePtr optarg()
public static int optind()
public static int opterr()
public static int optopt()
public static org.moe.natj.general.ptr.BytePtr suboptarg()
public static int optreset()
public static security_token_t KERNEL_SECURITY_TOKEN()
public static audit_token_t KERNEL_AUDIT_TOKEN()
public static int signgam()
public static _RuneLocale _DefaultRuneLocale()
public static _RuneLocale _CurrentRuneLocale()
public static FILE __stdinp()
public static FILE __stdoutp()
public static FILE __stderrp()
public static int sys_nerr()
public static org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.ConstBytePtr> sys_errlist()
public static int __mb_cur_max()
public static org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> tzname()
public static int getdate_err()
public static long timezone()
public static int daylight()
public static int timingsafe_bcmp(org.moe.natj.general.ptr.ConstVoidPtr __b1,
org.moe.natj.general.ptr.ConstVoidPtr __b2,
long __len)
public static float vrndns_f32(float __p0)
public static int vsha1h_u32(int __p0)
public static double vabdd_f64(double __p0,
double __p1)
public static float vabds_f32(float __p0,
float __p1)
public static long vabsd_s64(long __p0)
public static long vaddd_u64(long __p0,
long __p1)
public static long vaddd_s64(long __p0,
long __p1)
public static long vcaged_f64(double __p0,
double __p1)
public static int vcages_f32(float __p0,
float __p1)
public static long vcagtd_f64(double __p0,
double __p1)
public static int vcagts_f32(float __p0,
float __p1)
public static long vcaled_f64(double __p0,
double __p1)
public static int vcales_f32(float __p0,
float __p1)
public static long vcaltd_f64(double __p0,
double __p1)
public static int vcalts_f32(float __p0,
float __p1)
public static long vceqd_u64(long __p0,
long __p1)
public static long vceqd_s64(long __p0,
long __p1)
public static long vceqd_f64(double __p0,
double __p1)
public static int vceqs_f32(float __p0,
float __p1)
public static long vceqzd_u64(long __p0)
public static long vceqzd_s64(long __p0)
public static long vceqzd_f64(double __p0)
public static int vceqzs_f32(float __p0)
public static long vcged_s64(long __p0,
long __p1)
public static long vcged_u64(long __p0,
long __p1)
public static long vcged_f64(double __p0,
double __p1)
public static int vcges_f32(float __p0,
float __p1)
public static long vcgezd_s64(long __p0)
public static long vcgezd_f64(double __p0)
public static int vcgezs_f32(float __p0)
public static long vcgtd_s64(long __p0,
long __p1)
public static long vcgtd_u64(long __p0,
long __p1)
public static long vcgtd_f64(double __p0,
double __p1)
public static int vcgts_f32(float __p0,
float __p1)
public static long vcgtzd_s64(long __p0)
public static long vcgtzd_f64(double __p0)
public static int vcgtzs_f32(float __p0)
public static long vcled_u64(long __p0,
long __p1)
public static long vcled_s64(long __p0,
long __p1)
public static long vcled_f64(double __p0,
double __p1)
public static int vcles_f32(float __p0,
float __p1)
public static long vclezd_s64(long __p0)
public static long vclezd_f64(double __p0)
public static int vclezs_f32(float __p0)
public static long vcltd_u64(long __p0,
long __p1)
public static long vcltd_s64(long __p0,
long __p1)
public static long vcltd_f64(double __p0,
double __p1)
public static int vclts_f32(float __p0,
float __p1)
public static long vcltzd_s64(long __p0)
public static long vcltzd_f64(double __p0)
public static int vcltzs_f32(float __p0)
public static float vcvts_f32_s32(int __p0)
public static float vcvts_f32_u32(int __p0)
public static double vcvtd_f64_s64(long __p0)
public static double vcvtd_f64_u64(long __p0)
public static int vcvts_s32_f32(float __p0)
public static long vcvtd_s64_f64(double __p0)
public static int vcvts_u32_f32(float __p0)
public static long vcvtd_u64_f64(double __p0)
public static int vcvtas_s32_f32(float __p0)
public static long vcvtad_s64_f64(double __p0)
public static int vcvtas_u32_f32(float __p0)
public static long vcvtad_u64_f64(double __p0)
public static int vcvtms_s32_f32(float __p0)
public static long vcvtmd_s64_f64(double __p0)
public static int vcvtms_u32_f32(float __p0)
public static long vcvtmd_u64_f64(double __p0)
public static int vcvtns_s32_f32(float __p0)
public static long vcvtnd_s64_f64(double __p0)
public static int vcvtns_u32_f32(float __p0)
public static long vcvtnd_u64_f64(double __p0)
public static int vcvtps_s32_f32(float __p0)
public static long vcvtpd_s64_f64(double __p0)
public static int vcvtps_u32_f32(float __p0)
public static long vcvtpd_u64_f64(double __p0)
public static float vcvtxd_f32_f64(double __p0)
public static double vmulxd_f64(double __p0,
double __p1)
public static float vmulxs_f32(float __p0,
float __p1)
public static long vnegd_s64(long __p0)
public static byte vqabsb_s8(byte __p0)
public static int vqabss_s32(int __p0)
public static long vqabsd_s64(long __p0)
public static short vqabsh_s16(short __p0)
public static byte vqaddb_u8(byte __p0,
byte __p1)
public static int vqadds_u32(int __p0,
int __p1)
public static long vqaddd_u64(long __p0,
long __p1)
public static char vqaddh_u16(char __p0,
char __p1)
public static byte vqaddb_s8(byte __p0,
byte __p1)
public static int vqadds_s32(int __p0,
int __p1)
public static long vqaddd_s64(long __p0,
long __p1)
public static short vqaddh_s16(short __p0,
short __p1)
public static long vqdmlals_s32(long __p0,
int __p1,
int __p2)
public static int vqdmlalh_s16(int __p0,
short __p1,
short __p2)
public static long vqdmlsls_s32(long __p0,
int __p1,
int __p2)
public static int vqdmlslh_s16(int __p0,
short __p1,
short __p2)
public static int vqdmulhs_s32(int __p0,
int __p1)
public static short vqdmulhh_s16(short __p0,
short __p1)
public static long vqdmulls_s32(int __p0,
int __p1)
public static int vqdmullh_s16(short __p0,
short __p1)
public static short vqmovns_s32(int __p0)
public static int vqmovnd_s64(long __p0)
public static byte vqmovnh_s16(short __p0)
public static char vqmovns_u32(int __p0)
public static int vqmovnd_u64(long __p0)
public static byte vqmovnh_u16(char __p0)
public static char vqmovuns_s32(int __p0)
public static int vqmovund_s64(long __p0)
public static byte vqmovunh_s16(short __p0)
public static byte vqnegb_s8(byte __p0)
public static int vqnegs_s32(int __p0)
public static long vqnegd_s64(long __p0)
public static short vqnegh_s16(short __p0)
public static int vqrdmulhs_s32(int __p0,
int __p1)
public static short vqrdmulhh_s16(short __p0,
short __p1)
public static byte vqrshlb_u8(byte __p0,
byte __p1)
public static int vqrshls_u32(int __p0,
int __p1)
public static long vqrshld_u64(long __p0,
long __p1)
public static char vqrshlh_u16(char __p0,
short __p1)
public static byte vqrshlb_s8(byte __p0,
byte __p1)
public static int vqrshls_s32(int __p0,
int __p1)
public static long vqrshld_s64(long __p0,
long __p1)
public static short vqrshlh_s16(short __p0,
short __p1)
public static byte vqshlb_u8(byte __p0,
byte __p1)
public static int vqshls_u32(int __p0,
int __p1)
public static long vqshld_u64(long __p0,
long __p1)
public static char vqshlh_u16(char __p0,
short __p1)
public static byte vqshlb_s8(byte __p0,
byte __p1)
public static int vqshls_s32(int __p0,
int __p1)
public static long vqshld_s64(long __p0,
long __p1)
public static short vqshlh_s16(short __p0,
short __p1)
public static byte vqsubb_u8(byte __p0,
byte __p1)
public static int vqsubs_u32(int __p0,
int __p1)
public static long vqsubd_u64(long __p0,
long __p1)
public static char vqsubh_u16(char __p0,
char __p1)
public static byte vqsubb_s8(byte __p0,
byte __p1)
public static int vqsubs_s32(int __p0,
int __p1)
public static long vqsubd_s64(long __p0,
long __p1)
public static short vqsubh_s16(short __p0,
short __p1)
public static double vrecped_f64(double __p0)
public static float vrecpes_f32(float __p0)
public static double vrecpsd_f64(double __p0,
double __p1)
public static float vrecpss_f32(float __p0,
float __p1)
public static double vrecpxd_f64(double __p0)
public static float vrecpxs_f32(float __p0)
public static long vrshld_u64(long __p0,
long __p1)
public static long vrshld_s64(long __p0,
long __p1)
public static double vrsqrted_f64(double __p0)
public static float vrsqrtes_f32(float __p0)
public static double vrsqrtsd_f64(double __p0,
double __p1)
public static float vrsqrtss_f32(float __p0,
float __p1)
public static long vshld_u64(long __p0,
long __p1)
public static long vshld_s64(long __p0,
long __p1)
public static byte vsqaddb_u8(byte __p0,
byte __p1)
public static int vsqadds_u32(int __p0,
int __p1)
public static long vsqaddd_u64(long __p0,
long __p1)
public static char vsqaddh_u16(char __p0,
short __p1)
public static long vsubd_u64(long __p0,
long __p1)
public static long vsubd_s64(long __p0,
long __p1)
public static long vtstd_u64(long __p0,
long __p1)
public static long vtstd_s64(long __p0,
long __p1)
public static byte vuqaddb_s8(byte __p0,
byte __p1)
public static int vuqadds_s32(int __p0,
int __p1)
public static long vuqaddd_s64(long __p0,
long __p1)
public static short vuqaddh_s16(short __p0,
char __p1)
public static int setattrlistat(int arg1,
java.lang.String arg2,
org.moe.natj.general.ptr.VoidPtr arg3,
org.moe.natj.general.ptr.VoidPtr arg4,
long arg5,
int arg6)
public static org.moe.natj.general.ptr.BytePtr mkdtempat_np(int dfd,
org.moe.natj.general.ptr.BytePtr path)
public static int mkstempsat_np(int dfd,
org.moe.natj.general.ptr.BytePtr path,
int slen)
public static int mkostempsat_np(int dfd,
org.moe.natj.general.ptr.BytePtr path,
int slen,
int oflags)
public static FILE fmemopen(org.moe.natj.general.ptr.VoidPtr __buf, long __size, java.lang.String __mode)
public static FILE open_memstream(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __bufp, org.moe.natj.general.ptr.NUIntPtr __sizep)
public static int audit(org.moe.natj.general.ptr.ConstVoidPtr arg1,
int arg2)
public static int auditon(int arg1,
org.moe.natj.general.ptr.VoidPtr arg2,
int arg3)
public static int auditctl(java.lang.String arg1)
public static int getauid(org.moe.natj.general.ptr.IntPtr arg1)
public static int setauid(org.moe.natj.general.ptr.ConstIntPtr arg1)
public static int getaudit_addr(auditinfo_addr arg1, int arg2)
public static int setaudit_addr(auditinfo_addr arg1, int arg2)
@Deprecated public static int getaudit(auditinfo arg1)
@Deprecated public static int setaudit(auditinfo arg1)
public static int audit_session_self()
public static int audit_session_join(int port)
public static int audit_session_port(int asid,
org.moe.natj.general.ptr.IntPtr portname)
public static float simd_muladd(float x,
float y,
float z)
public static float simd_sign(float x)
public static float simd_mix(float x,
float y,
float t)
public static float simd_precise_recip(float x)
If x is very close to the limits of representation, the result may overflow or underflow; otherwise this function is accurate to a few units in the last place (ULPs).
public static float simd_fast_recip(float x)
If x is very close to the limits of representation, the result may overflow or underflow; otherwise this function is accurate to at least 11 bits for float and 22 bits for double.
public static float simd_recip(float x)
If x is very close to the limits of representation, the result may overflow or underflow. This function maps to simd_fast_recip(x) if -ffast-math is specified, and to simd_precise_recip(x) otherwise.
public static float simd_precise_rsqrt(float x)
This function is accurate to a few units in the last place (ULPs).
public static float simd_fast_rsqrt(float x)
This function is accurate to at least 11 bits for float and 22 bits for double.
public static float simd_rsqrt(float x)
This function maps to simd_fast_recip(x) if -ffast-math is specified, and to simd_precise_recip(x) otherwise.
public static float simd_fract(float x)
floor(x) + fract(x) is *approximately* equal to x. If x is positive and finite, then the two values are exactly equal.
public static float simd_step(float edge,
float x)
Use a scalar value for edge if you want to apply the same threshold to all lanes.
public static float simd_smoothstep(float edge0,
float edge1,
float x)
You can use a scalar value for edge0 and edge1 if you want to clamp all lanes at the same points.
public static void dispatch_set_qos_class_floor(NSObject object, int qos_class, int relative_priority)
Sets the QOS class floor on a dispatch queue, source or workloop.
The QOS class of workitems submitted to this object asynchronously will be elevated to at least the specified QOS class floor. The QOS of the workitem will be used if higher than the floor even when the workitem has been created without "ENFORCE" semantics.
Setting the QOS class floor is equivalent to the QOS effects of configuring a queue whose target queue has a QoS class set to the same value.
object - A dispatch queue, workloop, or source to configure.
The object must be inactive.
Passing another object type or an object that has been activated is undefined and will cause the process to be terminated.
qos_class - A QOS class value:
- QOS_CLASS_USER_INTERACTIVE
- QOS_CLASS_USER_INITIATED
- QOS_CLASS_DEFAULT
- QOS_CLASS_UTILITY
- QOS_CLASS_BACKGROUND
Passing any other value is undefined.relative_priority - A relative priority within the QOS class. This value is a negative
offset from the maximum supported scheduler priority for the given class.
Passing a value greater than zero or less than QOS_MIN_RELATIVE_PRIORITY
is undefined.public static void dispatch_async_and_wait(NSObject queue, Globals.Block_dispatch_async_and_wait block)
public static void dispatch_async_and_wait_f(NSObject queue, org.moe.natj.general.ptr.VoidPtr context, Globals.Function_dispatch_async_and_wait_f work)
Submits a function for synchronous execution on a dispatch queue.
See dispatch_async_and_wait() for details.
queue - The target dispatch queue to which the function is submitted.
The result of passing NULL in this parameter is undefined.context - The application-defined context parameter to pass to the function.work - The application-defined function to invoke on the target queue. The first
parameter passed to this function is the context provided to
dispatch_async_and_wait_f().
The result of passing NULL in this parameter is undefined.public static void dispatch_barrier_async_and_wait(NSObject queue, Globals.Block_dispatch_barrier_async_and_wait block)
public static void dispatch_barrier_async_and_wait_f(NSObject queue, org.moe.natj.general.ptr.VoidPtr context, Globals.Function_dispatch_barrier_async_and_wait_f work)
Submits a function for synchronous execution on a dispatch queue.
Submits a function to a dispatch queue like dispatch_async_and_wait_f(), but marks that function as a barrier (relevant only on DISPATCH_QUEUE_CONCURRENT queues).
See "Dispatch Barrier API" for a description of the barrier semantics.
queue - The target dispatch queue to which the function is submitted.
The result of passing NULL in this parameter is undefined.context - The application-defined context parameter to pass to the function.work - The application-defined function to invoke on the target queue. The first
parameter passed to this function is the context provided to
dispatch_barrier_async_and_wait_f().
The result of passing NULL in this parameter is undefined.public static NSObject dispatch_workloop_create(java.lang.String label)
Creates a new dispatch workloop to which workitems may be submitted.
label - A string label to attach to the workloop.public static NSObject dispatch_workloop_create_inactive(java.lang.String label)
Creates a new inactive dispatch workloop that can be setup and then activated.
Creating an inactive workloop allows for it to receive further configuration before it is activated, and workitems can be submitted to it.
Submitting workitems to an inactive workloop is undefined and will cause the process to be terminated.
label - A string label to attach to the workloop.public static void dispatch_workloop_set_autorelease_frequency(NSObject workloop, long frequency)
Sets the autorelease frequency of the workloop.
See dispatch_queue_attr_make_with_autorelease_frequency(). The default policy for a workloop is DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM.
workloop - The dispatch workloop to modify.
This workloop must be inactive, passing an activated object is undefined and will cause the process to be terminated.
frequency - The requested autorelease frequency.public static int ptsname_r(int fildes,
org.moe.natj.general.ptr.BytePtr buffer,
long buflen)
public static int rpmatch(java.lang.String arg1)
@Deprecated public static char NXSwapShort(char inv)
@Deprecated public static int NXSwapInt(int inv)
@Deprecated public static long NXSwapLong(long inv)
@Deprecated public static long NXSwapLongLong(long inv)
@Deprecated public static long NXConvertHostFloatToSwapped(float x)
@Deprecated public static float NXConvertSwappedFloatToHost(long x)
@Deprecated public static long NXConvertHostDoubleToSwapped(double x)
@Deprecated public static double NXConvertSwappedDoubleToHost(long x)
@Deprecated public static long NXSwapFloat(long x)
@Deprecated public static long NXSwapDouble(long x)
public static int NXHostByteOrder()
@Deprecated public static char NXSwapBigShortToHost(char x)
@Deprecated public static int NXSwapBigIntToHost(int x)
@Deprecated public static long NXSwapBigLongToHost(long x)
@Deprecated public static long NXSwapBigLongLongToHost(long x)
@Deprecated public static double NXSwapBigDoubleToHost(long x)
@Deprecated public static float NXSwapBigFloatToHost(long x)
@Deprecated public static char NXSwapHostShortToBig(char x)
@Deprecated public static int NXSwapHostIntToBig(int x)
@Deprecated public static long NXSwapHostLongToBig(long x)
@Deprecated public static long NXSwapHostLongLongToBig(long x)
@Deprecated public static long NXSwapHostDoubleToBig(double x)
@Deprecated public static long NXSwapHostFloatToBig(float x)
@Deprecated public static char NXSwapLittleShortToHost(char x)
@Deprecated public static int NXSwapLittleIntToHost(int x)
@Deprecated public static long NXSwapLittleLongToHost(long x)
@Deprecated public static long NXSwapLittleLongLongToHost(long x)
@Deprecated public static double NXSwapLittleDoubleToHost(long x)
@Deprecated public static float NXSwapLittleFloatToHost(long x)
@Deprecated public static char NXSwapHostShortToLittle(char x)
@Deprecated public static int NXSwapHostIntToLittle(int x)
@Deprecated public static long NXSwapHostLongToLittle(long x)
@Deprecated public static long NXSwapHostLongLongToLittle(long x)
@Deprecated public static long NXSwapHostDoubleToLittle(double x)
@Deprecated public static long NXSwapHostFloatToLittle(float x)
public static int futimes(int arg1,
timeval arg2)
public static int lutimes(java.lang.String arg1,
timeval arg2)
public static int getitimer(int arg1,
itimerval arg2)
public static int gettimeofday(timeval arg1, org.moe.natj.general.ptr.VoidPtr arg2)
public static int utimes(java.lang.String arg1,
timeval arg2)
public static boolean os_trace_info_enabled()
Avoid unnecessary work for a trace point by checking if additional information is enabled.
Avoid unnecessary work for a trace point by checking if additional
information is enabled. Generally trace points should not involve expensive
operations, but some circumstances warrant it. Use this function to avoid
doing the work unless debug level trace messages are requested.
if (os_trace_info_enabled()) {
os_trace_info("value = %d, average = %d",
[[dict objectForKey: @"myKey"] intValue],
(int)[self getAverage:dict]);
}
public static boolean os_trace_debug_enabled()
Avoid unnecessary work for a trace point by checking if debug level is enabled.
Avoid unnecessary work for a trace point by checking if debug level is
enabled. Generally trace points should not involve expensive operations, but
some circumstances warrant it. Use this function to avoid doing the work
unless debug level trace messages are requested.
if (os_trace_debug_enabled()) {
os_trace_debug("value = %d, average = %d",
[[dict objectForKey: @"myKey"] intValue],
(int)[self getAverage:dict]);
}
public static boolean os_trace_type_enabled(byte type)
Avoid unnecessary work for a trace point by checking a specific type
Avoid unnecessary work for a trace point by checking a specific type
public static void _os_trace_with_buffer(org.moe.natj.general.ptr.VoidPtr dso,
java.lang.String message,
byte type,
org.moe.natj.general.ptr.ConstVoidPtr buffer,
long buffer_size,
Globals.Block__os_trace_with_buffer payload)
Internal function to support pre-encoded buffer.
public static NSObject os_log_create(java.lang.String subsystem, java.lang.String category)
Creates a log object to be used with other log related functions.
Creates a log object to be used with other log related functions. The log object serves two purposes: (1) tag related messages by subsystem and category name for easy filtering, and (2) control logging system behavior for messages.
subsystem - The identifier of the given subsystem should be in reverse DNS form
(i.e., com.company.mysubsystem).category - The category within the given subsystem that specifies the settings for
the log object.A value will always be returned to allow for dynamic enablement.
public static boolean os_log_type_enabled(NSObject oslog, byte type)
Evaluate if a specific log type is enabled before doing work
Evaluate if a specific log type is enabled before doing work
oslog - Pass OS_LOG_DEFAULT or a log object previously created with os_log_create.type - Pass a valid type from os_log_type_t.public static void _os_log_impl(org.moe.natj.general.ptr.VoidPtr dso,
NSObject log,
byte type,
java.lang.String format,
org.moe.natj.general.ptr.BytePtr buf,
int size)
Internal function that takes compiler generated encoding and captures the necessary content.
public static void _os_log_debug_impl(org.moe.natj.general.ptr.VoidPtr dso,
NSObject log,
byte type,
java.lang.String format,
org.moe.natj.general.ptr.BytePtr buf,
int size)
Internal function that is taken for any debug log emitted in the system.
public static void _os_log_error_impl(org.moe.natj.general.ptr.VoidPtr dso,
NSObject log,
byte type,
java.lang.String format,
org.moe.natj.general.ptr.BytePtr buf,
int size)
Internal function that is taken for any error emitted in the system.
public static void _os_log_fault_impl(org.moe.natj.general.ptr.VoidPtr dso,
NSObject log,
byte type,
java.lang.String format,
org.moe.natj.general.ptr.BytePtr buf,
int size)
Internal function that is taken for any fault emitted in the system.
public static void _os_log_internal(org.moe.natj.general.ptr.VoidPtr dso,
NSObject log,
byte type,
java.lang.String message,
java.lang.Object... varargs)
public static NSObject _os_log_create(org.moe.natj.general.ptr.VoidPtr dso, java.lang.String subsystem, java.lang.String category)
public static boolean os_log_is_enabled(NSObject log)
public static boolean os_log_is_debug_enabled(NSObject log)
public static void _os_log_sensitive_deprecated()
public static void os_unfair_lock_assert_owner(os_unfair_lock_s lock)
Asserts that the calling thread is the current owner of the specified unfair lock.
If the lock is currently owned by the calling thread, this function returns.
If the lock is unlocked or owned by a different thread, this function asserts and terminates the process.
lock - Pointer to an os_unfair_lock.public static void os_unfair_lock_assert_not_owner(os_unfair_lock_s lock)
Asserts that the calling thread is not the current owner of the specified unfair lock.
If the lock is unlocked or owned by a different thread, this function returns.
If the lock is currently owned by the current thread, this function asserts and terminates the process.
lock - Pointer to an os_unfair_lock.public static int DNSServiceGetProperty(java.lang.String property,
org.moe.natj.general.ptr.VoidPtr result,
org.moe.natj.general.ptr.IntPtr size)
property: The requested property. Currently the only property defined is kDNSServiceProperty_DaemonVersion.
result: Place to store result. For retrieving DaemonVersion, this should be the address of a uint32_t.
size: Pointer to uint32_t containing size of the result location. For retrieving DaemonVersion, this should be sizeof(uint32_t). On return the uint32_t is updated to the size of the data returned. For DaemonVersion, the returned size is always sizeof(uint32_t), but future properties could be defined which return variable-sized results.
return value: Returns kDNSServiceErr_NoError on success, or kDNSServiceErr_ServiceNotRunning if the daemon (or "system service" on Windows) is not running.
public static int DNSServiceRefSockFD(DNSServiceRef sdRef)
Access underlying Unix domain socket for an initialized DNSServiceRef. The DNS Service Discovery implementation uses this socket to communicate between the client and the daemon. The application MUST NOT directly read from or write to this socket. Access to the socket is provided so that it can be used as a kqueue event source, a CFRunLoop event source, in a select() loop, etc. When the underlying event management subsystem (kqueue/ select/CFRunLoop etc.) indicates to the client that data is available for reading on the socket, the client should call DNSServiceProcessResult(), which will extract the daemon's reply from the socket, and pass it to the appropriate application callback. By using a run loop or select(), results from the daemon can be processed asynchronously. Alternatively, a client can choose to fork a thread and have it loop calling "DNSServiceProcessResult(ref);" If DNSServiceProcessResult() is called when no data is available for reading on the socket, it will block until data does become available, and then process the data and return to the caller. The application is responsible for checking the return value of DNSServiceProcessResult() to determine if the socket is valid and if it should continue to process data on the socket. When data arrives on the socket, the client is responsible for calling DNSServiceProcessResult(ref) in a timely fashion -- if the client allows a large backlog of data to build up the daemon may terminate the connection.
sdRef: A DNSServiceRef initialized by any of the DNSService calls.
return value: The DNSServiceRef's underlying socket descriptor, or -1 on error.
public static int DNSServiceProcessResult(DNSServiceRef sdRef)
Read a reply from the daemon, calling the appropriate application callback. This call will block until the daemon's response is received. Use DNSServiceRefSockFD() in conjunction with a run loop or select() to determine the presence of a response from the server before calling this function to process the reply without blocking. Call this function at any point if it is acceptable to block until the daemon's response arrives. Note that the client is responsible for ensuring that DNSServiceProcessResult() is called whenever there is a reply from the daemon - the daemon may terminate its connection with a client that does not process the daemon's responses.
sdRef: A DNSServiceRef initialized by any of the DNSService calls that take a callback parameter.
return value: Returns kDNSServiceErr_NoError on success, otherwise returns an error code indicating the specific failure that occurred.
public static void DNSServiceRefDeallocate(DNSServiceRef sdRef)
Terminate a connection with the daemon and free memory associated with the DNSServiceRef. Any services or records registered with this DNSServiceRef will be deregistered. Any Browse, Resolve, or Query operations called with this reference will be terminated.
Note: If the reference's underlying socket is used in a run loop or select() call, it should be removed BEFORE DNSServiceRefDeallocate() is called, as this function closes the reference's socket.
Note: If the reference was initialized with DNSServiceCreateConnection(), any DNSRecordRefs created via this reference will be invalidated by this call - the resource records are deregistered, and their DNSRecordRefs may not be used in subsequent functions. Similarly, if the reference was initialized with DNSServiceRegister, and an extra resource record was added to the service via DNSServiceAddRecord(), the DNSRecordRef created by the Add() call is invalidated when this function is called - the DNSRecordRef may not be used in subsequent functions.
If the reference was passed to DNSServiceSetDispatchQueue(), DNSServiceRefDeallocate() must be called on the same queue originally passed as an argument to DNSServiceSetDispatchQueue().
Note: This call is to be used only with the DNSServiceRef defined by this API.
sdRef: A DNSServiceRef initialized by any of the DNSService calls.
public static int DNSServiceEnumerateDomains(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef, int flags, int interfaceIndex, Globals.Function_DNSServiceEnumerateDomains callBack, org.moe.natj.general.ptr.VoidPtr context)
sdRef: A pointer to an uninitialized DNSServiceRef (or, if the kDNSServiceFlagsShareConnection flag is used, a copy of the shared connection reference that is to be used). If the call succeeds then it initializes (or updates) the DNSServiceRef, returns kDNSServiceErr_NoError, and the enumeration operation will remain active indefinitely until the client terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate() (or by closing the underlying shared connection, if used).
flags: Possible values are: kDNSServiceFlagsShareConnection to use a shared connection. kDNSServiceFlagsBrowseDomains to enumerate domains recommended for browsing. kDNSServiceFlagsRegistrationDomains to enumerate domains recommended for registration.
interfaceIndex: If non-zero, specifies the interface on which to look for domains. (the index for a given interface is determined via the if_nametoindex() family of calls.) Most applications will pass 0 to enumerate domains on all interfaces. See "Constants for specifying an interface index" for more details.
callBack: The function to be called when a domain is found or the call asynchronously fails.
context: An application context pointer which is passed to the callback function (may be NULL).
return value: Returns kDNSServiceErr_NoError on success (any subsequent, asynchronous errors are delivered to the callback), otherwise returns an error code indicating the error that occurred (the callback is not invoked and the DNSServiceRef is not initialized).
public static int DNSServiceRegister(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef, int flags, int interfaceIndex, java.lang.String name, java.lang.String regtype, java.lang.String domain, java.lang.String host, char port, char txtLen, org.moe.natj.general.ptr.ConstVoidPtr txtRecord, Globals.Function_DNSServiceRegister callBack, org.moe.natj.general.ptr.VoidPtr context)
sdRef: A pointer to an uninitialized DNSServiceRef (or, if the kDNSServiceFlagsShareConnection flag is used, a copy of the shared connection reference that is to be used). If the call succeeds then it initializes (or updates) the DNSServiceRef, returns kDNSServiceErr_NoError, and the service registration will remain active indefinitely until the client terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate() (or by closing the underlying shared connection, if used).
flags: Possible values are: kDNSServiceFlagsShareConnection to use a shared connection. Other flags indicate the renaming behavior on name conflict (not required for most applications). See flag definitions above for details.
interfaceIndex: If non-zero, specifies the interface on which to register the service (the index for a given interface is determined via the if_nametoindex() family of calls.) Most applications will pass 0 to register on all available interfaces. See "Constants for specifying an interface index" for more details.
name: If non-NULL, specifies the service name to be registered. Most applications will not specify a name, in which case the computer name is used (this name is communicated to the client via the callback). If a name is specified, it must be 1-63 bytes of UTF-8 text. If the name is longer than 63 bytes it will be automatically truncated to a legal length, unless the NoAutoRename flag is set, in which case kDNSServiceErr_BadParam will be returned.
regtype: The service type followed by the protocol, separated by a dot
(e.g. "_ftp._tcp"). The service type must be an underscore, followed
by 1-15 characters, which may be letters, digits, or hyphens.
The transport protocol must be "_tcp" or "_udp". New service types
should be registered at
Additional subtypes of the primary service type (where a service
type has defined subtypes) follow the primary service type in a
comma-separated list, with no additional spaces, e.g.
"_primarytype._tcp,_subtype1,_subtype2,_subtype3"
Subtypes provide a mechanism for filtered browsing: A client browsing
for "_primarytype._tcp" will discover all instances of this type;
a client browsing for "_primarytype._tcp,_subtype2" will discover only
those instances that were registered with "_subtype2" in their list of
registered subtypes.
The subtype mechanism can be illustrated with some examples using the
dns-sd command-line tool:
% dns-sd -R Simple _test._tcp "" 1001 &
% dns-sd -R Better _test._tcp,HasFeatureA "" 1002 &
% dns-sd -R Best _test._tcp,HasFeatureA,HasFeatureB "" 1003 &
Now:
% dns-sd -B _test._tcp # will find all three services
% dns-sd -B _test._tcp,HasFeatureA # finds "Better" and "Best"
% dns-sd -B _test._tcp,HasFeatureB # finds only "Best"
Subtype labels may be up to 63 bytes long, and may contain any eight-
bit byte values, including zero bytes. However, due to the nature of
using a C-string-based API, conventional DNS escaping must be used for
dots ('.'), commas (','), backslashes ('\') and zero bytes, as shown below:
% dns-sd -R Test '_test._tcp,s\.one,s\,two,s\\three,s\000four' local 123
domain: If non-NULL, specifies the domain on which to advertise the service.
Most applications will not specify a domain, instead automatically
registering in the default domain(s).
host: If non-NULL, specifies the SRV target host name. Most applications
will not specify a host, instead automatically using the machine's
default host name(s). Note that specifying a non-NULL host does NOT
create an address record for that host - the application is responsible
for ensuring that the appropriate address record exists, or creating it
via DNSServiceRegisterRecord().
port: The port, in network byte order, on which the service accepts connections.
Pass 0 for a "placeholder" service (i.e. a service that will not be discovered
by browsing, but will cause a name conflict if another client tries to
register that same name). Most clients will not use placeholder services.
txtLen: The length of the txtRecord, in bytes. Must be zero if the txtRecord is NULL.
txtRecord: The TXT record rdata. A non-NULL txtRecord MUST be a properly formatted DNS
TXT record, i.e.
callBack: The function to be called when the registration completes or asynchronously
fails. The client MAY pass NULL for the callback - The client will NOT be notified
of the default values picked on its behalf, and the client will NOT be notified of any
asynchronous errors (e.g. out of memory errors, etc.) that may prevent the registration
of the service. The client may NOT pass the NoAutoRename flag if the callback is NULL.
The client may still deregister the service at any time via DNSServiceRefDeallocate().
context: An application context pointer which is passed to the callback function
(may be NULL).
return value: Returns kDNSServiceErr_NoError on success (any subsequent, asynchronous
errors are delivered to the callback), otherwise returns an error code indicating
the error that occurred (the callback is never invoked and the DNSServiceRef
is not initialized).
public static int DNSServiceAddRecord(DNSServiceRef sdRef, org.moe.natj.general.ptr.Ptr<DNSRecordRef> RecordRef, int flags, char rrtype, char rdlen, org.moe.natj.general.ptr.ConstVoidPtr rdata, int ttl)
Add a record to a registered service. The name of the record will be the same as the registered service's name. The record can later be updated or deregistered by passing the RecordRef initialized by this function to DNSServiceUpdateRecord() or DNSServiceRemoveRecord().
Note that the DNSServiceAddRecord/UpdateRecord/RemoveRecord are *NOT* thread-safe with respect to a single DNSServiceRef. If you plan to have multiple threads in your program simultaneously add, update, or remove records from the same DNSServiceRef, then it's the caller's responsibility to use a mutex lock or take similar appropriate precautions to serialize those calls.
Parameters;
sdRef: A DNSServiceRef initialized by DNSServiceRegister().
RecordRef: A pointer to an uninitialized DNSRecordRef. Upon succesfull completion of this call, this ref may be passed to DNSServiceUpdateRecord() or DNSServiceRemoveRecord(). If the above DNSServiceRef is passed to DNSServiceRefDeallocate(), RecordRef is also invalidated and may not be used further.
flags: Currently ignored, reserved for future use.
rrtype: The type of the record (e.g. kDNSServiceType_TXT, kDNSServiceType_SRV, etc)
rdlen: The length, in bytes, of the rdata.
rdata: The raw rdata to be contained in the added resource record.
ttl: The time to live of the resource record, in seconds. Most clients should pass 0 to indicate that the system should select a sensible default value.
return value: Returns kDNSServiceErr_NoError on success, otherwise returns an error code indicating the error that occurred (the RecordRef is not initialized).
public static int DNSServiceUpdateRecord(DNSServiceRef sdRef, DNSRecordRef RecordRef, int flags, char rdlen, org.moe.natj.general.ptr.ConstVoidPtr rdata, int ttl)
Update a registered resource record. The record must either be: - The primary txt record of a service registered via DNSServiceRegister() - A record added to a registered service via DNSServiceAddRecord() - An individual record registered by DNSServiceRegisterRecord()
Parameters:
sdRef: A DNSServiceRef that was initialized by DNSServiceRegister() or DNSServiceCreateConnection().
RecordRef: A DNSRecordRef initialized by DNSServiceAddRecord, or NULL to update the service's primary txt record.
flags: Currently ignored, reserved for future use.
rdlen: The length, in bytes, of the new rdata.
rdata: The new rdata to be contained in the updated resource record.
ttl: The time to live of the updated resource record, in seconds. Most clients should pass 0 to indicate that the system should select a sensible default value.
return value: Returns kDNSServiceErr_NoError on success, otherwise returns an error code indicating the error that occurred.
public static int DNSServiceRemoveRecord(DNSServiceRef sdRef, DNSRecordRef RecordRef, int flags)
Remove a record previously added to a service record set via DNSServiceAddRecord(), or deregister a record registered individually via DNSServiceRegisterRecord().
Parameters:
sdRef: A DNSServiceRef initialized by DNSServiceRegister() (if the record being removed was registered via DNSServiceAddRecord()) or by DNSServiceCreateConnection() (if the record being removed was registered via DNSServiceRegisterRecord()).
recordRef: A DNSRecordRef initialized by a successful call to DNSServiceAddRecord() or DNSServiceRegisterRecord().
flags: Currently ignored, reserved for future use.
return value: Returns kDNSServiceErr_NoError on success, otherwise returns an error code indicating the error that occurred.
public static int DNSServiceBrowse(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef, int flags, int interfaceIndex, java.lang.String regtype, java.lang.String domain, Globals.Function_DNSServiceBrowse callBack, org.moe.natj.general.ptr.VoidPtr context)
sdRef: A pointer to an uninitialized DNSServiceRef (or, if the kDNSServiceFlagsShareConnection flag is used, a copy of the shared connection reference that is to be used). If the call succeeds then it initializes (or updates) the DNSServiceRef, returns kDNSServiceErr_NoError, and the browse operation will remain active indefinitely until the client terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate() (or by closing the underlying shared connection, if used).
flags: Possible values are: kDNSServiceFlagsShareConnection to use a shared connection.
interfaceIndex: If non-zero, specifies the interface on which to browse for services (the index for a given interface is determined via the if_nametoindex() family of calls.) Most applications will pass 0 to browse on all available interfaces. See "Constants for specifying an interface index" for more details.
regtype: The service type being browsed for followed by the protocol, separated by a dot (e.g. "_ftp._tcp"). The transport protocol must be "_tcp" or "_udp". A client may optionally specify a single subtype to perform filtered browsing: e.g. browsing for "_primarytype._tcp,_subtype" will discover only those instances of "_primarytype._tcp" that were registered specifying "_subtype" in their list of registered subtypes.
domain: If non-NULL, specifies the domain on which to browse for services. Most applications will not specify a domain, instead browsing on the default domain(s).
callBack: The function to be called when an instance of the service being browsed for is found, or if the call asynchronously fails.
context: An application context pointer which is passed to the callback function (may be NULL).
return value: Returns kDNSServiceErr_NoError on success (any subsequent, asynchronous errors are delivered to the callback), otherwise returns an error code indicating the error that occurred (the callback is not invoked and the DNSServiceRef is not initialized).
public static int DNSServiceResolve(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef, int flags, int interfaceIndex, java.lang.String name, java.lang.String regtype, java.lang.String domain, Globals.Function_DNSServiceResolve callBack, org.moe.natj.general.ptr.VoidPtr context)
sdRef: A pointer to an uninitialized DNSServiceRef (or, if the kDNSServiceFlagsShareConnection flag is used, a copy of the shared connection reference that is to be used). If the call succeeds then it initializes (or updates) the DNSServiceRef, returns kDNSServiceErr_NoError, and the resolve operation will remain active indefinitely until the client terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate() (or by closing the underlying shared connection, if used).
flags: Possible values are: kDNSServiceFlagsShareConnection to use a shared connection. Specifying kDNSServiceFlagsForceMulticast will cause query to be performed with a link-local mDNS query, even if the name is an apparently non-local name (i.e. a name not ending in ".local.")
interfaceIndex: The interface on which to resolve the service. If this resolve call is as a result of a currently active DNSServiceBrowse() operation, then the interfaceIndex should be the index reported in the DNSServiceBrowseReply callback. If this resolve call is using information previously saved (e.g. in a preference file) for later use, then use interfaceIndex 0, because the desired service may now be reachable via a different physical interface. See "Constants for specifying an interface index" for more details.
name: The name of the service instance to be resolved, as reported to the DNSServiceBrowseReply() callback.
regtype: The type of the service instance to be resolved, as reported to the DNSServiceBrowseReply() callback.
domain: The domain of the service instance to be resolved, as reported to the DNSServiceBrowseReply() callback.
callBack: The function to be called when a result is found, or if the call asynchronously fails.
context: An application context pointer which is passed to the callback function (may be NULL).
return value: Returns kDNSServiceErr_NoError on success (any subsequent, asynchronous errors are delivered to the callback), otherwise returns an error code indicating the error that occurred (the callback is never invoked and the DNSServiceRef is not initialized).
public static int DNSServiceQueryRecord(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef, int flags, int interfaceIndex, java.lang.String fullname, char rrtype, char rrclass, Globals.Function_DNSServiceQueryRecord callBack, org.moe.natj.general.ptr.VoidPtr context)
sdRef: A pointer to an uninitialized DNSServiceRef (or, if the kDNSServiceFlagsShareConnection flag is used, a copy of the shared connection reference that is to be used). If the call succeeds then it initializes (or updates) the DNSServiceRef, returns kDNSServiceErr_NoError, and the query operation will remain active indefinitely until the client terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate() (or by closing the underlying shared connection, if used).
flags: Possible values are: kDNSServiceFlagsShareConnection to use a shared connection. kDNSServiceFlagsForceMulticast or kDNSServiceFlagsLongLivedQuery. Pass kDNSServiceFlagsLongLivedQuery to create a "long-lived" unicast query to a unicast DNS server that implements the protocol. This flag has no effect on link-local multicast queries.
interfaceIndex: If non-zero, specifies the interface on which to issue the query (the index for a given interface is determined via the if_nametoindex() family of calls.) Passing 0 causes the name to be queried for on all interfaces. See "Constants for specifying an interface index" for more details.
fullname: The full domain name of the resource record to be queried for.
rrtype: The numerical type of the resource record to be queried for (e.g. kDNSServiceType_PTR, kDNSServiceType_SRV, etc)
rrclass: The class of the resource record (usually kDNSServiceClass_IN).
callBack: The function to be called when a result is found, or if the call asynchronously fails.
context: An application context pointer which is passed to the callback function (may be NULL).
return value: Returns kDNSServiceErr_NoError on success (any subsequent, asynchronous errors are delivered to the callback), otherwise returns an error code indicating the error that occurred (the callback is never invoked and the DNSServiceRef is not initialized).
public static int DNSServiceGetAddrInfo(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef, int flags, int interfaceIndex, int protocol, java.lang.String hostname, Globals.Function_DNSServiceGetAddrInfo callBack, org.moe.natj.general.ptr.VoidPtr context)
sdRef: A pointer to an uninitialized DNSServiceRef (or, if the kDNSServiceFlagsShareConnection flag is used, a copy of the shared connection reference that is to be used). If the call succeeds then it initializes (or updates) the DNSServiceRef, returns kDNSServiceErr_NoError, and the address query operation will remain active indefinitely until the client terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate() (or by closing the underlying shared connection, if used).
flags: Possible values are: kDNSServiceFlagsShareConnection to use a shared connection. kDNSServiceFlagsForceMulticast
interfaceIndex: The interface on which to issue the query. Passing 0 causes the query to be sent on all active interfaces via Multicast or the primary interface via Unicast.
protocol: Pass in kDNSServiceProtocol_IPv4 to look up IPv4 addresses, or kDNSServiceProtocol_IPv6 to look up IPv6 addresses, or both to look up both kinds. If neither flag is set, the system will apply an intelligent heuristic, which is (currently) that it will attempt to look up both, except:
* If "hostname" is a wide-area unicast DNS hostname (i.e. not a ".local." name) but this host has no routable IPv6 address, then the call will not try to look up IPv6 addresses for "hostname", since any addresses it found would be unlikely to be of any use anyway. Similarly, if this host has no routable IPv4 address, the call will not try to look up IPv4 addresses for "hostname".
hostname: The fully qualified domain name of the host to be queried for.
callBack: The function to be called when the query succeeds or fails asynchronously.
context: An application context pointer which is passed to the callback function (may be NULL).
return value: Returns kDNSServiceErr_NoError on success (any subsequent, asynchronous errors are delivered to the callback), otherwise returns an error code indicating the error that occurred.
public static int DNSServiceCreateConnection(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef)
Create a connection to the daemon allowing efficient registration of multiple individual records.
Parameters:
sdRef: A pointer to an uninitialized DNSServiceRef. Deallocating the reference (via DNSServiceRefDeallocate()) severs the connection and cancels all operations and deregisters all records registered on this connection.
return value: Returns kDNSServiceErr_NoError on success, otherwise returns an error code indicating the specific failure that occurred (in which case the DNSServiceRef is not initialized).
public static int DNSServiceRegisterRecord(DNSServiceRef sdRef, org.moe.natj.general.ptr.Ptr<DNSRecordRef> RecordRef, int flags, int interfaceIndex, java.lang.String fullname, char rrtype, char rrclass, char rdlen, org.moe.natj.general.ptr.ConstVoidPtr rdata, int ttl, Globals.Function_DNSServiceRegisterRecord callBack, org.moe.natj.general.ptr.VoidPtr context)
sdRef: A DNSServiceRef initialized by DNSServiceCreateConnection().
RecordRef: A pointer to an uninitialized DNSRecordRef. Upon succesfull completion of this call, this ref may be passed to DNSServiceUpdateRecord() or DNSServiceRemoveRecord(). (To deregister ALL records registered on a single connected DNSServiceRef and deallocate each of their corresponding DNSServiceRecordRefs, call DNSServiceRefDeallocate()).
flags: Required values are: One of kDNSServiceFlagsShared, kDNSServiceFlagsUnique or kDNSServiceFlagsKnownUnique flags.
Possible values are: kDNSServiceFlagsForceMulticast: If it is specified, the registration will be performed just like a link-local mDNS registration even if the name is an apparently non-local name (i.e. a name not ending in ".local.")
interfaceIndex: If non-zero, specifies the interface on which to register the record (the index for a given interface is determined via the if_nametoindex() family of calls.) Passing 0 causes the record to be registered on all interfaces. See "Constants for specifying an interface index" for more details.
fullname: The full domain name of the resource record.
rrtype: The numerical type of the resource record (e.g. kDNSServiceType_PTR, kDNSServiceType_SRV, etc)
rrclass: The class of the resource record (usually kDNSServiceClass_IN)
rdlen: Length, in bytes, of the rdata.
rdata: A pointer to the raw rdata, as it is to appear in the DNS record.
ttl: The time to live of the resource record, in seconds. Most clients should pass 0 to indicate that the system should select a sensible default value.
callBack: The function to be called when a result is found, or if the call asynchronously fails (e.g. because of a name conflict.)
context: An application context pointer which is passed to the callback function (may be NULL).
return value: Returns kDNSServiceErr_NoError on success (any subsequent, asynchronous errors are delivered to the callback), otherwise returns an error code indicating the error that occurred (the callback is never invoked and the DNSRecordRef is not initialized).
public static int DNSServiceReconfirmRecord(int flags,
int interfaceIndex,
java.lang.String fullname,
char rrtype,
char rrclass,
char rdlen,
org.moe.natj.general.ptr.ConstVoidPtr rdata)
Instruct the daemon to verify the validity of a resource record that appears to be out of date (e.g. because TCP connection to a service's target failed.) Causes the record to be flushed from the daemon's cache (as well as all other daemons' caches on the network) if the record is determined to be invalid. Use this routine conservatively. Reconfirming a record necessarily consumes network bandwidth, so this should not be done indiscriminately.
Parameters:
flags: Not currently used.
interfaceIndex: Specifies the interface of the record in question. The caller must specify the interface. This API (by design) causes increased network traffic, so it requires the caller to be precise about which record should be reconfirmed. It is not possible to pass zero for the interface index to perform a "wildcard" reconfirmation, where *all* matching records are reconfirmed.
fullname: The resource record's full domain name.
rrtype: The resource record's type (e.g. kDNSServiceType_PTR, kDNSServiceType_SRV, etc)
rrclass: The class of the resource record (usually kDNSServiceClass_IN).
rdlen: The length, in bytes, of the resource record rdata.
rdata: The raw rdata of the resource record.
public static int PeerConnectionRelease(int flags,
java.lang.String name,
java.lang.String regtype,
java.lang.String domain)
Release P2P connection resources associated with the service instance. When a service is resolved over a P2P interface, a connection is brought up to the peer advertising the service instance. This call will free the resources associated with that connection. Note that the reference to the service instance will only be maintained by the daemon while the browse for the service type is still running. Thus the sequence of calls to discover, resolve, and then terminate the connection associated with a given P2P service instance would be:
DNSServiceRef BrowseRef, ResolveRef; DNSServiceBrowse(&BrowseRef, ...) // browse for all instances of the service DNSServiceResolve(&ResolveRef, ...) // resolving a service instance creates a // connection to the peer device advertising that service DNSServiceRefDeallocate(ResolveRef) // Stop the resolve, which does not close the peer connection
// Communicate with the peer application.
PeerConnectionRelease() // release the connection to the peer device for the specified service instance
DNSServiceRefDeallocate(BrowseRef) // stop the browse // Any further calls to PeerConnectionRelease() will have no affect since the // service instance to peer connection relationship is only maintained by the // daemon while the browse is running.
flags: Not currently used.
name: The name of the service instance to be resolved, as reported to the DNSServiceBrowseReply() callback.
regtype: The type of the service instance to be resolved, as reported to the DNSServiceBrowseReply() callback.
domain: The domain of the service instance to be resolved, as reported to the DNSServiceBrowseReply() callback.
return value: Returns kDNSServiceErr_NoError on success or the error that occurred.
public static int DNSServiceNATPortMappingCreate(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef, int flags, int interfaceIndex, int protocol, char internalPort, char externalPort, int ttl, Globals.Function_DNSServiceNATPortMappingCreate callBack, org.moe.natj.general.ptr.VoidPtr context)
sdRef: A pointer to an uninitialized DNSServiceRef (or, if the kDNSServiceFlagsShareConnection flag is used, a copy of the shared connection reference that is to be used). If the call succeeds then it initializes (or updates) the DNSServiceRef, returns kDNSServiceErr_NoError, and the NAT port mapping will remain active indefinitely until the client terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate() (or by closing the underlying shared connection, if used).
flags: Possible values are: kDNSServiceFlagsShareConnection to use a shared connection.
interfaceIndex: The interface on which to create port mappings in a NAT gateway. Passing 0 causes the port mapping request to be sent on the primary interface.
protocol: To request a port mapping, pass in kDNSServiceProtocol_UDP, or kDNSServiceProtocol_TCP, or (kDNSServiceProtocol_UDP | kDNSServiceProtocol_TCP) to map both. The local listening port number must also be specified in the internalPort parameter. To just discover the NAT gateway's external IP address, pass zero for protocol, internalPort, externalPort and ttl.
internalPort: The port number in network byte order on the local machine which is listening for packets.
externalPort: The requested external port in network byte order in the NAT gateway that you would like to map to the internal port. Pass 0 if you don't care which external port is chosen for you.
ttl: The requested renewal period of the NAT port mapping, in seconds. If the client machine crashes, suffers a power failure, is disconnected from the network, or suffers some other unfortunate demise which causes it to vanish unexpectedly without explicitly removing its NAT port mappings, then the NAT gateway will garbage-collect old stale NAT port mappings when their lifetime expires. Requesting a short TTL causes such orphaned mappings to be garbage-collected more promptly, but consumes system resources and network bandwidth with frequent renewal packets to keep the mapping from expiring. Requesting a long TTL is more efficient on the network, but in the event of the client vanishing, stale NAT port mappings will not be garbage-collected as quickly. Most clients should pass 0 to use a system-wide default value.
callBack: The function to be called when the port mapping request succeeds or fails asynchronously.
context: An application context pointer which is passed to the callback function (may be NULL).
return value: Returns kDNSServiceErr_NoError on success (any subsequent, asynchronous errors are delivered to the callback), otherwise returns an error code indicating the error that occurred.
If you don't actually want a port mapped, and are just calling the API because you want to find out the NAT's external IP address (e.g. for UI display) then pass zero for protocol, internalPort, externalPort and ttl.
public static int DNSServiceConstructFullName(org.moe.natj.general.ptr.BytePtr fullName,
java.lang.String service,
java.lang.String regtype,
java.lang.String domain)
Concatenate a three-part domain name (as returned by the above callbacks) into a properly-escaped full domain name. Note that callbacks in the above functions ALREADY ESCAPE strings where necessary.
Parameters:
fullName: A pointer to a buffer that where the resulting full domain name is to be written. The buffer must be kDNSServiceMaxDomainName (1009) bytes in length to accommodate the longest legal domain name without buffer overrun.
service: The service name - any dots or backslashes must NOT be escaped. May be NULL (to construct a PTR record name, e.g. "_ftp._tcp.apple.com.").
regtype: The service type followed by the protocol, separated by a dot (e.g. "_ftp._tcp").
domain: The domain name, e.g. "apple.com.". Literal dots or backslashes, if any, must be escaped, e.g. "1st\. Floor.apple.com."
return value: Returns kDNSServiceErr_NoError (0) on success, kDNSServiceErr_BadParam on error.
public static void TXTRecordCreate(org.moe.natj.general.ptr.VoidPtr txtRecord,
char bufferLen,
org.moe.natj.general.ptr.VoidPtr buffer)
Creates a new empty TXTRecordRef referencing the specified storage.
If the buffer parameter is NULL, or the specified storage size is not large enough to hold a key subsequently added using TXTRecordSetValue(), then additional memory will be added as needed using malloc(). Note that an existing TXT record buffer should not be passed to TXTRecordCreate to create a copy of another TXT Record. The correct way to copy TXTRecordRef is creating an empty TXTRecordRef with TXTRecordCreate() first, and using TXTRecordSetValue to set the same value.
On some platforms, when memory is low, malloc() may fail. In this case, TXTRecordSetValue() will return kDNSServiceErr_NoMemory, and this error condition will need to be handled as appropriate by the caller.
You can avoid the need to handle this error condition if you ensure
that the storage you initially provide is large enough to hold all
the key/value pairs that are to be added to the record.
The caller can precompute the exact length required for all of the
key/value pairs to be added, or simply provide a fixed-sized buffer
known in advance to be large enough.
A no-value (key-only) key requires (1 + key length) bytes.
A key with empty value requires (1 + key length + 1) bytes.
A key with non-empty value requires (1 + key length + 1 + value length).
For most applications, DNS-SD TXT records are generally
less than 100 bytes, so in most cases a simple fixed-sized
256-byte buffer will be more than sufficient.
Recommended size limits for DNS-SD TXT Records are discussed in RFC 6763
Note: When passing parameters to and from these TXT record APIs,
the key name does not include the '=' character. The '=' character
is the separator between the key and value in the on-the-wire
packet format; it is not part of either the key or the value.
txtRecord: A pointer to an uninitialized TXTRecordRef.
bufferLen: The size of the storage provided in the "buffer" parameter.
buffer: Optional caller-supplied storage used to hold the TXTRecord data.
This storage must remain valid for as long as
the TXTRecordRef.
public static void TXTRecordDeallocate(org.moe.natj.general.ptr.VoidPtr txtRecord)
Releases any resources allocated in the course of preparing a TXT Record using TXTRecordCreate()/TXTRecordSetValue()/TXTRecordRemoveValue(). Ownership of the buffer provided in TXTRecordCreate() returns to the client.
txtRecord: A TXTRecordRef initialized by calling TXTRecordCreate().
public static int TXTRecordSetValue(org.moe.natj.general.ptr.VoidPtr txtRecord,
java.lang.String key,
byte valueSize,
org.moe.natj.general.ptr.ConstVoidPtr value)
Adds a key (optionally with value) to a TXTRecordRef. If the "key" already
exists in the TXTRecordRef, then the current value will be replaced with
the new value.
Keys may exist in four states with respect to a given TXT record:
- Absent (key does not appear at all)
- Present with no value ("key" appears alone)
- Present with empty value ("key=" appears in TXT record)
- Present with non-empty value ("key=value" appears in TXT record)
For more details refer to "Data Syntax for DNS-SD TXT Records" in RFC 6763
txtRecord: A TXTRecordRef initialized by calling TXTRecordCreate().
key: A null-terminated string which only contains printable ASCII
values (0x20-0x7E), excluding '=' (0x3D). Keys should be
9 characters or fewer (not counting the terminating null).
valueSize: The size of the value.
value: Any binary value. For values that represent
textual data, UTF-8 is STRONGLY recommended.
For values that represent textual data, valueSize
should NOT include the terminating null (if any)
at the end of the string.
If NULL, then "key" will be added with no value.
If non-NULL but valueSize is zero, then "key=" will be
added with empty value.
return value: Returns kDNSServiceErr_NoError on success.
Returns kDNSServiceErr_Invalid if the "key" string contains
illegal characters.
Returns kDNSServiceErr_NoMemory if adding this key would
exceed the available storage.
public static int TXTRecordRemoveValue(org.moe.natj.general.ptr.VoidPtr txtRecord,
java.lang.String key)
Removes a key from a TXTRecordRef. The "key" must be an ASCII string which exists in the TXTRecordRef.
txtRecord: A TXTRecordRef initialized by calling TXTRecordCreate().
key: A key name which exists in the TXTRecordRef.
return value: Returns kDNSServiceErr_NoError on success. Returns kDNSServiceErr_NoSuchKey if the "key" does not exist in the TXTRecordRef.
public static char TXTRecordGetLength(org.moe.natj.general.ptr.VoidPtr txtRecord)
Allows you to determine the length of the raw bytes within a TXTRecordRef.
txtRecord: A TXTRecordRef initialized by calling TXTRecordCreate().
return value: Returns the size of the raw bytes inside a TXTRecordRef which you can pass directly to DNSServiceRegister() or to DNSServiceUpdateRecord(). Returns 0 if the TXTRecordRef is empty.
public static org.moe.natj.general.ptr.ConstVoidPtr TXTRecordGetBytesPtr(org.moe.natj.general.ptr.VoidPtr txtRecord)
Allows you to retrieve a pointer to the raw bytes within a TXTRecordRef.
txtRecord: A TXTRecordRef initialized by calling TXTRecordCreate().
return value: Returns a pointer to the raw bytes inside the TXTRecordRef which you can pass directly to DNSServiceRegister() or to DNSServiceUpdateRecord().
public static int TXTRecordContainsKey(char txtLen,
org.moe.natj.general.ptr.ConstVoidPtr txtRecord,
java.lang.String key)
Allows you to determine if a given TXT Record contains a specified key.
txtLen: The size of the received TXT Record.
txtRecord: Pointer to the received TXT Record bytes.
key: A null-terminated ASCII string containing the key name.
return value: Returns 1 if the TXT Record contains the specified key. Otherwise, it returns 0.
public static org.moe.natj.general.ptr.ConstVoidPtr TXTRecordGetValuePtr(char txtLen,
org.moe.natj.general.ptr.ConstVoidPtr txtRecord,
java.lang.String key,
org.moe.natj.general.ptr.BytePtr valueLen)
Allows you to retrieve the value for a given key from a TXT Record.
txtLen: The size of the received TXT Record
txtRecord: Pointer to the received TXT Record bytes.
key: A null-terminated ASCII string containing the key name.
valueLen: On output, will be set to the size of the "value" data.
return value: Returns NULL if the key does not exist in this TXT record, or exists with no value (to differentiate between these two cases use TXTRecordContainsKey()). Returns pointer to location within TXT Record bytes if the key exists with empty or non-empty value. For empty value, valueLen will be zero. For non-empty value, valueLen will be length of value data.
public static char TXTRecordGetCount(char txtLen,
org.moe.natj.general.ptr.ConstVoidPtr txtRecord)
Returns the number of keys stored in the TXT Record. The count can be used with TXTRecordGetItemAtIndex() to iterate through the keys.
txtLen: The size of the received TXT Record.
txtRecord: Pointer to the received TXT Record bytes.
return value: Returns the total number of keys in the TXT Record.
public static int TXTRecordGetItemAtIndex(char txtLen,
org.moe.natj.general.ptr.ConstVoidPtr txtRecord,
char itemIndex,
char keyBufLen,
org.moe.natj.general.ptr.BytePtr key,
org.moe.natj.general.ptr.BytePtr valueLen,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> value)
Allows you to retrieve a key name and value pointer, given an index into a TXT Record. Legal index values range from zero to TXTRecordGetCount()-1. It's also possible to iterate through keys in a TXT record by simply calling TXTRecordGetItemAtIndex() repeatedly, beginning with index zero and increasing until TXTRecordGetItemAtIndex() returns kDNSServiceErr_Invalid.
On return: For keys with no value, *value is set to NULL and *valueLen is zero. For keys with empty value, *value is non-NULL and *valueLen is zero. For keys with non-empty value, *value is non-NULL and *valueLen is non-zero.
txtLen: The size of the received TXT Record.
txtRecord: Pointer to the received TXT Record bytes.
itemIndex: An index into the TXT Record.
keyBufLen: The size of the string buffer being supplied.
key: A string buffer used to store the key name. On return, the buffer contains a null-terminated C-string giving the key name. DNS-SD TXT keys are usually 9 characters or fewer. To hold the maximum possible key name, the buffer should be 256 bytes long.
valueLen: On output, will be set to the size of the "value" data.
value: On output, *value is set to point to location within TXT Record bytes that holds the value data.
return value: Returns kDNSServiceErr_NoError on success. Returns kDNSServiceErr_NoMemory if keyBufLen is too short. Returns kDNSServiceErr_Invalid if index is greater than TXTRecordGetCount()-1.
public static int DNSServiceSetDispatchQueue(DNSServiceRef service, NSObject queue)
Allows you to schedule a DNSServiceRef on a serial dispatch queue for receiving asynchronous callbacks. It's the clients responsibility to ensure that the provided dispatch queue is running.
A typical application that uses CFRunLoopRun or dispatch_main on its main thread will usually schedule DNSServiceRefs on its main queue (which is always a serial queue) using "DNSServiceSetDispatchQueue(sdref, dispatch_get_main_queue());"
If there is any error during the processing of events, the application callback will be called with an error code. For shared connections, each subordinate DNSServiceRef will get its own error callback. Currently these error callbacks only happen if the daemon is manually terminated or crashes, and the error code in this case is kDNSServiceErr_ServiceNotRunning. The application must call DNSServiceRefDeallocate to free the DNSServiceRef when it gets such an error code. These error callbacks are rare and should not normally happen on customer machines, but application code should be written defensively to handle such error callbacks gracefully if they occur.
After using DNSServiceSetDispatchQueue on a DNSServiceRef, calling DNSServiceProcessResult on the same DNSServiceRef will result in undefined behavior and should be avoided.
Once the application successfully schedules a DNSServiceRef on a serial dispatch queue using DNSServiceSetDispatchQueue, it cannot remove the DNSServiceRef from the dispatch queue, or use DNSServiceSetDispatchQueue a second time to schedule the DNSServiceRef onto a different serial dispatch queue. Once scheduled onto a dispatch queue a DNSServiceRef will deliver events to that queue until the application no longer requires that operation and terminates it using DNSServiceRefDeallocate. Note that the call to DNSServiceRefDeallocate() must be done on the same queue originally passed as an argument to DNSServiceSetDispatchQueue().
service: DNSServiceRef that was allocated and returned to the application, when the application calls one of the DNSService API.
queue: dispatch queue where the application callback will be scheduled
return value: Returns kDNSServiceErr_NoError on success. Returns kDNSServiceErr_NoMemory if it cannot create a dispatch source Returns kDNSServiceErr_BadParam if the service param is invalid or the queue param is invalid
public static int DNSServiceSleepKeepalive(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef, int flags, int fd, int timeout, Globals.Function_DNSServiceSleepKeepalive callBack, org.moe.natj.general.ptr.VoidPtr context)
public static mach_header __dso_handle()
public static long os_signpost_id_make_with_pointer(NSObject log, org.moe.natj.general.ptr.ConstVoidPtr ptr)
Make an os_signpost_id from a pointer value.
Mangles the pointer to create a valid os_signpost_id, including removing address randomization. Checks that the signpost matching scope is not system-wide.
log - Log handle previously created with os_log_create.ptr - Any pointer that disambiguates among concurrent intervals with the same
os_log_t and interval names.public static long os_signpost_id_generate(NSObject log)
Generates an ID guaranteed to be unique within the matching scope of the provided log handle.
Each call to os_signpost_id_generate() with a given log handle and its matching scope will return a different os_signpost_id_t.
log - Log handle previously created with os_log_create.public static boolean os_signpost_enabled(NSObject log)
Returns true if signpost log messages are enabled for a particular log handle.
Returns true if signpost log messages are enabled for a particular log. Use this to avoid doing expensive argument marshalling leading into a call to os_signpost_*
log - Log handle previously created with os_log_create.public static void _os_signpost_emit_with_name_impl(org.moe.natj.general.ptr.VoidPtr dso,
NSObject log,
byte type,
long spid,
java.lang.String name,
java.lang.String format,
org.moe.natj.general.ptr.BytePtr buf,
int size)
public static int __darwin_check_fd_set_overflow(int arg1,
org.moe.natj.general.ptr.ConstVoidPtr arg2,
int arg3)
public static int __darwin_check_fd_set(int _a,
org.moe.natj.general.ptr.ConstVoidPtr _b)
public static void __darwin_fd_set(int _fd,
fd_set _p)
public static void __darwin_fd_clr(int _fd,
fd_set _p)
public static org.moe.natj.general.ptr.VoidPtr object_getIndexedIvars(java.lang.Object obj)
[@note] This function returns a pointer to any extra bytes allocated with the instance (as specified by \c class_createInstance with extraBytes>0). This memory follows the object's ordinary ivars, but may not be adjacent to the last ivar. [@note] The returned pointer is guaranteed to be pointer-size aligned, even if the area following the object's last ivar is less aligned than that. Alignment greater than pointer-size is never guaranteed, even if the area following the object's last ivar is more aligned than that. [@note] In a garbage-collected environment, the memory is scanned conservatively.
obj - An Objective-C object.public static org.moe.natj.general.ptr.VoidPtr aligned_alloc(long __alignment,
long __size)
public static long strtonum(java.lang.String __numstr,
long __minval,
long __maxval,
java.lang.String[] __errstrp)
public static int strsignal_r(int __sig,
org.moe.natj.general.ptr.BytePtr __strsignalbuf,
long __buflen)
public static OS_os_workgroup os_workgroup_create_with_workgroup(java.lang.String name, OS_os_workgroup wg)
Create a new os_workgroup object from an existing os_workgroup.
The newly created os_workgroup has no initial member threads - in particular the creating threaad does not join the os_workgroup_t implicitly.
name - A client specified string for labelling the workgroup. This parameter is
optional and can be NULL.wg - The existing workgroup to create a new workgroup object from.public static int os_workgroup_join(OS_os_workgroup wg, os_workgroup_join_token_opaque_s token_out)
Joins the current thread to the specified workgroup and populates the join token that has been passed in. This API is real-time safe.
wg - The workgroup that the current thread would like to jointoken_out - Pointer to a client allocated struct which the function will populate
with the join token. This token must be passed in by the thread when it calls
os_workgroup_leave().
Errors will be returned in the following cases:
EALREADY The thread is already part of a workgroup that the specified workgroup does not nest with EINVAL The workgroup has been cancelled
public static void os_workgroup_leave(OS_os_workgroup wg, os_workgroup_join_token_opaque_s token)
This removes the current thread from a workgroup it has previously joined. Threads must leave all workgroups in the reverse order that they have joined them. Failing to do so before exiting will result in undefined behavior.
If the join token is malformed, the process will be aborted.
This API is real time safe.
wg - The workgroup that the current thread would like to leave.token - This is the join token populated by the most recent call to
os_workgroup_join().public static int os_workgroup_set_working_arena(OS_os_workgroup wg, org.moe.natj.general.ptr.VoidPtr arena, int max_workers, Globals.Function_os_workgroup_set_working_arena destructor)
Associates a client defined working arena with the workgroup. The arena is local to the workgroup object in the process. This is intended for distributing a manually managed memory allocation between member threads of the workgroup.
This function can be called multiple times and the client specified destructor will be called on the previously assigned arena, if any. This function can only be called when no threads have currently joined the workgroup and all workloops associated with the workgroup are idle.
wg - The workgroup to associate the working arena witharena - The client managed arena to associate with the workgroup. This value can
be NULL.max_workers - The maximum number of threads that will ever query the workgroup for the
arena and request an index into it. If the arena is not used to partition
work amongst member threads, then this field can be 0.destructor - A destructor to call on the previously assigned working arena, if anypublic static org.moe.natj.general.ptr.VoidPtr os_workgroup_get_working_arena(OS_os_workgroup wg, org.moe.natj.general.ptr.IntPtr index_out)
Returns the working arena associated with the workgroup and the current thread's index in the workgroup. This function can only be called by a member of the workgroup. Multiple calls to this API by a member thread will return the same arena and index until the thread leaves the workgroup.
For workloops with an associated workgroup, every work item on the workloop will receive the same index in the arena.
This method returns NULL if no arena is set on the workgroup. The index returned by this function is zero-based and is namespaced per workgroup object in the process. The indices provided are strictly monotonic and never reused until a future call to os_workgroup_set_working_arena.
wg - The workgroup to get the working arena from.index_out - A pointer to a os_workgroup_index which will be populated by the caller's
index in the workgroup.public static void os_workgroup_cancel(OS_os_workgroup wg)
This API invalidates a workgroup and indicates to the system that the workload is no longer relevant to the caller.
No new work should be initiated for a cancelled workgroup and work that is already underway should periodically check for cancellation with os_workgroup_testcancel and initiate cleanup if needed.
Threads currently in the workgroup continue to be tracked together but no new threads may join this workgroup - the only possible operation allowed is to leave the workgroup. Other actions may have undefined behavior or otherwise fail.
This API is idempotent. Cancellation is local to the workgroup object it is called on and does not affect other workgroups.
wg - The workgroup that that the thread would like to cancelpublic static boolean os_workgroup_testcancel(OS_os_workgroup wg)
Returns true if the workgroup object has been cancelled. See also os_workgroup_cancel
public static int os_workgroup_max_parallel_threads(OS_os_workgroup wg, os_workgroup_mpt_attr_t attr)
Returns the system's recommendation for maximum number of threads the client should make for a multi-threaded workload in a given workgroup.
This API takes into consideration the current hardware the code is running on and the attributes of the workgroup. It does not take into consideration the current load of the system and therefore always provides the most optimal recommendation for the workload.
wg - The workgroup in which the multi-threaded workload will be performed in. The
threads performing the multi-threaded workload are expected to join this
workgroup.attr - This value is currently unused and should be NULL.public static int os_workgroup_interval_start(OS_os_workgroup wg, long start, long deadline, os_workgroup_interval_data_opaque_s data)
Indicates to the system that the member threads of this os_workgroup_interval_t have begun working on an instance of the repeatable interval workload with the specified timestamps. This function is real time safe.
This function will set and return an errno in the following cases:
- The current thread is not a member of the os_workgroup_interval_t - The os_workgroup_interval_t has been cancelled - The timestamps passed in are malformed - os_workgroup_interval_start() was previously called on the os_workgroup_interval_t without an intervening os_workgroup_interval_finish() - A concurrent workgroup interval configuration operation is taking place.
start - Start timestamp specified in the os_clockid_t with which the
os_workgroup_interval_t was created. This is generally a time in the past and
indicates when the workgroup started working on an interval perioddeadline - Deadline timestamp specified in the os_clockid_t with which the
os_workgroup_interval_t was created. This specifies the deadline which the
interval period would like to meet.data - This field is currently unused and should be NULLpublic static int os_workgroup_interval_update(OS_os_workgroup wg, long deadline, os_workgroup_interval_data_opaque_s data)
Updates an already started interval workgroup to have the new deadline specified. This function is real time safe.
This function will return an error in the following cases: - The current thread is not a member of the os_workgroup_interval_t - The os_workgroup_interval_t has been cancelled - The timestamp passed in is malformed - os_workgroup_interval_start() was not previously called on the os_workgroup_interval_t or was already matched with an os_workgroup_interval_finish() - A concurrent workgroup interval configuration operation is taking place
deadline - Timestamp specified in the os_clockid_t with
which the os_workgroup_interval_t was created.data - This field is currently unused and should be NULLpublic static int os_workgroup_interval_finish(OS_os_workgroup wg, os_workgroup_interval_data_opaque_s data)
Indicates to the system that the member threads of this os_workgroup_interval_t have finished working on the current instance of the interval workload. This function is real time safe.
This function will return an error in the following cases: - The current thread is not a member of the os_workgroup_interval_t - os_workgroup_interval_start() was not previously called on the os_workgroup_interval_t or was already matched with an os_workgroup_interval_finish() - A concurrent workgroup interval configuration operation is taking place.
data - This field is currently unused and should be NULLpublic static OS_os_workgroup os_workgroup_parallel_create(java.lang.String name, os_workgroup_attr_opaque_s attr)
Creates an os_workgroup_t which tracks a parallel workload. A newly created os_workgroup_interval_t has no initial member threads - in particular the creating thread does not join the os_workgroup_parallel_t implicitly.
See also os_workgroup_max_parallel_threads().
name - A client specified string for labelling the workgroup. This parameter is
optional and can be NULL.attr - The requested set of workgroup attributes. NULL is to be specified for the
default set of attributes.public static void dispatch_workloop_set_os_workgroup(NSObject workloop, OS_os_workgroup workgroup)
Associates an os_workgroup_t with the specified dispatch workloop.
The worker thread will be a member of the specified os_workgroup_t while executing work items submitted to the workloop.
workloop - The dispatch workloop to modify.
This workloop must be inactive, passing an activated object is undefined and will cause the process to be terminated.
workgroup - The workgroup to associate with this workloop.
The workgroup specified is retained and the previously associated workgroup (if any) is released.
public static int __sigbits(int __signo)
public static int timespec_get(timespec ts, int base)
public static void _os_activity_label_useraction(org.moe.natj.general.ptr.VoidPtr dso,
java.lang.String name)
Internal function for use by os_activity_label_useraction.
[@warning] Do not use directly.
public static void _os_activity_initiate(org.moe.natj.general.ptr.VoidPtr dso,
java.lang.String description,
int flags,
Globals.Block__os_activity_initiate activity_block)
Do not use directly because your description will not be preserved.
public static void _os_activity_initiate_f(org.moe.natj.general.ptr.VoidPtr dso,
java.lang.String description,
int flags,
org.moe.natj.general.ptr.VoidPtr context,
Globals.Function__os_activity_initiate_f function)
Do not use directly because your description will not be preserved.
public static int os_activity_get_active(org.moe.natj.general.ptr.LongPtr entries,
org.moe.natj.general.ptr.IntPtr count)
Returns the stack of nested activities associated with the current thread.
Activities have a sense of nesting and therefore there could be more than one activity involved on the current thread. This should be used by diagnostic tools only for making additional decisions about a situation.
entries - Pass a buffer of sufficient size to hold the the number of os_activity_id_t
being requested.count - Pointer to the requested number of activity identifiers.
On output will be filled with the number of activities that are available.public static long os_activity_get_identifier(long activity,
org.moe.natj.general.ptr.LongPtr parent_id)
Returns the current activity ID and will fill the parent_id if present.
Returns the current activity ID and will fill the parent_id if present.
parent_id - If non-null will set the parent activity ID.public static long _os_activity_start(org.moe.natj.general.ptr.VoidPtr dso,
java.lang.String description,
int flags)
Internal function for activity start, do not use directly will not preserve description.
public static void os_activity_end(long activity)
[@warning] Deprecated please use new os_activity_create and os_activity_apply.
public static void _os_activity_set_breadcrumb(org.moe.natj.general.ptr.VoidPtr dso,
java.lang.String name)
[@warning] Deprecated, please use os_activity_label_useraction.