Package apple.c

Class Globals


  • public final class Globals
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static long ___runetype​(int arg1)
      See comments in about __darwin_ct_rune_t.
      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​(int _a, org.moe.natj.general.ptr.ConstVoidPtr _b)  
      static int __darwin_check_fd_set_overflow​(int arg1, org.moe.natj.general.ptr.ConstVoidPtr arg2, int arg3)  
      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 void __sincos​(double __x, org.moe.natj.general.ptr.DoublePtr __sinp, org.moe.natj.general.ptr.DoublePtr __cosp)  
      static __double2 __sincos_stret​(double 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 __float2 __sincosf_stret​(float arg1)  
      static void __sincospi​(double __x, org.moe.natj.general.ptr.DoublePtr __sinp, org.moe.natj.general.ptr.DoublePtr __cosp)  
      static __double2 __sincospi_stret​(double 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 __float2 __sincospif_stret​(float arg1)  
      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​(org.moe.natj.general.ptr.NIntPtr predicate, Globals.Block__dispatch_once block)  
      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 _exit​(int arg1)
      POSIX.1-1990
      static void _Exit​(int arg1)  
      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 Internal function that is taken for any debug log emitted in the system.
      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 Internal function that is taken for any error emitted in the system.
      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 Internal function that is taken for any fault emitted in the system.
      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 Internal function that takes compiler generated encoding and captures the necessary content.
      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 Internal function to support pre-encoded 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​(org.moe.natj.general.ptr.VoidPtr buf_p, acl_t acl, long size)
      23.1.6.4 ACL Format translation
      static long acl_copy_ext_native​(org.moe.natj.general.ptr.VoidPtr buf_p, acl_t acl, long size)  
      static acl_t acl_copy_int​(org.moe.natj.general.ptr.ConstVoidPtr buf_p)  
      static acl_t acl_copy_int_native​(org.moe.natj.general.ptr.ConstVoidPtr buf_p)  
      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_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_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​(int fd)  
      static acl_t acl_get_fd_np​(int fd, int type)  
      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​(acl_entry_t entry_d, org.moe.natj.general.ptr.Ptr<acl_permset_t> permset_p)  
      static int acl_get_permset_mask_np​(acl_entry_t entry_d, org.moe.natj.general.ptr.LongPtr mask_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​(int fd, acl_t acl)  
      static int acl_set_fd_np​(int fd, acl_t acl, int acl_type)  
      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​(acl_entry_t entry_d, acl_permset_t permset_d)  
      static int acl_set_permset_mask_np​(acl_entry_t entry_d, long mask)  
      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​(acl_t acl)  
      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 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 int arc4random()  
      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 org.moe.natj.general.ptr.BytePtr asctime​(tm arg1)  
      static org.moe.natj.general.ptr.BytePtr asctime_r​(tm arg1, org.moe.natj.general.ptr.BytePtr arg2)
      [TSF] Thread safe functions
      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​(Globals.Function_atexit arg1)  
      static int atexit_b​(Globals.Block_atexit_b 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​(org.moe.natj.general.ptr.ConstVoidPtr arg1, int arg2)  
      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 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​(int arg1, sockaddr_in arg2)  
      static int bindresvport_sa​(int arg1, sockaddr 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​(org.moe.natj.general.ptr.ConstVoidPtr __key, org.moe.natj.general.ptr.ConstVoidPtr __base, long __nel, long __width, Globals.Function_bsearch __compar)  
      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 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 long clock()  
      static int clock_getres​(int __clock_id, timespec __res)  
      static int clock_gettime​(int __clock_id, timespec __tp)  
      static long clock_gettime_nsec_np​(int __clock_id)  
      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​(org.moe.natj.general.ptr.BytePtr arg1)  
      static org.moe.natj.general.ptr.BytePtr ctermid_r​(org.moe.natj.general.ptr.BytePtr arg1)  
      static org.moe.natj.general.ptr.BytePtr ctime​(org.moe.natj.general.ptr.ConstNIntPtr 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 int daemon​(int arg1, int arg2)
      Deprecated.
      static int daylight()  
      static org.moe.natj.general.ptr.BytePtr devname​(int arg1, char arg2)  
      static org.moe.natj.general.ptr.BytePtr devname_r​(int arg1, char arg2, org.moe.natj.general.ptr.BytePtr buf, int len)  
      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 Activates the specified dispatch object.
      static void dispatch_after​(long when, NSObject queue, Globals.Block_dispatch_after block)  
      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 Schedule a function for execution on a given queue at a specified time.
      static void dispatch_apply​(long iterations, NSObject queue, Globals.Block_dispatch_apply 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 Submits a function to a dispatch queue for parallel invocation.
      static void dispatch_assert_queue​(NSObject queue)
      [@function] dispatch_assert_queue Verifies that the current block is executing on a given dispatch queue.
      static void dispatch_assert_queue_barrier​(NSObject queue)
      [@function] dispatch_assert_queue_barrier Verifies that the current block is executing on a given dispatch queue, and that the block acts as a barrier on that queue.
      static void dispatch_assert_queue_not​(NSObject queue)
      [@function] dispatch_assert_queue_not Verifies that the current block is not executing on a given dispatch queue.
      static void dispatch_async​(NSObject queue, Globals.Block_dispatch_async block)  
      static void dispatch_async_and_wait​(NSObject queue, Globals.Block_dispatch_async_and_wait block)  
      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 Submits a function for synchronous execution on a dispatch queue.
      static void dispatch_async_f​(NSObject queue, org.moe.natj.general.ptr.VoidPtr context, Globals.Function_dispatch_async_f work)
      [@function] dispatch_async_f Submits a function for asynchronous execution on a dispatch queue.
      static void dispatch_barrier_async​(NSObject queue, Globals.Block_dispatch_barrier_async block)  
      static void dispatch_barrier_async_and_wait​(NSObject queue, Globals.Block_dispatch_barrier_async_and_wait 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 Submits a function for synchronous execution on a dispatch queue.
      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 Submits a barrier function for asynchronous execution on a dispatch queue.
      static void dispatch_barrier_sync​(NSObject queue, Globals.Block_dispatch_barrier_sync 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 Submits a barrier function for synchronous execution on a dispatch queue.
      static void dispatch_block_cancel​(Globals.Block_dispatch_block_cancel block)
      [@function] dispatch_block_cancel Asynchronously cancel the specified dispatch block object.
      static Globals.Block_dispatch_block_create_ret dispatch_block_create​(long flags, Globals.Block_dispatch_block_create block)
      [@function] dispatch_block_create Create a new dispatch block object on the heap from an existing block and the given flags.
      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 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.
      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 Schedule a notification block to be submitted to a queue when the execution of a specified dispatch block object has completed.
      static void dispatch_block_perform​(long flags, Globals.Block_dispatch_block_perform block)
      [@function] dispatch_block_perform Create, synchronously execute and release a dispatch block object from the specified block and flags.
      static long dispatch_block_testcancel​(Globals.Block_dispatch_block_testcancel block)
      [@function] dispatch_block_testcancel Tests whether the given dispatch block object has been canceled.
      static long dispatch_block_wait​(Globals.Block_dispatch_block_wait block, long timeout)
      [@function] dispatch_block_wait Wait synchronously until execution of the specified dispatch block object has completed or until the specified timeout has elapsed.
      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​(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 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 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 Returns the application defined context of the object.
      static NSObject dispatch_get_current_queue()
      Deprecated.
      static NSObject dispatch_get_global_queue​(long identifier, long flags)
      [@function] dispatch_get_global_queue Returns a well-known global concurrent queue of a given quality of service class.
      static NSObject dispatch_get_main_queue()
      [@function] dispatch_get_main_queue Returns the default queue that is bound to the main thread.
      static org.moe.natj.general.ptr.VoidPtr dispatch_get_specific​(org.moe.natj.general.ptr.ConstVoidPtr key)
      [@function] dispatch_get_specific Returns the current subsystem-specific context for a key unique to the subsystem.
      static void dispatch_group_async​(NSObject group, NSObject queue, Globals.Block_dispatch_group_async block)  
      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 Submits a function to a dispatch queue and associates the block with the given dispatch group.
      static NSObject dispatch_group_create()
      [@function] dispatch_group_create Creates new group with which blocks may be associated.
      static void dispatch_group_enter​(NSObject group)
      [@function] dispatch_group_enter 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().
      static void dispatch_group_leave​(NSObject group)
      [@function] dispatch_group_leave 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().
      static void dispatch_group_notify​(NSObject group, NSObject queue, Globals.Block_dispatch_group_notify block)  
      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 Schedule a function to be submitted to a queue when all the blocks associated with a group have completed.
      static long dispatch_group_wait​(NSObject group, long timeout)
      [@function] dispatch_group_wait Wait synchronously until all the blocks associated with a group have completed or until the specified timeout has elapsed.
      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​(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 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 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 Execute blocks submitted to the main queue.
      static void dispatch_once​(org.moe.natj.general.ptr.NIntPtr predicate, Globals.Block_dispatch_once block)  
      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 NSObject dispatch_queue_attr_make_initially_inactive​(NSObject attr)
      [@function] dispatch_queue_attr_make_initially_inactive 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.
      static NSObject dispatch_queue_attr_make_with_autorelease_frequency​(NSObject attr, long frequency)
      [@function] dispatch_queue_attr_make_with_autorelease_frequency Returns a dispatch queue attribute value with the autorelease frequency set to the specified value.
      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 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.
      static NSObject dispatch_queue_create​(java.lang.String label, NSObject attr)
      [@function] dispatch_queue_create Creates a new dispatch queue to which blocks may be submitted.
      static NSObject dispatch_queue_create_with_target​(java.lang.String label, NSObject attr, NSObject target)
      [@function] dispatch_queue_create_with_target Creates a new dispatch queue with a specified target queue.
      static java.lang.String dispatch_queue_get_label​(NSObject queue)
      [@function] dispatch_queue_get_label Returns the label of the given queue, as specified when the queue was created, or the empty string if a NULL label was specified.
      static int dispatch_queue_get_qos_class​(NSObject queue, org.moe.natj.general.ptr.IntPtr relative_priority_ptr)
      [@function] dispatch_queue_get_qos_class Returns the QOS class and relative priority of the given queue.
      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 Returns the subsystem-specific context associated with a dispatch queue, for a key unique to the subsystem.
      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 Associates a subsystem-specific context with a dispatch queue, for a key unique to the subsystem.
      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 Decrement the reference count of a dispatch object.
      static void dispatch_resume​(NSObject object)
      [@function] dispatch_resume Resumes the invocation of blocks on a dispatch object.
      static void dispatch_retain​(NSObject object)
      [@function] dispatch_retain Increment the reference count of a dispatch object.
      static NSObject dispatch_semaphore_create​(long value)
      [@function] dispatch_semaphore_create Creates new counting semaphore with an initial value.
      static long dispatch_semaphore_signal​(NSObject dsema)
      [@function] dispatch_semaphore_signal Signal (increment) a semaphore.
      static long dispatch_semaphore_wait​(NSObject dsema, long timeout)
      [@function] dispatch_semaphore_wait Wait (decrement) for a semaphore.
      static void dispatch_set_context​(NSObject object, org.moe.natj.general.ptr.VoidPtr context)
      [@function] dispatch_set_context Associates an application defined context with the object.
      static void dispatch_set_finalizer_f​(NSObject object, Globals.Function_dispatch_set_finalizer_f finalizer)
      [@function] dispatch_set_finalizer_f Set the finalizer function for a dispatch object.
      static void dispatch_set_qos_class_floor​(NSObject object, int qos_class, int relative_priority)
      [@function] dispatch_set_qos_class_floor Sets the QOS class floor on a dispatch queue, source or workloop.
      static void dispatch_set_target_queue​(NSObject object, NSObject queue)
      [@function] dispatch_set_target_queue Sets the target queue for the given object.
      static void dispatch_source_cancel​(NSObject source)
      [@function] dispatch_source_cancel Asynchronously cancel the dispatch source, preventing any further invocation of its event handler block.
      static NSObject dispatch_source_create​(dispatch_source_type_t type, long handle, long mask, NSObject queue)
      [@function] dispatch_source_create 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.
      static long dispatch_source_get_data​(NSObject source)
      [@function] dispatch_source_get_data Returns pending data for the dispatch source.
      static long dispatch_source_get_handle​(NSObject source)
      [@function] dispatch_source_get_handle Returns the underlying system handle associated with this dispatch source.
      static long dispatch_source_get_mask​(NSObject source)
      [@function] dispatch_source_get_mask Returns the mask of events monitored by the dispatch source.
      static void dispatch_source_merge_data​(NSObject source, long value)
      [@function] dispatch_source_merge_data 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.
      static void dispatch_source_set_cancel_handler​(NSObject source, Globals.Block_dispatch_source_set_cancel_handler handler)  
      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 Sets the cancellation handler function for the given dispatch source.
      static void dispatch_source_set_event_handler​(NSObject source, Globals.Block_dispatch_source_set_event_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 Sets the event handler function for the given dispatch source.
      static void dispatch_source_set_registration_handler​(NSObject source, Globals.Block_dispatch_source_set_registration_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 Sets the registration handler function for the given dispatch source.
      static void dispatch_source_set_timer​(NSObject source, long start, long interval, long leeway)
      [@function] dispatch_source_set_timer Sets a start time, interval, and leeway value for a timer source.
      static long dispatch_source_testcancel​(NSObject source)
      [@function] dispatch_source_testcancel Tests whether the given dispatch source has been canceled.
      static void dispatch_suspend​(NSObject object)
      [@function] dispatch_suspend Suspends the invocation of blocks on a dispatch object.
      static void dispatch_sync​(NSObject queue, Globals.Block_dispatch_sync block)  
      static void dispatch_sync_f​(NSObject queue, org.moe.natj.general.ptr.VoidPtr context, Globals.Function_dispatch_sync_f work)
      [@function] dispatch_sync_f Submits a function for synchronous execution on a dispatch queue.
      static long dispatch_time​(long when, long delta)
      [@function] dispatch_time Create a dispatch_time_t relative to the current value of the default or wall time clock, or modify an existing dispatch_time_t.
      static long dispatch_walltime​(timespec when, long delta)
      [@function] dispatch_walltime Create a dispatch_time_t using the wall clock.
      static NSObject dispatch_workloop_create​(java.lang.String label)
      [@function] dispatch_workloop_create Creates a new dispatch workloop to which workitems may be submitted.
      static NSObject dispatch_workloop_create_inactive​(java.lang.String label)
      [@function] dispatch_workloop_create_inactive Creates a new inactive dispatch workloop that can be setup and then activated.
      static void dispatch_workloop_set_autorelease_frequency​(NSObject workloop, long frequency)
      [@function] dispatch_workloop_set_autorelease_frequency Sets the autorelease frequency of the workloop.
      static void dispatch_workloop_set_os_workgroup​(NSObject workloop, OS_os_workgroup workgroup)
      [@function] dispatch_workloop_set_os_workgroup Associates an os_workgroup_t with the specified dispatch workloop.
      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() Add a record to a registered service.
      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: 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).
      static int DNSServiceConstructFullName​(org.moe.natj.general.ptr.BytePtr fullName, java.lang.String service, java.lang.String regtype, java.lang.String domain)
      DNSServiceConstructFullName() Concatenate a three-part domain name (as returned by the above callbacks) into a properly-escaped full domain name.
      static int DNSServiceCreateConnection​(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef)
      DNSServiceCreateConnection() Create a connection to the daemon allowing efficient registration of multiple individual records.
      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: 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).
      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: 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).
      static int DNSServiceGetProperty​(java.lang.String property, org.moe.natj.general.ptr.VoidPtr result, org.moe.natj.general.ptr.IntPtr size)
      DNSServiceGetProperty() Parameters: property: The requested property.
      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: 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).
      static int DNSServiceProcessResult​(DNSServiceRef sdRef)
      DNSServiceProcessResult() Read a reply from the daemon, calling the appropriate application callback.
      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: 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).
      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 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.)
      static void DNSServiceRefDeallocate​(DNSServiceRef sdRef)
      DNSServiceRefDeallocate() Terminate a connection with the daemon and free memory associated with the DNSServiceRef.
      static int DNSServiceRefSockFD​(DNSServiceRef sdRef)
      DNSServiceRefSockFD() Access underlying Unix domain socket for an initialized DNSServiceRef.
      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: 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).
      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: sdRef: A DNSServiceRef initialized by DNSServiceCreateConnection().
      static int DNSServiceRemoveRecord​(DNSServiceRef sdRef, DNSRecordRef RecordRef, int flags)
      DNSServiceRemoveRecord Remove a record previously added to a service record set via DNSServiceAddRecord(), or deregister a record registered individually via DNSServiceRegisterRecord().
      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 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).
      static int DNSServiceSetDispatchQueue​(DNSServiceRef service, NSObject queue)
      DNSServiceSetDispatchQueue Allows you to schedule a DNSServiceRef on a serial dispatch queue for receiving asynchronous callbacks.
      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 Update a registered resource record.
      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​(int arg1)
      End XSI
      static int fsync_volume_np​(int arg1, int arg2)  
      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​(auditinfo arg1)
      Deprecated.
      static int getaudit_addr​(auditinfo_addr arg1, int arg2)  
      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​(FILE arg1)  
      static int getc_unlocked​(FILE arg1)  
      static int getchar()  
      static int getchar_unlocked()  
      static org.moe.natj.general.ptr.BytePtr getcwd​(org.moe.natj.general.ptr.BytePtr arg1, long arg2)  
      static tm getdate​(java.lang.String arg1)  
      static int getdate_err()  
      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 org.moe.natj.general.ptr.BytePtr getlogin()  
      static int getlogin_r​(org.moe.natj.general.ptr.BytePtr arg1, long arg2)  
      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​(org.moe.natj.general.ptr.ConstNIntPtr arg1)  
      static tm gmtime_r​(org.moe.natj.general.ptr.ConstNIntPtr arg1, tm arg2)  
      static int grantpt​(int arg1)  
      static int heapsort​(org.moe.natj.general.ptr.VoidPtr __base, long __nel, long __width, Globals.Function_heapsort __compar)  
      static int heapsort_b​(org.moe.natj.general.ptr.VoidPtr __base, long __nel, long __width, Globals.Block_heapsort_b __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​(long arg1, int arg2, java.lang.String arg3, java.lang.String arg4)
      Deprecated.
      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 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​(org.moe.natj.general.ptr.ConstNIntPtr arg1)  
      static tm localtime_r​(org.moe.natj.general.ptr.ConstNIntPtr arg1, tm arg2)  
      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​(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_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_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 org.moe.natj.general.ptr.VoidPtr memset​(org.moe.natj.general.ptr.VoidPtr __b, int __c, 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 int mergesort​(org.moe.natj.general.ptr.VoidPtr __base, long __nel, long __width, Globals.Function_mergesort __compar)  
      static int mergesort_b​(org.moe.natj.general.ptr.VoidPtr __base, long __nel, long __width, Globals.Block_mergesort_b __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​(org.moe.natj.general.ptr.BytePtr arg1)  
      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 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​(java.lang.String arg1, int arg2, java.lang.Object... varargs)  
      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 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 NSObject os_log_create​(java.lang.String subsystem, java.lang.String category)
      [@function] os_log_create Creates a log object to be used with other log related functions.
      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 Evaluate if a specific log type is enabled before doing work Evaluate if a specific log type is enabled before doing work
      static void os_release​(org.moe.natj.general.ptr.VoidPtr object)
      [@function] os_release Decrement the reference count of a os_object.
      static org.moe.natj.general.ptr.VoidPtr os_retain​(org.moe.natj.general.ptr.VoidPtr object)
      [@function] os_retain Increment the reference count of an os_object.
      static boolean os_signpost_enabled​(NSObject log)
      [@function] os_signpost_enabled Returns true if signpost log messages are enabled for a particular log handle.
      static long os_signpost_id_generate​(NSObject log)
      [@function] os_signpost_id_generate Generates an ID guaranteed to be unique within the matching scope of the provided log handle.
      static long os_signpost_id_make_with_pointer​(NSObject log, org.moe.natj.general.ptr.ConstVoidPtr ptr)
      [@function] os_signpost_id_make_with_pointer Make an os_signpost_id from a pointer value.
      static boolean os_trace_debug_enabled()
      [@function] os_trace_debug_enabled Avoid unnecessary work for a trace point by checking if debug level is enabled.
      static boolean os_trace_info_enabled()
      [@function] os_trace_info_enabled Avoid unnecessary work for a trace point by checking if additional information is enabled.
      static boolean os_trace_type_enabled​(byte type)
      [@function] os_trace_type_enabled Avoid unnecessary work for a trace point by checking a specific type Avoid unnecessary work for a trace point by checking a specific type
      static void os_unfair_lock_assert_not_owner​(os_unfair_lock_s lock)
      [@function] os_unfair_lock_assert_not_owner Asserts that the calling thread is not the current owner of the specified unfair lock.
      static void os_unfair_lock_assert_owner​(os_unfair_lock_s lock)
      [@function] os_unfair_lock_assert_owner Asserts that the calling thread is the current owner of the specified unfair lock.
      static void os_unfair_lock_lock​(os_unfair_lock_s lock)
      [@function] os_unfair_lock_lock Locks an os_unfair_lock.
      static boolean os_unfair_lock_trylock​(os_unfair_lock_s lock)
      [@function] os_unfair_lock_trylock Locks an os_unfair_lock if it is not already locked.
      static void os_unfair_lock_unlock​(os_unfair_lock_s lock)
      [@function] os_unfair_lock_unlock Unlocks an os_unfair_lock.
      static void os_workgroup_cancel​(OS_os_workgroup wg)
      [@function] os_workgroup_cancel This API invalidates a workgroup and indicates to the system that the workload is no longer relevant to the caller.
      static OS_os_workgroup os_workgroup_create_with_workgroup​(java.lang.String name, OS_os_workgroup wg)
      [@function] os_workgroup_create_with_workgroup Create a new os_workgroup object from an existing os_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 Returns the working arena associated with the workgroup and the current thread's index in the workgroup.
      static int os_workgroup_interval_finish​(OS_os_workgroup wg, os_workgroup_interval_data_opaque_s data)
      [@function] os_workgroup_interval_finish 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.
      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 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.
      static int os_workgroup_interval_update​(OS_os_workgroup wg, long deadline, os_workgroup_interval_data_opaque_s data)
      [@function] os_workgroup_interval_update Updates an already started interval workgroup to have the new deadline specified.
      static int os_workgroup_join​(OS_os_workgroup wg, os_workgroup_join_token_opaque_s token_out)
      [@function] os_workgroup_join Joins the current thread to the specified workgroup and populates the join token that has been passed in.
      static void os_workgroup_leave​(OS_os_workgroup wg, os_workgroup_join_token_opaque_s token)
      [@function] os_workgroup_leave This removes the current thread from a workgroup it has previously joined.
      static int os_workgroup_max_parallel_threads​(OS_os_workgroup wg, os_workgroup_mpt_attr_t attr)
      [@function] os_workgroup_max_parallel_threads Returns the system's recommendation for maximum number of threads the client should make for a multi-threaded workload in a given workgroup.
      static OS_os_workgroup os_workgroup_parallel_create​(java.lang.String name, os_workgroup_attr_opaque_s attr)
      [@function] os_workgroup_parallel_create Creates an os_workgroup_t which tracks a parallel workload.
      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 Associates a client defined working arena with the workgroup.
      static boolean os_workgroup_testcancel​(OS_os_workgroup wg)
      [@function] os_workgroup_testcancel Returns true if the workgroup object has been cancelled.
      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 Release P2P connection resources associated with the service instance.
      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​(org.moe.natj.general.ptr.VoidPtr __base, long __nel, long __width, Globals.Function_psort __compar)  
      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 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 org.moe.natj.general.ptr.BytePtr ptsname​(int arg1)  
      static int ptsname_r​(int fildes, org.moe.natj.general.ptr.BytePtr buffer, long buflen)  
      static int putc​(int arg1, FILE arg2)  
      static int putc_unlocked​(int arg1, FILE arg2)  
      static int putchar​(int arg1)  
      static int putchar_unlocked​(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 Returns the initial requested QOS class of the main thread.
      static int qos_class_self()
      [@function] qos_class_self Returns the requested QOS class of the current thread.
      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 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 int radixsort​(java.lang.String[] __base, int __nel, java.lang.String __table, int __endbyte)  
      static int raise​(int arg1)  
      static int rand()  
      static int rand_r​(org.moe.natj.general.ptr.IntPtr arg1)  
      static long random()  
      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 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 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​(org.moe.natj.general.ptr.IntPtr arg1)
      Deprecated.
      static int rresvport_af​(org.moe.natj.general.ptr.IntPtr arg1, int arg2)
      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​(auditinfo arg1)
      Deprecated.
      static int setaudit_addr​(auditinfo_addr arg1, int arg2)  
      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 You can use a scalar value for edge0 and edge1 if you want to clamp all lanes at the same points.
      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 org.moe.natj.general.ptr.BytePtr strerror​(int __errnum)  
      static int strerror_r​(int __errnum, org.moe.natj.general.ptr.BytePtr __strerrbuf, long __buflen)  
      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 org.moe.natj.general.ptr.BytePtr strsignal​(int __sig)  
      static int strsignal_r​(int __sig, org.moe.natj.general.ptr.BytePtr __strsignalbuf, long __buflen)  
      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​(org.moe.natj.general.ptr.BytePtr __str, java.lang.String __sep)  
      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 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 void sync()  
      static int sync_volume_np​(java.lang.String arg1, int arg2)  
      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 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 org.moe.natj.general.ptr.BytePtr ttyname​(int arg1)  
      static int ttyname_r​(int arg1, org.moe.natj.general.ptr.BytePtr arg2, long arg3)  
      static int ttyslot()  
      static int TXTRecordContainsKey​(char txtLen, org.moe.natj.general.ptr.ConstVoidPtr txtRecord, java.lang.String key)
      TXTRecordContainsKey() Allows you to determine if a given TXT Record contains a specified key.
      static void TXTRecordCreate​(org.moe.natj.general.ptr.VoidPtr txtRecord, char bufferLen, org.moe.natj.general.ptr.VoidPtr buffer)
      TXTRecordCreate() Creates a new empty TXTRecordRef referencing the specified storage.
      static void TXTRecordDeallocate​(org.moe.natj.general.ptr.VoidPtr txtRecord)
      TXTRecordDeallocate() Releases any resources allocated in the course of preparing a TXT Record using TXTRecordCreate()/TXTRecordSetValue()/TXTRecordRemoveValue().
      static org.moe.natj.general.ptr.ConstVoidPtr TXTRecordGetBytesPtr​(org.moe.natj.general.ptr.VoidPtr txtRecord)
      TXTRecordGetBytesPtr() Allows you to retrieve a pointer to the raw bytes within a TXTRecordRef.
      static char TXTRecordGetCount​(char txtLen, org.moe.natj.general.ptr.ConstVoidPtr txtRecord)
      TXTRecordGetCount() Returns the number of keys stored in the TXT Record.
      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() Allows you to retrieve a key name and value pointer, given an index into a TXT Record.
      static char TXTRecordGetLength​(org.moe.natj.general.ptr.VoidPtr txtRecord)
      TXTRecordGetLength() Allows you to determine the length of the raw bytes within a TXTRecordRef.
      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() Allows you to retrieve the value for a given key from a TXT Record.
      static int TXTRecordRemoveValue​(org.moe.natj.general.ptr.VoidPtr txtRecord, java.lang.String key)
      TXTRecordRemoveValue() Removes a key from a TXTRecordRef.
      static int TXTRecordSetValue​(org.moe.natj.general.ptr.VoidPtr txtRecord, java.lang.String key, byte valueSize, org.moe.natj.general.ptr.ConstVoidPtr value)
      TXTRecordSetValue() Adds a key (optionally with value) to a TXTRecordRef.
      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()  
      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 short 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, char __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, char __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 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, char __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, short __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)  
      static FILE zopen​(java.lang.String arg1, java.lang.String arg2, int arg3)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • _OSSwapInt16

        public static char _OSSwapInt16​(char _data)
        Generic byte swapping functions.
      • _OSSwapInt32

        public static int _OSSwapInt32​(int _data)
      • _OSSwapInt64

        public static long _OSSwapInt64​(long _data)
      • OSReadSwapInt16

        public static char OSReadSwapInt16​(org.moe.natj.general.ptr.ConstVoidPtr _base,
                                           long _offset)
      • OSReadSwapInt32

        public static int OSReadSwapInt32​(org.moe.natj.general.ptr.ConstVoidPtr _base,
                                          long _offset)
      • OSReadSwapInt64

        public static long OSReadSwapInt64​(org.moe.natj.general.ptr.ConstVoidPtr _base,
                                           long _offset)
      • OSWriteSwapInt16

        public static void OSWriteSwapInt16​(org.moe.natj.general.ptr.VoidPtr _base,
                                            long _offset,
                                            char _data)
      • OSWriteSwapInt32

        public static void OSWriteSwapInt32​(org.moe.natj.general.ptr.VoidPtr _base,
                                            long _offset,
                                            int _data)
      • OSWriteSwapInt64

        public static void OSWriteSwapInt64​(org.moe.natj.general.ptr.VoidPtr _base,
                                            long _offset,
                                            long _data)
      • __darwin_fd_isset

        public static int __darwin_fd_isset​(int _fd,
                                            fd_set _p)
        This inline avoids argument side-effect issues with FD_ISSET()
      • sel_getName

        public static java.lang.String sel_getName​(org.moe.natj.objc.SEL sel)
        Returns the name of the method specified by a given selector.
        Parameters:
        sel - A pointer of type \c SEL. Pass the selector whose name you wish to determine.
        Returns:
        A C string indicating the name of the selector.
      • sel_registerName

        public 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. [@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.
        Parameters:
        str - A pointer to a C string. Pass the name of the method you wish to register.
        Returns:
        A pointer of type SEL specifying the selector for the named method.
      • object_getClassName

        public static java.lang.String object_getClassName​(java.lang.Object obj)
        Returns the class name of a given object.
        Parameters:
        obj - An Objective-C object.
        Returns:
        The name of the class of which \e obj is an instance.
      • sel_isMapped

        public static boolean sel_isMapped​(org.moe.natj.objc.SEL sel)
        Identifies a selector as being valid or invalid. [@warning] On some platforms, an invalid reference (to invalid memory addresses) can cause a crash.
        Parameters:
        sel - The selector you want to identify.
        Returns:
        YES if selector is valid and has a function implementation, NO otherwise.
      • sel_getUid

        public static org.moe.natj.objc.SEL sel_getUid​(java.lang.String str)
        Registers a method name with the Objective-C runtime system. [@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.
        Parameters:
        str - A pointer to a C string. Pass the name of the method you wish to register.
        Returns:
        A pointer of type SEL specifying the selector for the named method.
      • getattrlistbulk

        public static int getattrlistbulk​(int arg1,
                                          org.moe.natj.general.ptr.VoidPtr arg2,
                                          org.moe.natj.general.ptr.VoidPtr arg3,
                                          long arg4,
                                          long arg5)
      • faccessat

        public static int faccessat​(int arg1,
                                    java.lang.String arg2,
                                    int arg3,
                                    int arg4)
      • fchownat

        public static int fchownat​(int arg1,
                                   java.lang.String arg2,
                                   int arg3,
                                   int arg4,
                                   int arg5)
      • linkat

        public static int linkat​(int arg1,
                                 java.lang.String arg2,
                                 int arg3,
                                 java.lang.String arg4,
                                 int arg5)
      • readlinkat

        public static long readlinkat​(int arg1,
                                      java.lang.String arg2,
                                      org.moe.natj.general.ptr.BytePtr arg3,
                                      long arg4)
      • symlinkat

        public static int symlinkat​(java.lang.String arg1,
                                    int arg2,
                                    java.lang.String arg3)
      • unlinkat

        public static int unlinkat​(int arg1,
                                   java.lang.String arg2,
                                   int arg3)
      • getattrlistat

        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)
      • _exit

        public static void _exit​(int arg1)
        POSIX.1-1990
      • access

        public static int access​(java.lang.String arg1,
                                 int arg2)
      • alarm

        public static int alarm​(int arg1)
      • chdir

        public static int chdir​(java.lang.String arg1)
      • chown

        public static int chown​(java.lang.String arg1,
                                int arg2,
                                int arg3)
      • close

        public static int close​(int arg1)
      • dup

        public static int dup​(int arg1)
      • dup2

        public static int dup2​(int arg1,
                               int arg2)
      • execl

        public static int execl​(java.lang.String __path,
                                java.lang.String __arg0,
                                java.lang.Object... varargs)
      • execle

        public static int execle​(java.lang.String __path,
                                 java.lang.String __arg0,
                                 java.lang.Object... varargs)
      • execlp

        public static int execlp​(java.lang.String __file,
                                 java.lang.String __arg0,
                                 java.lang.Object... varargs)
      • execv

        public static int execv​(java.lang.String __path,
                                org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> __argv)
      • execve

        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)
      • execvp

        public static int execvp​(java.lang.String __file,
                                 org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> __argv)
      • fork

        public static int fork()
      • fpathconf

        public static long fpathconf​(int arg1,
                                     int arg2)
      • getcwd

        public static org.moe.natj.general.ptr.BytePtr getcwd​(org.moe.natj.general.ptr.BytePtr arg1,
                                                              long arg2)
      • getegid

        public static int getegid()
      • geteuid

        public static int geteuid()
      • getgid

        public static int getgid()
      • getgroups

        public static int getgroups​(int arg1,
                                    org.moe.natj.general.ptr.IntPtr arg2)
      • getlogin

        public static org.moe.natj.general.ptr.BytePtr getlogin()
      • getpgrp

        public static int getpgrp()
      • getpid

        public static int getpid()
      • getppid

        public static int getppid()
      • getuid

        public static int getuid()
      • isatty

        public static int isatty​(int arg1)
      • link

        public static int link​(java.lang.String arg1,
                               java.lang.String arg2)
      • lseek

        public static long lseek​(int arg1,
                                 long arg2,
                                 int arg3)
      • pathconf

        public static long pathconf​(java.lang.String arg1,
                                    int arg2)
      • pause

        public static int pause()
      • read

        public static long read​(int arg1,
                                org.moe.natj.general.ptr.VoidPtr arg2,
                                long arg3)
      • rmdir

        public static int rmdir​(java.lang.String arg1)
      • setgid

        public static int setgid​(int arg1)
      • setpgid

        public static int setpgid​(int arg1,
                                  int arg2)
      • setsid

        public static int setsid()
      • setuid

        public static int setuid​(int arg1)
      • sleep

        public static int sleep​(int arg1)
      • sysconf

        public static long sysconf​(int arg1)
      • tcgetpgrp

        public static int tcgetpgrp​(int arg1)
      • tcsetpgrp

        public static int tcsetpgrp​(int arg1,
                                    int arg2)
      • ttyname

        public static org.moe.natj.general.ptr.BytePtr ttyname​(int arg1)
      • ttyname_r

        public static int ttyname_r​(int arg1,
                                    org.moe.natj.general.ptr.BytePtr arg2,
                                    long arg3)
      • unlink

        public static int unlink​(java.lang.String arg1)
      • write

        public static long write​(int __fd,
                                 org.moe.natj.general.ptr.ConstVoidPtr __buf,
                                 long __nbyte)
      • confstr

        public static long confstr​(int arg1,
                                   org.moe.natj.general.ptr.BytePtr arg2,
                                   long arg3)
      • getopt

        public static int getopt​(int arg1,
                                 org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.BytePtr> arg2,
                                 java.lang.String arg3)
      • brk

        @Deprecated
        public static org.moe.natj.general.ptr.VoidPtr brk​(org.moe.natj.general.ptr.ConstVoidPtr arg1)
        Deprecated.
      • chroot

        public static int chroot​(java.lang.String arg1)
      • crypt

        public static org.moe.natj.general.ptr.BytePtr crypt​(java.lang.String arg1,
                                                             java.lang.String arg2)
      • ctermid

        public static org.moe.natj.general.ptr.BytePtr ctermid​(org.moe.natj.general.ptr.BytePtr arg1)
      • encrypt

        public static void encrypt​(org.moe.natj.general.ptr.BytePtr arg1,
                                   int arg2)
      • fchdir

        public static int fchdir​(int arg1)
      • gethostid

        public static long gethostid()
      • getpgid

        public static int getpgid​(int arg1)
      • getsid

        public static int getsid​(int arg1)
      • getdtablesize

        public static int getdtablesize()
      • getpagesize

        public static int getpagesize()
      • getpass

        public static org.moe.natj.general.ptr.BytePtr getpass​(java.lang.String arg1)
      • getwd

        public static org.moe.natj.general.ptr.BytePtr getwd​(org.moe.natj.general.ptr.BytePtr arg1)
      • lchown

        public static int lchown​(java.lang.String arg1,
                                 int arg2,
                                 int arg3)
      • lockf

        public static int lockf​(int arg1,
                                int arg2,
                                long arg3)
      • nice

        public static int nice​(int arg1)
      • pread

        public static long pread​(int __fd,
                                 org.moe.natj.general.ptr.VoidPtr __buf,
                                 long __nbyte,
                                 long __offset)
      • pwrite

        public static long pwrite​(int __fd,
                                  org.moe.natj.general.ptr.ConstVoidPtr __buf,
                                  long __nbyte,
                                  long __offset)
      • sbrk

        @Deprecated
        public static org.moe.natj.general.ptr.VoidPtr sbrk​(int arg1)
        Deprecated.
      • setpgrp

        public static int setpgrp()
      • setregid

        public static int setregid​(int arg1,
                                   int arg2)
      • setreuid

        public static int setreuid​(int arg1,
                                   int arg2)
      • swab

        public 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. It is listed here for source compatibility
      • sync

        public static void sync()
      • truncate

        public static int truncate​(java.lang.String arg1,
                                   long arg2)
      • ualarm

        public static int ualarm​(int arg1,
                                 int arg2)
      • usleep

        public static int usleep​(int arg1)
      • vfork

        public static int vfork()
      • fsync

        public static int fsync​(int arg1)
        End XSI
      • ftruncate

        public static int ftruncate​(int arg1,
                                    long arg2)
      • getlogin_r

        public static int getlogin_r​(org.moe.natj.general.ptr.BytePtr arg1,
                                     long arg2)
      • fchown

        public static int fchown​(int arg1,
                                 int arg2,
                                 int arg3)
      • gethostname

        public static int gethostname​(org.moe.natj.general.ptr.BytePtr arg1,
                                      long arg2)
      • readlink

        public static long readlink​(java.lang.String arg1,
                                    org.moe.natj.general.ptr.BytePtr arg2,
                                    long arg3)
      • setegid

        public static int setegid​(int arg1)
      • seteuid

        public static int seteuid​(int arg1)
      • symlink

        public static int symlink​(java.lang.String arg1,
                                  java.lang.String arg2)
      • pselect

        public static int pselect​(int arg1,
                                  fd_set arg2,
                                  fd_set arg3,
                                  fd_set arg4,
                                  timespec arg5,
                                  org.moe.natj.general.ptr.ConstIntPtr arg6)
      • _Exit

        public static void _Exit​(int arg1)
      • accessx_np

        public static int accessx_np​(accessx_descriptor arg1,
                                     long arg2,
                                     org.moe.natj.general.ptr.IntPtr arg3,
                                     int arg4)
      • acct

        public static int acct​(java.lang.String arg1)
      • add_profil

        public static int add_profil​(org.moe.natj.general.ptr.BytePtr arg1,
                                     long arg2,
                                     long arg3,
                                     int arg4)
      • endusershell

        public static void endusershell()
      • execvP

        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)
      • fflagstostr

        public static org.moe.natj.general.ptr.BytePtr fflagstostr​(long arg1)
      • getdomainname

        public static int getdomainname​(org.moe.natj.general.ptr.BytePtr arg1,
                                        int arg2)
      • getgrouplist

        public static int getgrouplist​(java.lang.String arg1,
                                       int arg2,
                                       org.moe.natj.general.ptr.IntPtr arg3,
                                       org.moe.natj.general.ptr.IntPtr arg4)
      • getmode

        public static char getmode​(org.moe.natj.general.ptr.ConstVoidPtr arg1,
                                   char arg2)
      • getpeereid

        public static int getpeereid​(int arg1,
                                     org.moe.natj.general.ptr.IntPtr arg2,
                                     org.moe.natj.general.ptr.IntPtr arg3)
      • getusershell

        public static org.moe.natj.general.ptr.BytePtr getusershell()
      • initgroups

        public static int initgroups​(java.lang.String arg1,
                                     int arg2)
      • issetugid

        public static int issetugid()
      • mkdtemp

        public static org.moe.natj.general.ptr.BytePtr mkdtemp​(org.moe.natj.general.ptr.BytePtr arg1)
      • mknod

        public static int mknod​(java.lang.String arg1,
                                char arg2,
                                int arg3)
      • mkpath_np

        public static int mkpath_np​(java.lang.String path,
                                    char omode)
      • mkpathat_np

        public static int mkpathat_np​(int dfd,
                                      java.lang.String path,
                                      char omode)
      • mkstemp

        public static int mkstemp​(org.moe.natj.general.ptr.BytePtr arg1)
      • mkstemps

        public static int mkstemps​(org.moe.natj.general.ptr.BytePtr arg1,
                                   int arg2)
      • mktemp

        public static org.moe.natj.general.ptr.BytePtr mktemp​(org.moe.natj.general.ptr.BytePtr arg1)
      • mkostemp

        public static int mkostemp​(org.moe.natj.general.ptr.BytePtr path,
                                   int oflags)
      • mkostemps

        public static int mkostemps​(org.moe.natj.general.ptr.BytePtr path,
                                    int slen,
                                    int oflags)
      • mkstemp_dprotected_np

        public static int mkstemp_dprotected_np​(org.moe.natj.general.ptr.BytePtr path,
                                                int dpclass,
                                                int dpflags)
        Non-portable mkstemp that uses open_dprotected_np
      • nfssvc

        public static int nfssvc​(int arg1,
                                 org.moe.natj.general.ptr.VoidPtr arg2)
      • profil

        public static int profil​(org.moe.natj.general.ptr.BytePtr arg1,
                                 long arg2,
                                 long arg3,
                                 int arg4)
      • pthread_setugid_np

        @Deprecated
        public static int pthread_setugid_np​(int arg1,
                                             int arg2)
        Deprecated.
      • pthread_getugid_np

        public static int pthread_getugid_np​(org.moe.natj.general.ptr.IntPtr arg1,
                                             org.moe.natj.general.ptr.IntPtr arg2)
      • reboot

        public static int reboot​(int arg1)
      • revoke

        public static int revoke​(java.lang.String arg1)
      • rcmd

        @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.
      • rcmd_af

        @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.
      • rresvport

        @Deprecated
        public static int rresvport​(org.moe.natj.general.ptr.IntPtr arg1)
        Deprecated.
      • rresvport_af

        @Deprecated
        public static int rresvport_af​(org.moe.natj.general.ptr.IntPtr arg1,
                                       int arg2)
        Deprecated.
      • iruserok

        @Deprecated
        public static int iruserok​(long arg1,
                                   int arg2,
                                   java.lang.String arg3,
                                   java.lang.String arg4)
        Deprecated.
      • iruserok_sa

        @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.
      • ruserok

        @Deprecated
        public static int ruserok​(java.lang.String arg1,
                                  int arg2,
                                  java.lang.String arg3,
                                  java.lang.String arg4)
        Deprecated.
      • setdomainname

        public static int setdomainname​(java.lang.String arg1,
                                        int arg2)
      • setgroups

        public static int setgroups​(int arg1,
                                    org.moe.natj.general.ptr.ConstIntPtr arg2)
      • sethostid

        public static void sethostid​(long arg1)
      • sethostname

        public static int sethostname​(java.lang.String arg1,
                                      int arg2)
      • setkey

        public static void setkey​(java.lang.String arg1)
      • setlogin

        public static int setlogin​(java.lang.String arg1)
      • setmode

        public static org.moe.natj.general.ptr.VoidPtr setmode​(java.lang.String arg1)
      • setrgid

        public static int setrgid​(int arg1)
      • setruid

        public static int setruid​(int arg1)
      • setusershell

        public static void setusershell()
      • strtofflags

        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)
      • swapon

        public static int swapon​(java.lang.String arg1)
      • ttyslot

        public static int ttyslot()
      • undelete

        public static int undelete​(java.lang.String arg1)
      • unwhiteout

        public static int unwhiteout​(java.lang.String arg1)
      • valloc

        public static org.moe.natj.general.ptr.VoidPtr valloc​(long arg1)
      • syscall

        public static int syscall​(int arg1,
                                  java.lang.Object... varargs)
      • getsubopt

        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)
      • fgetattrlist

        public static int fgetattrlist​(int arg1,
                                       org.moe.natj.general.ptr.VoidPtr arg2,
                                       org.moe.natj.general.ptr.VoidPtr arg3,
                                       long arg4,
                                       int arg5)
      • fsetattrlist

        public static int fsetattrlist​(int arg1,
                                       org.moe.natj.general.ptr.VoidPtr arg2,
                                       org.moe.natj.general.ptr.VoidPtr arg3,
                                       long arg4,
                                       int arg5)
      • getattrlist

        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)
      • setattrlist

        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)
      • exchangedata

        public static int exchangedata​(java.lang.String arg1,
                                       java.lang.String arg2,
                                       int arg3)
      • getdirentriesattr

        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)
      • searchfs

        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)
      • fsctl

        public static int fsctl​(java.lang.String arg1,
                                long arg2,
                                org.moe.natj.general.ptr.VoidPtr arg3,
                                int arg4)
      • ffsctl

        public static int ffsctl​(int arg1,
                                 long arg2,
                                 org.moe.natj.general.ptr.VoidPtr arg3,
                                 int arg4)
      • fsync_volume_np

        public static int fsync_volume_np​(int arg1,
                                          int arg2)
      • sync_volume_np

        public static int sync_volume_np​(java.lang.String arg1,
                                         int arg2)
      • open

        public static int open​(java.lang.String arg1,
                               int arg2,
                               java.lang.Object... varargs)
      • openat

        public static int openat​(int arg1,
                                 java.lang.String arg2,
                                 int arg3,
                                 java.lang.Object... varargs)
      • creat

        public static int creat​(java.lang.String arg1,
                                char arg2)
      • fcntl

        public static int fcntl​(int arg1,
                                int arg2,
                                java.lang.Object... varargs)
      • openx_np

        public static int openx_np​(java.lang.String arg1,
                                   int arg2,
                                   filesec_t arg3)
      • open_dprotected_np

        public 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)
      • flock

        public static int flock​(int arg1,
                                int arg2)
      • filesec_init

        public static filesec_t filesec_init()
      • filesec_free

        public static void filesec_free​(filesec_t arg1)
      • filesec_get_property

        public static int filesec_get_property​(filesec_t arg1,
                                               int arg2,
                                               org.moe.natj.general.ptr.VoidPtr arg3)
      • filesec_query_property

        public static int filesec_query_property​(filesec_t arg1,
                                                 int arg2,
                                                 org.moe.natj.general.ptr.IntPtr arg3)
      • filesec_set_property

        public static int filesec_set_property​(filesec_t arg1,
                                               int arg2,
                                               org.moe.natj.general.ptr.ConstVoidPtr arg3)
      • filesec_unset_property

        public static int filesec_unset_property​(filesec_t arg1,
                                                 int arg2)
      • os_retain

        public static org.moe.natj.general.ptr.VoidPtr os_retain​(org.moe.natj.general.ptr.VoidPtr object)
        [@function] os_retain 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.
        Parameters:
        object - The object to retain.
        Returns:
        The retained object.
      • os_release

        public static void os_release​(org.moe.natj.general.ptr.VoidPtr object)
        [@function] os_release 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.
        Parameters:
        object - The object to release.
      • dispatch_time

        public static long dispatch_time​(long when,
                                         long delta)
        [@function] dispatch_time 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().
        Parameters:
        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.
        Returns:
        A new dispatch_time_t.
      • dispatch_walltime

        public static long dispatch_walltime​(timespec when,
                                             long delta)
        [@function] dispatch_walltime Create a dispatch_time_t using the wall clock. On Mac OS X the wall clock is based on gettimeofday(3).
        Parameters:
        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.
        Returns:
        A new dispatch_time_t.
      • _dispatch_object_validate

        public static void _dispatch_object_validate​(NSObject object)
      • dispatch_retain

        public static void dispatch_retain​(NSObject object)
        [@function] dispatch_retain Increment the reference count of a dispatch object. Calls to dispatch_retain() must be balanced with calls to dispatch_release().
        Parameters:
        object - The object to retain. The result of passing NULL in this parameter is undefined.
      • dispatch_release

        public static void dispatch_release​(NSObject object)
        [@function] dispatch_release 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.
        Parameters:
        object - The object to release. The result of passing NULL in this parameter is undefined.
      • dispatch_get_context

        public static org.moe.natj.general.ptr.VoidPtr dispatch_get_context​(NSObject object)
        [@function] dispatch_get_context Returns the application defined context of the object.
        Parameters:
        object - The result of passing NULL in this parameter is undefined.
        Returns:
        The context of the object; may be NULL.
      • dispatch_set_context

        public static void dispatch_set_context​(NSObject object,
                                                org.moe.natj.general.ptr.VoidPtr context)
        [@function] dispatch_set_context Associates an application defined context with the object.
        Parameters:
        object - The result of passing NULL in this parameter is undefined.
        context - The new client defined context for the object. This may be NULL.
      • dispatch_set_finalizer_f

        public static void dispatch_set_finalizer_f​(NSObject object,
                                                    Globals.Function_dispatch_set_finalizer_f finalizer)
        [@function] dispatch_set_finalizer_f 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.
        Parameters:
        object - The dispatch object to modify. The result of passing NULL in this parameter is undefined.
        finalizer - The finalizer function pointer.
      • dispatch_activate

        public static void dispatch_activate​(NSObject object)
        [@function] dispatch_activate 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.
        Parameters:
        object - The object to be activated. The result of passing NULL in this parameter is undefined.
      • dispatch_suspend

        public static void dispatch_suspend​(NSObject object)
        [@function] dispatch_suspend 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().
        Parameters:
        object - The object to be suspended. The result of passing NULL in this parameter is undefined.
      • dispatch_resume

        public static void dispatch_resume​(NSObject object)
        [@function] dispatch_resume 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.
        Parameters:
        object - The object to be resumed. The result of passing NULL in this parameter is undefined.
      • dispatch_debug

        @Deprecated
        public static void dispatch_debug​(NSObject object,
                                          java.lang.String message,
                                          java.lang.Object... varargs)
        Deprecated.
        [@function] dispatch_debug 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.
        Parameters:
        object - The object to introspect.
        message - The message to log above and beyond the introspection.
      • dispatch_debugv

        @Deprecated
        public static void dispatch_debugv​(NSObject object,
                                           java.lang.String message,
                                           org.moe.natj.general.ptr.BytePtr ap)
        Deprecated.
      • qos_class_self

        public static int qos_class_self()
        [@function] qos_class_self Returns the requested QOS class of the current thread.
        Returns:
        One of the QOS class values in qos_class_t.
      • qos_class_main

        public static int qos_class_main()
        [@function] 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.
        Returns:
        One of the QOS class values in qos_class_t.
      • dispatch_async_f

        public static void dispatch_async_f​(NSObject queue,
                                            org.moe.natj.general.ptr.VoidPtr context,
                                            Globals.Function_dispatch_async_f work)
        [@function] dispatch_async_f Submits a function for asynchronous execution on a dispatch queue. See dispatch_async() for details.
        Parameters:
        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.
      • dispatch_sync_f

        public static void dispatch_sync_f​(NSObject queue,
                                           org.moe.natj.general.ptr.VoidPtr context,
                                           Globals.Function_dispatch_sync_f work)
        [@function] dispatch_sync_f Submits a function for synchronous execution on a dispatch queue. See dispatch_sync() for details.
        Parameters:
        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.
      • dispatch_apply_f

        public 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 Submits a function to a dispatch queue for parallel invocation. See dispatch_apply() for details.
        Parameters:
        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.
      • dispatch_get_current_queue

        @Deprecated
        public static NSObject dispatch_get_current_queue()
        Deprecated.
        [@function] 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.
        Returns:
        Returns the current queue.
      • dispatch_get_main_queue

        public static NSObject dispatch_get_main_queue()
        [@function] 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.
        Returns:
        Returns the main queue. This queue is created automatically on behalf of the main thread before main() is called.
        See Also:
        dispatch_queue_main_t
      • dispatch_get_global_queue

        public static NSObject dispatch_get_global_queue​(long identifier,
                                                         long flags)
        [@function] dispatch_get_global_queue Returns a well-known global concurrent queue of a given quality of service class. See dispatch_queue_global_t.
        Parameters:
        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.
        Returns:
        Returns the requested global queue or NULL if the requested global queue does not exist.
      • dispatch_queue_attr_make_initially_inactive

        public static NSObject dispatch_queue_attr_make_initially_inactive​(NSObject attr)
        [@function] dispatch_queue_attr_make_initially_inactive 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.
        Parameters:
        attr - A queue attribute value to be combined with the initially inactive attribute.
        Returns:
        Returns an attribute value which may be provided to dispatch_queue_create() and dispatch_queue_create_with_target(). The new value combines the attributes specified by the 'attr' parameter with the initially inactive attribute.
      • dispatch_queue_attr_make_with_autorelease_frequency

        public static NSObject dispatch_queue_attr_make_with_autorelease_frequency​(NSObject attr,
                                                                                   long frequency)
        [@function] dispatch_queue_attr_make_with_autorelease_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().
        Parameters:
        attr - A queue attribute value to be combined with the specified autorelease frequency or NULL.
        frequency - The requested autorelease frequency.
        Returns:
        Returns an attribute value which may be provided to dispatch_queue_create() or NULL if an invalid autorelease frequency was requested. This new value combines the attributes specified by the 'attr' parameter and the chosen autorelease frequency.
      • dispatch_queue_attr_make_with_qos_class

        public 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 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()).
        Parameters:
        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.
        Returns:
        Returns an attribute value which may be provided to dispatch_queue_create() and dispatch_queue_create_with_target(), or NULL if an invalid QOS class was requested. The new value combines the attributes specified by the 'attr' parameter and the new QOS class and relative priority.
      • dispatch_queue_create_with_target

        public static NSObject dispatch_queue_create_with_target​(java.lang.String label,
                                                                 NSObject attr,
                                                                 NSObject target)
        [@function] dispatch_queue_create_with_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().
        Parameters:
        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.
        Returns:
        The newly created dispatch queue.
      • dispatch_queue_create

        public static NSObject dispatch_queue_create​(java.lang.String label,
                                                     NSObject attr)
        [@function] dispatch_queue_create 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.
        Parameters:
        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.
        Returns:
        The newly created dispatch queue.
      • dispatch_queue_get_label

        public static java.lang.String dispatch_queue_get_label​(NSObject queue)
        [@function] dispatch_queue_get_label 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.
        Parameters:
        queue - The queue to query, or DISPATCH_CURRENT_QUEUE_LABEL.
        Returns:
        The label of the queue.
      • dispatch_queue_get_qos_class

        public static int dispatch_queue_get_qos_class​(NSObject queue,
                                                       org.moe.natj.general.ptr.IntPtr relative_priority_ptr)
        [@function] dispatch_queue_get_qos_class 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.
        Parameters:
        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.
        Returns:
        A QOS class value: - QOS_CLASS_USER_INTERACTIVE - QOS_CLASS_USER_INITIATED - QOS_CLASS_DEFAULT - QOS_CLASS_UTILITY - QOS_CLASS_BACKGROUND - QOS_CLASS_UNSPECIFIED
      • dispatch_set_target_queue

        public static void dispatch_set_target_queue​(NSObject object,
                                                     NSObject queue)
        [@function] dispatch_set_target_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.
        Parameters:
        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.
      • dispatch_main

        public static void dispatch_main()
        [@function] 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().
      • dispatch_after_f

        public 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 Schedule a function for execution on a given queue at a specified time. See dispatch_after() for details.
        Parameters:
        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.
      • dispatch_barrier_async_f

        public 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 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.
        Parameters:
        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.
      • dispatch_barrier_sync_f

        public 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 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.
        Parameters:
        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.
      • dispatch_queue_set_specific

        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)
        [@function] dispatch_queue_set_specific 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.
        Parameters:
        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.
      • dispatch_queue_get_specific

        public 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 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.
        Parameters:
        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.
        Returns:
        The context for the specified key or NULL if no context was found.
      • dispatch_get_specific

        public static org.moe.natj.general.ptr.VoidPtr dispatch_get_specific​(org.moe.natj.general.ptr.ConstVoidPtr key)
        [@function] dispatch_get_specific 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.
        Parameters:
        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.
        Returns:
        The context for the specified key or NULL if no context was found.
      • dispatch_assert_queue

        public static void dispatch_assert_queue​(NSObject queue)
        [@function] dispatch_assert_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)).
        Parameters:
        queue - The dispatch queue that the current block is expected to run on. The result of passing NULL in this parameter is undefined.
      • dispatch_assert_queue_barrier

        public static void dispatch_assert_queue_barrier​(NSObject queue)
        [@function] dispatch_assert_queue_barrier 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()).
        Parameters:
        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.
      • dispatch_assert_queue_not

        public static void dispatch_assert_queue_not​(NSObject queue)
        [@function] dispatch_assert_queue_not 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)).
        Parameters:
        queue - The dispatch queue that the current block is expected not to run on. The result of passing NULL in this parameter is undefined.
      • dispatch_block_create

        public static Globals.Block_dispatch_block_create_ret dispatch_block_create​(long flags,
                                                                                    Globals.Block_dispatch_block_create block)
        [@function] dispatch_block_create 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.
        Parameters:
        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.
        Returns:
        The newly created dispatch block object, or NULL. When not building with Objective-C ARC, must be released with a -[release] message or the Block_release() function.
      • dispatch_block_create_with_qos_class

        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)
        [@function] dispatch_block_create_with_qos_class 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.
        Parameters:
        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.
        Returns:
        The newly created dispatch block object, or NULL. When not building with Objective-C ARC, must be released with a -[release] message or the Block_release() function.
      • dispatch_block_perform

        public static void dispatch_block_perform​(long flags,
                                                  Globals.Block_dispatch_block_perform block)
        [@function] dispatch_block_perform 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.
        Parameters:
        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.
      • dispatch_block_wait

        public static long dispatch_block_wait​(Globals.Block_dispatch_block_wait block,
                                               long timeout)
        [@function] dispatch_block_wait 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().
        Parameters:
        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.
        Returns:
        Returns zero on success (the dispatch block object completed within the specified timeout) or non-zero on error (i.e. timed out).
      • dispatch_block_notify

        public 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 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.
        Parameters:
        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.
      • dispatch_block_cancel

        public static void dispatch_block_cancel​(Globals.Block_dispatch_block_cancel block)
        [@function] dispatch_block_cancel 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.
        Parameters:
        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.
      • dispatch_block_testcancel

        public static long dispatch_block_testcancel​(Globals.Block_dispatch_block_testcancel block)
        [@function] dispatch_block_testcancel Tests whether the given dispatch block object has been canceled.
        Parameters:
        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.
        Returns:
        Non-zero if canceled and zero if not canceled.
      • mach_msg_overwrite

        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)
        Routine: mach_msg_overwrite Purpose: Send and/or receive a message. If the message operation is interrupted, and the user did not request an indication of that fact, then restart the appropriate parts of the operation silently (trap version does not restart). 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.
      • mach_msg

        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_)
        Routine: mach_msg Purpose: Send and/or receive a message. If the message operation is interrupted, and the user did not request an indication of that fact, then restart the appropriate parts of the operation silently (trap version does not restart).
      • mach_voucher_deallocate

        public static int mach_voucher_deallocate​(int voucher)
        Routine: mach_voucher_deallocate Purpose: Deallocate a mach voucher created or received in a message. Drops one (send right) reference to the voucher.
      • dispatch_source_create

        public static NSObject dispatch_source_create​(dispatch_source_type_t type,
                                                      long handle,
                                                      long mask,
                                                      NSObject queue)
        [@function] dispatch_source_create 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.
        Parameters:
        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.
        Returns:
        The newly created dispatch source. Or NULL if invalid arguments are passed.
      • dispatch_source_set_event_handler_f

        public 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 Sets the event handler function for the given dispatch source.
        Parameters:
        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.
      • dispatch_source_set_cancel_handler_f

        public 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 Sets the cancellation handler function for the given dispatch source. See dispatch_source_set_cancel_handler() for more details.
        Parameters:
        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.
      • dispatch_source_cancel

        public static void dispatch_source_cancel​(NSObject source)
        [@function] dispatch_source_cancel 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.
        Parameters:
        source - The dispatch source to be canceled. The result of passing NULL in this parameter is undefined.
      • dispatch_source_testcancel

        public static long dispatch_source_testcancel​(NSObject source)
        [@function] dispatch_source_testcancel Tests whether the given dispatch source has been canceled.
        Parameters:
        source - The dispatch source to be tested. The result of passing NULL in this parameter is undefined.
        Returns:
        Non-zero if canceled and zero if not canceled.
      • dispatch_source_get_handle

        public static long dispatch_source_get_handle​(NSObject source)
        [@function] dispatch_source_get_handle Returns the underlying system handle associated with this dispatch source.
        Parameters:
        source - The result of passing NULL in this parameter is undefined.
        Returns:
        The return value should be interpreted according to the type of the dispatch source, and may be one of the following handles: 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)
      • dispatch_source_get_mask

        public static long dispatch_source_get_mask​(NSObject source)
        [@function] dispatch_source_get_mask Returns the mask of events monitored by the dispatch source.
        Parameters:
        source - The result of passing NULL in this parameter is undefined.
        Returns:
        The return value should be interpreted according to the type of the dispatch source, and may be one of the following flag sets: 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
      • dispatch_source_get_data

        public static long dispatch_source_get_data​(NSObject source)
        [@function] dispatch_source_get_data 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.
        Parameters:
        source - The result of passing NULL in this parameter is undefined.
        Returns:
        The return value should be interpreted according to the type of the dispatch source, and may be one of the following: 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
      • dispatch_source_merge_data

        public static void dispatch_source_merge_data​(NSObject source,
                                                      long value)
        [@function] dispatch_source_merge_data 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.
        Parameters:
        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.
      • dispatch_source_set_timer

        public static void dispatch_source_set_timer​(NSObject source,
                                                     long start,
                                                     long interval,
                                                     long leeway)
        [@function] dispatch_source_set_timer 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.
        Parameters:
        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.
      • dispatch_source_set_registration_handler_f

        public 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 Sets the registration handler function for the given dispatch source. See dispatch_source_set_registration_handler() for more details.
        Parameters:
        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.
      • dispatch_group_create

        public static NSObject dispatch_group_create()
        [@function] 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().
        Returns:
        The newly created group, or NULL on failure.
      • dispatch_group_async_f

        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)
        [@function] dispatch_group_async_f Submits a function to a dispatch queue and associates the block with the given dispatch group. See dispatch_group_async() for details.
        Parameters:
        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().
      • dispatch_group_wait

        public static long dispatch_group_wait​(NSObject group,
                                               long timeout)
        [@function] dispatch_group_wait 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.
        Parameters:
        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.
        Returns:
        Returns zero on success (all blocks associated with the group completed within the specified timeout) or non-zero on error (i.e. timed out).
      • dispatch_group_notify_f

        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)
        [@function] dispatch_group_notify_f 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.
        Parameters:
        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().
      • dispatch_group_enter

        public static void dispatch_group_enter​(NSObject group)
        [@function] dispatch_group_enter 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().
        Parameters:
        group - The dispatch group to update. The result of passing NULL in this parameter is undefined.
      • dispatch_group_leave

        public static void dispatch_group_leave​(NSObject group)
        [@function] dispatch_group_leave 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().
        Parameters:
        group - The dispatch group to update. The result of passing NULL in this parameter is undefined.
      • dispatch_semaphore_create

        public static NSObject dispatch_semaphore_create​(long value)
        [@function] dispatch_semaphore_create 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.
        Parameters:
        value - The starting value for the semaphore. Passing a value less than zero will cause NULL to be returned.
        Returns:
        The newly created semaphore, or NULL on failure.
      • dispatch_semaphore_wait

        public static long dispatch_semaphore_wait​(NSObject dsema,
                                                   long timeout)
        [@function] dispatch_semaphore_wait 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.
        Parameters:
        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.
        Returns:
        Returns zero on success, or non-zero if the timeout occurred.
      • dispatch_semaphore_signal

        public static long dispatch_semaphore_signal​(NSObject dsema)
        [@function] dispatch_semaphore_signal Signal (increment) a semaphore. Increment the counting semaphore. If the previous value was less than zero, this function wakes a waiting thread before returning.
        Parameters:
        dsema - The counting semaphore. The result of passing NULL in this parameter is undefined.
        Returns:
        This function returns non-zero if a thread is woken. Otherwise, zero is returned.
      • dispatch_once_f

        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)
      • _dispatch_once_f

        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)
      • dispatch_data_create

        public 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. If a non-default destructor is provided, ownership of the buffer remains with the caller (i.e. the bytes will not be copied). The last release of the data object will result in the invocation of the specified destructor on the specified queue to free the buffer. 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.
        Parameters:
        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.
        Returns:
        A newly created dispatch data object.
      • dispatch_data_get_size

        public 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.
        Parameters:
        data - The dispatch data object to query.
        Returns:
        The number of bytes represented by the data object.
      • dispatch_data_create_map

        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)
        [@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. If non-NULL references to a pointer and a size variable are provided, they are filled with the location and extent of that region. These allow direct read access to the represented memory, but are only valid until the returned object is released. Under ARC, if that object is held in a variable with automatic storage, care needs to be taken to ensure that it is not released by the compiler before memory access via the pointer has been completed.
        Parameters:
        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.
        Returns:
        A newly created dispatch data object.
      • dispatch_data_create_concat

        public 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. Those objects may be released by the application after the call returns (however, the system might not deallocate the memory region(s) described by them until the newly created object has also been released).
        Parameters:
        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.
        Returns:
        A newly created object representing the concatenation of the data1 and data2 objects.
      • dispatch_data_create_subrange

        public 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).
        Parameters:
        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.
        Returns:
        A newly created object representing the specified subrange of the data object.
      • dispatch_data_apply

        public 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. 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.
        Parameters:
        data - The data object to traverse.
        applier - The block to be invoked for every contiguous memory region in the data object.
        Returns:
        A Boolean indicating whether traversal completed successfully.
      • dispatch_data_copy_region

        public 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.
        Parameters:
        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.
        Returns:
        A newly created dispatch data object.
      • dispatch_read

        public 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. The specified handler is enqueued with the data read from the file descriptor when the operation has completed or an error occurs. 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.
        Parameters:
        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.
      • dispatch_write

        public 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. The specified handler is enqueued when the operation has completed or an error occurs. 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.
        Parameters:
        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.
      • dispatch_io_create

        public 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. The system takes control of the file descriptor until the channel is closed, an error occurs on the file descriptor or all references to the channel 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.
        Parameters:
        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.
        Returns:
        The newly created dispatch I/O channel or NULL if an error occurred (invalid type specified).
      • dispatch_io_create_with_path

        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)
        [@function] dispatch_io_create_with_path Create a dispatch I/O channel associated with a path name. The specified path, oflag and mode parameters will be passed to open(2) when the first I/O operation on the channel is ready to execute and the resulting file descriptor will remain open and under the control of the system until the channel is closed, an error occurs on the file descriptor or all references to the channel are released. At that time the file descriptor will be closed and the specified cleanup handler will be enqueued.
        Parameters:
        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.
        Returns:
        The newly created dispatch I/O channel or NULL if an error occurred (invalid type or non-absolute path specified).
      • dispatch_io_create_with_io

        public 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. The new channel inherits the file descriptor or path name associated with the existing channel, but not its channel type or policies. 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.
        Parameters:
        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.
        Returns:
        The newly created dispatch I/O channel or NULL if an error occurred (invalid type specified).
      • dispatch_io_read

        public 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. The I/O handler is enqueued one or more times depending on the general load of the system and the policy specified on the I/O channel. 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.
        Parameters:
        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.
      • dispatch_io_write

        public 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. The I/O handler is enqueued one or more times depending on the general load of the system and the policy specified on the I/O channel. 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.
        Parameters:
        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.
      • dispatch_io_close

        public 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. 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.
        Parameters:
        channel - The dispatch I/O channel to close.
        flags - The flags for the close operation.
      • dispatch_io_barrier

        public 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. 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)).
        Parameters:
        channel - The dispatch I/O channel to schedule the barrier on.
        barrier - The barrier block.
      • dispatch_io_get_descriptor

        public static int dispatch_io_get_descriptor​(NSObject channel)
        [@function] dispatch_io_get_descriptor Returns the file descriptor underlying a dispatch I/O 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.
        Parameters:
        channel - The dispatch I/O channel to query.
        Returns:
        The file descriptor underlying the channel, or -1.
      • dispatch_io_set_high_water

        public 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. 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).
        Parameters:
        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.
      • dispatch_io_set_low_water

        public 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. 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.
        Parameters:
        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.
      • dispatch_io_set_interval

        public 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. 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.
        Parameters:
        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.
      • __math_errhandling

        public static int __math_errhandling()
      • __fpclassifyf

        public static int __fpclassifyf​(float arg1)
      • __fpclassifyd

        public static int __fpclassifyd​(double arg1)
      • __inline_isfinitef

        public static int __inline_isfinitef​(float arg1)
      • __inline_isfinited

        public static int __inline_isfinited​(double arg1)
      • __inline_isinff

        public static int __inline_isinff​(float arg1)
      • __inline_isinfd

        public static int __inline_isinfd​(double arg1)
      • __inline_isnanf

        public static int __inline_isnanf​(float arg1)
      • __inline_isnand

        public static int __inline_isnand​(double arg1)
      • __inline_isnormalf

        public static int __inline_isnormalf​(float arg1)
      • __inline_isnormald

        public static int __inline_isnormald​(double arg1)
      • __inline_signbitf

        public static int __inline_signbitf​(float arg1)
      • __inline_signbitd

        public static int __inline_signbitd​(double arg1)
      • acosf

        public static float acosf​(float arg1)
        * Math Functions * * ****************************************************************************
      • acos

        public static double acos​(double arg1)
      • asinf

        public static float asinf​(float arg1)
      • asin

        public static double asin​(double arg1)
      • atanf

        public static float atanf​(float arg1)
      • atan

        public static double atan​(double arg1)
      • atan2f

        public static float atan2f​(float arg1,
                                   float arg2)
      • atan2

        public static double atan2​(double arg1,
                                   double arg2)
      • cosf

        public static float cosf​(float arg1)
      • cos

        public static double cos​(double arg1)
      • sinf

        public static float sinf​(float arg1)
      • sin

        public static double sin​(double arg1)
      • tanf

        public static float tanf​(float arg1)
      • tan

        public static double tan​(double arg1)
      • acoshf

        public static float acoshf​(float arg1)
      • acosh

        public static double acosh​(double arg1)
      • asinhf

        public static float asinhf​(float arg1)
      • asinh

        public static double asinh​(double arg1)
      • atanhf

        public static float atanhf​(float arg1)
      • atanh

        public static double atanh​(double arg1)
      • coshf

        public static float coshf​(float arg1)
      • cosh

        public static double cosh​(double arg1)
      • sinhf

        public static float sinhf​(float arg1)
      • sinh

        public static double sinh​(double arg1)
      • tanhf

        public static float tanhf​(float arg1)
      • tanh

        public static double tanh​(double arg1)
      • expf

        public static float expf​(float arg1)
      • exp

        public static double exp​(double arg1)
      • exp2f

        public static float exp2f​(float arg1)
      • exp2

        public static double exp2​(double arg1)
      • expm1f

        public static float expm1f​(float arg1)
      • expm1

        public static double expm1​(double arg1)
      • logf

        public static float logf​(float arg1)
      • log

        public static double log​(double arg1)
      • log10f

        public static float log10f​(float arg1)
      • log10

        public static double log10​(double arg1)
      • log2f

        public static float log2f​(float arg1)
      • log2

        public static double log2​(double arg1)
      • log1pf

        public static float log1pf​(float arg1)
      • log1p

        public static double log1p​(double arg1)
      • logbf

        public static float logbf​(float arg1)
      • logb

        public static double logb​(double arg1)
      • modff

        public static float modff​(float arg1,
                                  org.moe.natj.general.ptr.FloatPtr arg2)
      • modf

        public static double modf​(double arg1,
                                  org.moe.natj.general.ptr.DoublePtr arg2)
      • ldexpf

        public static float ldexpf​(float arg1,
                                   int arg2)
      • ldexp

        public static double ldexp​(double arg1,
                                   int arg2)
      • frexpf

        public static float frexpf​(float arg1,
                                   org.moe.natj.general.ptr.IntPtr arg2)
      • frexp

        public static double frexp​(double arg1,
                                   org.moe.natj.general.ptr.IntPtr arg2)
      • ilogbf

        public static int ilogbf​(float arg1)
      • ilogb

        public static int ilogb​(double arg1)
      • scalbnf

        public static float scalbnf​(float arg1,
                                    int arg2)
      • scalbn

        public static double scalbn​(double arg1,
                                    int arg2)
      • scalblnf

        public static float scalblnf​(float arg1,
                                     long arg2)
      • scalbln

        public static double scalbln​(double arg1,
                                     long arg2)
      • fabsf

        public static float fabsf​(float arg1)
      • fabs

        public static double fabs​(double arg1)
      • cbrtf

        public static float cbrtf​(float arg1)
      • cbrt

        public static double cbrt​(double arg1)
      • hypotf

        public static float hypotf​(float arg1,
                                   float arg2)
      • hypot

        public static double hypot​(double arg1,
                                   double arg2)
      • powf

        public static float powf​(float arg1,
                                 float arg2)
      • pow

        public static double pow​(double arg1,
                                 double arg2)
      • sqrtf

        public static float sqrtf​(float arg1)
      • sqrt

        public static double sqrt​(double arg1)
      • erff

        public static float erff​(float arg1)
      • erf

        public static double erf​(double arg1)
      • erfcf

        public static float erfcf​(float arg1)
      • erfc

        public static double erfc​(double arg1)
      • lgammaf

        public static float lgammaf​(float arg1)
        lgammaf, lgamma, and lgammal are not thread-safe. The thread-safe variants lgammaf_r, lgamma_r, and lgammal_r are made available if you define the _REENTRANT symbol before including
      • lgamma

        public static double lgamma​(double arg1)
      • tgammaf

        public static float tgammaf​(float arg1)
      • tgamma

        public static double tgamma​(double arg1)
      • ceilf

        public static float ceilf​(float arg1)
      • ceil

        public static double ceil​(double arg1)
      • floorf

        public static float floorf​(float arg1)
      • floor

        public static double floor​(double arg1)
      • nearbyintf

        public static float nearbyintf​(float arg1)
      • nearbyint

        public static double nearbyint​(double arg1)
      • rintf

        public static float rintf​(float arg1)
      • rint

        public static double rint​(double arg1)
      • lrintf

        public static long lrintf​(float arg1)
      • lrint

        public static long lrint​(double arg1)
      • roundf

        public static float roundf​(float arg1)
      • round

        public static double round​(double arg1)
      • lroundf

        public static long lroundf​(float arg1)
      • lround

        public static long lround​(double arg1)
      • llrintf

        public static long llrintf​(float arg1)
      • llrint

        public static long llrint​(double arg1)
      • llroundf

        public static long llroundf​(float arg1)
      • llround

        public static long llround​(double arg1)
      • truncf

        public static float truncf​(float arg1)
      • trunc

        public static double trunc​(double arg1)
      • fmodf

        public static float fmodf​(float arg1,
                                  float arg2)
      • fmod

        public static double fmod​(double arg1,
                                  double arg2)
      • remainderf

        public static float remainderf​(float arg1,
                                       float arg2)
      • remainder

        public static double remainder​(double arg1,
                                       double arg2)
      • remquof

        public static float remquof​(float arg1,
                                    float arg2,
                                    org.moe.natj.general.ptr.IntPtr arg3)
      • remquo

        public static double remquo​(double arg1,
                                    double arg2,
                                    org.moe.natj.general.ptr.IntPtr arg3)
      • copysignf

        public static float copysignf​(float arg1,
                                      float arg2)
      • copysign

        public static double copysign​(double arg1,
                                      double arg2)
      • nanf

        public static float nanf​(java.lang.String arg1)
      • nan

        public static double nan​(java.lang.String arg1)
      • nextafterf

        public static float nextafterf​(float arg1,
                                       float arg2)
      • nextafter

        public static double nextafter​(double arg1,
                                       double arg2)
      • fdimf

        public static float fdimf​(float arg1,
                                  float arg2)
      • fdim

        public static double fdim​(double arg1,
                                  double arg2)
      • fmaxf

        public static float fmaxf​(float arg1,
                                  float arg2)
      • fmax

        public static double fmax​(double arg1,
                                  double arg2)
      • fminf

        public static float fminf​(float arg1,
                                  float arg2)
      • fmin

        public static double fmin​(double arg1,
                                  double arg2)
      • fmaf

        public static float fmaf​(float arg1,
                                 float arg2,
                                 float arg3)
      • fma

        public static double fma​(double arg1,
                                 double arg2,
                                 double arg3)
      • __exp10f

        public static float __exp10f​(float arg1)
        __exp10(x) returns 10**x. Edge cases match those of exp( ) and exp2( ).
      • __exp10

        public static double __exp10​(double arg1)
      • __sincosf

        public 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. Edge cases match those of separate calls to sin( ) and cos( ).
      • __sincos

        public static void __sincos​(double __x,
                                    org.moe.natj.general.ptr.DoublePtr __sinp,
                                    org.moe.natj.general.ptr.DoublePtr __cosp)
      • __cospif

        public 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. These functions can produce a more accurate answer than expressions of the form sin(M_PI * x) because they avoid any loss of precision that results from rounding the result of the multiplication M_PI * x. They may also be significantly more efficient in some cases because the argument reduction for these functions is easier to compute. Consult the man pages for edge case details.
      • __cospi

        public static double __cospi​(double arg1)
      • __sinpif

        public static float __sinpif​(float arg1)
      • __sinpi

        public static double __sinpi​(double arg1)
      • __tanpif

        public static float __tanpif​(float arg1)
      • __tanpi

        public static double __tanpi​(double arg1)
      • __sincospif

        public 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. Edge cases match those of separate calls to __sinpi( ) and __cospi( ), and are documented in the man pages. 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.
      • __sincospi

        public static void __sincospi​(double __x,
                                      org.moe.natj.general.ptr.DoublePtr __sinp,
                                      org.moe.natj.general.ptr.DoublePtr __cosp)
      • __sincosf_stret

        public static __float2 __sincosf_stret​(float arg1)
      • __sincos_stret

        public static __double2 __sincos_stret​(double arg1)
      • __sincospif_stret

        public static __float2 __sincospif_stret​(float arg1)
      • __sincospi_stret

        public static __double2 __sincospi_stret​(double arg1)
      • j0

        public static double j0​(double arg1)
      • j1

        public static double j1​(double arg1)
      • jn

        public static double jn​(int arg1,
                                double arg2)
      • y0

        public static double y0​(double arg1)
      • y1

        public static double y1​(double arg1)
      • yn

        public static double yn​(int arg1,
                                double arg2)
      • scalb

        public static double scalb​(double arg1,
                                   double arg2)
      • _Block_copy

        public 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. This must be paired with Block_release to recover memory, even when running under Objective-C Garbage Collection.
      • _Block_release

        public static void _Block_release​(org.moe.natj.general.ptr.ConstVoidPtr aBlock)
        Lose the reference, and if heap based and last reference, recover the memory
      • _Block_object_assign

        public 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. Do not call this function yourself.
      • _Block_object_dispose

        public static void _Block_object_dispose​(org.moe.natj.general.ptr.ConstVoidPtr arg1,
                                                 int arg2)
        Used by the compiler. Do not call this function yourself.
      • __assert_rtn

        public static void __assert_rtn​(java.lang.String arg1,
                                        java.lang.String arg2,
                                        int arg3,
                                        java.lang.String arg4)
      • ___runetype

        public static long ___runetype​(int arg1)
        See comments in about __darwin_ct_rune_t.
      • ___tolower

        public static int ___tolower​(int arg1)
      • ___toupper

        public static int ___toupper​(int arg1)
      • isascii

        public static int isascii​(int _c)
      • __maskrune

        public static int __maskrune​(int arg1,
                                     long arg2)
      • __istype

        public static int __istype​(int _c,
                                   long _f)
      • __isctype

        public static int __isctype​(int _c,
                                    long _f)
      • __toupper

        public static int __toupper​(int arg1)
      • __tolower

        public static int __tolower​(int arg1)
      • __wcwidth

        public static int __wcwidth​(int _c)
      • isalnum

        public static int isalnum​(int _c)
      • isalpha

        public static int isalpha​(int _c)
      • isblank

        public static int isblank​(int _c)
      • iscntrl

        public static int iscntrl​(int _c)
      • isdigit

        public static int isdigit​(int _c)
        ANSI -- locale independent
      • isgraph

        public static int isgraph​(int _c)
      • islower

        public static int islower​(int _c)
      • isprint

        public static int isprint​(int _c)
      • ispunct

        public static int ispunct​(int _c)
      • isspace

        public static int isspace​(int _c)
      • isupper

        public static int isupper​(int _c)
      • isxdigit

        public static int isxdigit​(int _c)
        ANSI -- locale independent
      • toascii

        public static int toascii​(int _c)
      • tolower

        public static int tolower​(int _c)
      • toupper

        public static int toupper​(int _c)
      • digittoint

        public static int digittoint​(int _c)
      • ishexnumber

        public static int ishexnumber​(int _c)
      • isideogram

        public static int isideogram​(int _c)
      • isnumber

        public static int isnumber​(int _c)
      • isphonogram

        public static int isphonogram​(int _c)
      • isrune

        public static int isrune​(int _c)
      • isspecial

        public static int isspecial​(int _c)
      • __error

        public static org.moe.natj.general.ptr.IntPtr __error()
      • localeconv

        public static lconv localeconv()
      • setlocale

        public static org.moe.natj.general.ptr.BytePtr setlocale​(int arg1,
                                                                 java.lang.String arg2)
      • setjmp

        public static int setjmp​(org.moe.natj.general.ptr.IntPtr arg1)
      • longjmp

        public static void longjmp​(org.moe.natj.general.ptr.IntPtr arg1,
                                   int arg2)
      • _setjmp

        public static int _setjmp​(org.moe.natj.general.ptr.IntPtr arg1)
      • sigsetjmp

        public static int sigsetjmp​(org.moe.natj.general.ptr.IntPtr arg1,
                                    int arg2)
      • longjmperror

        public static void longjmperror()
      • raise

        public static int raise​(int arg1)
      • kill

        public static int kill​(int arg1,
                               int arg2)
      • killpg

        public static int killpg​(int arg1,
                                 int arg2)
      • pthread_kill

        public static int pthread_kill​(_opaque_pthread_t arg1,
                                       int arg2)
      • pthread_sigmask

        public static int pthread_sigmask​(int arg1,
                                          org.moe.natj.general.ptr.ConstIntPtr arg2,
                                          org.moe.natj.general.ptr.IntPtr arg3)
      • sigaction

        public static int sigaction​(int arg1,
                                    org.moe.natj.general.ptr.VoidPtr arg2,
                                    org.moe.natj.general.ptr.VoidPtr arg3)
      • sigaddset

        public static int sigaddset​(org.moe.natj.general.ptr.IntPtr arg1,
                                    int arg2)
      • sigaltstack

        public static int sigaltstack​(stack_t arg1,
                                      stack_t arg2)
      • sigdelset

        public static int sigdelset​(org.moe.natj.general.ptr.IntPtr arg1,
                                    int arg2)
      • sigemptyset

        public static int sigemptyset​(org.moe.natj.general.ptr.IntPtr arg1)
      • sigfillset

        public static int sigfillset​(org.moe.natj.general.ptr.IntPtr arg1)
      • sighold

        public static int sighold​(int arg1)
      • sigignore

        public static int sigignore​(int arg1)
      • siginterrupt

        public static int siginterrupt​(int arg1,
                                       int arg2)
      • sigismember

        public static int sigismember​(org.moe.natj.general.ptr.ConstIntPtr arg1,
                                      int arg2)
      • sigpause

        public static int sigpause​(int arg1)
      • sigpending

        public static int sigpending​(org.moe.natj.general.ptr.IntPtr arg1)
      • sigprocmask

        public static int sigprocmask​(int arg1,
                                      org.moe.natj.general.ptr.ConstIntPtr arg2,
                                      org.moe.natj.general.ptr.IntPtr arg3)
      • sigrelse

        public static int sigrelse​(int arg1)
      • sigsuspend

        public static int sigsuspend​(org.moe.natj.general.ptr.ConstIntPtr arg1)
      • sigwait

        public static int sigwait​(org.moe.natj.general.ptr.ConstIntPtr arg1,
                                  org.moe.natj.general.ptr.IntPtr arg2)
      • psignal

        public static void psignal​(int arg1,
                                   java.lang.String arg2)
      • sigblock

        public static int sigblock​(int arg1)
      • sigsetmask

        public static int sigsetmask​(int arg1)
      • sigvec

        public static int sigvec​(int arg1,
                                 sigvec arg2,
                                 sigvec arg3)
      • renameat

        public static int renameat​(int arg1,
                                   java.lang.String arg2,
                                   int arg3,
                                   java.lang.String arg4)
      • renamex_np

        public static int renamex_np​(java.lang.String arg1,
                                     java.lang.String arg2,
                                     int arg3)
      • renameatx_np

        public static int renameatx_np​(int arg1,
                                       java.lang.String arg2,
                                       int arg3,
                                       java.lang.String arg4,
                                       int arg5)
      • clearerr

        public static void clearerr​(FILE arg1)
        ANSI-C
      • fclose

        public static int fclose​(FILE arg1)
      • feof

        public static int feof​(FILE arg1)
      • ferror

        public static int ferror​(FILE arg1)
      • fflush

        public static int fflush​(FILE arg1)
      • fgetc

        public static int fgetc​(FILE arg1)
      • fgetpos

        public static int fgetpos​(FILE arg1,
                                  org.moe.natj.general.ptr.LongPtr arg2)
      • fgets

        public static org.moe.natj.general.ptr.BytePtr fgets​(org.moe.natj.general.ptr.BytePtr arg1,
                                                             int arg2,
                                                             FILE arg3)
      • fopen

        public static FILE fopen​(java.lang.String __filename,
                                 java.lang.String __mode)
      • fprintf

        public static int fprintf​(FILE arg1,
                                  java.lang.String arg2,
                                  java.lang.Object... varargs)
      • fputc

        public static int fputc​(int arg1,
                                FILE arg2)
      • fputs

        public static int fputs​(java.lang.String arg1,
                                FILE arg2)
      • fread

        public static long fread​(org.moe.natj.general.ptr.VoidPtr __ptr,
                                 long __size,
                                 long __nitems,
                                 FILE __stream)
      • freopen

        public static FILE freopen​(java.lang.String arg1,
                                   java.lang.String arg2,
                                   FILE arg3)
      • fscanf

        public static int fscanf​(FILE arg1,
                                 java.lang.String arg2,
                                 java.lang.Object... varargs)
      • fseek

        public static int fseek​(FILE arg1,
                                long arg2,
                                int arg3)
      • fsetpos

        public static int fsetpos​(FILE arg1,
                                  org.moe.natj.general.ptr.ConstLongPtr arg2)
      • ftell

        public static long ftell​(FILE arg1)
      • fwrite

        public static long fwrite​(org.moe.natj.general.ptr.ConstVoidPtr __ptr,
                                  long __size,
                                  long __nitems,
                                  FILE __stream)
      • getc

        public static int getc​(FILE arg1)
      • getchar

        public static int getchar()
      • gets

        public static org.moe.natj.general.ptr.BytePtr gets​(org.moe.natj.general.ptr.BytePtr arg1)
      • perror

        public static void perror​(java.lang.String arg1)
      • printf

        public static int printf​(java.lang.String arg1,
                                 java.lang.Object... varargs)
      • putc

        public static int putc​(int arg1,
                               FILE arg2)
      • putchar

        public static int putchar​(int arg1)
      • puts

        public static int puts​(java.lang.String arg1)
      • remove

        public static int remove​(java.lang.String arg1)
      • rename

        public static int rename​(java.lang.String __old,
                                 java.lang.String __new)
      • rewind

        public static void rewind​(FILE arg1)
      • scanf

        public static int scanf​(java.lang.String arg1,
                                java.lang.Object... varargs)
      • setbuf

        public static void setbuf​(FILE arg1,
                                  org.moe.natj.general.ptr.BytePtr arg2)
      • setvbuf

        public static int setvbuf​(FILE arg1,
                                  org.moe.natj.general.ptr.BytePtr arg2,
                                  int arg3,
                                  long arg4)
      • sprintf

        public static int sprintf​(org.moe.natj.general.ptr.BytePtr arg1,
                                  java.lang.String arg2,
                                  java.lang.Object... varargs)
      • sscanf

        public static int sscanf​(java.lang.String arg1,
                                 java.lang.String arg2,
                                 java.lang.Object... varargs)
      • tmpfile

        public static FILE tmpfile()
      • tmpnam

        @Deprecated
        public static org.moe.natj.general.ptr.BytePtr tmpnam​(org.moe.natj.general.ptr.BytePtr arg1)
        Deprecated.
      • ungetc

        public static int ungetc​(int arg1,
                                 FILE arg2)
      • vfprintf

        public static int vfprintf​(FILE arg1,
                                   java.lang.String arg2,
                                   org.moe.natj.general.ptr.BytePtr arg3)
      • vprintf

        public static int vprintf​(java.lang.String arg1,
                                  org.moe.natj.general.ptr.BytePtr arg2)
      • vsprintf

        public static int vsprintf​(org.moe.natj.general.ptr.BytePtr arg1,
                                   java.lang.String arg2,
                                   org.moe.natj.general.ptr.BytePtr arg3)
      • fdopen

        public static FILE fdopen​(int arg1,
                                  java.lang.String arg2)
      • fileno

        public static int fileno​(FILE arg1)
      • pclose

        public static int pclose​(FILE arg1)
      • popen

        public static FILE popen​(java.lang.String arg1,
                                 java.lang.String arg2)
      • __srget

        public static int __srget​(FILE arg1)
        Functions internal to the implementation.
      • __svfscanf

        public static int __svfscanf​(FILE arg1,
                                     java.lang.String arg2,
                                     org.moe.natj.general.ptr.BytePtr arg3)
      • __swbuf

        public static int __swbuf​(int arg1,
                                  FILE arg2)
      • __sputc

        public static int __sputc​(int _c,
                                  FILE _p)
      • flockfile

        public static void flockfile​(FILE arg1)
      • ftrylockfile

        public static int ftrylockfile​(FILE arg1)
      • funlockfile

        public static void funlockfile​(FILE arg1)
      • getc_unlocked

        public static int getc_unlocked​(FILE arg1)
      • getchar_unlocked

        public static int getchar_unlocked()
      • putc_unlocked

        public static int putc_unlocked​(int arg1,
                                        FILE arg2)
      • putchar_unlocked

        public static int putchar_unlocked​(int arg1)
      • getw

        public static int getw​(FILE arg1)
      • putw

        public static int putw​(int arg1,
                               FILE arg2)
      • tempnam

        @Deprecated
        public static org.moe.natj.general.ptr.BytePtr tempnam​(java.lang.String __dir,
                                                               java.lang.String __prefix)
        Deprecated.
      • fseeko

        public static int fseeko​(FILE __stream,
                                 long __offset,
                                 int __whence)
      • ftello

        public static long ftello​(FILE __stream)
      • snprintf

        public static int snprintf​(org.moe.natj.general.ptr.BytePtr __str,
                                   long __size,
                                   java.lang.String __format,
                                   java.lang.Object... varargs)
      • vfscanf

        public static int vfscanf​(FILE __stream,
                                  java.lang.String __format,
                                  org.moe.natj.general.ptr.BytePtr arg3)
      • vscanf

        public static int vscanf​(java.lang.String __format,
                                 org.moe.natj.general.ptr.BytePtr arg2)
      • vsnprintf

        public static int vsnprintf​(org.moe.natj.general.ptr.BytePtr __str,
                                    long __size,
                                    java.lang.String __format,
                                    org.moe.natj.general.ptr.BytePtr arg4)
      • vsscanf

        public static int vsscanf​(java.lang.String __str,
                                  java.lang.String __format,
                                  org.moe.natj.general.ptr.BytePtr arg3)
      • dprintf

        public static int dprintf​(int arg1,
                                  java.lang.String arg2,
                                  java.lang.Object... varargs)
      • vdprintf

        public static int vdprintf​(int arg1,
                                   java.lang.String arg2,
                                   org.moe.natj.general.ptr.BytePtr arg3)
      • getdelim

        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)
      • getline

        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)
      • asprintf

        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)
      • ctermid_r

        public static org.moe.natj.general.ptr.BytePtr ctermid_r​(org.moe.natj.general.ptr.BytePtr arg1)
      • fgetln

        public static org.moe.natj.general.ptr.BytePtr fgetln​(FILE arg1,
                                                              org.moe.natj.general.ptr.NUIntPtr arg2)
      • fmtcheck

        public static java.lang.String fmtcheck​(java.lang.String arg1,
                                                java.lang.String arg2)
      • fpurge

        public static int fpurge​(FILE arg1)
      • setbuffer

        public static void setbuffer​(FILE arg1,
                                     org.moe.natj.general.ptr.BytePtr arg2,
                                     int arg3)
      • setlinebuf

        public static int setlinebuf​(FILE arg1)
      • vasprintf

        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)
      • zopen

        public static FILE zopen​(java.lang.String arg1,
                                 java.lang.String arg2,
                                 int arg3)
      • __sprintf_chk

        public static int __sprintf_chk​(org.moe.natj.general.ptr.BytePtr arg1,
                                        int arg2,
                                        long arg3,
                                        java.lang.String arg4,
                                        java.lang.Object... varargs)
      • __snprintf_chk

        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)
      • __vsprintf_chk

        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)
      • __vsnprintf_chk

        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)
      • getpriority

        public static int getpriority​(int arg1,
                                      int arg2)
      • getiopolicy_np

        public static int getiopolicy_np​(int arg1,
                                         int arg2)
      • getrlimit

        public static int getrlimit​(int arg1,
                                    rlimit arg2)
      • getrusage

        public static int getrusage​(int arg1,
                                    rusage arg2)
      • setpriority

        public static int setpriority​(int arg1,
                                      int arg2,
                                      int arg3)
      • setiopolicy_np

        public static int setiopolicy_np​(int arg1,
                                         int arg2,
                                         int arg3)
      • setrlimit

        public static int setrlimit​(int arg1,
                                    rlimit arg2)
      • wait_c

        public static int wait_c​(org.moe.natj.general.ptr.IntPtr arg1)
      • waitpid

        public static int waitpid​(int arg1,
                                  org.moe.natj.general.ptr.IntPtr arg2,
                                  int arg3)
      • waitid

        public static int waitid​(int arg1,
                                 int arg2,
                                 org.moe.natj.general.ptr.VoidPtr arg3,
                                 int arg4)
      • wait3

        public static int wait3​(org.moe.natj.general.ptr.IntPtr arg1,
                                int arg2,
                                rusage arg3)
      • wait4

        public static int wait4​(int arg1,
                                org.moe.natj.general.ptr.IntPtr arg2,
                                int arg3,
                                rusage arg4)
      • alloca

        public static org.moe.natj.general.ptr.VoidPtr alloca​(long arg1)
      • abort

        public static void abort()
      • abs

        public static int abs​(int arg1)
      • atof

        public static double atof​(java.lang.String arg1)
      • atoi

        public static int atoi​(java.lang.String arg1)
      • atol

        public static long atol​(java.lang.String arg1)
      • atoll

        public static long atoll​(java.lang.String arg1)
      • bsearch

        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)
      • calloc

        public static org.moe.natj.general.ptr.VoidPtr calloc​(long __count,
                                                              long __size)
      • div

        public static div_t div​(int arg1,
                                int arg2)
        calloc is now declared in _malloc.h
      • exit

        public static void exit​(int arg1)
      • free

        public static void free​(org.moe.natj.general.ptr.VoidPtr arg1)
      • getenv

        public static org.moe.natj.general.ptr.BytePtr getenv​(java.lang.String arg1)
        free is now declared in _malloc.h
      • labs

        public static long labs​(long arg1)
      • ldiv

        public static ldiv_t ldiv​(long arg1,
                                  long arg2)
      • llabs

        public static long llabs​(long arg1)
      • lldiv

        public static lldiv_t lldiv​(long arg1,
                                    long arg2)
      • malloc

        public static org.moe.natj.general.ptr.VoidPtr malloc​(long __size)
      • mblen

        public static int mblen​(java.lang.String __s,
                                long __n)
        malloc is now declared in _malloc.h
      • mbstowcs

        public static long mbstowcs​(org.moe.natj.general.ptr.IntPtr arg1,
                                    java.lang.String arg2,
                                    long arg3)
      • mbtowc

        public static int mbtowc​(org.moe.natj.general.ptr.IntPtr arg1,
                                 java.lang.String arg2,
                                 long arg3)
      • posix_memalign

        public static int posix_memalign​(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.VoidPtr> __memptr,
                                         long __alignment,
                                         long __size)
      • qsort

        public 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
      • rand

        public static int rand()
      • realloc

        public static org.moe.natj.general.ptr.VoidPtr realloc​(org.moe.natj.general.ptr.VoidPtr __ptr,
                                                               long __size)
      • srand

        public static void srand​(int arg1)
        realloc is now declared in _malloc.h
      • strtod

        public static double strtod​(java.lang.String arg1,
                                    org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2)
      • strtof

        public static float strtof​(java.lang.String arg1,
                                   org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2)
      • strtol

        public static long strtol​(java.lang.String __str,
                                  org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
                                  int __base)
      • strtoll

        public static long strtoll​(java.lang.String __str,
                                   org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
                                   int __base)
      • strtoul

        public static long strtoul​(java.lang.String __str,
                                   org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
                                   int __base)
      • strtoull

        public static long strtoull​(java.lang.String __str,
                                    org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
                                    int __base)
      • wcstombs

        public static long wcstombs​(org.moe.natj.general.ptr.BytePtr arg1,
                                    org.moe.natj.general.ptr.ConstIntPtr arg2,
                                    long arg3)
      • wctomb

        public static int wctomb​(org.moe.natj.general.ptr.BytePtr arg1,
                                 int arg2)
      • a64l

        public static long a64l​(java.lang.String arg1)
      • drand48

        public static double drand48()
      • ecvt

        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)
      • fcvt

        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)
      • gcvt

        public static org.moe.natj.general.ptr.BytePtr gcvt​(double arg1,
                                                            int arg2,
                                                            org.moe.natj.general.ptr.BytePtr arg3)
      • grantpt

        public static int grantpt​(int arg1)
      • initstate

        public static org.moe.natj.general.ptr.BytePtr initstate​(int arg1,
                                                                 org.moe.natj.general.ptr.BytePtr arg2,
                                                                 long arg3)
      • l64a

        public static org.moe.natj.general.ptr.BytePtr l64a​(long arg1)
      • lrand48

        public static long lrand48()
      • mrand48

        public static long mrand48()
      • posix_openpt

        public static int posix_openpt​(int arg1)
      • ptsname

        public static org.moe.natj.general.ptr.BytePtr ptsname​(int arg1)
      • putenv

        public static int putenv​(org.moe.natj.general.ptr.BytePtr arg1)
      • random

        public static long random()
      • rand_r

        public static int rand_r​(org.moe.natj.general.ptr.IntPtr arg1)
      • realpath

        public static org.moe.natj.general.ptr.BytePtr realpath​(java.lang.String arg1,
                                                                org.moe.natj.general.ptr.BytePtr arg2)
      • setenv

        public static int setenv​(java.lang.String __name,
                                 java.lang.String __value,
                                 int __overwrite)
      • setstate

        public static org.moe.natj.general.ptr.BytePtr setstate​(java.lang.String arg1)
      • srand48

        public static void srand48​(long arg1)
      • srandom

        public static void srandom​(int arg1)
      • unlockpt

        public static int unlockpt​(int arg1)
      • unsetenv

        public static int unsetenv​(java.lang.String arg1)
      • arc4random

        public static int arc4random()
      • arc4random_addrandom

        public static void arc4random_addrandom​(org.moe.natj.general.ptr.BytePtr arg1,
                                                int arg2)
      • arc4random_buf

        public static void arc4random_buf​(org.moe.natj.general.ptr.VoidPtr __buf,
                                          long __nbytes)
      • arc4random_stir

        public static void arc4random_stir()
      • arc4random_uniform

        public static int arc4random_uniform​(int __upper_bound)
      • bsearch_b

        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)
      • cgetcap

        public static org.moe.natj.general.ptr.BytePtr cgetcap​(org.moe.natj.general.ptr.BytePtr arg1,
                                                               java.lang.String arg2,
                                                               int arg3)
        getcap(3) functions
      • cgetclose

        public static int cgetclose()
      • cgetent

        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)
      • cgetfirst

        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)
      • cgetmatch

        public static int cgetmatch​(java.lang.String arg1,
                                    java.lang.String arg2)
      • cgetnext

        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)
      • cgetnum

        public static int cgetnum​(org.moe.natj.general.ptr.BytePtr arg1,
                                  java.lang.String arg2,
                                  org.moe.natj.general.ptr.NIntPtr arg3)
      • cgetset

        public static int cgetset​(java.lang.String arg1)
      • cgetstr

        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)
      • cgetustr

        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)
      • daemon

        @Deprecated
        public static int daemon​(int arg1,
                                 int arg2)
        Deprecated.
      • devname

        public static org.moe.natj.general.ptr.BytePtr devname​(int arg1,
                                                               char arg2)
      • devname_r

        public static org.moe.natj.general.ptr.BytePtr devname_r​(int arg1,
                                                                 char arg2,
                                                                 org.moe.natj.general.ptr.BytePtr buf,
                                                                 int len)
      • getbsize

        public static org.moe.natj.general.ptr.BytePtr getbsize​(org.moe.natj.general.ptr.IntPtr arg1,
                                                                org.moe.natj.general.ptr.NIntPtr arg2)
      • getloadavg

        public static int getloadavg​(org.moe.natj.general.ptr.DoublePtr arg1,
                                     int arg2)
      • getprogname

        public static java.lang.String getprogname()
      • heapsort

        public static int heapsort​(org.moe.natj.general.ptr.VoidPtr __base,
                                   long __nel,
                                   long __width,
                                   Globals.Function_heapsort __compar)
      • heapsort_b

        public static int heapsort_b​(org.moe.natj.general.ptr.VoidPtr __base,
                                     long __nel,
                                     long __width,
                                     Globals.Block_heapsort_b __compar)
      • mergesort

        public static int mergesort​(org.moe.natj.general.ptr.VoidPtr __base,
                                    long __nel,
                                    long __width,
                                    Globals.Function_mergesort __compar)
      • mergesort_b

        public static int mergesort_b​(org.moe.natj.general.ptr.VoidPtr __base,
                                      long __nel,
                                      long __width,
                                      Globals.Block_mergesort_b __compar)
      • psort

        public static void psort​(org.moe.natj.general.ptr.VoidPtr __base,
                                 long __nel,
                                 long __width,
                                 Globals.Function_psort __compar)
      • psort_b

        public static void psort_b​(org.moe.natj.general.ptr.VoidPtr __base,
                                   long __nel,
                                   long __width,
                                   Globals.Block_psort_b __compar)
      • psort_r

        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)
      • qsort_b

        public static void qsort_b​(org.moe.natj.general.ptr.VoidPtr __base,
                                   long __nel,
                                   long __width,
                                   Globals.Block_qsort_b __compar)
      • qsort_r

        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)
      • radixsort

        public static int radixsort​(java.lang.String[] __base,
                                    int __nel,
                                    java.lang.String __table,
                                    int __endbyte)
      • setprogname

        public static void setprogname​(java.lang.String arg1)
      • sradixsort

        public static int sradixsort​(java.lang.String[] __base,
                                     int __nel,
                                     java.lang.String __table,
                                     int __endbyte)
      • sranddev

        public static void sranddev()
      • srandomdev

        public static void srandomdev()
      • reallocf

        public static org.moe.natj.general.ptr.VoidPtr reallocf​(org.moe.natj.general.ptr.VoidPtr __ptr,
                                                                long __size)
      • strtoq

        public static long strtoq​(java.lang.String __str,
                                  org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
                                  int __base)
      • strtouq

        public static long strtouq​(java.lang.String __str,
                                   org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
                                   int __base)
      • memchr

        public static org.moe.natj.general.ptr.VoidPtr memchr​(org.moe.natj.general.ptr.ConstVoidPtr __s,
                                                              int __c,
                                                              long __n)
        ANSI-C
      • memcmp

        public static int memcmp​(org.moe.natj.general.ptr.ConstVoidPtr __s1,
                                 org.moe.natj.general.ptr.ConstVoidPtr __s2,
                                 long __n)
      • memcpy

        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)
      • memmove

        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)
      • memset

        public static org.moe.natj.general.ptr.VoidPtr memset​(org.moe.natj.general.ptr.VoidPtr __b,
                                                              int __c,
                                                              long __len)
      • strcat

        public static org.moe.natj.general.ptr.BytePtr strcat​(org.moe.natj.general.ptr.BytePtr __s1,
                                                              java.lang.String __s2)
      • strchr

        public static org.moe.natj.general.ptr.BytePtr strchr​(java.lang.String __s,
                                                              int __c)
      • strcmp

        public static int strcmp​(java.lang.String __s1,
                                 java.lang.String __s2)
      • strcoll

        public static int strcoll​(java.lang.String __s1,
                                  java.lang.String __s2)
      • strcpy

        public static org.moe.natj.general.ptr.BytePtr strcpy​(org.moe.natj.general.ptr.BytePtr __dst,
                                                              java.lang.String __src)
      • strcspn

        public static long strcspn​(java.lang.String __s,
                                   java.lang.String __charset)
      • strerror

        public static org.moe.natj.general.ptr.BytePtr strerror​(int __errnum)
      • strlen

        public static long strlen​(java.lang.String __s)
      • strncat

        public static org.moe.natj.general.ptr.BytePtr strncat​(org.moe.natj.general.ptr.BytePtr __s1,
                                                               java.lang.String __s2,
                                                               long __n)
      • strncmp

        public static int strncmp​(java.lang.String __s1,
                                  java.lang.String __s2,
                                  long __n)
      • strncpy

        public static org.moe.natj.general.ptr.BytePtr strncpy​(org.moe.natj.general.ptr.BytePtr __dst,
                                                               java.lang.String __src,
                                                               long __n)
      • strpbrk

        public static org.moe.natj.general.ptr.BytePtr strpbrk​(java.lang.String __s,
                                                               java.lang.String __charset)
      • strrchr

        public static org.moe.natj.general.ptr.BytePtr strrchr​(java.lang.String __s,
                                                               int __c)
      • strspn

        public static long strspn​(java.lang.String __s,
                                  java.lang.String __charset)
      • strstr

        public static org.moe.natj.general.ptr.BytePtr strstr​(java.lang.String __big,
                                                              java.lang.String __little)
      • strtok

        public static org.moe.natj.general.ptr.BytePtr strtok​(org.moe.natj.general.ptr.BytePtr __str,
                                                              java.lang.String __sep)
      • strxfrm

        public static long strxfrm​(org.moe.natj.general.ptr.BytePtr __s1,
                                   java.lang.String __s2,
                                   long __n)
      • strtok_r

        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)
      • strerror_r

        public static int strerror_r​(int __errnum,
                                     org.moe.natj.general.ptr.BytePtr __strerrbuf,
                                     long __buflen)
      • strdup

        public static org.moe.natj.general.ptr.BytePtr strdup​(java.lang.String __s1)
      • memccpy

        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)
      • stpcpy

        public static org.moe.natj.general.ptr.BytePtr stpcpy​(org.moe.natj.general.ptr.BytePtr __dst,
                                                              java.lang.String __src)
      • stpncpy

        public static org.moe.natj.general.ptr.BytePtr stpncpy​(org.moe.natj.general.ptr.BytePtr __dst,
                                                               java.lang.String __src,
                                                               long __n)
      • strndup

        public static org.moe.natj.general.ptr.BytePtr strndup​(java.lang.String __s1,
                                                               long __n)
      • strnlen

        public static long strnlen​(java.lang.String __s1,
                                   long __n)
      • strsignal

        public static org.moe.natj.general.ptr.BytePtr strsignal​(int __sig)
      • memmem

        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)
      • memset_pattern4

        public static void memset_pattern4​(org.moe.natj.general.ptr.VoidPtr __b,
                                           org.moe.natj.general.ptr.ConstVoidPtr __pattern4,
                                           long __len)
      • memset_pattern8

        public static void memset_pattern8​(org.moe.natj.general.ptr.VoidPtr __b,
                                           org.moe.natj.general.ptr.ConstVoidPtr __pattern8,
                                           long __len)
      • memset_pattern16

        public static void memset_pattern16​(org.moe.natj.general.ptr.VoidPtr __b,
                                            org.moe.natj.general.ptr.ConstVoidPtr __pattern16,
                                            long __len)
      • strcasestr

        public static org.moe.natj.general.ptr.BytePtr strcasestr​(java.lang.String __big,
                                                                  java.lang.String __little)
      • strnstr

        public static org.moe.natj.general.ptr.BytePtr strnstr​(java.lang.String __big,
                                                               java.lang.String __little,
                                                               long __len)
      • strlcat

        public static long strlcat​(org.moe.natj.general.ptr.BytePtr __dst,
                                   java.lang.String __source,
                                   long __size)
      • strlcpy

        public static long strlcpy​(org.moe.natj.general.ptr.BytePtr __dst,
                                   java.lang.String __source,
                                   long __size)
      • strmode

        public static void strmode​(int __mode,
                                   org.moe.natj.general.ptr.BytePtr __bp)
      • strsep

        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)
      • bcmp

        public static int bcmp​(org.moe.natj.general.ptr.ConstVoidPtr arg1,
                               org.moe.natj.general.ptr.ConstVoidPtr arg2,
                               long arg3)
      • bcopy

        public static void bcopy​(org.moe.natj.general.ptr.ConstVoidPtr arg1,
                                 org.moe.natj.general.ptr.VoidPtr arg2,
                                 long arg3)
      • bzero

        public static void bzero​(org.moe.natj.general.ptr.VoidPtr arg1,
                                 long arg2)
      • index

        public static org.moe.natj.general.ptr.BytePtr index​(java.lang.String arg1,
                                                             int arg2)
      • rindex

        public static org.moe.natj.general.ptr.BytePtr rindex​(java.lang.String arg1,
                                                              int arg2)
      • ffs

        public static int ffs​(int arg1)
      • strcasecmp

        public static int strcasecmp​(java.lang.String arg1,
                                     java.lang.String arg2)
      • strncasecmp

        public static int strncasecmp​(java.lang.String arg1,
                                      java.lang.String arg2,
                                      long arg3)
      • ffsl

        public static int ffsl​(long arg1)
      • ffsll

        public static int ffsll​(long arg1)
      • fls

        public static int fls​(int arg1)
      • flsl

        public static int flsl​(long arg1)
      • flsll

        public static int flsll​(long arg1)
      • asctime

        public static org.moe.natj.general.ptr.BytePtr asctime​(tm arg1)
      • clock

        public static long clock()
      • ctime

        public static org.moe.natj.general.ptr.BytePtr ctime​(org.moe.natj.general.ptr.ConstNIntPtr arg1)
      • difftime

        public static double difftime​(long arg1,
                                      long arg2)
      • getdate

        public static tm getdate​(java.lang.String arg1)
      • gmtime

        public static tm gmtime​(org.moe.natj.general.ptr.ConstNIntPtr arg1)
      • localtime

        public static tm localtime​(org.moe.natj.general.ptr.ConstNIntPtr arg1)
      • mktime

        public static long mktime​(tm arg1)
      • strftime

        public static long strftime​(org.moe.natj.general.ptr.BytePtr arg1,
                                    long arg2,
                                    java.lang.String arg3,
                                    tm arg4)
      • strptime

        public static org.moe.natj.general.ptr.BytePtr strptime​(java.lang.String arg1,
                                                                java.lang.String arg2,
                                                                tm arg3)
      • time

        public static long time​(org.moe.natj.general.ptr.NIntPtr arg1)
      • tzset

        public static void tzset()
      • asctime_r

        public static org.moe.natj.general.ptr.BytePtr asctime_r​(tm arg1,
                                                                 org.moe.natj.general.ptr.BytePtr arg2)
        [TSF] Thread safe functions
      • ctime_r

        public static org.moe.natj.general.ptr.BytePtr ctime_r​(org.moe.natj.general.ptr.ConstNIntPtr arg1,
                                                               org.moe.natj.general.ptr.BytePtr arg2)
      • gmtime_r

        public static tm gmtime_r​(org.moe.natj.general.ptr.ConstNIntPtr arg1,
                                  tm arg2)
      • localtime_r

        public static tm localtime_r​(org.moe.natj.general.ptr.ConstNIntPtr arg1,
                                     tm arg2)
      • posix2time

        public static long posix2time​(long arg1)
      • tzsetwall

        public static void tzsetwall()
      • time2posix

        public static long time2posix​(long arg1)
      • timelocal

        public static long timelocal​(tm arg1)
      • timegm

        public static long timegm​(tm arg1)
      • nanosleep

        public static int nanosleep​(timespec __rqtp,
                                    timespec __rmtp)
      • clock_getres

        public static int clock_getres​(int __clock_id,
                                       timespec __res)
      • clock_gettime

        public static int clock_gettime​(int __clock_id,
                                        timespec __tp)
      • clock_gettime_nsec_np

        public static long clock_gettime_nsec_np​(int __clock_id)
      • imaxabs

        public static long imaxabs​(long j)
        7.8.2.1
      • imaxdiv

        public static imaxdiv_t imaxdiv​(long __numer,
                                        long __denom)
      • strtoimax

        public 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
      • strtoumax

        public static long strtoumax​(java.lang.String __nptr,
                                     org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> __endptr,
                                     int __base)
      • wcstoimax

        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)
        7.8.2.4
      • wcstoumax

        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)
      • OSHostByteOrder

        public static int OSHostByteOrder()
      • _OSReadInt16

        public static char _OSReadInt16​(org.moe.natj.general.ptr.ConstVoidPtr base,
                                        long byteOffset)
        Functions for loading native endian values.
      • _OSReadInt32

        public static int _OSReadInt32​(org.moe.natj.general.ptr.ConstVoidPtr base,
                                       long byteOffset)
      • _OSReadInt64

        public static long _OSReadInt64​(org.moe.natj.general.ptr.ConstVoidPtr base,
                                        long byteOffset)
      • _OSWriteInt16

        public static void _OSWriteInt16​(org.moe.natj.general.ptr.VoidPtr base,
                                         long byteOffset,
                                         char data)
        Functions for storing native endian values.
      • _OSWriteInt32

        public static void _OSWriteInt32​(org.moe.natj.general.ptr.VoidPtr base,
                                         long byteOffset,
                                         int data)
      • _OSWriteInt64

        public static void _OSWriteInt64​(org.moe.natj.general.ptr.VoidPtr base,
                                         long byteOffset,
                                         long data)
      • acl_dup

        public static acl_t acl_dup​(acl_t acl)
        23.1.6.1 ACL Storage Management
      • acl_free

        public static int acl_free​(org.moe.natj.general.ptr.VoidPtr obj_p)
      • acl_init

        public static acl_t acl_init​(int count)
      • acl_copy_entry

        public static int acl_copy_entry​(acl_entry_t dest_d,
                                         acl_entry_t src_d)
        23.1.6.2 (1) ACL Entry manipulation
      • acl_create_entry

        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)
      • acl_create_entry_np

        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)
      • acl_delete_entry

        public static int acl_delete_entry​(acl_t acl,
                                           acl_entry_t entry_d)
      • acl_get_entry

        public static int acl_get_entry​(acl_t acl,
                                        int entry_id,
                                        org.moe.natj.general.ptr.Ptr<acl_entry_t> entry_p)
      • acl_valid

        public static int acl_valid​(acl_t acl)
      • acl_valid_fd_np

        public static int acl_valid_fd_np​(int fd,
                                          int type,
                                          acl_t acl)
      • acl_valid_file_np

        public static int acl_valid_file_np​(java.lang.String path,
                                            int type,
                                            acl_t acl)
      • acl_valid_link_np

        public static int acl_valid_link_np​(java.lang.String path,
                                            int type,
                                            acl_t acl)
      • acl_add_perm

        public static int acl_add_perm​(acl_permset_t permset_d,
                                       int perm)
        23.1.6.2 (2) Manipulate permissions within an ACL entry
      • acl_calc_mask

        public static int acl_calc_mask​(org.moe.natj.general.ptr.Ptr<acl_t> acl_p)
      • acl_clear_perms

        public static int acl_clear_perms​(acl_permset_t permset_d)
      • acl_delete_perm

        public static int acl_delete_perm​(acl_permset_t permset_d,
                                          int perm)
      • acl_get_perm_np

        public static int acl_get_perm_np​(acl_permset_t permset_d,
                                          int perm)
      • acl_get_permset

        public static int acl_get_permset​(acl_entry_t entry_d,
                                          org.moe.natj.general.ptr.Ptr<acl_permset_t> permset_p)
      • acl_maximal_permset_mask_np

        public static int acl_maximal_permset_mask_np​(org.moe.natj.general.ptr.LongPtr mask_p)
        nonstandard - manipulate permissions within an ACL entry using bitmasks
      • acl_get_permset_mask_np

        public static int acl_get_permset_mask_np​(acl_entry_t entry_d,
                                                  org.moe.natj.general.ptr.LongPtr mask_p)
      • acl_set_permset_mask_np

        public static int acl_set_permset_mask_np​(acl_entry_t entry_d,
                                                  long mask)
      • acl_add_flag_np

        public static int acl_add_flag_np​(acl_flagset_t flagset_d,
                                          int flag)
        nonstandard - manipulate flags on ACLs and entries
      • acl_clear_flags_np

        public static int acl_clear_flags_np​(acl_flagset_t flagset_d)
      • acl_delete_flag_np

        public static int acl_delete_flag_np​(acl_flagset_t flagset_d,
                                             int flag)
      • acl_get_flag_np

        public static int acl_get_flag_np​(acl_flagset_t flagset_d,
                                          int flag)
      • acl_get_flagset_np

        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)
      • acl_set_flagset_np

        public static int acl_set_flagset_np​(org.moe.natj.general.ptr.VoidPtr obj_p,
                                             acl_flagset_t flagset_d)
      • acl_get_qualifier

        public 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
      • acl_get_tag_type

        public static int acl_get_tag_type​(acl_entry_t entry_d,
                                           org.moe.natj.general.ptr.IntPtr tag_type_p)
      • acl_set_qualifier

        public static int acl_set_qualifier​(acl_entry_t entry_d,
                                            org.moe.natj.general.ptr.ConstVoidPtr tag_qualifier_p)
      • acl_set_tag_type

        public static int acl_set_tag_type​(acl_entry_t entry_d,
                                           int tag_type)
      • acl_delete_def_file

        public static int acl_delete_def_file​(java.lang.String path_p)
        23.1.6.3 ACL manipulation on an Object
      • acl_get_fd

        public static acl_t acl_get_fd​(int fd)
      • acl_get_fd_np

        public static acl_t acl_get_fd_np​(int fd,
                                          int type)
      • acl_get_file

        public static acl_t acl_get_file​(java.lang.String path_p,
                                         int type)
      • acl_get_link_np

        public static acl_t acl_get_link_np​(java.lang.String path_p,
                                            int type)
      • acl_set_fd

        public static int acl_set_fd​(int fd,
                                     acl_t acl)
      • acl_set_fd_np

        public static int acl_set_fd_np​(int fd,
                                        acl_t acl,
                                        int acl_type)
      • acl_set_file

        public static int acl_set_file​(java.lang.String path_p,
                                       int type,
                                       acl_t acl)
      • acl_set_link_np

        public static int acl_set_link_np​(java.lang.String path_p,
                                          int type,
                                          acl_t acl)
      • acl_copy_ext

        public 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
      • acl_copy_ext_native

        public static long acl_copy_ext_native​(org.moe.natj.general.ptr.VoidPtr buf_p,
                                               acl_t acl,
                                               long size)
      • acl_copy_int

        public static acl_t acl_copy_int​(org.moe.natj.general.ptr.ConstVoidPtr buf_p)
      • acl_copy_int_native

        public static acl_t acl_copy_int_native​(org.moe.natj.general.ptr.ConstVoidPtr buf_p)
      • acl_from_text

        public static acl_t acl_from_text​(java.lang.String buf_p)
      • acl_size

        public static long acl_size​(acl_t acl)
      • acl_to_text

        public static org.moe.natj.general.ptr.BytePtr acl_to_text​(acl_t acl,
                                                                   org.moe.natj.general.ptr.NIntPtr len_p)
      • os_unfair_lock_lock

        public static void os_unfair_lock_lock​(os_unfair_lock_s lock)
        [@function] os_unfair_lock_lock Locks an os_unfair_lock.
        Parameters:
        lock - Pointer to an os_unfair_lock.
      • os_unfair_lock_trylock

        public static boolean os_unfair_lock_trylock​(os_unfair_lock_s lock)
        [@function] os_unfair_lock_trylock 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).
        Parameters:
        lock - Pointer to an os_unfair_lock.
        Returns:
        Returns true if the lock was succesfully locked and false if the lock was already locked.
      • os_unfair_lock_unlock

        public static void os_unfair_lock_unlock​(os_unfair_lock_s lock)
        [@function] os_unfair_lock_unlock Unlocks an os_unfair_lock.
        Parameters:
        lock - Pointer to an os_unfair_lock.
      • accept

        public static int accept​(int arg1,
                                 sockaddr arg2,
                                 org.moe.natj.general.ptr.IntPtr arg3)
      • bind

        public static int bind​(int arg1,
                               sockaddr arg2,
                               int arg3)
      • connect

        public static int connect​(int arg1,
                                  sockaddr arg2,
                                  int arg3)
      • getpeername

        public static int getpeername​(int arg1,
                                      sockaddr arg2,
                                      org.moe.natj.general.ptr.IntPtr arg3)
      • getsockname

        public static int getsockname​(int arg1,
                                      sockaddr arg2,
                                      org.moe.natj.general.ptr.IntPtr arg3)
      • getsockopt

        public static int getsockopt​(int arg1,
                                     int arg2,
                                     int arg3,
                                     org.moe.natj.general.ptr.VoidPtr arg4,
                                     org.moe.natj.general.ptr.IntPtr arg5)
      • listen

        public static int listen​(int arg1,
                                 int arg2)
      • recv

        public static long recv​(int arg1,
                                org.moe.natj.general.ptr.VoidPtr arg2,
                                long arg3,
                                int arg4)
      • recvfrom

        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)
      • recvmsg

        public static long recvmsg​(int arg1,
                                   msghdr arg2,
                                   int arg3)
      • send

        public static long send​(int arg1,
                                org.moe.natj.general.ptr.ConstVoidPtr arg2,
                                long arg3,
                                int arg4)
      • sendmsg

        public static long sendmsg​(int arg1,
                                   msghdr arg2,
                                   int arg3)
      • sendto

        public static long sendto​(int arg1,
                                  org.moe.natj.general.ptr.ConstVoidPtr arg2,
                                  long arg3,
                                  int arg4,
                                  sockaddr arg5,
                                  int arg6)
      • setsockopt

        public static int setsockopt​(int arg1,
                                     int arg2,
                                     int arg3,
                                     org.moe.natj.general.ptr.ConstVoidPtr arg4,
                                     int arg5)
      • shutdown

        public static int shutdown​(int arg1,
                                   int arg2)
      • sockatmark

        public static int sockatmark​(int arg1)
      • socket

        public static int socket​(int arg1,
                                 int arg2,
                                 int arg3)
      • socketpair

        public static int socketpair​(int arg1,
                                     int arg2,
                                     int arg3,
                                     org.moe.natj.general.ptr.IntPtr arg4)
      • sendfile

        public static int sendfile​(int arg1,
                                   int arg2,
                                   long arg3,
                                   org.moe.natj.general.ptr.LongPtr arg4,
                                   sf_hdtr arg5,
                                   int arg6)
      • pfctlinput

        public static void pfctlinput​(int arg1,
                                      sockaddr arg2)
      • connectx

        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)
      • disconnectx

        public static int disconnectx​(int arg1,
                                      int arg2,
                                      int arg3)
      • setipv4sourcefilter

        public 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(). We use uint32_t here to be consistent.
      • getipv4sourcefilter

        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)
      • setsourcefilter

        public static int setsourcefilter​(int arg1,
                                          int arg2,
                                          sockaddr arg3,
                                          int arg4,
                                          int arg5,
                                          int arg6,
                                          sockaddr_storage arg7)
      • getsourcefilter

        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)
      • inet6_option_space

        public static int inet6_option_space​(int arg1)
      • inet6_option_init

        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)
      • inet6_option_append

        public static int inet6_option_append​(cmsghdr arg1,
                                              java.lang.String arg2,
                                              int arg3,
                                              int arg4)
      • inet6_option_alloc

        public static org.moe.natj.general.ptr.BytePtr inet6_option_alloc​(cmsghdr arg1,
                                                                          int arg2,
                                                                          int arg3,
                                                                          int arg4)
      • inet6_option_next

        public static int inet6_option_next​(cmsghdr arg1,
                                            org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2)
      • inet6_option_find

        public static int inet6_option_find​(cmsghdr arg1,
                                            org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> arg2,
                                            int arg3)
      • inet6_rthdr_space

        public static long inet6_rthdr_space​(int arg1,
                                             int arg2)
      • inet6_rthdr_init

        public static cmsghdr inet6_rthdr_init​(org.moe.natj.general.ptr.VoidPtr arg1,
                                               int arg2)
      • inet6_rthdr_add

        public static int inet6_rthdr_add​(cmsghdr arg1,
                                          org.moe.natj.general.ptr.VoidPtr arg2,
                                          int arg3)
      • inet6_rthdr_lasthop

        public static int inet6_rthdr_lasthop​(cmsghdr arg1,
                                              int arg2)
      • inet6_rthdr_segments

        public static int inet6_rthdr_segments​(cmsghdr arg1)
      • inet6_rthdr_getaddr

        public static org.moe.natj.general.ptr.VoidPtr inet6_rthdr_getaddr​(cmsghdr arg1,
                                                                           int arg2)
      • inet6_rthdr_getflags

        public static int inet6_rthdr_getflags​(cmsghdr arg1,
                                               int arg2)
      • inet6_opt_init

        public static int inet6_opt_init​(org.moe.natj.general.ptr.VoidPtr arg1,
                                         int arg2)
      • inet6_opt_append

        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)
      • inet6_opt_finish

        public static int inet6_opt_finish​(org.moe.natj.general.ptr.VoidPtr arg1,
                                           int arg2,
                                           int arg3)
      • inet6_opt_set_val

        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)
      • inet6_opt_next

        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)
      • inet6_opt_find

        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)
      • inet6_opt_get_val

        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)
      • inet6_rth_space

        public static int inet6_rth_space​(int arg1,
                                          int arg2)
      • inet6_rth_init

        public static org.moe.natj.general.ptr.VoidPtr inet6_rth_init​(org.moe.natj.general.ptr.VoidPtr arg1,
                                                                      int arg2,
                                                                      int arg3,
                                                                      int arg4)
      • inet6_rth_add

        public static int inet6_rth_add​(org.moe.natj.general.ptr.VoidPtr arg1,
                                        org.moe.natj.general.ptr.VoidPtr arg2)
      • inet6_rth_reverse

        public static int inet6_rth_reverse​(org.moe.natj.general.ptr.ConstVoidPtr arg1,
                                            org.moe.natj.general.ptr.VoidPtr arg2)
      • inet6_rth_segments

        public static int inet6_rth_segments​(org.moe.natj.general.ptr.ConstVoidPtr arg1)
      • inet6_rth_getaddr

        public static org.moe.natj.general.ptr.VoidPtr inet6_rth_getaddr​(org.moe.natj.general.ptr.ConstVoidPtr arg1,
                                                                         int arg2)
      • bindresvport

        public static int bindresvport​(int arg1,
                                       sockaddr_in arg2)
      • bindresvport_sa

        public static int bindresvport_sa​(int arg1,
                                          sockaddr arg2)
      • optarg

        public static org.moe.natj.general.ptr.BytePtr optarg()
        getopt(3) external variables
      • optind

        public static int optind()
      • opterr

        public static int opterr()
      • optopt

        public static int optopt()
      • suboptarg

        public static org.moe.natj.general.ptr.BytePtr suboptarg()
        getsubopt(3) external variable
      • optreset

        public static int optreset()
      • KERNEL_SECURITY_TOKEN

        public static security_token_t KERNEL_SECURITY_TOKEN()
      • KERNEL_AUDIT_TOKEN

        public static audit_token_t KERNEL_AUDIT_TOKEN()
      • signgam

        public static int signgam()
      • _DefaultRuneLocale

        public static _RuneLocale _DefaultRuneLocale()
      • _CurrentRuneLocale

        public static _RuneLocale _CurrentRuneLocale()
      • __stdinp

        public static FILE __stdinp()
      • __stdoutp

        public static FILE __stdoutp()
      • __stderrp

        public static FILE __stderrp()
      • sys_nerr

        public static int sys_nerr()
        perror(3) external variables
      • sys_errlist

        public static org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.ConstBytePtr> sys_errlist()
      • __mb_cur_max

        public static int __mb_cur_max()
      • tzname

        public static org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> tzname()
      • getdate_err

        public static int getdate_err()
      • timezone

        public static long timezone()
      • daylight

        public static int daylight()
      • timingsafe_bcmp

        public static int timingsafe_bcmp​(org.moe.natj.general.ptr.ConstVoidPtr __b1,
                                          org.moe.natj.general.ptr.ConstVoidPtr __b2,
                                          long __len)
      • vsha1h_u32

        public static int vsha1h_u32​(int __p0)
      • vabdd_f64

        public static double vabdd_f64​(double __p0,
                                       double __p1)
      • vabds_f32

        public static float vabds_f32​(float __p0,
                                      float __p1)
      • vabsd_s64

        public static long vabsd_s64​(long __p0)
      • vaddd_u64

        public static long vaddd_u64​(long __p0,
                                     long __p1)
      • vaddd_s64

        public static long vaddd_s64​(long __p0,
                                     long __p1)
      • vcaged_f64

        public static long vcaged_f64​(double __p0,
                                      double __p1)
      • vcages_f32

        public static int vcages_f32​(float __p0,
                                     float __p1)
      • vcagtd_f64

        public static long vcagtd_f64​(double __p0,
                                      double __p1)
      • vcagts_f32

        public static int vcagts_f32​(float __p0,
                                     float __p1)
      • vcaled_f64

        public static long vcaled_f64​(double __p0,
                                      double __p1)
      • vcales_f32

        public static int vcales_f32​(float __p0,
                                     float __p1)
      • vcaltd_f64

        public static long vcaltd_f64​(double __p0,
                                      double __p1)
      • vcalts_f32

        public static int vcalts_f32​(float __p0,
                                     float __p1)
      • vceqd_u64

        public static long vceqd_u64​(long __p0,
                                     long __p1)
      • vceqd_s64

        public static long vceqd_s64​(long __p0,
                                     long __p1)
      • vceqd_f64

        public static long vceqd_f64​(double __p0,
                                     double __p1)
      • vceqs_f32

        public static int vceqs_f32​(float __p0,
                                    float __p1)
      • vceqzd_u64

        public static long vceqzd_u64​(long __p0)
      • vceqzd_s64

        public static long vceqzd_s64​(long __p0)
      • vceqzd_f64

        public static long vceqzd_f64​(double __p0)
      • vceqzs_f32

        public static int vceqzs_f32​(float __p0)
      • vcged_s64

        public static long vcged_s64​(long __p0,
                                     long __p1)
      • vcged_u64

        public static long vcged_u64​(long __p0,
                                     long __p1)
      • vcged_f64

        public static long vcged_f64​(double __p0,
                                     double __p1)
      • vcges_f32

        public static int vcges_f32​(float __p0,
                                    float __p1)
      • vcgezd_s64

        public static long vcgezd_s64​(long __p0)
      • vcgezd_f64

        public static long vcgezd_f64​(double __p0)
      • vcgezs_f32

        public static int vcgezs_f32​(float __p0)
      • vcgtd_s64

        public static long vcgtd_s64​(long __p0,
                                     long __p1)
      • vcgtd_u64

        public static long vcgtd_u64​(long __p0,
                                     long __p1)
      • vcgtd_f64

        public static long vcgtd_f64​(double __p0,
                                     double __p1)
      • vcgts_f32

        public static int vcgts_f32​(float __p0,
                                    float __p1)
      • vcgtzd_s64

        public static long vcgtzd_s64​(long __p0)
      • vcgtzd_f64

        public static long vcgtzd_f64​(double __p0)
      • vcgtzs_f32

        public static int vcgtzs_f32​(float __p0)
      • vcled_u64

        public static long vcled_u64​(long __p0,
                                     long __p1)
      • vcled_s64

        public static long vcled_s64​(long __p0,
                                     long __p1)
      • vcled_f64

        public static long vcled_f64​(double __p0,
                                     double __p1)
      • vcles_f32

        public static int vcles_f32​(float __p0,
                                    float __p1)
      • vclezd_s64

        public static long vclezd_s64​(long __p0)
      • vclezd_f64

        public static long vclezd_f64​(double __p0)
      • vclezs_f32

        public static int vclezs_f32​(float __p0)
      • vcltd_u64

        public static long vcltd_u64​(long __p0,
                                     long __p1)
      • vcltd_s64

        public static long vcltd_s64​(long __p0,
                                     long __p1)
      • vcltd_f64

        public static long vcltd_f64​(double __p0,
                                     double __p1)
      • vclts_f32

        public static int vclts_f32​(float __p0,
                                    float __p1)
      • vcltzd_s64

        public static long vcltzd_s64​(long __p0)
      • vcltzd_f64

        public static long vcltzd_f64​(double __p0)
      • vcltzs_f32

        public static int vcltzs_f32​(float __p0)
      • vcvts_f32_s32

        public static float vcvts_f32_s32​(int __p0)
      • vcvts_f32_u32

        public static float vcvts_f32_u32​(int __p0)
      • vcvtd_f64_s64

        public static double vcvtd_f64_s64​(long __p0)
      • vcvtd_f64_u64

        public static double vcvtd_f64_u64​(long __p0)
      • vcvts_s32_f32

        public static int vcvts_s32_f32​(float __p0)
      • vcvtd_s64_f64

        public static long vcvtd_s64_f64​(double __p0)
      • vcvts_u32_f32

        public static int vcvts_u32_f32​(float __p0)
      • vcvtd_u64_f64

        public static long vcvtd_u64_f64​(double __p0)
      • vcvtas_s32_f32

        public static int vcvtas_s32_f32​(float __p0)
      • vcvtad_s64_f64

        public static long vcvtad_s64_f64​(double __p0)
      • vcvtas_u32_f32

        public static int vcvtas_u32_f32​(float __p0)
      • vcvtad_u64_f64

        public static long vcvtad_u64_f64​(double __p0)
      • vcvtms_s32_f32

        public static int vcvtms_s32_f32​(float __p0)
      • vcvtmd_s64_f64

        public static long vcvtmd_s64_f64​(double __p0)
      • vcvtms_u32_f32

        public static int vcvtms_u32_f32​(float __p0)
      • vcvtmd_u64_f64

        public static long vcvtmd_u64_f64​(double __p0)
      • vcvtns_s32_f32

        public static int vcvtns_s32_f32​(float __p0)
      • vcvtnd_s64_f64

        public static long vcvtnd_s64_f64​(double __p0)
      • vcvtns_u32_f32

        public static int vcvtns_u32_f32​(float __p0)
      • vcvtnd_u64_f64

        public static long vcvtnd_u64_f64​(double __p0)
      • vcvtps_s32_f32

        public static int vcvtps_s32_f32​(float __p0)
      • vcvtpd_s64_f64

        public static long vcvtpd_s64_f64​(double __p0)
      • vcvtps_u32_f32

        public static int vcvtps_u32_f32​(float __p0)
      • vcvtpd_u64_f64

        public static long vcvtpd_u64_f64​(double __p0)
      • vcvtxd_f32_f64

        public static float vcvtxd_f32_f64​(double __p0)
      • vmulxd_f64

        public static double vmulxd_f64​(double __p0,
                                        double __p1)
      • vmulxs_f32

        public static float vmulxs_f32​(float __p0,
                                       float __p1)
      • vnegd_s64

        public static long vnegd_s64​(long __p0)
      • vqabsb_s8

        public static byte vqabsb_s8​(byte __p0)
      • vqabss_s32

        public static int vqabss_s32​(int __p0)
      • vqabsd_s64

        public static long vqabsd_s64​(long __p0)
      • vqabsh_s16

        public static short vqabsh_s16​(short __p0)
      • vqaddb_u8

        public static byte vqaddb_u8​(byte __p0,
                                     byte __p1)
      • vqadds_u32

        public static int vqadds_u32​(int __p0,
                                     int __p1)
      • vqaddd_u64

        public static long vqaddd_u64​(long __p0,
                                      long __p1)
      • vqaddh_u16

        public static char vqaddh_u16​(char __p0,
                                      char __p1)
      • vqaddb_s8

        public static byte vqaddb_s8​(byte __p0,
                                     byte __p1)
      • vqadds_s32

        public static int vqadds_s32​(int __p0,
                                     int __p1)
      • vqaddd_s64

        public static long vqaddd_s64​(long __p0,
                                      long __p1)
      • vqaddh_s16

        public static short vqaddh_s16​(short __p0,
                                       short __p1)
      • vqdmlals_s32

        public static long vqdmlals_s32​(long __p0,
                                        int __p1,
                                        int __p2)
      • vqdmlalh_s16

        public static int vqdmlalh_s16​(int __p0,
                                       short __p1,
                                       short __p2)
      • vqdmlsls_s32

        public static long vqdmlsls_s32​(long __p0,
                                        int __p1,
                                        int __p2)
      • vqdmlslh_s16

        public static int vqdmlslh_s16​(int __p0,
                                       short __p1,
                                       short __p2)
      • vqdmulhs_s32

        public static int vqdmulhs_s32​(int __p0,
                                       int __p1)
      • vqdmulhh_s16

        public static short vqdmulhh_s16​(short __p0,
                                         short __p1)
      • vqdmulls_s32

        public static long vqdmulls_s32​(int __p0,
                                        int __p1)
      • vqdmullh_s16

        public static int vqdmullh_s16​(short __p0,
                                       short __p1)
      • vqmovns_s32

        public static short vqmovns_s32​(int __p0)
      • vqmovnd_s64

        public static int vqmovnd_s64​(long __p0)
      • vqmovnh_s16

        public static byte vqmovnh_s16​(short __p0)
      • vqmovns_u32

        public static char vqmovns_u32​(int __p0)
      • vqmovnd_u64

        public static int vqmovnd_u64​(long __p0)
      • vqmovnh_u16

        public static byte vqmovnh_u16​(char __p0)
      • vqmovuns_s32

        public static short vqmovuns_s32​(int __p0)
      • vqmovund_s64

        public static int vqmovund_s64​(long __p0)
      • vqmovunh_s16

        public static byte vqmovunh_s16​(short __p0)
      • vqnegb_s8

        public static byte vqnegb_s8​(byte __p0)
      • vqnegs_s32

        public static int vqnegs_s32​(int __p0)
      • vqnegd_s64

        public static long vqnegd_s64​(long __p0)
      • vqnegh_s16

        public static short vqnegh_s16​(short __p0)
      • vqrdmulhs_s32

        public static int vqrdmulhs_s32​(int __p0,
                                        int __p1)
      • vqrdmulhh_s16

        public static short vqrdmulhh_s16​(short __p0,
                                          short __p1)
      • vqrshlb_u8

        public static byte vqrshlb_u8​(byte __p0,
                                      byte __p1)
      • vqrshls_u32

        public static int vqrshls_u32​(int __p0,
                                      int __p1)
      • vqrshld_u64

        public static long vqrshld_u64​(long __p0,
                                       long __p1)
      • vqrshlh_u16

        public static char vqrshlh_u16​(char __p0,
                                       char __p1)
      • vqrshlb_s8

        public static byte vqrshlb_s8​(byte __p0,
                                      byte __p1)
      • vqrshls_s32

        public static int vqrshls_s32​(int __p0,
                                      int __p1)
      • vqrshld_s64

        public static long vqrshld_s64​(long __p0,
                                       long __p1)
      • vqrshlh_s16

        public static short vqrshlh_s16​(short __p0,
                                        short __p1)
      • vqshlb_u8

        public static byte vqshlb_u8​(byte __p0,
                                     byte __p1)
      • vqshls_u32

        public static int vqshls_u32​(int __p0,
                                     int __p1)
      • vqshld_u64

        public static long vqshld_u64​(long __p0,
                                      long __p1)
      • vqshlh_u16

        public static char vqshlh_u16​(char __p0,
                                      char __p1)
      • vqshlb_s8

        public static byte vqshlb_s8​(byte __p0,
                                     byte __p1)
      • vqshls_s32

        public static int vqshls_s32​(int __p0,
                                     int __p1)
      • vqshld_s64

        public static long vqshld_s64​(long __p0,
                                      long __p1)
      • vqshlh_s16

        public static short vqshlh_s16​(short __p0,
                                       short __p1)
      • vqsubb_u8

        public static byte vqsubb_u8​(byte __p0,
                                     byte __p1)
      • vqsubs_u32

        public static int vqsubs_u32​(int __p0,
                                     int __p1)
      • vqsubd_u64

        public static long vqsubd_u64​(long __p0,
                                      long __p1)
      • vqsubh_u16

        public static char vqsubh_u16​(char __p0,
                                      char __p1)
      • vqsubb_s8

        public static byte vqsubb_s8​(byte __p0,
                                     byte __p1)
      • vqsubs_s32

        public static int vqsubs_s32​(int __p0,
                                     int __p1)
      • vqsubd_s64

        public static long vqsubd_s64​(long __p0,
                                      long __p1)
      • vqsubh_s16

        public static short vqsubh_s16​(short __p0,
                                       short __p1)
      • vrecped_f64

        public static double vrecped_f64​(double __p0)
      • vrecpes_f32

        public static float vrecpes_f32​(float __p0)
      • vrecpsd_f64

        public static double vrecpsd_f64​(double __p0,
                                         double __p1)
      • vrecpss_f32

        public static float vrecpss_f32​(float __p0,
                                        float __p1)
      • vrecpxd_f64

        public static double vrecpxd_f64​(double __p0)
      • vrecpxs_f32

        public static float vrecpxs_f32​(float __p0)
      • vrshld_u64

        public static long vrshld_u64​(long __p0,
                                      long __p1)
      • vrshld_s64

        public static long vrshld_s64​(long __p0,
                                      long __p1)
      • vrsqrted_f64

        public static double vrsqrted_f64​(double __p0)
      • vrsqrtes_f32

        public static float vrsqrtes_f32​(float __p0)
      • vrsqrtsd_f64

        public static double vrsqrtsd_f64​(double __p0,
                                          double __p1)
      • vrsqrtss_f32

        public static float vrsqrtss_f32​(float __p0,
                                         float __p1)
      • vshld_u64

        public static long vshld_u64​(long __p0,
                                     long __p1)
      • vshld_s64

        public static long vshld_s64​(long __p0,
                                     long __p1)
      • vsqaddb_u8

        public static byte vsqaddb_u8​(byte __p0,
                                      byte __p1)
      • vsqadds_u32

        public static int vsqadds_u32​(int __p0,
                                      int __p1)
      • vsqaddd_u64

        public static long vsqaddd_u64​(long __p0,
                                       long __p1)
      • vsqaddh_u16

        public static char vsqaddh_u16​(char __p0,
                                       char __p1)
      • vsubd_u64

        public static long vsubd_u64​(long __p0,
                                     long __p1)
      • vsubd_s64

        public static long vsubd_s64​(long __p0,
                                     long __p1)
      • vtstd_u64

        public static long vtstd_u64​(long __p0,
                                     long __p1)
      • vtstd_s64

        public static long vtstd_s64​(long __p0,
                                     long __p1)
      • vuqaddb_s8

        public static byte vuqaddb_s8​(byte __p0,
                                      byte __p1)
      • vuqadds_s32

        public static int vuqadds_s32​(int __p0,
                                      int __p1)
      • vuqaddd_s64

        public static long vuqaddd_s64​(long __p0,
                                       long __p1)
      • vuqaddh_s16

        public static short vuqaddh_s16​(short __p0,
                                        short __p1)
      • setattrlistat

        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)
      • mkdtempat_np

        public static org.moe.natj.general.ptr.BytePtr mkdtempat_np​(int dfd,
                                                                    org.moe.natj.general.ptr.BytePtr path)
      • mkstempsat_np

        public static int mkstempsat_np​(int dfd,
                                        org.moe.natj.general.ptr.BytePtr path,
                                        int slen)
      • mkostempsat_np

        public static int mkostempsat_np​(int dfd,
                                         org.moe.natj.general.ptr.BytePtr path,
                                         int slen,
                                         int oflags)
      • fmemopen

        public static FILE fmemopen​(org.moe.natj.general.ptr.VoidPtr __buf,
                                    long __size,
                                    java.lang.String __mode)
      • open_memstream

        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)
      • audit

        public static int audit​(org.moe.natj.general.ptr.ConstVoidPtr arg1,
                                int arg2)
      • auditon

        public static int auditon​(int arg1,
                                  org.moe.natj.general.ptr.VoidPtr arg2,
                                  int arg3)
      • auditctl

        public static int auditctl​(java.lang.String arg1)
      • getauid

        public static int getauid​(org.moe.natj.general.ptr.IntPtr arg1)
      • setauid

        public static int setauid​(org.moe.natj.general.ptr.ConstIntPtr arg1)
      • getaudit_addr

        public static int getaudit_addr​(auditinfo_addr arg1,
                                        int arg2)
      • setaudit_addr

        public static int setaudit_addr​(auditinfo_addr arg1,
                                        int arg2)
      • getaudit

        @Deprecated
        public static int getaudit​(auditinfo arg1)
        Deprecated.
        getaudit()/setaudit() are deprecated and have been replaced with wrappers to the getaudit_addr()/setaudit_addr() syscalls above.
      • setaudit

        @Deprecated
        public static int setaudit​(auditinfo arg1)
        Deprecated.
      • audit_session_self

        public static int audit_session_self()
      • audit_session_join

        public static int audit_session_join​(int port)
      • audit_session_port

        public static int audit_session_port​(int asid,
                                             org.moe.natj.general.ptr.IntPtr portname)
      • simd_muladd

        public 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.
      • simd_sign

        public static float simd_sign​(float x)
        -1 if x is negative, +1 if x is positive, and 0 otherwise.
      • simd_mix

        public 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
      • simd_precise_recip

        public static float simd_precise_recip​(float x)
        A good approximation to 1/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).
      • simd_fast_recip

        public static float simd_fast_recip​(float x)
        A fast approximation to 1/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.
      • simd_recip

        public static float simd_recip​(float x)
        An approximation to 1/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.
      • simd_precise_rsqrt

        public static float simd_precise_rsqrt​(float x)
        A good approximation to 1/sqrt(x). This function is accurate to a few units in the last place (ULPs).
      • simd_fast_rsqrt

        public static float simd_fast_rsqrt​(float x)
        A fast approximation to 1/sqrt(x). This function is accurate to at least 11 bits for float and 22 bits for double.
      • simd_rsqrt

        public static float simd_rsqrt​(float x)
        An approximation to 1/sqrt(x). This function maps to simd_fast_recip(x) if -ffast-math is specified, and to simd_precise_recip(x) otherwise.
      • simd_fract

        public static float simd_fract​(float x)
        The "fractional part" of x, lying in the range [0, 1). floor(x) + fract(x) is *approximately* equal to x. If x is positive and finite, then the two values are exactly equal.
      • simd_step

        public static float simd_step​(float edge,
                                      float x)
        0 if x < edge, and 1 otherwise. Use a scalar value for edge if you want to apply the same threshold to all lanes.
      • simd_smoothstep

        public static float simd_smoothstep​(float edge0,
                                            float edge1,
                                            float x)
        Interpolates smoothly between 0 at edge0 and 1 at edge1 You can use a scalar value for edge0 and edge1 if you want to clamp all lanes at the same points.
      • dispatch_set_qos_class_floor

        public static void dispatch_set_qos_class_floor​(NSObject object,
                                                        int qos_class,
                                                        int relative_priority)
        [@function] dispatch_set_qos_class_floor 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.
        Parameters:
        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.
      • dispatch_async_and_wait_f

        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)
        [@function] dispatch_async_and_wait_f Submits a function for synchronous execution on a dispatch queue. See dispatch_async_and_wait() for details.
        Parameters:
        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.
      • dispatch_barrier_async_and_wait_f

        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)
        [@function] dispatch_barrier_async_and_wait_f 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.
        Parameters:
        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.
      • dispatch_workloop_create

        public static NSObject dispatch_workloop_create​(java.lang.String label)
        [@function] dispatch_workloop_create Creates a new dispatch workloop to which workitems may be submitted.
        Parameters:
        label - A string label to attach to the workloop.
        Returns:
        The newly created dispatch workloop.
      • dispatch_workloop_create_inactive

        public static NSObject dispatch_workloop_create_inactive​(java.lang.String label)
        [@function] dispatch_workloop_create_inactive 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.
        Parameters:
        label - A string label to attach to the workloop.
        Returns:
        The newly created dispatch workloop.
      • dispatch_workloop_set_autorelease_frequency

        public static void dispatch_workloop_set_autorelease_frequency​(NSObject workloop,
                                                                       long frequency)
        [@function] dispatch_workloop_set_autorelease_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.
        Parameters:
        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.
      • ptsname_r

        public static int ptsname_r​(int fildes,
                                    org.moe.natj.general.ptr.BytePtr buffer,
                                    long buflen)
      • rpmatch

        public static int rpmatch​(java.lang.String arg1)
      • NXSwapShort

        @Deprecated
        public static char NXSwapShort​(char inv)
        Deprecated.
      • NXSwapInt

        @Deprecated
        public static int NXSwapInt​(int inv)
        Deprecated.
      • NXSwapLong

        @Deprecated
        public static long NXSwapLong​(long inv)
        Deprecated.
      • NXSwapLongLong

        @Deprecated
        public static long NXSwapLongLong​(long inv)
        Deprecated.
      • NXConvertHostFloatToSwapped

        @Deprecated
        public static long NXConvertHostFloatToSwapped​(float x)
        Deprecated.
      • NXConvertSwappedFloatToHost

        @Deprecated
        public static float NXConvertSwappedFloatToHost​(long x)
        Deprecated.
      • NXConvertHostDoubleToSwapped

        @Deprecated
        public static long NXConvertHostDoubleToSwapped​(double x)
        Deprecated.
      • NXConvertSwappedDoubleToHost

        @Deprecated
        public static double NXConvertSwappedDoubleToHost​(long x)
        Deprecated.
      • NXSwapFloat

        @Deprecated
        public static long NXSwapFloat​(long x)
        Deprecated.
      • NXSwapDouble

        @Deprecated
        public static long NXSwapDouble​(long x)
        Deprecated.
      • NXHostByteOrder

        public static int NXHostByteOrder()
      • NXSwapBigShortToHost

        @Deprecated
        public static char NXSwapBigShortToHost​(char x)
        Deprecated.
      • NXSwapBigIntToHost

        @Deprecated
        public static int NXSwapBigIntToHost​(int x)
        Deprecated.
      • NXSwapBigLongToHost

        @Deprecated
        public static long NXSwapBigLongToHost​(long x)
        Deprecated.
      • NXSwapBigLongLongToHost

        @Deprecated
        public static long NXSwapBigLongLongToHost​(long x)
        Deprecated.
      • NXSwapBigDoubleToHost

        @Deprecated
        public static double NXSwapBigDoubleToHost​(long x)
        Deprecated.
      • NXSwapBigFloatToHost

        @Deprecated
        public static float NXSwapBigFloatToHost​(long x)
        Deprecated.
      • NXSwapHostShortToBig

        @Deprecated
        public static char NXSwapHostShortToBig​(char x)
        Deprecated.
      • NXSwapHostIntToBig

        @Deprecated
        public static int NXSwapHostIntToBig​(int x)
        Deprecated.
      • NXSwapHostLongToBig

        @Deprecated
        public static long NXSwapHostLongToBig​(long x)
        Deprecated.
      • NXSwapHostLongLongToBig

        @Deprecated
        public static long NXSwapHostLongLongToBig​(long x)
        Deprecated.
      • NXSwapHostDoubleToBig

        @Deprecated
        public static long NXSwapHostDoubleToBig​(double x)
        Deprecated.
      • NXSwapHostFloatToBig

        @Deprecated
        public static long NXSwapHostFloatToBig​(float x)
        Deprecated.
      • NXSwapLittleShortToHost

        @Deprecated
        public static char NXSwapLittleShortToHost​(char x)
        Deprecated.
      • NXSwapLittleIntToHost

        @Deprecated
        public static int NXSwapLittleIntToHost​(int x)
        Deprecated.
      • NXSwapLittleLongToHost

        @Deprecated
        public static long NXSwapLittleLongToHost​(long x)
        Deprecated.
      • NXSwapLittleLongLongToHost

        @Deprecated
        public static long NXSwapLittleLongLongToHost​(long x)
        Deprecated.
      • NXSwapLittleDoubleToHost

        @Deprecated
        public static double NXSwapLittleDoubleToHost​(long x)
        Deprecated.
      • NXSwapLittleFloatToHost

        @Deprecated
        public static float NXSwapLittleFloatToHost​(long x)
        Deprecated.
      • NXSwapHostShortToLittle

        @Deprecated
        public static char NXSwapHostShortToLittle​(char x)
        Deprecated.
      • NXSwapHostIntToLittle

        @Deprecated
        public static int NXSwapHostIntToLittle​(int x)
        Deprecated.
      • NXSwapHostLongToLittle

        @Deprecated
        public static long NXSwapHostLongToLittle​(long x)
        Deprecated.
      • NXSwapHostLongLongToLittle

        @Deprecated
        public static long NXSwapHostLongLongToLittle​(long x)
        Deprecated.
      • NXSwapHostDoubleToLittle

        @Deprecated
        public static long NXSwapHostDoubleToLittle​(double x)
        Deprecated.
      • NXSwapHostFloatToLittle

        @Deprecated
        public static long NXSwapHostFloatToLittle​(float x)
        Deprecated.
      • adjtime

        public static int adjtime​(timeval arg1,
                                  timeval arg2)
      • futimes

        public static int futimes​(int arg1,
                                  timeval arg2)
      • lutimes

        public static int lutimes​(java.lang.String arg1,
                                  timeval arg2)
      • settimeofday

        public static int settimeofday​(timeval arg1,
                                       timezone arg2)
      • getitimer

        public static int getitimer​(int arg1,
                                    itimerval arg2)
      • gettimeofday

        public static int gettimeofday​(timeval arg1,
                                       org.moe.natj.general.ptr.VoidPtr arg2)
      • utimes

        public static int utimes​(java.lang.String arg1,
                                 timeval arg2)
      • os_trace_info_enabled

        public static boolean os_trace_info_enabled()
        [@function] 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]); }
        Returns:
        Returns true if info types are enabled.
      • os_trace_debug_enabled

        public static boolean os_trace_debug_enabled()
        [@function] 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]); }
        Returns:
        Returns true if debug mode is enabled.
      • os_trace_type_enabled

        public static boolean os_trace_type_enabled​(byte type)
        [@function] os_trace_type_enabled Avoid unnecessary work for a trace point by checking a specific type Avoid unnecessary work for a trace point by checking a specific type
        Returns:
        Returns true if type is enabled.
      • _os_trace_with_buffer

        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)
        [@function] _os_trace_with_buffer Internal function to support pre-encoded buffer.
      • os_log_create

        public static NSObject os_log_create​(java.lang.String subsystem,
                                             java.lang.String category)
        [@function] os_log_create 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.
        Parameters:
        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.
        Returns:
        Returns an os_log_t value to be passed to other os_log API calls. This should be called once at log initialization and rely on system to detect changes to settings. This object should be released when no longer used via os_release or -[release] method. A value will always be returned to allow for dynamic enablement.
      • os_log_type_enabled

        public static boolean os_log_type_enabled​(NSObject oslog,
                                                  byte type)
        [@function] os_log_type_enabled Evaluate if a specific log type is enabled before doing work Evaluate if a specific log type is enabled before doing work
        Parameters:
        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.
        Returns:
        Will return a boolean.
      • _os_log_impl

        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)
        [@function] _os_log_impl Internal function that takes compiler generated encoding and captures the necessary content.
      • _os_log_debug_impl

        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)
        [@function] _os_log_debug_impl Internal function that is taken for any debug log emitted in the system.
      • _os_log_error_impl

        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)
        [@function] _os_log_error_impl Internal function that is taken for any error emitted in the system.
      • _os_log_fault_impl

        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)
        [@function] _os_log_fault_impl Internal function that is taken for any fault emitted in the system.
      • _os_log_internal

        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)
        Support for older iteration of API for source compatibility only...
      • _os_log_create

        public static NSObject _os_log_create​(org.moe.natj.general.ptr.VoidPtr dso,
                                              java.lang.String subsystem,
                                              java.lang.String category)
      • os_log_is_enabled

        public static boolean os_log_is_enabled​(NSObject log)
      • os_log_is_debug_enabled

        public static boolean os_log_is_debug_enabled​(NSObject log)
      • _os_log_sensitive_deprecated

        public static void _os_log_sensitive_deprecated()
      • os_unfair_lock_assert_owner

        public static void os_unfair_lock_assert_owner​(os_unfair_lock_s lock)
        [@function] os_unfair_lock_assert_owner 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.
        Parameters:
        lock - Pointer to an os_unfair_lock.
      • os_unfair_lock_assert_not_owner

        public static void os_unfair_lock_assert_not_owner​(os_unfair_lock_s lock)
        [@function] os_unfair_lock_assert_not_owner 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.
        Parameters:
        lock - Pointer to an os_unfair_lock.
      • DNSServiceGetProperty

        public static int DNSServiceGetProperty​(java.lang.String property,
                                                org.moe.natj.general.ptr.VoidPtr result,
                                                org.moe.natj.general.ptr.IntPtr size)
        DNSServiceGetProperty() Parameters: 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.
      • DNSServiceRefSockFD

        public static int DNSServiceRefSockFD​(DNSServiceRef sdRef)
        DNSServiceRefSockFD() 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.
      • DNSServiceProcessResult

        public static int DNSServiceProcessResult​(DNSServiceRef sdRef)
        DNSServiceProcessResult() 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.
      • DNSServiceRefDeallocate

        public static void DNSServiceRefDeallocate​(DNSServiceRef sdRef)
        DNSServiceRefDeallocate() 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.
      • DNSServiceEnumerateDomains

        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)
        DNSServiceEnumerateDomains() Parameters: 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).
      • DNSServiceRegister

        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)
        DNSServiceRegister() Parameters: 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. ... Passing NULL for the txtRecord is allowed as a synonym for txtLen=1, txtRecord="", i.e. it creates a TXT record of length one containing a single empty string. RFC 1035 doesn't allow a TXT record to contain *zero* strings, so a single empty string is the smallest legal DNS TXT record. As with the other parameters, the DNSServiceRegister call copies the txtRecord data; e.g. if you allocated the storage for the txtRecord parameter with malloc() then you can safely free that memory right after the DNSServiceRegister call returns. 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).
      • DNSServiceAddRecord

        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)
        DNSServiceAddRecord() 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).
      • DNSServiceUpdateRecord

        public static int DNSServiceUpdateRecord​(DNSServiceRef sdRef,
                                                 DNSRecordRef RecordRef,
                                                 int flags,
                                                 char rdlen,
                                                 org.moe.natj.general.ptr.ConstVoidPtr rdata,
                                                 int ttl)
        DNSServiceUpdateRecord 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.
      • DNSServiceRemoveRecord

        public static int DNSServiceRemoveRecord​(DNSServiceRef sdRef,
                                                 DNSRecordRef RecordRef,
                                                 int flags)
        DNSServiceRemoveRecord 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.
      • DNSServiceBrowse

        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)
        DNSServiceBrowse() Parameters: 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).
      • DNSServiceResolve

        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)
        DNSServiceResolve() Parameters 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).
      • DNSServiceQueryRecord

        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)
        DNSServiceQueryRecord() Parameters: 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).
      • DNSServiceGetAddrInfo

        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)
        DNSServiceGetAddrInfo() Parameters: 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.
      • DNSServiceCreateConnection

        public static int DNSServiceCreateConnection​(org.moe.natj.general.ptr.Ptr<DNSServiceRef> sdRef)
        DNSServiceCreateConnection() 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).
      • DNSServiceRegisterRecord

        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)
        DNSServiceRegisterRecord() Parameters: 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: One of either kDNSServiceFlagsShared, kDNSServiceFlagsUnique or kDNSServiceFlagsKnownUnique must be set. 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).
      • DNSServiceReconfirmRecord

        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)
        DNSServiceReconfirmRecord 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.
      • PeerConnectionRelease

        public static int PeerConnectionRelease​(int flags,
                                                java.lang.String name,
                                                java.lang.String regtype,
                                                java.lang.String domain)
        PeerConnectionRelease() Parameters 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.
      • DNSServiceNATPortMappingCreate

        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)
        DNSServiceNATPortMappingCreate() Parameters: 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.
      • DNSServiceConstructFullName

        public static int DNSServiceConstructFullName​(org.moe.natj.general.ptr.BytePtr fullName,
                                                      java.lang.String service,
                                                      java.lang.String regtype,
                                                      java.lang.String domain)
        DNSServiceConstructFullName() 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.
      • TXTRecordCreate

        public static void TXTRecordCreate​(org.moe.natj.general.ptr.VoidPtr txtRecord,
                                           char bufferLen,
                                           org.moe.natj.general.ptr.VoidPtr buffer)
        TXTRecordCreate() 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.
      • TXTRecordDeallocate

        public static void TXTRecordDeallocate​(org.moe.natj.general.ptr.VoidPtr txtRecord)
        TXTRecordDeallocate() 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().
      • TXTRecordSetValue

        public static int TXTRecordSetValue​(org.moe.natj.general.ptr.VoidPtr txtRecord,
                                            java.lang.String key,
                                            byte valueSize,
                                            org.moe.natj.general.ptr.ConstVoidPtr value)
        TXTRecordSetValue() 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.
      • TXTRecordRemoveValue

        public static int TXTRecordRemoveValue​(org.moe.natj.general.ptr.VoidPtr txtRecord,
                                               java.lang.String key)
        TXTRecordRemoveValue() 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.
      • TXTRecordGetLength

        public static char TXTRecordGetLength​(org.moe.natj.general.ptr.VoidPtr txtRecord)
        TXTRecordGetLength() 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.
      • TXTRecordGetBytesPtr

        public static org.moe.natj.general.ptr.ConstVoidPtr TXTRecordGetBytesPtr​(org.moe.natj.general.ptr.VoidPtr txtRecord)
        TXTRecordGetBytesPtr() 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().
      • TXTRecordContainsKey

        public static int TXTRecordContainsKey​(char txtLen,
                                               org.moe.natj.general.ptr.ConstVoidPtr txtRecord,
                                               java.lang.String key)
        TXTRecordContainsKey() 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.
      • TXTRecordGetValuePtr

        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)
        TXTRecordGetValuePtr() 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.
      • TXTRecordGetCount

        public static char TXTRecordGetCount​(char txtLen,
                                             org.moe.natj.general.ptr.ConstVoidPtr txtRecord)
        TXTRecordGetCount() 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.
      • TXTRecordGetItemAtIndex

        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)
        TXTRecordGetItemAtIndex() 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.
      • DNSServiceSetDispatchQueue

        public static int DNSServiceSetDispatchQueue​(DNSServiceRef service,
                                                     NSObject queue)
        DNSServiceSetDispatchQueue 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
      • __dso_handle

        public static mach_header __dso_handle()
      • os_signpost_id_make_with_pointer

        public static long os_signpost_id_make_with_pointer​(NSObject log,
                                                            org.moe.natj.general.ptr.ConstVoidPtr ptr)
        [@function] os_signpost_id_make_with_pointer 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.
        Parameters:
        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.
        Returns:
        Returns a valid os_signpost_id_t. Returns OS_SIGNPOST_ID_NULL if signposts are turned off. Returns OS_SIGNPOST_ID_INVALID if the log handle is system-scoped.
      • os_signpost_id_generate

        public static long os_signpost_id_generate​(NSObject log)
        [@function] os_signpost_id_generate 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.
        Parameters:
        log - Log handle previously created with os_log_create.
        Returns:
        Returns a valid os_signpost_id_t. Returns OS_SIGNPOST_ID_NULL if signposts are disabled.
      • os_signpost_enabled

        public static boolean os_signpost_enabled​(NSObject log)
        [@function] os_signpost_enabled 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_*
        Parameters:
        log - Log handle previously created with os_log_create.
        Returns:
        Returns ‘true’ if signpost log messages are enabled.
      • _os_signpost_emit_with_name_impl

        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)
      • __darwin_check_fd_set_overflow

        public static int __darwin_check_fd_set_overflow​(int arg1,
                                                         org.moe.natj.general.ptr.ConstVoidPtr arg2,
                                                         int arg3)
      • __darwin_check_fd_set

        public static int __darwin_check_fd_set​(int _a,
                                                org.moe.natj.general.ptr.ConstVoidPtr _b)
      • __darwin_fd_set

        public static void __darwin_fd_set​(int _fd,
                                           fd_set _p)
      • __darwin_fd_clr

        public static void __darwin_fd_clr​(int _fd,
                                           fd_set _p)
      • object_getIndexedIvars

        public 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. [@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.
        Parameters:
        obj - An Objective-C object.
        Returns:
        A pointer to any extra bytes allocated with \e obj. If \e obj was not allocated with any extra bytes, then dereferencing the returned pointer is undefined.
      • aligned_alloc

        public static org.moe.natj.general.ptr.VoidPtr aligned_alloc​(long __alignment,
                                                                     long __size)
      • strtonum

        public static long strtonum​(java.lang.String __numstr,
                                    long __minval,
                                    long __maxval,
                                    java.lang.String[] __errstrp)
      • strsignal_r

        public static int strsignal_r​(int __sig,
                                      org.moe.natj.general.ptr.BytePtr __strsignalbuf,
                                      long __buflen)
      • os_workgroup_create_with_workgroup

        public static OS_os_workgroup os_workgroup_create_with_workgroup​(java.lang.String name,
                                                                         OS_os_workgroup wg)
        [@function] os_workgroup_create_with_workgroup 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.
        Parameters:
        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.
      • os_workgroup_join

        public static int os_workgroup_join​(OS_os_workgroup wg,
                                            os_workgroup_join_token_opaque_s token_out)
        [@function] os_workgroup_join Joins the current thread to the specified workgroup and populates the join token that has been passed in. This API is real-time safe.
        Parameters:
        wg - The workgroup that the current thread would like to join
        token_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
      • os_workgroup_leave

        public static void os_workgroup_leave​(OS_os_workgroup wg,
                                              os_workgroup_join_token_opaque_s token)
        [@function] os_workgroup_leave 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.
        Parameters:
        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().
      • os_workgroup_set_working_arena

        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)
        [@function] os_workgroup_set_working_arena 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.
        Parameters:
        wg - The workgroup to associate the working arena with
        arena - 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 any
      • os_workgroup_get_working_arena

        public 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 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.
        Parameters:
        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.
      • os_workgroup_cancel

        public static void os_workgroup_cancel​(OS_os_workgroup wg)
        [@function] os_workgroup_cancel 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.
        Parameters:
        wg - The workgroup that that the thread would like to cancel
      • os_workgroup_testcancel

        public static boolean os_workgroup_testcancel​(OS_os_workgroup wg)
        [@function] os_workgroup_testcancel Returns true if the workgroup object has been cancelled. See also os_workgroup_cancel
      • os_workgroup_max_parallel_threads

        public static int os_workgroup_max_parallel_threads​(OS_os_workgroup wg,
                                                            os_workgroup_mpt_attr_t attr)
        [@function] os_workgroup_max_parallel_threads 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.
        Parameters:
        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.
      • os_workgroup_interval_start

        public 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 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.
        Parameters:
        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 period
        deadline - 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 NULL
      • os_workgroup_interval_update

        public static int os_workgroup_interval_update​(OS_os_workgroup wg,
                                                       long deadline,
                                                       os_workgroup_interval_data_opaque_s data)
        [@function] os_workgroup_interval_update 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
        Parameters:
        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 NULL
      • os_workgroup_interval_finish

        public static int os_workgroup_interval_finish​(OS_os_workgroup wg,
                                                       os_workgroup_interval_data_opaque_s data)
        [@function] os_workgroup_interval_finish 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.
        Parameters:
        data - This field is currently unused and should be NULL
      • os_workgroup_parallel_create

        public static OS_os_workgroup os_workgroup_parallel_create​(java.lang.String name,
                                                                   os_workgroup_attr_opaque_s attr)
        [@function] os_workgroup_parallel_create 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().
        Parameters:
        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.
      • dispatch_workloop_set_os_workgroup

        public static void dispatch_workloop_set_os_workgroup​(NSObject workloop,
                                                              OS_os_workgroup workgroup)
        [@function] dispatch_workloop_set_os_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.
        Parameters:
        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.
      • __sigbits

        public static int __sigbits​(int __signo)
        List definitions after function declarations, or Reiser cpp gets upset.