12add0d91Sopenharmony_cipub type nto_job_t = ::sync_t;
22add0d91Sopenharmony_ci
32add0d91Sopenharmony_cis! {
42add0d91Sopenharmony_ci    pub struct intrspin {
52add0d91Sopenharmony_ci        pub value: ::c_uint, // volatile
62add0d91Sopenharmony_ci    }
72add0d91Sopenharmony_ci
82add0d91Sopenharmony_ci    pub struct iov_t {
92add0d91Sopenharmony_ci        pub iov_base: *mut ::c_void,  // union
102add0d91Sopenharmony_ci        pub iov_len: ::size_t,
112add0d91Sopenharmony_ci    }
122add0d91Sopenharmony_ci
132add0d91Sopenharmony_ci    pub struct _itimer {
142add0d91Sopenharmony_ci        pub nsec: u64,
152add0d91Sopenharmony_ci        pub interval_nsec: u64,
162add0d91Sopenharmony_ci    }
172add0d91Sopenharmony_ci
182add0d91Sopenharmony_ci    pub struct _msg_info64 {
192add0d91Sopenharmony_ci        pub nd: u32,
202add0d91Sopenharmony_ci        pub srcnd: u32,
212add0d91Sopenharmony_ci        pub pid: ::pid_t,
222add0d91Sopenharmony_ci        pub tid: i32,
232add0d91Sopenharmony_ci        pub chid: i32,
242add0d91Sopenharmony_ci        pub scoid: i32,
252add0d91Sopenharmony_ci        pub coid: i32,
262add0d91Sopenharmony_ci        pub priority: i16,
272add0d91Sopenharmony_ci        pub flags: i16,
282add0d91Sopenharmony_ci        pub msglen: isize,
292add0d91Sopenharmony_ci        pub srcmsglen: isize,
302add0d91Sopenharmony_ci        pub dstmsglen: isize,
312add0d91Sopenharmony_ci        pub type_id: u32,
322add0d91Sopenharmony_ci        reserved: u32,
332add0d91Sopenharmony_ci    }
342add0d91Sopenharmony_ci
352add0d91Sopenharmony_ci    pub struct _cred_info {
362add0d91Sopenharmony_ci        pub ruid: ::uid_t,
372add0d91Sopenharmony_ci        pub euid: ::uid_t,
382add0d91Sopenharmony_ci        pub suid: ::uid_t,
392add0d91Sopenharmony_ci        pub rgid: ::gid_t,
402add0d91Sopenharmony_ci        pub egid: ::gid_t,
412add0d91Sopenharmony_ci        pub sgid: ::gid_t,
422add0d91Sopenharmony_ci        pub ngroups: u32,
432add0d91Sopenharmony_ci        pub grouplist: [::gid_t; 8],
442add0d91Sopenharmony_ci    }
452add0d91Sopenharmony_ci
462add0d91Sopenharmony_ci    pub struct _client_info {
472add0d91Sopenharmony_ci        pub nd: u32,
482add0d91Sopenharmony_ci        pub pid: ::pid_t,
492add0d91Sopenharmony_ci        pub sid: ::pid_t,
502add0d91Sopenharmony_ci        pub flags: u32,
512add0d91Sopenharmony_ci        pub cred: ::_cred_info,
522add0d91Sopenharmony_ci    }
532add0d91Sopenharmony_ci
542add0d91Sopenharmony_ci    pub struct _client_able {
552add0d91Sopenharmony_ci        pub ability: u32,
562add0d91Sopenharmony_ci        pub flags: u32,
572add0d91Sopenharmony_ci        pub range_lo: u64,
582add0d91Sopenharmony_ci        pub range_hi: u64,
592add0d91Sopenharmony_ci    }
602add0d91Sopenharmony_ci
612add0d91Sopenharmony_ci    pub struct nto_channel_config {
622add0d91Sopenharmony_ci        pub event: ::sigevent,
632add0d91Sopenharmony_ci        pub num_pulses: ::c_uint,
642add0d91Sopenharmony_ci        pub rearm_threshold: ::c_uint,
652add0d91Sopenharmony_ci        pub options: ::c_uint,
662add0d91Sopenharmony_ci        reserved: [::c_uint; 3],
672add0d91Sopenharmony_ci    }
682add0d91Sopenharmony_ci
692add0d91Sopenharmony_ci    // TODO: The following structures are defined in a header file which doesn't
702add0d91Sopenharmony_ci    //       appear as part of the default headers found in a standard installation
712add0d91Sopenharmony_ci    //       of Neutrino 7.1 SDP.  Commented out for now.
722add0d91Sopenharmony_ci    //pub struct _asyncmsg_put_header {
732add0d91Sopenharmony_ci    //    pub err: ::c_int,
742add0d91Sopenharmony_ci    //    pub iov: *mut ::iov_t,
752add0d91Sopenharmony_ci    //    pub parts: ::c_int,
762add0d91Sopenharmony_ci    //    pub handle: ::c_uint,
772add0d91Sopenharmony_ci    //    pub cb: ::Option<
782add0d91Sopenharmony_ci    //        unsafe extern "C" fn(
792add0d91Sopenharmony_ci    //            err: ::c_int,
802add0d91Sopenharmony_ci    //            buf: *mut ::c_void,
812add0d91Sopenharmony_ci    //            handle: ::c_uint,
822add0d91Sopenharmony_ci    //        ) -> ::c_int>,
832add0d91Sopenharmony_ci    //    pub put_hdr_flags: ::c_uint,
842add0d91Sopenharmony_ci    //}
852add0d91Sopenharmony_ci
862add0d91Sopenharmony_ci    //pub struct _asyncmsg_connection_attr {
872add0d91Sopenharmony_ci    //    pub call_back: ::Option<
882add0d91Sopenharmony_ci    //        unsafe extern "C" fn(
892add0d91Sopenharmony_ci    //            err: ::c_int,
902add0d91Sopenharmony_ci    //            buff: *mut ::c_void,
912add0d91Sopenharmony_ci    //            handle: ::c_uint,
922add0d91Sopenharmony_ci    //        ) -> ::c_int>,
932add0d91Sopenharmony_ci    //    pub buffer_size: ::size_t,
942add0d91Sopenharmony_ci    //    pub max_num_buffer: ::c_uint,
952add0d91Sopenharmony_ci    //    pub trigger_num_msg: ::c_uint,
962add0d91Sopenharmony_ci    //    pub trigger_time: ::_itimer,
972add0d91Sopenharmony_ci    //    reserve: ::c_uint,
982add0d91Sopenharmony_ci    //}
992add0d91Sopenharmony_ci
1002add0d91Sopenharmony_ci    //pub struct _asyncmsg_connection_descriptor {
1012add0d91Sopenharmony_ci    //    pub flags: ::c_uint,
1022add0d91Sopenharmony_ci    //    pub sendq_size: ::c_uint,
1032add0d91Sopenharmony_ci    //    pub sendq_head: ::c_uint,
1042add0d91Sopenharmony_ci    //    pub sendq_tail: ::c_uint,
1052add0d91Sopenharmony_ci    //    pub sendq_free: ::c_uint,
1062add0d91Sopenharmony_ci    //    pub err: ::c_int,
1072add0d91Sopenharmony_ci    //    pub ev: ::sigevent,
1082add0d91Sopenharmony_ci    //    pub num_curmsg: ::c_uint,
1092add0d91Sopenharmony_ci    //    pub ttimer: ::timer_t,
1102add0d91Sopenharmony_ci    //    pub block_con: ::pthread_cond_t,
1112add0d91Sopenharmony_ci    //    pub mu: ::pthread_mutex_t,
1122add0d91Sopenharmony_ci    //    reserved: ::c_uint,
1132add0d91Sopenharmony_ci    //    pub attr: ::_asyncmsg_connection_attr,
1142add0d91Sopenharmony_ci    //    pub reserves: [::c_uint; 3],
1152add0d91Sopenharmony_ci    //    pub sendq: [::_asyncmsg_put_header; 1], // flexarray
1162add0d91Sopenharmony_ci    //}
1172add0d91Sopenharmony_ci
1182add0d91Sopenharmony_ci    pub struct __c_anonymous_struct_ev {
1192add0d91Sopenharmony_ci        pub event: ::sigevent,
1202add0d91Sopenharmony_ci        pub coid: ::c_int,
1212add0d91Sopenharmony_ci    }
1222add0d91Sopenharmony_ci
1232add0d91Sopenharmony_ci    pub struct _channel_connect_attr {  // union
1242add0d91Sopenharmony_ci        pub ev: ::__c_anonymous_struct_ev,
1252add0d91Sopenharmony_ci    }
1262add0d91Sopenharmony_ci
1272add0d91Sopenharmony_ci    pub struct _sighandler_info {
1282add0d91Sopenharmony_ci        pub siginfo: ::siginfo_t,
1292add0d91Sopenharmony_ci        pub handler: ::Option<unsafe extern "C" fn(value: ::c_int)>,
1302add0d91Sopenharmony_ci        pub context: *mut ::c_void,
1312add0d91Sopenharmony_ci    }
1322add0d91Sopenharmony_ci
1332add0d91Sopenharmony_ci    pub struct __c_anonymous_struct_time {
1342add0d91Sopenharmony_ci        pub length: ::c_uint,
1352add0d91Sopenharmony_ci        pub scale: ::c_uint,
1362add0d91Sopenharmony_ci    }
1372add0d91Sopenharmony_ci
1382add0d91Sopenharmony_ci    pub struct _idle_hook {
1392add0d91Sopenharmony_ci        pub hook_size: ::c_uint,
1402add0d91Sopenharmony_ci        pub cmd: ::c_uint,
1412add0d91Sopenharmony_ci        pub mode: ::c_uint,
1422add0d91Sopenharmony_ci        pub latency: ::c_uint,
1432add0d91Sopenharmony_ci        pub next_fire: u64,
1442add0d91Sopenharmony_ci        pub curr_time: u64,
1452add0d91Sopenharmony_ci        pub tod_adjust: u64,
1462add0d91Sopenharmony_ci        pub resp: ::c_uint,
1472add0d91Sopenharmony_ci        pub time: __c_anonymous_struct_time,
1482add0d91Sopenharmony_ci        pub trigger: ::sigevent,
1492add0d91Sopenharmony_ci        pub intrs: *mut ::c_uint,
1502add0d91Sopenharmony_ci        pub block_stack_size: ::c_uint,
1512add0d91Sopenharmony_ci    }
1522add0d91Sopenharmony_ci
1532add0d91Sopenharmony_ci    pub struct _clockadjust {
1542add0d91Sopenharmony_ci        pub tick_count: u32,
1552add0d91Sopenharmony_ci        pub tick_nsec_inc: i32,
1562add0d91Sopenharmony_ci    }
1572add0d91Sopenharmony_ci
1582add0d91Sopenharmony_ci    pub struct qtime_entry {
1592add0d91Sopenharmony_ci        pub cycles_per_sec: u64,
1602add0d91Sopenharmony_ci        pub nsec_tod_adjust: u64, // volatile
1612add0d91Sopenharmony_ci        pub nsec: u64,            // volatile
1622add0d91Sopenharmony_ci        pub nsec_inc: u32,
1632add0d91Sopenharmony_ci        pub boot_time: u32,
1642add0d91Sopenharmony_ci        pub adjust: _clockadjust,
1652add0d91Sopenharmony_ci        pub timer_rate: u32,
1662add0d91Sopenharmony_ci        pub timer_scale: i32,
1672add0d91Sopenharmony_ci        pub timer_load: u32,
1682add0d91Sopenharmony_ci        pub intr: i32,
1692add0d91Sopenharmony_ci        pub epoch: u32,
1702add0d91Sopenharmony_ci        pub flags: u32,
1712add0d91Sopenharmony_ci        pub rr_interval_mul: u32,
1722add0d91Sopenharmony_ci        pub timer_load_hi: u32,
1732add0d91Sopenharmony_ci        pub nsec_stable: u64,      // volatile
1742add0d91Sopenharmony_ci        pub timer_load_max: u64,
1752add0d91Sopenharmony_ci        pub timer_prog_time: u32,
1762add0d91Sopenharmony_ci        spare: [u32; 7],
1772add0d91Sopenharmony_ci    }
1782add0d91Sopenharmony_ci
1792add0d91Sopenharmony_ci    pub struct _sched_info {
1802add0d91Sopenharmony_ci        pub priority_min: ::c_int,
1812add0d91Sopenharmony_ci        pub priority_max: ::c_int,
1822add0d91Sopenharmony_ci        pub interval: u64,
1832add0d91Sopenharmony_ci        pub priority_priv: ::c_int,
1842add0d91Sopenharmony_ci        reserved: [::c_int; 11],
1852add0d91Sopenharmony_ci    }
1862add0d91Sopenharmony_ci
1872add0d91Sopenharmony_ci    pub struct _timer_info {
1882add0d91Sopenharmony_ci        pub itime: ::_itimer,
1892add0d91Sopenharmony_ci        pub otime: ::_itimer,
1902add0d91Sopenharmony_ci        pub flags: u32,
1912add0d91Sopenharmony_ci        pub tid: i32,
1922add0d91Sopenharmony_ci        pub notify: i32,
1932add0d91Sopenharmony_ci        pub clockid: ::clockid_t,
1942add0d91Sopenharmony_ci        pub overruns: u32,
1952add0d91Sopenharmony_ci        pub event: ::sigevent, // union
1962add0d91Sopenharmony_ci    }
1972add0d91Sopenharmony_ci
1982add0d91Sopenharmony_ci    pub struct _clockperiod {
1992add0d91Sopenharmony_ci        pub nsec: u32,
2002add0d91Sopenharmony_ci        pub fract: i32,
2012add0d91Sopenharmony_ci    }
2022add0d91Sopenharmony_ci}
2032add0d91Sopenharmony_ci
2042add0d91Sopenharmony_cis_no_extra_traits! {
2052add0d91Sopenharmony_ci    pub struct syspage_entry_info {
2062add0d91Sopenharmony_ci        pub entry_off: u16,
2072add0d91Sopenharmony_ci        pub entry_size: u16,
2082add0d91Sopenharmony_ci    }
2092add0d91Sopenharmony_ci
2102add0d91Sopenharmony_ci    pub struct syspage_array_info {
2112add0d91Sopenharmony_ci        entry_off: u16,
2122add0d91Sopenharmony_ci        entry_size: u16,
2132add0d91Sopenharmony_ci        element_size: u16,
2142add0d91Sopenharmony_ci    }
2152add0d91Sopenharmony_ci
2162add0d91Sopenharmony_ci    #[repr(align(8))]
2172add0d91Sopenharmony_ci    pub struct syspage_entry {
2182add0d91Sopenharmony_ci        pub size: u16,
2192add0d91Sopenharmony_ci        pub total_size: u16,
2202add0d91Sopenharmony_ci        pub type_: u16,
2212add0d91Sopenharmony_ci        pub num_cpu: u16,
2222add0d91Sopenharmony_ci        pub system_private: syspage_entry_info,
2232add0d91Sopenharmony_ci        pub old_asinfo: syspage_entry_info,
2242add0d91Sopenharmony_ci        pub __mangle_name_to_cause_compilation_errs_meminfo: syspage_entry_info,
2252add0d91Sopenharmony_ci        pub hwinfo: syspage_entry_info,
2262add0d91Sopenharmony_ci        pub old_cpuinfo: syspage_entry_info,
2272add0d91Sopenharmony_ci        pub old_cacheattr: syspage_entry_info,
2282add0d91Sopenharmony_ci        pub qtime: syspage_entry_info,
2292add0d91Sopenharmony_ci        pub callout: syspage_entry_info,
2302add0d91Sopenharmony_ci        pub callin: syspage_entry_info,
2312add0d91Sopenharmony_ci        pub typed_strings: syspage_entry_info,
2322add0d91Sopenharmony_ci        pub strings: syspage_entry_info,
2332add0d91Sopenharmony_ci        pub old_intrinfo: syspage_entry_info,
2342add0d91Sopenharmony_ci        pub smp: syspage_entry_info,
2352add0d91Sopenharmony_ci        pub pminfo: syspage_entry_info,
2362add0d91Sopenharmony_ci        pub old_mdriver: syspage_entry_info,
2372add0d91Sopenharmony_ci        spare0: [u32; 1],
2382add0d91Sopenharmony_ci        __reserved: [u8; 160], // anonymous union with architecture dependent structs
2392add0d91Sopenharmony_ci        pub new_asinfo: syspage_array_info,
2402add0d91Sopenharmony_ci        pub new_cpuinfo: syspage_array_info,
2412add0d91Sopenharmony_ci        pub new_cacheattr: syspage_array_info,
2422add0d91Sopenharmony_ci        pub new_intrinfo: syspage_array_info,
2432add0d91Sopenharmony_ci        pub new_mdriver: syspage_array_info,
2442add0d91Sopenharmony_ci    }
2452add0d91Sopenharmony_ci}
2462add0d91Sopenharmony_ci
2472add0d91Sopenharmony_cipub const SYSMGR_PID: u32 = 1;
2482add0d91Sopenharmony_cipub const SYSMGR_CHID: u32 = 1;
2492add0d91Sopenharmony_cipub const SYSMGR_COID: u32 = _NTO_SIDE_CHANNEL;
2502add0d91Sopenharmony_cipub const SYSMGR_HANDLE: u32 = 0;
2512add0d91Sopenharmony_ci
2522add0d91Sopenharmony_cipub const STATE_DEAD: ::c_int = 0x00;
2532add0d91Sopenharmony_cipub const STATE_RUNNING: ::c_int = 0x01;
2542add0d91Sopenharmony_cipub const STATE_READY: ::c_int = 0x02;
2552add0d91Sopenharmony_cipub const STATE_STOPPED: ::c_int = 0x03;
2562add0d91Sopenharmony_cipub const STATE_SEND: ::c_int = 0x04;
2572add0d91Sopenharmony_cipub const STATE_RECEIVE: ::c_int = 0x05;
2582add0d91Sopenharmony_cipub const STATE_REPLY: ::c_int = 0x06;
2592add0d91Sopenharmony_cipub const STATE_STACK: ::c_int = 0x07;
2602add0d91Sopenharmony_cipub const STATE_WAITTHREAD: ::c_int = 0x08;
2612add0d91Sopenharmony_cipub const STATE_WAITPAGE: ::c_int = 0x09;
2622add0d91Sopenharmony_cipub const STATE_SIGSUSPEND: ::c_int = 0x0a;
2632add0d91Sopenharmony_cipub const STATE_SIGWAITINFO: ::c_int = 0x0b;
2642add0d91Sopenharmony_cipub const STATE_NANOSLEEP: ::c_int = 0x0c;
2652add0d91Sopenharmony_cipub const STATE_MUTEX: ::c_int = 0x0d;
2662add0d91Sopenharmony_cipub const STATE_CONDVAR: ::c_int = 0x0e;
2672add0d91Sopenharmony_cipub const STATE_JOIN: ::c_int = 0x0f;
2682add0d91Sopenharmony_cipub const STATE_INTR: ::c_int = 0x10;
2692add0d91Sopenharmony_cipub const STATE_SEM: ::c_int = 0x11;
2702add0d91Sopenharmony_cipub const STATE_WAITCTX: ::c_int = 0x12;
2712add0d91Sopenharmony_cipub const STATE_NET_SEND: ::c_int = 0x13;
2722add0d91Sopenharmony_cipub const STATE_NET_REPLY: ::c_int = 0x14;
2732add0d91Sopenharmony_cipub const STATE_MAX: ::c_int = 0x18;
2742add0d91Sopenharmony_ci
2752add0d91Sopenharmony_cipub const _NTO_TIMEOUT_RECEIVE: i32 = 1 << STATE_RECEIVE;
2762add0d91Sopenharmony_cipub const _NTO_TIMEOUT_SEND: i32 = 1 << STATE_SEND;
2772add0d91Sopenharmony_cipub const _NTO_TIMEOUT_REPLY: i32 = 1 << STATE_REPLY;
2782add0d91Sopenharmony_cipub const _NTO_TIMEOUT_SIGSUSPEND: i32 = 1 << STATE_SIGSUSPEND;
2792add0d91Sopenharmony_cipub const _NTO_TIMEOUT_SIGWAITINFO: i32 = 1 << STATE_SIGWAITINFO;
2802add0d91Sopenharmony_cipub const _NTO_TIMEOUT_NANOSLEEP: i32 = 1 << STATE_NANOSLEEP;
2812add0d91Sopenharmony_cipub const _NTO_TIMEOUT_MUTEX: i32 = 1 << STATE_MUTEX;
2822add0d91Sopenharmony_cipub const _NTO_TIMEOUT_CONDVAR: i32 = 1 << STATE_CONDVAR;
2832add0d91Sopenharmony_cipub const _NTO_TIMEOUT_JOIN: i32 = 1 << STATE_JOIN;
2842add0d91Sopenharmony_cipub const _NTO_TIMEOUT_INTR: i32 = 1 << STATE_INTR;
2852add0d91Sopenharmony_cipub const _NTO_TIMEOUT_SEM: i32 = 1 << STATE_SEM;
2862add0d91Sopenharmony_ci
2872add0d91Sopenharmony_cipub const _NTO_MI_ENDIAN_BIG: u32 = 1;
2882add0d91Sopenharmony_cipub const _NTO_MI_ENDIAN_DIFF: u32 = 2;
2892add0d91Sopenharmony_cipub const _NTO_MI_UNBLOCK_REQ: u32 = 256;
2902add0d91Sopenharmony_cipub const _NTO_MI_NET_CRED_DIRTY: u32 = 512;
2912add0d91Sopenharmony_cipub const _NTO_MI_CONSTRAINED: u32 = 1024;
2922add0d91Sopenharmony_cipub const _NTO_MI_CHROOT: u32 = 2048;
2932add0d91Sopenharmony_cipub const _NTO_MI_BITS_64: u32 = 4096;
2942add0d91Sopenharmony_cipub const _NTO_MI_BITS_DIFF: u32 = 8192;
2952add0d91Sopenharmony_cipub const _NTO_MI_SANDBOX: u32 = 16384;
2962add0d91Sopenharmony_ci
2972add0d91Sopenharmony_cipub const _NTO_CI_ENDIAN_BIG: u32 = 1;
2982add0d91Sopenharmony_cipub const _NTO_CI_BKGND_PGRP: u32 = 4;
2992add0d91Sopenharmony_cipub const _NTO_CI_ORPHAN_PGRP: u32 = 8;
3002add0d91Sopenharmony_cipub const _NTO_CI_STOPPED: u32 = 128;
3012add0d91Sopenharmony_cipub const _NTO_CI_UNABLE: u32 = 256;
3022add0d91Sopenharmony_cipub const _NTO_CI_TYPE_ID: u32 = 512;
3032add0d91Sopenharmony_cipub const _NTO_CI_CHROOT: u32 = 2048;
3042add0d91Sopenharmony_cipub const _NTO_CI_BITS_64: u32 = 4096;
3052add0d91Sopenharmony_cipub const _NTO_CI_SANDBOX: u32 = 16384;
3062add0d91Sopenharmony_cipub const _NTO_CI_LOADER: u32 = 32768;
3072add0d91Sopenharmony_cipub const _NTO_CI_FULL_GROUPS: u32 = 2147483648;
3082add0d91Sopenharmony_ci
3092add0d91Sopenharmony_cipub const _NTO_TI_ACTIVE: u32 = 1;
3102add0d91Sopenharmony_cipub const _NTO_TI_ABSOLUTE: u32 = 2;
3112add0d91Sopenharmony_cipub const _NTO_TI_EXPIRED: u32 = 4;
3122add0d91Sopenharmony_cipub const _NTO_TI_TOD_BASED: u32 = 8;
3132add0d91Sopenharmony_cipub const _NTO_TI_TARGET_PROCESS: u32 = 16;
3142add0d91Sopenharmony_cipub const _NTO_TI_REPORT_TOLERANCE: u32 = 32;
3152add0d91Sopenharmony_cipub const _NTO_TI_PRECISE: u32 = 64;
3162add0d91Sopenharmony_cipub const _NTO_TI_TOLERANT: u32 = 128;
3172add0d91Sopenharmony_cipub const _NTO_TI_WAKEUP: u32 = 256;
3182add0d91Sopenharmony_cipub const _NTO_TI_PROCESS_TOLERANT: u32 = 512;
3192add0d91Sopenharmony_cipub const _NTO_TI_HIGH_RESOLUTION: u32 = 1024;
3202add0d91Sopenharmony_ci
3212add0d91Sopenharmony_cipub const _PULSE_TYPE: u32 = 0;
3222add0d91Sopenharmony_cipub const _PULSE_SUBTYPE: u32 = 0;
3232add0d91Sopenharmony_cipub const _PULSE_CODE_UNBLOCK: i32 = -32;
3242add0d91Sopenharmony_cipub const _PULSE_CODE_DISCONNECT: i32 = -33;
3252add0d91Sopenharmony_cipub const _PULSE_CODE_THREADDEATH: i32 = -34;
3262add0d91Sopenharmony_cipub const _PULSE_CODE_COIDDEATH: i32 = -35;
3272add0d91Sopenharmony_cipub const _PULSE_CODE_NET_ACK: i32 = -36;
3282add0d91Sopenharmony_cipub const _PULSE_CODE_NET_UNBLOCK: i32 = -37;
3292add0d91Sopenharmony_cipub const _PULSE_CODE_NET_DETACH: i32 = -38;
3302add0d91Sopenharmony_cipub const _PULSE_CODE_RESTART: i32 = -39;
3312add0d91Sopenharmony_cipub const _PULSE_CODE_NORESTART: i32 = -40;
3322add0d91Sopenharmony_cipub const _PULSE_CODE_UNBLOCK_RESTART: i32 = -41;
3332add0d91Sopenharmony_cipub const _PULSE_CODE_UNBLOCK_TIMER: i32 = -42;
3342add0d91Sopenharmony_cipub const _PULSE_CODE_MINAVAIL: u32 = 0;
3352add0d91Sopenharmony_cipub const _PULSE_CODE_MAXAVAIL: u32 = 127;
3362add0d91Sopenharmony_ci
3372add0d91Sopenharmony_cipub const _NTO_HARD_FLAGS_END: u32 = 1;
3382add0d91Sopenharmony_ci
3392add0d91Sopenharmony_cipub const _NTO_PULSE_IF_UNIQUE: u32 = 4096;
3402add0d91Sopenharmony_cipub const _NTO_PULSE_REPLACE: u32 = 8192;
3412add0d91Sopenharmony_ci
3422add0d91Sopenharmony_cipub const _NTO_PF_NOCLDSTOP: u32 = 1;
3432add0d91Sopenharmony_cipub const _NTO_PF_LOADING: u32 = 2;
3442add0d91Sopenharmony_cipub const _NTO_PF_TERMING: u32 = 4;
3452add0d91Sopenharmony_cipub const _NTO_PF_ZOMBIE: u32 = 8;
3462add0d91Sopenharmony_cipub const _NTO_PF_NOZOMBIE: u32 = 16;
3472add0d91Sopenharmony_cipub const _NTO_PF_FORKED: u32 = 32;
3482add0d91Sopenharmony_cipub const _NTO_PF_ORPHAN_PGRP: u32 = 64;
3492add0d91Sopenharmony_cipub const _NTO_PF_STOPPED: u32 = 128;
3502add0d91Sopenharmony_cipub const _NTO_PF_DEBUG_STOPPED: u32 = 256;
3512add0d91Sopenharmony_cipub const _NTO_PF_BKGND_PGRP: u32 = 512;
3522add0d91Sopenharmony_cipub const _NTO_PF_NOISYNC: u32 = 1024;
3532add0d91Sopenharmony_cipub const _NTO_PF_CONTINUED: u32 = 2048;
3542add0d91Sopenharmony_cipub const _NTO_PF_CHECK_INTR: u32 = 4096;
3552add0d91Sopenharmony_cipub const _NTO_PF_COREDUMP: u32 = 8192;
3562add0d91Sopenharmony_cipub const _NTO_PF_RING0: u32 = 32768;
3572add0d91Sopenharmony_cipub const _NTO_PF_SLEADER: u32 = 65536;
3582add0d91Sopenharmony_cipub const _NTO_PF_WAITINFO: u32 = 131072;
3592add0d91Sopenharmony_cipub const _NTO_PF_DESTROYALL: u32 = 524288;
3602add0d91Sopenharmony_cipub const _NTO_PF_NOCOREDUMP: u32 = 1048576;
3612add0d91Sopenharmony_cipub const _NTO_PF_WAITDONE: u32 = 4194304;
3622add0d91Sopenharmony_cipub const _NTO_PF_TERM_WAITING: u32 = 8388608;
3632add0d91Sopenharmony_cipub const _NTO_PF_ASLR: u32 = 16777216;
3642add0d91Sopenharmony_cipub const _NTO_PF_EXECED: u32 = 33554432;
3652add0d91Sopenharmony_cipub const _NTO_PF_APP_STOPPED: u32 = 67108864;
3662add0d91Sopenharmony_cipub const _NTO_PF_64BIT: u32 = 134217728;
3672add0d91Sopenharmony_cipub const _NTO_PF_NET: u32 = 268435456;
3682add0d91Sopenharmony_cipub const _NTO_PF_NOLAZYSTACK: u32 = 536870912;
3692add0d91Sopenharmony_cipub const _NTO_PF_NOEXEC_STACK: u32 = 1073741824;
3702add0d91Sopenharmony_cipub const _NTO_PF_LOADER_PERMS: u32 = 2147483648;
3712add0d91Sopenharmony_ci
3722add0d91Sopenharmony_cipub const _NTO_TF_INTR_PENDING: u32 = 65536;
3732add0d91Sopenharmony_cipub const _NTO_TF_DETACHED: u32 = 131072;
3742add0d91Sopenharmony_cipub const _NTO_TF_SHR_MUTEX: u32 = 262144;
3752add0d91Sopenharmony_cipub const _NTO_TF_SHR_MUTEX_EUID: u32 = 524288;
3762add0d91Sopenharmony_cipub const _NTO_TF_THREADS_HOLD: u32 = 1048576;
3772add0d91Sopenharmony_cipub const _NTO_TF_UNBLOCK_REQ: u32 = 4194304;
3782add0d91Sopenharmony_cipub const _NTO_TF_ALIGN_FAULT: u32 = 16777216;
3792add0d91Sopenharmony_cipub const _NTO_TF_SSTEP: u32 = 33554432;
3802add0d91Sopenharmony_cipub const _NTO_TF_ALLOCED_STACK: u32 = 67108864;
3812add0d91Sopenharmony_cipub const _NTO_TF_NOMULTISIG: u32 = 134217728;
3822add0d91Sopenharmony_cipub const _NTO_TF_LOW_LATENCY: u32 = 268435456;
3832add0d91Sopenharmony_cipub const _NTO_TF_IOPRIV: u32 = 2147483648;
3842add0d91Sopenharmony_ci
3852add0d91Sopenharmony_cipub const _NTO_TCTL_IO_PRIV: u32 = 1;
3862add0d91Sopenharmony_cipub const _NTO_TCTL_THREADS_HOLD: u32 = 2;
3872add0d91Sopenharmony_cipub const _NTO_TCTL_THREADS_CONT: u32 = 3;
3882add0d91Sopenharmony_cipub const _NTO_TCTL_RUNMASK: u32 = 4;
3892add0d91Sopenharmony_cipub const _NTO_TCTL_ALIGN_FAULT: u32 = 5;
3902add0d91Sopenharmony_cipub const _NTO_TCTL_RUNMASK_GET_AND_SET: u32 = 6;
3912add0d91Sopenharmony_cipub const _NTO_TCTL_PERFCOUNT: u32 = 7;
3922add0d91Sopenharmony_cipub const _NTO_TCTL_ONE_THREAD_HOLD: u32 = 8;
3932add0d91Sopenharmony_cipub const _NTO_TCTL_ONE_THREAD_CONT: u32 = 9;
3942add0d91Sopenharmony_cipub const _NTO_TCTL_RUNMASK_GET_AND_SET_INHERIT: u32 = 10;
3952add0d91Sopenharmony_cipub const _NTO_TCTL_NAME: u32 = 11;
3962add0d91Sopenharmony_cipub const _NTO_TCTL_RCM_GET_AND_SET: u32 = 12;
3972add0d91Sopenharmony_cipub const _NTO_TCTL_SHR_MUTEX: u32 = 13;
3982add0d91Sopenharmony_cipub const _NTO_TCTL_IO: u32 = 14;
3992add0d91Sopenharmony_cipub const _NTO_TCTL_NET_KIF_GET_AND_SET: u32 = 15;
4002add0d91Sopenharmony_cipub const _NTO_TCTL_LOW_LATENCY: u32 = 16;
4012add0d91Sopenharmony_cipub const _NTO_TCTL_ADD_EXIT_EVENT: u32 = 17;
4022add0d91Sopenharmony_cipub const _NTO_TCTL_DEL_EXIT_EVENT: u32 = 18;
4032add0d91Sopenharmony_cipub const _NTO_TCTL_IO_LEVEL: u32 = 19;
4042add0d91Sopenharmony_cipub const _NTO_TCTL_RESERVED: u32 = 2147483648;
4052add0d91Sopenharmony_cipub const _NTO_TCTL_IO_LEVEL_INHERIT: u32 = 1073741824;
4062add0d91Sopenharmony_cipub const _NTO_IO_LEVEL_NONE: u32 = 1;
4072add0d91Sopenharmony_cipub const _NTO_IO_LEVEL_1: u32 = 2;
4082add0d91Sopenharmony_cipub const _NTO_IO_LEVEL_2: u32 = 3;
4092add0d91Sopenharmony_ci
4102add0d91Sopenharmony_cipub const _NTO_THREAD_NAME_MAX: u32 = 100;
4112add0d91Sopenharmony_ci
4122add0d91Sopenharmony_cipub const _NTO_CHF_FIXED_PRIORITY: u32 = 1;
4132add0d91Sopenharmony_cipub const _NTO_CHF_UNBLOCK: u32 = 2;
4142add0d91Sopenharmony_cipub const _NTO_CHF_THREAD_DEATH: u32 = 4;
4152add0d91Sopenharmony_cipub const _NTO_CHF_DISCONNECT: u32 = 8;
4162add0d91Sopenharmony_cipub const _NTO_CHF_NET_MSG: u32 = 16;
4172add0d91Sopenharmony_cipub const _NTO_CHF_SENDER_LEN: u32 = 32;
4182add0d91Sopenharmony_cipub const _NTO_CHF_COID_DISCONNECT: u32 = 64;
4192add0d91Sopenharmony_cipub const _NTO_CHF_REPLY_LEN: u32 = 128;
4202add0d91Sopenharmony_cipub const _NTO_CHF_PULSE_POOL: u32 = 256;
4212add0d91Sopenharmony_cipub const _NTO_CHF_ASYNC_NONBLOCK: u32 = 512;
4222add0d91Sopenharmony_cipub const _NTO_CHF_ASYNC: u32 = 1024;
4232add0d91Sopenharmony_cipub const _NTO_CHF_GLOBAL: u32 = 2048;
4242add0d91Sopenharmony_cipub const _NTO_CHF_PRIVATE: u32 = 4096;
4252add0d91Sopenharmony_cipub const _NTO_CHF_MSG_PAUSING: u32 = 8192;
4262add0d91Sopenharmony_cipub const _NTO_CHF_INHERIT_RUNMASK: u32 = 16384;
4272add0d91Sopenharmony_cipub const _NTO_CHF_UNBLOCK_TIMER: u32 = 32768;
4282add0d91Sopenharmony_ci
4292add0d91Sopenharmony_cipub const _NTO_CHO_CUSTOM_EVENT: u32 = 1;
4302add0d91Sopenharmony_ci
4312add0d91Sopenharmony_cipub const _NTO_COF_CLOEXEC: u32 = 1;
4322add0d91Sopenharmony_cipub const _NTO_COF_DEAD: u32 = 2;
4332add0d91Sopenharmony_cipub const _NTO_COF_NOSHARE: u32 = 64;
4342add0d91Sopenharmony_cipub const _NTO_COF_NETCON: u32 = 128;
4352add0d91Sopenharmony_cipub const _NTO_COF_NONBLOCK: u32 = 256;
4362add0d91Sopenharmony_cipub const _NTO_COF_ASYNC: u32 = 512;
4372add0d91Sopenharmony_cipub const _NTO_COF_GLOBAL: u32 = 1024;
4382add0d91Sopenharmony_cipub const _NTO_COF_NOEVENT: u32 = 2048;
4392add0d91Sopenharmony_cipub const _NTO_COF_INSECURE: u32 = 4096;
4402add0d91Sopenharmony_cipub const _NTO_COF_REG_EVENTS: u32 = 8192;
4412add0d91Sopenharmony_cipub const _NTO_COF_UNREG_EVENTS: u32 = 16384;
4422add0d91Sopenharmony_cipub const _NTO_COF_MASK: u32 = 65535;
4432add0d91Sopenharmony_ci
4442add0d91Sopenharmony_cipub const _NTO_SIDE_CHANNEL: u32 = 1073741824;
4452add0d91Sopenharmony_ci
4462add0d91Sopenharmony_cipub const _NTO_CONNECTION_SCOID: u32 = 65536;
4472add0d91Sopenharmony_cipub const _NTO_GLOBAL_CHANNEL: u32 = 1073741824;
4482add0d91Sopenharmony_ci
4492add0d91Sopenharmony_cipub const _NTO_TIMEOUT_MASK: u32 = (1 << STATE_MAX) - 1;
4502add0d91Sopenharmony_cipub const _NTO_TIMEOUT_ACTIVE: u32 = 1 << STATE_MAX;
4512add0d91Sopenharmony_cipub const _NTO_TIMEOUT_IMMEDIATE: u32 = 1 << (STATE_MAX + 1);
4522add0d91Sopenharmony_ci
4532add0d91Sopenharmony_cipub const _NTO_IC_LATENCY: u32 = 0;
4542add0d91Sopenharmony_ci
4552add0d91Sopenharmony_cipub const _NTO_INTR_FLAGS_END: u32 = 1;
4562add0d91Sopenharmony_cipub const _NTO_INTR_FLAGS_NO_UNMASK: u32 = 2;
4572add0d91Sopenharmony_cipub const _NTO_INTR_FLAGS_PROCESS: u32 = 4;
4582add0d91Sopenharmony_cipub const _NTO_INTR_FLAGS_TRK_MSK: u32 = 8;
4592add0d91Sopenharmony_cipub const _NTO_INTR_FLAGS_ARRAY: u32 = 16;
4602add0d91Sopenharmony_cipub const _NTO_INTR_FLAGS_EXCLUSIVE: u32 = 32;
4612add0d91Sopenharmony_cipub const _NTO_INTR_FLAGS_FPU: u32 = 64;
4622add0d91Sopenharmony_ci
4632add0d91Sopenharmony_cipub const _NTO_INTR_CLASS_EXTERNAL: u32 = 0;
4642add0d91Sopenharmony_cipub const _NTO_INTR_CLASS_SYNTHETIC: u32 = 2147418112;
4652add0d91Sopenharmony_ci
4662add0d91Sopenharmony_cipub const _NTO_INTR_SPARE: u32 = 2147483647;
4672add0d91Sopenharmony_ci
4682add0d91Sopenharmony_cipub const _NTO_HOOK_IDLE: u32 = 2147418113;
4692add0d91Sopenharmony_cipub const _NTO_HOOK_OVERDRIVE: u32 = 2147418114;
4702add0d91Sopenharmony_cipub const _NTO_HOOK_LAST: u32 = 2147418114;
4712add0d91Sopenharmony_cipub const _NTO_HOOK_IDLE2_FLAG: u32 = 32768;
4722add0d91Sopenharmony_ci
4732add0d91Sopenharmony_cipub const _NTO_IH_CMD_SLEEP_SETUP: u32 = 1;
4742add0d91Sopenharmony_cipub const _NTO_IH_CMD_SLEEP_BLOCK: u32 = 2;
4752add0d91Sopenharmony_cipub const _NTO_IH_CMD_SLEEP_WAKEUP: u32 = 4;
4762add0d91Sopenharmony_cipub const _NTO_IH_CMD_SLEEP_ONLINE: u32 = 8;
4772add0d91Sopenharmony_cipub const _NTO_IH_RESP_NEEDS_BLOCK: u32 = 1;
4782add0d91Sopenharmony_cipub const _NTO_IH_RESP_NEEDS_WAKEUP: u32 = 2;
4792add0d91Sopenharmony_cipub const _NTO_IH_RESP_NEEDS_ONLINE: u32 = 4;
4802add0d91Sopenharmony_cipub const _NTO_IH_RESP_SYNC_TIME: u32 = 16;
4812add0d91Sopenharmony_cipub const _NTO_IH_RESP_SYNC_TLB: u32 = 32;
4822add0d91Sopenharmony_cipub const _NTO_IH_RESP_SUGGEST_OFFLINE: u32 = 256;
4832add0d91Sopenharmony_cipub const _NTO_IH_RESP_SLEEP_MODE_REACHED: u32 = 512;
4842add0d91Sopenharmony_cipub const _NTO_IH_RESP_DELIVER_INTRS: u32 = 1024;
4852add0d91Sopenharmony_ci
4862add0d91Sopenharmony_cipub const _NTO_READIOV_SEND: u32 = 0;
4872add0d91Sopenharmony_cipub const _NTO_READIOV_REPLY: u32 = 1;
4882add0d91Sopenharmony_ci
4892add0d91Sopenharmony_cipub const _NTO_KEYDATA_VTID: u32 = 2147483648;
4902add0d91Sopenharmony_ci
4912add0d91Sopenharmony_cipub const _NTO_KEYDATA_PATHSIGN: u32 = 32768;
4922add0d91Sopenharmony_cipub const _NTO_KEYDATA_OP_MASK: u32 = 255;
4932add0d91Sopenharmony_cipub const _NTO_KEYDATA_VERIFY: u32 = 0;
4942add0d91Sopenharmony_cipub const _NTO_KEYDATA_CALCULATE: u32 = 1;
4952add0d91Sopenharmony_cipub const _NTO_KEYDATA_CALCULATE_REUSE: u32 = 2;
4962add0d91Sopenharmony_cipub const _NTO_KEYDATA_PATHSIGN_VERIFY: u32 = 32768;
4972add0d91Sopenharmony_cipub const _NTO_KEYDATA_PATHSIGN_CALCULATE: u32 = 32769;
4982add0d91Sopenharmony_cipub const _NTO_KEYDATA_PATHSIGN_CALCULATE_REUSE: u32 = 32770;
4992add0d91Sopenharmony_ci
5002add0d91Sopenharmony_cipub const _NTO_SCTL_SETPRIOCEILING: u32 = 1;
5012add0d91Sopenharmony_cipub const _NTO_SCTL_GETPRIOCEILING: u32 = 2;
5022add0d91Sopenharmony_cipub const _NTO_SCTL_SETEVENT: u32 = 3;
5032add0d91Sopenharmony_cipub const _NTO_SCTL_MUTEX_WAKEUP: u32 = 4;
5042add0d91Sopenharmony_cipub const _NTO_SCTL_MUTEX_CONSISTENT: u32 = 5;
5052add0d91Sopenharmony_cipub const _NTO_SCTL_SEM_VALUE: u32 = 6;
5062add0d91Sopenharmony_ci
5072add0d91Sopenharmony_cipub const _NTO_CLIENTINFO_GETGROUPS: u32 = 1;
5082add0d91Sopenharmony_cipub const _NTO_CLIENTINFO_GETTYPEID: u32 = 2;
5092add0d91Sopenharmony_ci
5102add0d91Sopenharmony_ciextern "C" {
5112add0d91Sopenharmony_ci    pub fn ChannelCreate(__flags: ::c_uint) -> ::c_int;
5122add0d91Sopenharmony_ci    pub fn ChannelCreate_r(__flags: ::c_uint) -> ::c_int;
5132add0d91Sopenharmony_ci    pub fn ChannelCreatePulsePool(
5142add0d91Sopenharmony_ci        __flags: ::c_uint,
5152add0d91Sopenharmony_ci        __config: *const nto_channel_config,
5162add0d91Sopenharmony_ci    ) -> ::c_int;
5172add0d91Sopenharmony_ci    pub fn ChannelCreateExt(
5182add0d91Sopenharmony_ci        __flags: ::c_uint,
5192add0d91Sopenharmony_ci        __mode: ::mode_t,
5202add0d91Sopenharmony_ci        __bufsize: usize,
5212add0d91Sopenharmony_ci        __maxnumbuf: ::c_uint,
5222add0d91Sopenharmony_ci        __ev: *const ::sigevent,
5232add0d91Sopenharmony_ci        __cred: *mut _cred_info,
5242add0d91Sopenharmony_ci    ) -> ::c_int;
5252add0d91Sopenharmony_ci    pub fn ChannelDestroy(__chid: ::c_int) -> ::c_int;
5262add0d91Sopenharmony_ci    pub fn ChannelDestroy_r(__chid: ::c_int) -> ::c_int;
5272add0d91Sopenharmony_ci    pub fn ConnectAttach(
5282add0d91Sopenharmony_ci        __nd: u32,
5292add0d91Sopenharmony_ci        __pid: ::pid_t,
5302add0d91Sopenharmony_ci        __chid: ::c_int,
5312add0d91Sopenharmony_ci        __index: ::c_uint,
5322add0d91Sopenharmony_ci        __flags: ::c_int,
5332add0d91Sopenharmony_ci    ) -> ::c_int;
5342add0d91Sopenharmony_ci    pub fn ConnectAttach_r(
5352add0d91Sopenharmony_ci        __nd: u32,
5362add0d91Sopenharmony_ci        __pid: ::pid_t,
5372add0d91Sopenharmony_ci        __chid: ::c_int,
5382add0d91Sopenharmony_ci        __index: ::c_uint,
5392add0d91Sopenharmony_ci        __flags: ::c_int,
5402add0d91Sopenharmony_ci    ) -> ::c_int;
5412add0d91Sopenharmony_ci
5422add0d91Sopenharmony_ci    // TODO: The following function uses a structure defined in a header file
5432add0d91Sopenharmony_ci    //       which doesn't appear as part of the default headers found in a
5442add0d91Sopenharmony_ci    //       standard installation of Neutrino 7.1 SDP.  Commented out for now.
5452add0d91Sopenharmony_ci    //pub fn ConnectAttachExt(
5462add0d91Sopenharmony_ci    //    __nd: u32,
5472add0d91Sopenharmony_ci    //    __pid: ::pid_t,
5482add0d91Sopenharmony_ci    //    __chid: ::c_int,
5492add0d91Sopenharmony_ci    //    __index: ::c_uint,
5502add0d91Sopenharmony_ci    //    __flags: ::c_int,
5512add0d91Sopenharmony_ci    //    __cd: *mut _asyncmsg_connection_descriptor,
5522add0d91Sopenharmony_ci    //) -> ::c_int;
5532add0d91Sopenharmony_ci    pub fn ConnectDetach(__coid: ::c_int) -> ::c_int;
5542add0d91Sopenharmony_ci    pub fn ConnectDetach_r(__coid: ::c_int) -> ::c_int;
5552add0d91Sopenharmony_ci    pub fn ConnectServerInfo(__pid: ::pid_t, __coid: ::c_int, __info: *mut _msg_info64) -> ::c_int;
5562add0d91Sopenharmony_ci    pub fn ConnectServerInfo_r(
5572add0d91Sopenharmony_ci        __pid: ::pid_t,
5582add0d91Sopenharmony_ci        __coid: ::c_int,
5592add0d91Sopenharmony_ci        __info: *mut _msg_info64,
5602add0d91Sopenharmony_ci    ) -> ::c_int;
5612add0d91Sopenharmony_ci    pub fn ConnectClientInfoExtraArgs(
5622add0d91Sopenharmony_ci        __scoid: ::c_int,
5632add0d91Sopenharmony_ci        __info_pp: *mut _client_info,
5642add0d91Sopenharmony_ci        __ngroups: ::c_int,
5652add0d91Sopenharmony_ci        __abilities: *mut _client_able,
5662add0d91Sopenharmony_ci        __nable: ::c_int,
5672add0d91Sopenharmony_ci        __type_id: *mut ::c_uint,
5682add0d91Sopenharmony_ci    ) -> ::c_int;
5692add0d91Sopenharmony_ci    pub fn ConnectClientInfoExtraArgs_r(
5702add0d91Sopenharmony_ci        __scoid: ::c_int,
5712add0d91Sopenharmony_ci        __info_pp: *mut _client_info,
5722add0d91Sopenharmony_ci        __ngroups: ::c_int,
5732add0d91Sopenharmony_ci        __abilities: *mut _client_able,
5742add0d91Sopenharmony_ci        __nable: ::c_int,
5752add0d91Sopenharmony_ci        __type_id: *mut ::c_uint,
5762add0d91Sopenharmony_ci    ) -> ::c_int;
5772add0d91Sopenharmony_ci    pub fn ConnectClientInfo(
5782add0d91Sopenharmony_ci        __scoid: ::c_int,
5792add0d91Sopenharmony_ci        __info: *mut _client_info,
5802add0d91Sopenharmony_ci        __ngroups: ::c_int,
5812add0d91Sopenharmony_ci    ) -> ::c_int;
5822add0d91Sopenharmony_ci    pub fn ConnectClientInfo_r(
5832add0d91Sopenharmony_ci        __scoid: ::c_int,
5842add0d91Sopenharmony_ci        __info: *mut _client_info,
5852add0d91Sopenharmony_ci        __ngroups: ::c_int,
5862add0d91Sopenharmony_ci    ) -> ::c_int;
5872add0d91Sopenharmony_ci    pub fn ConnectClientInfoExt(
5882add0d91Sopenharmony_ci        __scoid: ::c_int,
5892add0d91Sopenharmony_ci        __info_pp: *mut *mut _client_info,
5902add0d91Sopenharmony_ci        flags: ::c_int,
5912add0d91Sopenharmony_ci    ) -> ::c_int;
5922add0d91Sopenharmony_ci    pub fn ClientInfoExtFree(__info_pp: *mut *mut _client_info) -> ::c_int;
5932add0d91Sopenharmony_ci    pub fn ConnectClientInfoAble(
5942add0d91Sopenharmony_ci        __scoid: ::c_int,
5952add0d91Sopenharmony_ci        __info_pp: *mut *mut _client_info,
5962add0d91Sopenharmony_ci        flags: ::c_int,
5972add0d91Sopenharmony_ci        abilities: *mut _client_able,
5982add0d91Sopenharmony_ci        nable: ::c_int,
5992add0d91Sopenharmony_ci    ) -> ::c_int;
6002add0d91Sopenharmony_ci    pub fn ConnectFlags(
6012add0d91Sopenharmony_ci        __pid: ::pid_t,
6022add0d91Sopenharmony_ci        __coid: ::c_int,
6032add0d91Sopenharmony_ci        __mask: ::c_uint,
6042add0d91Sopenharmony_ci        __bits: ::c_uint,
6052add0d91Sopenharmony_ci    ) -> ::c_int;
6062add0d91Sopenharmony_ci    pub fn ConnectFlags_r(
6072add0d91Sopenharmony_ci        __pid: ::pid_t,
6082add0d91Sopenharmony_ci        __coid: ::c_int,
6092add0d91Sopenharmony_ci        __mask: ::c_uint,
6102add0d91Sopenharmony_ci        __bits: ::c_uint,
6112add0d91Sopenharmony_ci    ) -> ::c_int;
6122add0d91Sopenharmony_ci    pub fn ChannelConnectAttr(
6132add0d91Sopenharmony_ci        __id: ::c_uint,
6142add0d91Sopenharmony_ci        __old_attr: *mut _channel_connect_attr,
6152add0d91Sopenharmony_ci        __new_attr: *mut _channel_connect_attr,
6162add0d91Sopenharmony_ci        __flags: ::c_uint,
6172add0d91Sopenharmony_ci    ) -> ::c_int;
6182add0d91Sopenharmony_ci    pub fn MsgSend(
6192add0d91Sopenharmony_ci        __coid: ::c_int,
6202add0d91Sopenharmony_ci        __smsg: *const ::c_void,
6212add0d91Sopenharmony_ci        __sbytes: usize,
6222add0d91Sopenharmony_ci        __rmsg: *mut ::c_void,
6232add0d91Sopenharmony_ci        __rbytes: usize,
6242add0d91Sopenharmony_ci    ) -> ::c_long;
6252add0d91Sopenharmony_ci    pub fn MsgSend_r(
6262add0d91Sopenharmony_ci        __coid: ::c_int,
6272add0d91Sopenharmony_ci        __smsg: *const ::c_void,
6282add0d91Sopenharmony_ci        __sbytes: usize,
6292add0d91Sopenharmony_ci        __rmsg: *mut ::c_void,
6302add0d91Sopenharmony_ci        __rbytes: usize,
6312add0d91Sopenharmony_ci    ) -> ::c_long;
6322add0d91Sopenharmony_ci    pub fn MsgSendnc(
6332add0d91Sopenharmony_ci        __coid: ::c_int,
6342add0d91Sopenharmony_ci        __smsg: *const ::c_void,
6352add0d91Sopenharmony_ci        __sbytes: usize,
6362add0d91Sopenharmony_ci        __rmsg: *mut ::c_void,
6372add0d91Sopenharmony_ci        __rbytes: usize,
6382add0d91Sopenharmony_ci    ) -> ::c_long;
6392add0d91Sopenharmony_ci    pub fn MsgSendnc_r(
6402add0d91Sopenharmony_ci        __coid: ::c_int,
6412add0d91Sopenharmony_ci        __smsg: *const ::c_void,
6422add0d91Sopenharmony_ci        __sbytes: usize,
6432add0d91Sopenharmony_ci        __rmsg: *mut ::c_void,
6442add0d91Sopenharmony_ci        __rbytes: usize,
6452add0d91Sopenharmony_ci    ) -> ::c_long;
6462add0d91Sopenharmony_ci    pub fn MsgSendsv(
6472add0d91Sopenharmony_ci        __coid: ::c_int,
6482add0d91Sopenharmony_ci        __smsg: *const ::c_void,
6492add0d91Sopenharmony_ci        __sbytes: usize,
6502add0d91Sopenharmony_ci        __riov: *const ::iovec,
6512add0d91Sopenharmony_ci        __rparts: usize,
6522add0d91Sopenharmony_ci    ) -> ::c_long;
6532add0d91Sopenharmony_ci    pub fn MsgSendsv_r(
6542add0d91Sopenharmony_ci        __coid: ::c_int,
6552add0d91Sopenharmony_ci        __smsg: *const ::c_void,
6562add0d91Sopenharmony_ci        __sbytes: usize,
6572add0d91Sopenharmony_ci        __riov: *const ::iovec,
6582add0d91Sopenharmony_ci        __rparts: usize,
6592add0d91Sopenharmony_ci    ) -> ::c_long;
6602add0d91Sopenharmony_ci    pub fn MsgSendsvnc(
6612add0d91Sopenharmony_ci        __coid: ::c_int,
6622add0d91Sopenharmony_ci        __smsg: *const ::c_void,
6632add0d91Sopenharmony_ci        __sbytes: usize,
6642add0d91Sopenharmony_ci        __riov: *const ::iovec,
6652add0d91Sopenharmony_ci        __rparts: usize,
6662add0d91Sopenharmony_ci    ) -> ::c_long;
6672add0d91Sopenharmony_ci    pub fn MsgSendsvnc_r(
6682add0d91Sopenharmony_ci        __coid: ::c_int,
6692add0d91Sopenharmony_ci        __smsg: *const ::c_void,
6702add0d91Sopenharmony_ci        __sbytes: usize,
6712add0d91Sopenharmony_ci        __riov: *const ::iovec,
6722add0d91Sopenharmony_ci        __rparts: usize,
6732add0d91Sopenharmony_ci    ) -> ::c_long;
6742add0d91Sopenharmony_ci    pub fn MsgSendvs(
6752add0d91Sopenharmony_ci        __coid: ::c_int,
6762add0d91Sopenharmony_ci        __siov: *const ::iovec,
6772add0d91Sopenharmony_ci        __sparts: usize,
6782add0d91Sopenharmony_ci        __rmsg: *mut ::c_void,
6792add0d91Sopenharmony_ci        __rbytes: usize,
6802add0d91Sopenharmony_ci    ) -> ::c_long;
6812add0d91Sopenharmony_ci    pub fn MsgSendvs_r(
6822add0d91Sopenharmony_ci        __coid: ::c_int,
6832add0d91Sopenharmony_ci        __siov: *const ::iovec,
6842add0d91Sopenharmony_ci        __sparts: usize,
6852add0d91Sopenharmony_ci        __rmsg: *mut ::c_void,
6862add0d91Sopenharmony_ci        __rbytes: usize,
6872add0d91Sopenharmony_ci    ) -> ::c_long;
6882add0d91Sopenharmony_ci    pub fn MsgSendvsnc(
6892add0d91Sopenharmony_ci        __coid: ::c_int,
6902add0d91Sopenharmony_ci        __siov: *const ::iovec,
6912add0d91Sopenharmony_ci        __sparts: usize,
6922add0d91Sopenharmony_ci        __rmsg: *mut ::c_void,
6932add0d91Sopenharmony_ci        __rbytes: usize,
6942add0d91Sopenharmony_ci    ) -> ::c_long;
6952add0d91Sopenharmony_ci    pub fn MsgSendvsnc_r(
6962add0d91Sopenharmony_ci        __coid: ::c_int,
6972add0d91Sopenharmony_ci        __siov: *const ::iovec,
6982add0d91Sopenharmony_ci        __sparts: usize,
6992add0d91Sopenharmony_ci        __rmsg: *mut ::c_void,
7002add0d91Sopenharmony_ci        __rbytes: usize,
7012add0d91Sopenharmony_ci    ) -> ::c_long;
7022add0d91Sopenharmony_ci    pub fn MsgSendv(
7032add0d91Sopenharmony_ci        __coid: ::c_int,
7042add0d91Sopenharmony_ci        __siov: *const ::iovec,
7052add0d91Sopenharmony_ci        __sparts: usize,
7062add0d91Sopenharmony_ci        __riov: *const ::iovec,
7072add0d91Sopenharmony_ci        __rparts: usize,
7082add0d91Sopenharmony_ci    ) -> ::c_long;
7092add0d91Sopenharmony_ci    pub fn MsgSendv_r(
7102add0d91Sopenharmony_ci        __coid: ::c_int,
7112add0d91Sopenharmony_ci        __siov: *const ::iovec,
7122add0d91Sopenharmony_ci        __sparts: usize,
7132add0d91Sopenharmony_ci        __riov: *const ::iovec,
7142add0d91Sopenharmony_ci        __rparts: usize,
7152add0d91Sopenharmony_ci    ) -> ::c_long;
7162add0d91Sopenharmony_ci    pub fn MsgSendvnc(
7172add0d91Sopenharmony_ci        __coid: ::c_int,
7182add0d91Sopenharmony_ci        __siov: *const ::iovec,
7192add0d91Sopenharmony_ci        __sparts: usize,
7202add0d91Sopenharmony_ci        __riov: *const ::iovec,
7212add0d91Sopenharmony_ci        __rparts: usize,
7222add0d91Sopenharmony_ci    ) -> ::c_long;
7232add0d91Sopenharmony_ci    pub fn MsgSendvnc_r(
7242add0d91Sopenharmony_ci        __coid: ::c_int,
7252add0d91Sopenharmony_ci        __siov: *const ::iovec,
7262add0d91Sopenharmony_ci        __sparts: usize,
7272add0d91Sopenharmony_ci        __riov: *const ::iovec,
7282add0d91Sopenharmony_ci        __rparts: usize,
7292add0d91Sopenharmony_ci    ) -> ::c_long;
7302add0d91Sopenharmony_ci    pub fn MsgReceive(
7312add0d91Sopenharmony_ci        __chid: ::c_int,
7322add0d91Sopenharmony_ci        __msg: *mut ::c_void,
7332add0d91Sopenharmony_ci        __bytes: usize,
7342add0d91Sopenharmony_ci        __info: *mut _msg_info64,
7352add0d91Sopenharmony_ci    ) -> ::c_int;
7362add0d91Sopenharmony_ci    pub fn MsgReceive_r(
7372add0d91Sopenharmony_ci        __chid: ::c_int,
7382add0d91Sopenharmony_ci        __msg: *mut ::c_void,
7392add0d91Sopenharmony_ci        __bytes: usize,
7402add0d91Sopenharmony_ci        __info: *mut _msg_info64,
7412add0d91Sopenharmony_ci    ) -> ::c_int;
7422add0d91Sopenharmony_ci    pub fn MsgReceivev(
7432add0d91Sopenharmony_ci        __chid: ::c_int,
7442add0d91Sopenharmony_ci        __iov: *const ::iovec,
7452add0d91Sopenharmony_ci        __parts: usize,
7462add0d91Sopenharmony_ci        __info: *mut _msg_info64,
7472add0d91Sopenharmony_ci    ) -> ::c_int;
7482add0d91Sopenharmony_ci    pub fn MsgReceivev_r(
7492add0d91Sopenharmony_ci        __chid: ::c_int,
7502add0d91Sopenharmony_ci        __iov: *const ::iovec,
7512add0d91Sopenharmony_ci        __parts: usize,
7522add0d91Sopenharmony_ci        __info: *mut _msg_info64,
7532add0d91Sopenharmony_ci    ) -> ::c_int;
7542add0d91Sopenharmony_ci    pub fn MsgReceivePulse(
7552add0d91Sopenharmony_ci        __chid: ::c_int,
7562add0d91Sopenharmony_ci        __pulse: *mut ::c_void,
7572add0d91Sopenharmony_ci        __bytes: usize,
7582add0d91Sopenharmony_ci        __info: *mut _msg_info64,
7592add0d91Sopenharmony_ci    ) -> ::c_int;
7602add0d91Sopenharmony_ci    pub fn MsgReceivePulse_r(
7612add0d91Sopenharmony_ci        __chid: ::c_int,
7622add0d91Sopenharmony_ci        __pulse: *mut ::c_void,
7632add0d91Sopenharmony_ci        __bytes: usize,
7642add0d91Sopenharmony_ci        __info: *mut _msg_info64,
7652add0d91Sopenharmony_ci    ) -> ::c_int;
7662add0d91Sopenharmony_ci    pub fn MsgReceivePulsev(
7672add0d91Sopenharmony_ci        __chid: ::c_int,
7682add0d91Sopenharmony_ci        __iov: *const ::iovec,
7692add0d91Sopenharmony_ci        __parts: usize,
7702add0d91Sopenharmony_ci        __info: *mut _msg_info64,
7712add0d91Sopenharmony_ci    ) -> ::c_int;
7722add0d91Sopenharmony_ci    pub fn MsgReceivePulsev_r(
7732add0d91Sopenharmony_ci        __chid: ::c_int,
7742add0d91Sopenharmony_ci        __iov: *const ::iovec,
7752add0d91Sopenharmony_ci        __parts: usize,
7762add0d91Sopenharmony_ci        __info: *mut _msg_info64,
7772add0d91Sopenharmony_ci    ) -> ::c_int;
7782add0d91Sopenharmony_ci    pub fn MsgReply(
7792add0d91Sopenharmony_ci        __rcvid: ::c_int,
7802add0d91Sopenharmony_ci        __status: ::c_long,
7812add0d91Sopenharmony_ci        __msg: *const ::c_void,
7822add0d91Sopenharmony_ci        __bytes: usize,
7832add0d91Sopenharmony_ci    ) -> ::c_int;
7842add0d91Sopenharmony_ci    pub fn MsgReply_r(
7852add0d91Sopenharmony_ci        __rcvid: ::c_int,
7862add0d91Sopenharmony_ci        __status: ::c_long,
7872add0d91Sopenharmony_ci        __msg: *const ::c_void,
7882add0d91Sopenharmony_ci        __bytes: usize,
7892add0d91Sopenharmony_ci    ) -> ::c_int;
7902add0d91Sopenharmony_ci    pub fn MsgReplyv(
7912add0d91Sopenharmony_ci        __rcvid: ::c_int,
7922add0d91Sopenharmony_ci        __status: ::c_long,
7932add0d91Sopenharmony_ci        __iov: *const ::iovec,
7942add0d91Sopenharmony_ci        __parts: usize,
7952add0d91Sopenharmony_ci    ) -> ::c_int;
7962add0d91Sopenharmony_ci    pub fn MsgReplyv_r(
7972add0d91Sopenharmony_ci        __rcvid: ::c_int,
7982add0d91Sopenharmony_ci        __status: ::c_long,
7992add0d91Sopenharmony_ci        __iov: *const ::iovec,
8002add0d91Sopenharmony_ci        __parts: usize,
8012add0d91Sopenharmony_ci    ) -> ::c_int;
8022add0d91Sopenharmony_ci    pub fn MsgReadiov(
8032add0d91Sopenharmony_ci        __rcvid: ::c_int,
8042add0d91Sopenharmony_ci        __iov: *const ::iovec,
8052add0d91Sopenharmony_ci        __parts: usize,
8062add0d91Sopenharmony_ci        __offset: usize,
8072add0d91Sopenharmony_ci        __flags: ::c_int,
8082add0d91Sopenharmony_ci    ) -> isize;
8092add0d91Sopenharmony_ci    pub fn MsgReadiov_r(
8102add0d91Sopenharmony_ci        __rcvid: ::c_int,
8112add0d91Sopenharmony_ci        __iov: *const ::iovec,
8122add0d91Sopenharmony_ci        __parts: usize,
8132add0d91Sopenharmony_ci        __offset: usize,
8142add0d91Sopenharmony_ci        __flags: ::c_int,
8152add0d91Sopenharmony_ci    ) -> isize;
8162add0d91Sopenharmony_ci    pub fn MsgRead(
8172add0d91Sopenharmony_ci        __rcvid: ::c_int,
8182add0d91Sopenharmony_ci        __msg: *mut ::c_void,
8192add0d91Sopenharmony_ci        __bytes: usize,
8202add0d91Sopenharmony_ci        __offset: usize,
8212add0d91Sopenharmony_ci    ) -> isize;
8222add0d91Sopenharmony_ci    pub fn MsgRead_r(
8232add0d91Sopenharmony_ci        __rcvid: ::c_int,
8242add0d91Sopenharmony_ci        __msg: *mut ::c_void,
8252add0d91Sopenharmony_ci        __bytes: usize,
8262add0d91Sopenharmony_ci        __offset: usize,
8272add0d91Sopenharmony_ci    ) -> isize;
8282add0d91Sopenharmony_ci    pub fn MsgReadv(
8292add0d91Sopenharmony_ci        __rcvid: ::c_int,
8302add0d91Sopenharmony_ci        __iov: *const ::iovec,
8312add0d91Sopenharmony_ci        __parts: usize,
8322add0d91Sopenharmony_ci        __offset: usize,
8332add0d91Sopenharmony_ci    ) -> isize;
8342add0d91Sopenharmony_ci    pub fn MsgReadv_r(
8352add0d91Sopenharmony_ci        __rcvid: ::c_int,
8362add0d91Sopenharmony_ci        __iov: *const ::iovec,
8372add0d91Sopenharmony_ci        __parts: usize,
8382add0d91Sopenharmony_ci        __offset: usize,
8392add0d91Sopenharmony_ci    ) -> isize;
8402add0d91Sopenharmony_ci    pub fn MsgWrite(
8412add0d91Sopenharmony_ci        __rcvid: ::c_int,
8422add0d91Sopenharmony_ci        __msg: *const ::c_void,
8432add0d91Sopenharmony_ci        __bytes: usize,
8442add0d91Sopenharmony_ci        __offset: usize,
8452add0d91Sopenharmony_ci    ) -> isize;
8462add0d91Sopenharmony_ci    pub fn MsgWrite_r(
8472add0d91Sopenharmony_ci        __rcvid: ::c_int,
8482add0d91Sopenharmony_ci        __msg: *const ::c_void,
8492add0d91Sopenharmony_ci        __bytes: usize,
8502add0d91Sopenharmony_ci        __offset: usize,
8512add0d91Sopenharmony_ci    ) -> isize;
8522add0d91Sopenharmony_ci    pub fn MsgWritev(
8532add0d91Sopenharmony_ci        __rcvid: ::c_int,
8542add0d91Sopenharmony_ci        __iov: *const ::iovec,
8552add0d91Sopenharmony_ci        __parts: usize,
8562add0d91Sopenharmony_ci        __offset: usize,
8572add0d91Sopenharmony_ci    ) -> isize;
8582add0d91Sopenharmony_ci    pub fn MsgWritev_r(
8592add0d91Sopenharmony_ci        __rcvid: ::c_int,
8602add0d91Sopenharmony_ci        __iov: *const ::iovec,
8612add0d91Sopenharmony_ci        __parts: usize,
8622add0d91Sopenharmony_ci        __offset: usize,
8632add0d91Sopenharmony_ci    ) -> isize;
8642add0d91Sopenharmony_ci    pub fn MsgSendPulse(
8652add0d91Sopenharmony_ci        __coid: ::c_int,
8662add0d91Sopenharmony_ci        __priority: ::c_int,
8672add0d91Sopenharmony_ci        __code: ::c_int,
8682add0d91Sopenharmony_ci        __value: ::c_int,
8692add0d91Sopenharmony_ci    ) -> ::c_int;
8702add0d91Sopenharmony_ci    pub fn MsgSendPulse_r(
8712add0d91Sopenharmony_ci        __coid: ::c_int,
8722add0d91Sopenharmony_ci        __priority: ::c_int,
8732add0d91Sopenharmony_ci        __code: ::c_int,
8742add0d91Sopenharmony_ci        __value: ::c_int,
8752add0d91Sopenharmony_ci    ) -> ::c_int;
8762add0d91Sopenharmony_ci    pub fn MsgSendPulsePtr(
8772add0d91Sopenharmony_ci        __coid: ::c_int,
8782add0d91Sopenharmony_ci        __priority: ::c_int,
8792add0d91Sopenharmony_ci        __code: ::c_int,
8802add0d91Sopenharmony_ci        __value: *mut ::c_void,
8812add0d91Sopenharmony_ci    ) -> ::c_int;
8822add0d91Sopenharmony_ci    pub fn MsgSendPulsePtr_r(
8832add0d91Sopenharmony_ci        __coid: ::c_int,
8842add0d91Sopenharmony_ci        __priority: ::c_int,
8852add0d91Sopenharmony_ci        __code: ::c_int,
8862add0d91Sopenharmony_ci        __value: *mut ::c_void,
8872add0d91Sopenharmony_ci    ) -> ::c_int;
8882add0d91Sopenharmony_ci    pub fn MsgDeliverEvent(__rcvid: ::c_int, __event: *const ::sigevent) -> ::c_int;
8892add0d91Sopenharmony_ci    pub fn MsgDeliverEvent_r(__rcvid: ::c_int, __event: *const ::sigevent) -> ::c_int;
8902add0d91Sopenharmony_ci    pub fn MsgVerifyEvent(__rcvid: ::c_int, __event: *const ::sigevent) -> ::c_int;
8912add0d91Sopenharmony_ci    pub fn MsgVerifyEvent_r(__rcvid: ::c_int, __event: *const ::sigevent) -> ::c_int;
8922add0d91Sopenharmony_ci    pub fn MsgRegisterEvent(__event: *mut ::sigevent, __coid: ::c_int) -> ::c_int;
8932add0d91Sopenharmony_ci    pub fn MsgRegisterEvent_r(__event: *mut ::sigevent, __coid: ::c_int) -> ::c_int;
8942add0d91Sopenharmony_ci    pub fn MsgUnregisterEvent(__event: *const ::sigevent) -> ::c_int;
8952add0d91Sopenharmony_ci    pub fn MsgUnregisterEvent_r(__event: *const ::sigevent) -> ::c_int;
8962add0d91Sopenharmony_ci    pub fn MsgInfo(__rcvid: ::c_int, __info: *mut _msg_info64) -> ::c_int;
8972add0d91Sopenharmony_ci    pub fn MsgInfo_r(__rcvid: ::c_int, __info: *mut _msg_info64) -> ::c_int;
8982add0d91Sopenharmony_ci    pub fn MsgKeyData(
8992add0d91Sopenharmony_ci        __rcvid: ::c_int,
9002add0d91Sopenharmony_ci        __oper: ::c_int,
9012add0d91Sopenharmony_ci        __key: u32,
9022add0d91Sopenharmony_ci        __newkey: *mut u32,
9032add0d91Sopenharmony_ci        __iov: *const ::iovec,
9042add0d91Sopenharmony_ci        __parts: ::c_int,
9052add0d91Sopenharmony_ci    ) -> ::c_int;
9062add0d91Sopenharmony_ci    pub fn MsgKeyData_r(
9072add0d91Sopenharmony_ci        __rcvid: ::c_int,
9082add0d91Sopenharmony_ci        __oper: ::c_int,
9092add0d91Sopenharmony_ci        __key: u32,
9102add0d91Sopenharmony_ci        __newkey: *mut u32,
9112add0d91Sopenharmony_ci        __iov: *const ::iovec,
9122add0d91Sopenharmony_ci        __parts: ::c_int,
9132add0d91Sopenharmony_ci    ) -> ::c_int;
9142add0d91Sopenharmony_ci    pub fn MsgError(__rcvid: ::c_int, __err: ::c_int) -> ::c_int;
9152add0d91Sopenharmony_ci    pub fn MsgError_r(__rcvid: ::c_int, __err: ::c_int) -> ::c_int;
9162add0d91Sopenharmony_ci    pub fn MsgCurrent(__rcvid: ::c_int) -> ::c_int;
9172add0d91Sopenharmony_ci    pub fn MsgCurrent_r(__rcvid: ::c_int) -> ::c_int;
9182add0d91Sopenharmony_ci    pub fn MsgSendAsyncGbl(
9192add0d91Sopenharmony_ci        __coid: ::c_int,
9202add0d91Sopenharmony_ci        __smsg: *const ::c_void,
9212add0d91Sopenharmony_ci        __sbytes: usize,
9222add0d91Sopenharmony_ci        __msg_prio: ::c_uint,
9232add0d91Sopenharmony_ci    ) -> ::c_int;
9242add0d91Sopenharmony_ci    pub fn MsgSendAsync(__coid: ::c_int) -> ::c_int;
9252add0d91Sopenharmony_ci    pub fn MsgReceiveAsyncGbl(
9262add0d91Sopenharmony_ci        __chid: ::c_int,
9272add0d91Sopenharmony_ci        __rmsg: *mut ::c_void,
9282add0d91Sopenharmony_ci        __rbytes: usize,
9292add0d91Sopenharmony_ci        __info: *mut _msg_info64,
9302add0d91Sopenharmony_ci        __coid: ::c_int,
9312add0d91Sopenharmony_ci    ) -> ::c_int;
9322add0d91Sopenharmony_ci    pub fn MsgReceiveAsync(__chid: ::c_int, __iov: *const ::iovec, __parts: ::c_uint) -> ::c_int;
9332add0d91Sopenharmony_ci    pub fn MsgPause(__rcvid: ::c_int, __cookie: ::c_uint) -> ::c_int;
9342add0d91Sopenharmony_ci    pub fn MsgPause_r(__rcvid: ::c_int, __cookie: ::c_uint) -> ::c_int;
9352add0d91Sopenharmony_ci
9362add0d91Sopenharmony_ci    pub fn SignalKill(
9372add0d91Sopenharmony_ci        __nd: u32,
9382add0d91Sopenharmony_ci        __pid: ::pid_t,
9392add0d91Sopenharmony_ci        __tid: ::c_int,
9402add0d91Sopenharmony_ci        __signo: ::c_int,
9412add0d91Sopenharmony_ci        __code: ::c_int,
9422add0d91Sopenharmony_ci        __value: ::c_int,
9432add0d91Sopenharmony_ci    ) -> ::c_int;
9442add0d91Sopenharmony_ci    pub fn SignalKill_r(
9452add0d91Sopenharmony_ci        __nd: u32,
9462add0d91Sopenharmony_ci        __pid: ::pid_t,
9472add0d91Sopenharmony_ci        __tid: ::c_int,
9482add0d91Sopenharmony_ci        __signo: ::c_int,
9492add0d91Sopenharmony_ci        __code: ::c_int,
9502add0d91Sopenharmony_ci        __value: ::c_int,
9512add0d91Sopenharmony_ci    ) -> ::c_int;
9522add0d91Sopenharmony_ci    pub fn SignalKillSigval(
9532add0d91Sopenharmony_ci        __nd: u32,
9542add0d91Sopenharmony_ci        __pid: ::pid_t,
9552add0d91Sopenharmony_ci        __tid: ::c_int,
9562add0d91Sopenharmony_ci        __signo: ::c_int,
9572add0d91Sopenharmony_ci        __code: ::c_int,
9582add0d91Sopenharmony_ci        __value: *const ::sigval,
9592add0d91Sopenharmony_ci    ) -> ::c_int;
9602add0d91Sopenharmony_ci    pub fn SignalKillSigval_r(
9612add0d91Sopenharmony_ci        __nd: u32,
9622add0d91Sopenharmony_ci        __pid: ::pid_t,
9632add0d91Sopenharmony_ci        __tid: ::c_int,
9642add0d91Sopenharmony_ci        __signo: ::c_int,
9652add0d91Sopenharmony_ci        __code: ::c_int,
9662add0d91Sopenharmony_ci        __value: *const ::sigval,
9672add0d91Sopenharmony_ci    ) -> ::c_int;
9682add0d91Sopenharmony_ci    pub fn SignalReturn(__info: *mut _sighandler_info) -> ::c_int;
9692add0d91Sopenharmony_ci    pub fn SignalFault(__sigcode: ::c_uint, __regs: *mut ::c_void, __refaddr: usize) -> ::c_int;
9702add0d91Sopenharmony_ci    pub fn SignalAction(
9712add0d91Sopenharmony_ci        __pid: ::pid_t,
9722add0d91Sopenharmony_ci        __sigstub: unsafe extern "C" fn(),
9732add0d91Sopenharmony_ci        __signo: ::c_int,
9742add0d91Sopenharmony_ci        __act: *const ::sigaction,
9752add0d91Sopenharmony_ci        __oact: *mut ::sigaction,
9762add0d91Sopenharmony_ci    ) -> ::c_int;
9772add0d91Sopenharmony_ci    pub fn SignalAction_r(
9782add0d91Sopenharmony_ci        __pid: ::pid_t,
9792add0d91Sopenharmony_ci        __sigstub: unsafe extern "C" fn(),
9802add0d91Sopenharmony_ci        __signo: ::c_int,
9812add0d91Sopenharmony_ci        __act: *const ::sigaction,
9822add0d91Sopenharmony_ci        __oact: *mut ::sigaction,
9832add0d91Sopenharmony_ci    ) -> ::c_int;
9842add0d91Sopenharmony_ci    pub fn SignalProcmask(
9852add0d91Sopenharmony_ci        __pid: ::pid_t,
9862add0d91Sopenharmony_ci        __tid: ::c_int,
9872add0d91Sopenharmony_ci        __how: ::c_int,
9882add0d91Sopenharmony_ci        __set: *const ::sigset_t,
9892add0d91Sopenharmony_ci        __oldset: *mut ::sigset_t,
9902add0d91Sopenharmony_ci    ) -> ::c_int;
9912add0d91Sopenharmony_ci    pub fn SignalProcmask_r(
9922add0d91Sopenharmony_ci        __pid: ::pid_t,
9932add0d91Sopenharmony_ci        __tid: ::c_int,
9942add0d91Sopenharmony_ci        __how: ::c_int,
9952add0d91Sopenharmony_ci        __set: *const ::sigset_t,
9962add0d91Sopenharmony_ci        __oldset: *mut ::sigset_t,
9972add0d91Sopenharmony_ci    ) -> ::c_int;
9982add0d91Sopenharmony_ci    pub fn SignalSuspend(__set: *const ::sigset_t) -> ::c_int;
9992add0d91Sopenharmony_ci    pub fn SignalSuspend_r(__set: *const ::sigset_t) -> ::c_int;
10002add0d91Sopenharmony_ci    pub fn SignalWaitinfo(__set: *const ::sigset_t, __info: *mut ::siginfo_t) -> ::c_int;
10012add0d91Sopenharmony_ci    pub fn SignalWaitinfo_r(__set: *const ::sigset_t, __info: *mut ::siginfo_t) -> ::c_int;
10022add0d91Sopenharmony_ci    pub fn SignalWaitinfoMask(
10032add0d91Sopenharmony_ci        __set: *const ::sigset_t,
10042add0d91Sopenharmony_ci        __info: *mut ::siginfo_t,
10052add0d91Sopenharmony_ci        __mask: *const ::sigset_t,
10062add0d91Sopenharmony_ci    ) -> ::c_int;
10072add0d91Sopenharmony_ci    pub fn SignalWaitinfoMask_r(
10082add0d91Sopenharmony_ci        __set: *const ::sigset_t,
10092add0d91Sopenharmony_ci        __info: *mut ::siginfo_t,
10102add0d91Sopenharmony_ci        __mask: *const ::sigset_t,
10112add0d91Sopenharmony_ci    ) -> ::c_int;
10122add0d91Sopenharmony_ci    pub fn ThreadCreate(
10132add0d91Sopenharmony_ci        __pid: ::pid_t,
10142add0d91Sopenharmony_ci        __func: unsafe extern "C" fn(__arg: *mut ::c_void) -> *mut ::c_void,
10152add0d91Sopenharmony_ci        __arg: *mut ::c_void,
10162add0d91Sopenharmony_ci        __attr: *const ::_thread_attr,
10172add0d91Sopenharmony_ci    ) -> ::c_int;
10182add0d91Sopenharmony_ci    pub fn ThreadCreate_r(
10192add0d91Sopenharmony_ci        __pid: ::pid_t,
10202add0d91Sopenharmony_ci        __func: unsafe extern "C" fn(__arg: *mut ::c_void) -> *mut ::c_void,
10212add0d91Sopenharmony_ci        __arg: *mut ::c_void,
10222add0d91Sopenharmony_ci        __attr: *const ::_thread_attr,
10232add0d91Sopenharmony_ci    ) -> ::c_int;
10242add0d91Sopenharmony_ci
10252add0d91Sopenharmony_ci    pub fn ThreadDestroy(__tid: ::c_int, __priority: ::c_int, __status: *mut ::c_void) -> ::c_int;
10262add0d91Sopenharmony_ci    pub fn ThreadDestroy_r(__tid: ::c_int, __priority: ::c_int, __status: *mut ::c_void)
10272add0d91Sopenharmony_ci        -> ::c_int;
10282add0d91Sopenharmony_ci    pub fn ThreadDetach(__tid: ::c_int) -> ::c_int;
10292add0d91Sopenharmony_ci    pub fn ThreadDetach_r(__tid: ::c_int) -> ::c_int;
10302add0d91Sopenharmony_ci    pub fn ThreadJoin(__tid: ::c_int, __status: *mut *mut ::c_void) -> ::c_int;
10312add0d91Sopenharmony_ci    pub fn ThreadJoin_r(__tid: ::c_int, __status: *mut *mut ::c_void) -> ::c_int;
10322add0d91Sopenharmony_ci    pub fn ThreadCancel(__tid: ::c_int, __canstub: unsafe extern "C" fn()) -> ::c_int;
10332add0d91Sopenharmony_ci    pub fn ThreadCancel_r(__tid: ::c_int, __canstub: unsafe extern "C" fn()) -> ::c_int;
10342add0d91Sopenharmony_ci    pub fn ThreadCtl(__cmd: ::c_int, __data: *mut ::c_void) -> ::c_int;
10352add0d91Sopenharmony_ci    pub fn ThreadCtl_r(__cmd: ::c_int, __data: *mut ::c_void) -> ::c_int;
10362add0d91Sopenharmony_ci    pub fn ThreadCtlExt(
10372add0d91Sopenharmony_ci        __pid: ::pid_t,
10382add0d91Sopenharmony_ci        __tid: ::c_int,
10392add0d91Sopenharmony_ci        __cmd: ::c_int,
10402add0d91Sopenharmony_ci        __data: *mut ::c_void,
10412add0d91Sopenharmony_ci    ) -> ::c_int;
10422add0d91Sopenharmony_ci    pub fn ThreadCtlExt_r(
10432add0d91Sopenharmony_ci        __pid: ::pid_t,
10442add0d91Sopenharmony_ci        __tid: ::c_int,
10452add0d91Sopenharmony_ci        __cmd: ::c_int,
10462add0d91Sopenharmony_ci        __data: *mut ::c_void,
10472add0d91Sopenharmony_ci    ) -> ::c_int;
10482add0d91Sopenharmony_ci
10492add0d91Sopenharmony_ci    pub fn InterruptHookTrace(
10502add0d91Sopenharmony_ci        __handler: ::Option<unsafe extern "C" fn(arg1: ::c_int) -> *const ::sigevent>,
10512add0d91Sopenharmony_ci        __flags: ::c_uint,
10522add0d91Sopenharmony_ci    ) -> ::c_int;
10532add0d91Sopenharmony_ci    pub fn InterruptHookIdle(
10542add0d91Sopenharmony_ci        __handler: ::Option<unsafe extern "C" fn(arg1: *mut u64, arg2: *mut qtime_entry)>,
10552add0d91Sopenharmony_ci        __flags: ::c_uint,
10562add0d91Sopenharmony_ci    ) -> ::c_int;
10572add0d91Sopenharmony_ci    pub fn InterruptHookIdle2(
10582add0d91Sopenharmony_ci        __handler: ::Option<
10592add0d91Sopenharmony_ci            unsafe extern "C" fn(arg1: ::c_uint, arg2: *mut syspage_entry, arg3: *mut _idle_hook),
10602add0d91Sopenharmony_ci        >,
10612add0d91Sopenharmony_ci        __flags: ::c_uint,
10622add0d91Sopenharmony_ci    ) -> ::c_int;
10632add0d91Sopenharmony_ci    pub fn InterruptHookOverdriveEvent(__event: *const ::sigevent, __flags: ::c_uint) -> ::c_int;
10642add0d91Sopenharmony_ci    pub fn InterruptAttachEvent(
10652add0d91Sopenharmony_ci        __intr: ::c_int,
10662add0d91Sopenharmony_ci        __event: *const ::sigevent,
10672add0d91Sopenharmony_ci        __flags: ::c_uint,
10682add0d91Sopenharmony_ci    ) -> ::c_int;
10692add0d91Sopenharmony_ci    pub fn InterruptAttachEvent_r(
10702add0d91Sopenharmony_ci        __intr: ::c_int,
10712add0d91Sopenharmony_ci        __event: *const ::sigevent,
10722add0d91Sopenharmony_ci        __flags: ::c_uint,
10732add0d91Sopenharmony_ci    ) -> ::c_int;
10742add0d91Sopenharmony_ci    pub fn InterruptAttach(
10752add0d91Sopenharmony_ci        __intr: ::c_int,
10762add0d91Sopenharmony_ci        __handler: ::Option<
10772add0d91Sopenharmony_ci            unsafe extern "C" fn(__area: *mut ::c_void, __id: ::c_int) -> *const ::sigevent,
10782add0d91Sopenharmony_ci        >,
10792add0d91Sopenharmony_ci        __area: *const ::c_void,
10802add0d91Sopenharmony_ci        __size: ::c_int,
10812add0d91Sopenharmony_ci        __flags: ::c_uint,
10822add0d91Sopenharmony_ci    ) -> ::c_int;
10832add0d91Sopenharmony_ci    pub fn InterruptAttach_r(
10842add0d91Sopenharmony_ci        __intr: ::c_int,
10852add0d91Sopenharmony_ci        __handler: ::Option<
10862add0d91Sopenharmony_ci            unsafe extern "C" fn(__area: *mut ::c_void, __id: ::c_int) -> *const ::sigevent,
10872add0d91Sopenharmony_ci        >,
10882add0d91Sopenharmony_ci        __area: *const ::c_void,
10892add0d91Sopenharmony_ci        __size: ::c_int,
10902add0d91Sopenharmony_ci        __flags: ::c_uint,
10912add0d91Sopenharmony_ci    ) -> ::c_int;
10922add0d91Sopenharmony_ci    pub fn InterruptAttachArray(
10932add0d91Sopenharmony_ci        __intr: ::c_int,
10942add0d91Sopenharmony_ci        __handler: ::Option<
10952add0d91Sopenharmony_ci            unsafe extern "C" fn(__area: *mut ::c_void, __id: ::c_int) -> *const *const ::sigevent,
10962add0d91Sopenharmony_ci        >,
10972add0d91Sopenharmony_ci        __area: *const ::c_void,
10982add0d91Sopenharmony_ci        __size: ::c_int,
10992add0d91Sopenharmony_ci        __flags: ::c_uint,
11002add0d91Sopenharmony_ci    ) -> ::c_int;
11012add0d91Sopenharmony_ci    pub fn InterruptAttachArray_r(
11022add0d91Sopenharmony_ci        __intr: ::c_int,
11032add0d91Sopenharmony_ci        __handler: ::Option<
11042add0d91Sopenharmony_ci            unsafe extern "C" fn(__area: *mut ::c_void, __id: ::c_int) -> *const *const ::sigevent,
11052add0d91Sopenharmony_ci        >,
11062add0d91Sopenharmony_ci        __area: *const ::c_void,
11072add0d91Sopenharmony_ci        __size: ::c_int,
11082add0d91Sopenharmony_ci        __flags: ::c_uint,
11092add0d91Sopenharmony_ci    ) -> ::c_int;
11102add0d91Sopenharmony_ci    pub fn InterruptDetach(__id: ::c_int) -> ::c_int;
11112add0d91Sopenharmony_ci    pub fn InterruptDetach_r(__id: ::c_int) -> ::c_int;
11122add0d91Sopenharmony_ci    pub fn InterruptWait(__flags: ::c_int, __timeout: *const u64) -> ::c_int;
11132add0d91Sopenharmony_ci    pub fn InterruptWait_r(__flags: ::c_int, __timeout: *const u64) -> ::c_int;
11142add0d91Sopenharmony_ci    pub fn InterruptCharacteristic(
11152add0d91Sopenharmony_ci        __type: ::c_int,
11162add0d91Sopenharmony_ci        __id: ::c_int,
11172add0d91Sopenharmony_ci        __new: *mut ::c_uint,
11182add0d91Sopenharmony_ci        __old: *mut ::c_uint,
11192add0d91Sopenharmony_ci    ) -> ::c_int;
11202add0d91Sopenharmony_ci    pub fn InterruptCharacteristic_r(
11212add0d91Sopenharmony_ci        __type: ::c_int,
11222add0d91Sopenharmony_ci        __id: ::c_int,
11232add0d91Sopenharmony_ci        __new: *mut ::c_uint,
11242add0d91Sopenharmony_ci        __old: *mut ::c_uint,
11252add0d91Sopenharmony_ci    ) -> ::c_int;
11262add0d91Sopenharmony_ci
11272add0d91Sopenharmony_ci    pub fn SchedGet(__pid: ::pid_t, __tid: ::c_int, __param: *mut ::sched_param) -> ::c_int;
11282add0d91Sopenharmony_ci    pub fn SchedGet_r(__pid: ::pid_t, __tid: ::c_int, __param: *mut ::sched_param) -> ::c_int;
11292add0d91Sopenharmony_ci    pub fn SchedGetCpuNum() -> ::c_uint;
11302add0d91Sopenharmony_ci    pub fn SchedSet(
11312add0d91Sopenharmony_ci        __pid: ::pid_t,
11322add0d91Sopenharmony_ci        __tid: ::c_int,
11332add0d91Sopenharmony_ci        __algorithm: ::c_int,
11342add0d91Sopenharmony_ci        __param: *const ::sched_param,
11352add0d91Sopenharmony_ci    ) -> ::c_int;
11362add0d91Sopenharmony_ci    pub fn SchedSet_r(
11372add0d91Sopenharmony_ci        __pid: ::pid_t,
11382add0d91Sopenharmony_ci        __tid: ::c_int,
11392add0d91Sopenharmony_ci        __algorithm: ::c_int,
11402add0d91Sopenharmony_ci        __param: *const ::sched_param,
11412add0d91Sopenharmony_ci    ) -> ::c_int;
11422add0d91Sopenharmony_ci    pub fn SchedInfo(__pid: ::pid_t, __algorithm: ::c_int, __info: *mut ::_sched_info) -> ::c_int;
11432add0d91Sopenharmony_ci    pub fn SchedInfo_r(__pid: ::pid_t, __algorithm: ::c_int, __info: *mut ::_sched_info)
11442add0d91Sopenharmony_ci        -> ::c_int;
11452add0d91Sopenharmony_ci    pub fn SchedYield() -> ::c_int;
11462add0d91Sopenharmony_ci    pub fn SchedYield_r() -> ::c_int;
11472add0d91Sopenharmony_ci    pub fn SchedCtl(__cmd: ::c_int, __data: *mut ::c_void, __length: usize) -> ::c_int;
11482add0d91Sopenharmony_ci    pub fn SchedCtl_r(__cmd: ::c_int, __data: *mut ::c_void, __length: usize) -> ::c_int;
11492add0d91Sopenharmony_ci    pub fn SchedJobCreate(__job: *mut nto_job_t) -> ::c_int;
11502add0d91Sopenharmony_ci    pub fn SchedJobCreate_r(__job: *mut nto_job_t) -> ::c_int;
11512add0d91Sopenharmony_ci    pub fn SchedJobDestroy(__job: *mut nto_job_t) -> ::c_int;
11522add0d91Sopenharmony_ci    pub fn SchedJobDestroy_r(__job: *mut nto_job_t) -> ::c_int;
11532add0d91Sopenharmony_ci    pub fn SchedWaypoint(
11542add0d91Sopenharmony_ci        __job: *mut nto_job_t,
11552add0d91Sopenharmony_ci        __new: *const i64,
11562add0d91Sopenharmony_ci        __max: *const i64,
11572add0d91Sopenharmony_ci        __old: *mut i64,
11582add0d91Sopenharmony_ci    ) -> ::c_int;
11592add0d91Sopenharmony_ci    pub fn SchedWaypoint_r(
11602add0d91Sopenharmony_ci        __job: *mut nto_job_t,
11612add0d91Sopenharmony_ci        __new: *const i64,
11622add0d91Sopenharmony_ci        __max: *const i64,
11632add0d91Sopenharmony_ci        __old: *mut i64,
11642add0d91Sopenharmony_ci    ) -> ::c_int;
11652add0d91Sopenharmony_ci
11662add0d91Sopenharmony_ci    pub fn TimerCreate(__id: ::clockid_t, __notify: *const ::sigevent) -> ::c_int;
11672add0d91Sopenharmony_ci    pub fn TimerCreate_r(__id: ::clockid_t, __notify: *const ::sigevent) -> ::c_int;
11682add0d91Sopenharmony_ci    pub fn TimerDestroy(__id: ::timer_t) -> ::c_int;
11692add0d91Sopenharmony_ci    pub fn TimerDestroy_r(__id: ::timer_t) -> ::c_int;
11702add0d91Sopenharmony_ci    pub fn TimerSettime(
11712add0d91Sopenharmony_ci        __id: ::timer_t,
11722add0d91Sopenharmony_ci        __flags: ::c_int,
11732add0d91Sopenharmony_ci        __itime: *const ::_itimer,
11742add0d91Sopenharmony_ci        __oitime: *mut ::_itimer,
11752add0d91Sopenharmony_ci    ) -> ::c_int;
11762add0d91Sopenharmony_ci    pub fn TimerSettime_r(
11772add0d91Sopenharmony_ci        __id: ::timer_t,
11782add0d91Sopenharmony_ci        __flags: ::c_int,
11792add0d91Sopenharmony_ci        __itime: *const ::_itimer,
11802add0d91Sopenharmony_ci        __oitime: *mut ::_itimer,
11812add0d91Sopenharmony_ci    ) -> ::c_int;
11822add0d91Sopenharmony_ci    pub fn TimerInfo(
11832add0d91Sopenharmony_ci        __pid: ::pid_t,
11842add0d91Sopenharmony_ci        __id: ::timer_t,
11852add0d91Sopenharmony_ci        __flags: ::c_int,
11862add0d91Sopenharmony_ci        __info: *mut ::_timer_info,
11872add0d91Sopenharmony_ci    ) -> ::c_int;
11882add0d91Sopenharmony_ci    pub fn TimerInfo_r(
11892add0d91Sopenharmony_ci        __pid: ::pid_t,
11902add0d91Sopenharmony_ci        __id: ::timer_t,
11912add0d91Sopenharmony_ci        __flags: ::c_int,
11922add0d91Sopenharmony_ci        __info: *mut ::_timer_info,
11932add0d91Sopenharmony_ci    ) -> ::c_int;
11942add0d91Sopenharmony_ci    pub fn TimerAlarm(
11952add0d91Sopenharmony_ci        __id: ::clockid_t,
11962add0d91Sopenharmony_ci        __itime: *const ::_itimer,
11972add0d91Sopenharmony_ci        __otime: *mut ::_itimer,
11982add0d91Sopenharmony_ci    ) -> ::c_int;
11992add0d91Sopenharmony_ci    pub fn TimerAlarm_r(
12002add0d91Sopenharmony_ci        __id: ::clockid_t,
12012add0d91Sopenharmony_ci        __itime: *const ::_itimer,
12022add0d91Sopenharmony_ci        __otime: *mut ::_itimer,
12032add0d91Sopenharmony_ci    ) -> ::c_int;
12042add0d91Sopenharmony_ci    pub fn TimerTimeout(
12052add0d91Sopenharmony_ci        __id: ::clockid_t,
12062add0d91Sopenharmony_ci        __flags: ::c_int,
12072add0d91Sopenharmony_ci        __notify: *const ::sigevent,
12082add0d91Sopenharmony_ci        __ntime: *const u64,
12092add0d91Sopenharmony_ci        __otime: *mut u64,
12102add0d91Sopenharmony_ci    ) -> ::c_int;
12112add0d91Sopenharmony_ci    pub fn TimerTimeout_r(
12122add0d91Sopenharmony_ci        __id: ::clockid_t,
12132add0d91Sopenharmony_ci        __flags: ::c_int,
12142add0d91Sopenharmony_ci        __notify: *const ::sigevent,
12152add0d91Sopenharmony_ci        __ntime: *const u64,
12162add0d91Sopenharmony_ci        __otime: *mut u64,
12172add0d91Sopenharmony_ci    ) -> ::c_int;
12182add0d91Sopenharmony_ci
12192add0d91Sopenharmony_ci    pub fn SyncTypeCreate(
12202add0d91Sopenharmony_ci        __type: ::c_uint,
12212add0d91Sopenharmony_ci        __sync: *mut ::sync_t,
12222add0d91Sopenharmony_ci        __attr: *const ::_sync_attr,
12232add0d91Sopenharmony_ci    ) -> ::c_int;
12242add0d91Sopenharmony_ci    pub fn SyncTypeCreate_r(
12252add0d91Sopenharmony_ci        __type: ::c_uint,
12262add0d91Sopenharmony_ci        __sync: *mut ::sync_t,
12272add0d91Sopenharmony_ci        __attr: *const ::_sync_attr,
12282add0d91Sopenharmony_ci    ) -> ::c_int;
12292add0d91Sopenharmony_ci    pub fn SyncDestroy(__sync: *mut ::sync_t) -> ::c_int;
12302add0d91Sopenharmony_ci    pub fn SyncDestroy_r(__sync: *mut ::sync_t) -> ::c_int;
12312add0d91Sopenharmony_ci    pub fn SyncCtl(__cmd: ::c_int, __sync: *mut ::sync_t, __data: *mut ::c_void) -> ::c_int;
12322add0d91Sopenharmony_ci    pub fn SyncCtl_r(__cmd: ::c_int, __sync: *mut ::sync_t, __data: *mut ::c_void) -> ::c_int;
12332add0d91Sopenharmony_ci    pub fn SyncMutexEvent(__sync: *mut ::sync_t, event: *const ::sigevent) -> ::c_int;
12342add0d91Sopenharmony_ci    pub fn SyncMutexEvent_r(__sync: *mut ::sync_t, event: *const ::sigevent) -> ::c_int;
12352add0d91Sopenharmony_ci    pub fn SyncMutexLock(__sync: *mut ::sync_t) -> ::c_int;
12362add0d91Sopenharmony_ci    pub fn SyncMutexLock_r(__sync: *mut ::sync_t) -> ::c_int;
12372add0d91Sopenharmony_ci    pub fn SyncMutexUnlock(__sync: *mut ::sync_t) -> ::c_int;
12382add0d91Sopenharmony_ci    pub fn SyncMutexUnlock_r(__sync: *mut ::sync_t) -> ::c_int;
12392add0d91Sopenharmony_ci    pub fn SyncMutexRevive(__sync: *mut ::sync_t) -> ::c_int;
12402add0d91Sopenharmony_ci    pub fn SyncMutexRevive_r(__sync: *mut ::sync_t) -> ::c_int;
12412add0d91Sopenharmony_ci    pub fn SyncCondvarWait(__sync: *mut ::sync_t, __mutex: *mut ::sync_t) -> ::c_int;
12422add0d91Sopenharmony_ci    pub fn SyncCondvarWait_r(__sync: *mut ::sync_t, __mutex: *mut ::sync_t) -> ::c_int;
12432add0d91Sopenharmony_ci    pub fn SyncCondvarSignal(__sync: *mut ::sync_t, __all: ::c_int) -> ::c_int;
12442add0d91Sopenharmony_ci    pub fn SyncCondvarSignal_r(__sync: *mut ::sync_t, __all: ::c_int) -> ::c_int;
12452add0d91Sopenharmony_ci    pub fn SyncSemPost(__sync: *mut ::sync_t) -> ::c_int;
12462add0d91Sopenharmony_ci    pub fn SyncSemPost_r(__sync: *mut ::sync_t) -> ::c_int;
12472add0d91Sopenharmony_ci    pub fn SyncSemWait(__sync: *mut ::sync_t, __tryto: ::c_int) -> ::c_int;
12482add0d91Sopenharmony_ci    pub fn SyncSemWait_r(__sync: *mut ::sync_t, __tryto: ::c_int) -> ::c_int;
12492add0d91Sopenharmony_ci
12502add0d91Sopenharmony_ci    pub fn ClockTime(__id: ::clockid_t, _new: *const u64, __old: *mut u64) -> ::c_int;
12512add0d91Sopenharmony_ci    pub fn ClockTime_r(__id: ::clockid_t, _new: *const u64, __old: *mut u64) -> ::c_int;
12522add0d91Sopenharmony_ci    pub fn ClockAdjust(
12532add0d91Sopenharmony_ci        __id: ::clockid_t,
12542add0d91Sopenharmony_ci        _new: *const ::_clockadjust,
12552add0d91Sopenharmony_ci        __old: *mut ::_clockadjust,
12562add0d91Sopenharmony_ci    ) -> ::c_int;
12572add0d91Sopenharmony_ci    pub fn ClockAdjust_r(
12582add0d91Sopenharmony_ci        __id: ::clockid_t,
12592add0d91Sopenharmony_ci        _new: *const ::_clockadjust,
12602add0d91Sopenharmony_ci        __old: *mut ::_clockadjust,
12612add0d91Sopenharmony_ci    ) -> ::c_int;
12622add0d91Sopenharmony_ci    pub fn ClockPeriod(
12632add0d91Sopenharmony_ci        __id: ::clockid_t,
12642add0d91Sopenharmony_ci        _new: *const ::_clockperiod,
12652add0d91Sopenharmony_ci        __old: *mut ::_clockperiod,
12662add0d91Sopenharmony_ci        __reserved: ::c_int,
12672add0d91Sopenharmony_ci    ) -> ::c_int;
12682add0d91Sopenharmony_ci    pub fn ClockPeriod_r(
12692add0d91Sopenharmony_ci        __id: ::clockid_t,
12702add0d91Sopenharmony_ci        _new: *const ::_clockperiod,
12712add0d91Sopenharmony_ci        __old: *mut ::_clockperiod,
12722add0d91Sopenharmony_ci        __reserved: ::c_int,
12732add0d91Sopenharmony_ci    ) -> ::c_int;
12742add0d91Sopenharmony_ci    pub fn ClockId(__pid: ::pid_t, __tid: ::c_int) -> ::c_int;
12752add0d91Sopenharmony_ci    pub fn ClockId_r(__pid: ::pid_t, __tid: ::c_int) -> ::c_int;
12762add0d91Sopenharmony_ci
12772add0d91Sopenharmony_ci    //
12782add0d91Sopenharmony_ci    //TODO: The following commented out functions are implemented in assembly.
12792add0d91Sopenharmony_ci    //      We can implmement them either via a C stub or rust's inline assembly.
12802add0d91Sopenharmony_ci    //
12812add0d91Sopenharmony_ci    //pub fn InterruptEnable();
12822add0d91Sopenharmony_ci    //pub fn InterruptDisable();
12832add0d91Sopenharmony_ci    pub fn InterruptMask(__intr: ::c_int, __id: ::c_int) -> ::c_int;
12842add0d91Sopenharmony_ci    pub fn InterruptUnmask(__intr: ::c_int, __id: ::c_int) -> ::c_int;
12852add0d91Sopenharmony_ci    //pub fn InterruptLock(__spin: *mut ::intrspin);
12862add0d91Sopenharmony_ci    //pub fn InterruptUnlock(__spin: *mut ::intrspin);
12872add0d91Sopenharmony_ci    //pub fn InterruptStatus() -> ::c_uint;
12882add0d91Sopenharmony_ci}
1289