/bionic/libc/bionic/ |
H A D | grp_pwd.cpp | 55 // okay for all the <grp.h> functions to share state, and all the <passwd.h> 56 // functions to share state, but <grp.h> functions can't clobber <passwd.h> 57 // functions' state and vice versa. 67 static void init_group_state(group_state_t* state) { argument 68 memset(state, 0, sizeof(group_state_t) - sizeof(state->getgrent_idx)); 69 state->group_.gr_mem = state->group_members_; 140 static passwd* android_iinfo_to_passwd(passwd_state_t* state, argument 142 snprintf(state 155 android_iinfo_to_group(group_state_t* state, const android_id_info* iinfo) argument 166 android_id_to_passwd(passwd_state_t* state, unsigned id) argument 175 android_name_to_passwd(passwd_state_t* state, const char* name) argument 184 android_id_to_group(group_state_t* state, unsigned id) argument 193 android_name_to_group(group_state_t* state, const char* name) argument 427 oem_id_to_passwd(uid_t uid, passwd_state_t* state) argument 449 oem_id_to_group(gid_t gid, group_state_t* state) argument 474 app_id_to_passwd(uid_t uid, passwd_state_t* state) argument 502 app_id_to_group(gid_t gid, group_state_t* state) argument 518 passwd_state_t* state = get_passwd_tls_buffer(); local 536 passwd_state_t* state = get_passwd_tls_buffer(); local 585 passwd_state_t* state = get_passwd_tls_buffer(); local 596 passwd_state_t* state = get_passwd_tls_buffer(); local 636 getgrgid_internal(gid_t gid, group_state_t* state) argument 650 group_state_t* state = __group_state(); local 657 getgrnam_internal(const char* name, group_state_t* state) argument 678 group_state_t* state = __group_state(); local 694 group_state_t* state = reinterpret_cast<group_state_t*>(p); local 715 group_state_t* state = get_group_tls_buffer(); local 726 group_state_t* state = get_group_tls_buffer(); local [all...] |
H A D | mblen.cpp | 33 mbstate_t state = {}; local 34 return mbrlen(s, n, &state);
|
H A D | mbrtoc16.cpp | 36 static inline bool mbspartialc16(const mbstate_t* state) { argument 37 return mbstate_get_byte(state, 3) != 0; 41 size_t nconv, mbstate_t* state) { 45 mbstate_set_byte(state, 0, trail & 0x00ff); 46 mbstate_set_byte(state, 1, (trail & 0xff00) >> 8); 47 mbstate_set_byte(state, 3, nconv & 0xff); 54 static size_t finish_surrogate(char16_t* pc16, mbstate_t* state) { argument 55 char16_t trail = mbstate_get_byte(state, 1) << 8 | 56 mbstate_get_byte(state, 0); 58 return mbstate_reset_and_return(mbstate_get_byte(state, 40 begin_surrogate(char32_t c32, char16_t* pc16, size_t nconv, mbstate_t* state) argument 63 mbstate_t* state = (ps == NULL) ? &__private_state : ps; local [all...] |
H A D | mbrtoc32.cpp | 38 mbstate_t* state = (ps == NULL) ? &__private_state : ps; local 40 // We should never get to a state which has all 4 bytes of the sequence set. 41 // Full state verification is done when decoding the sequence (after we have 43 if (mbstate_get_byte(state, 3) != 0) { 44 return mbstate_reset_and_return_illegal(EINVAL, state); 58 if (mbsinit(state) && (((ch = static_cast<uint8_t>(*s)) & ~0x7f) == 0)) { 80 // The first byte in the state (if any) tells the length. 81 size_t bytes_so_far = mbstate_bytes_so_far(state); 82 ch = bytes_so_far > 0 ? mbstate_get_byte(state, 0) : static_cast<uint8_t>(*s); 101 return mbstate_reset_and_return_illegal(EILSEQ, state); [all...] |
H A D | pthread_attr.cpp | 88 int pthread_attr_setdetachstate(pthread_attr_t* attr, int state) { argument 89 if (state == PTHREAD_CREATE_DETACHED) { 91 } else if (state == PTHREAD_CREATE_JOINABLE) { 100 int pthread_attr_getdetachstate(const pthread_attr_t* attr, int* state) { argument 101 *state = (attr->flags & PTHREAD_ATTR_FLAG_DETACHED) ? PTHREAD_CREATE_DETACHED : PTHREAD_CREATE_JOINABLE;
|
H A D | pthread_barrier.cpp | 70 // Barrier state. It is WAIT if waiting for more threads to enter the barrier in this cycle, 72 _Atomic(BarrierState) state; member in struct:pthread_barrier_internal_t 98 atomic_init(&barrier->state, WAIT); 120 while(atomic_load_explicit(&barrier->state, memory_order_acquire) == RELEASE) { 121 __futex_wait_ex(&barrier->state, barrier->pshared, RELEASE, false, nullptr); 148 atomic_store_explicit(&barrier->state, RELEASE, memory_order_release); 149 __futex_wake_ex(&barrier->state, barrier->pshared, prev_wait_count); 154 while (atomic_load_explicit(&barrier->state, memory_order_acquire) == WAIT) { 155 __futex_wait_ex(&barrier->state, barrier->pshared, WAIT, false, nullptr); 162 atomic_store_explicit(&barrier->state, WAI [all...] |
H A D | pthread_cond.cpp | 108 atomic_uint state; member in struct:pthread_cond_internal_t 111 return COND_IS_SHARED(atomic_load_explicit(&state, memory_order_relaxed)); 115 return COND_GET_CLOCK(atomic_load_explicit(&state, memory_order_relaxed)) == CLOCK_REALTIME; 142 atomic_init(&cond->state, init_state); 149 atomic_store_explicit(&cond->state, 0xdeadc04d, memory_order_relaxed); 167 atomic_fetch_add_explicit(&cond->state, COND_COUNTER_STEP, memory_order_relaxed); 169 __futex_wake_ex(&cond->state, cond->process_shared(), thread_count); 180 unsigned int old_state = atomic_load_explicit(&cond->state, memory_order_relaxed); 182 int status = __futex_wait_ex(&cond->state, cond->process_shared(), old_state,
|
H A D | pthread_mutex.cpp | 228 // The mutex should be in unlocked state (owner_tid == 0) when destroyed. 349 /* Mutex state: 422 // Atomic(uint16_t) state; 425 // state holds the following fields: 431 // pi_mutex holds the state of a PI mutex. 432 // pi_mutex_id holds an integer to find the state of a PI mutex. 435 // Atomic(uint16_t) state; 438 // state holds the following fields: 444 // 1-0 state lock state ( 454 _Atomic(uint16_t) state; member in struct:pthread_mutex_internal_t 510 uint16_t state = 0; local [all...] |
H A D | pthread_rwlock.cpp | 137 // A rwlock state is implemented as a 32-bit integer which has following rules: 158 atomic_int state; member in struct:pthread_rwlock_internal_t 166 // in state, increase pending_reader_count, and wait on pending_reader_wakeup_serial. After woken 168 // remove STATE_HAVE_PENDING_READERS_FLAG in state. A pending writer thread works in a similar way, 184 static inline __always_inline bool __state_owned_by_writer(int state) { argument 185 return state < 0; 188 static inline __always_inline bool __state_owned_by_readers(int state) { argument 189 // If state >= 0, the owned_by_writer_flag is not set. 190 // And if state >= STATE_READER_COUNT_CHANGE_STEP, the reader_count field is not empty. 191 return state > 194 __state_owned_by_readers_or_writer(int state) argument 198 __state_add_writer_flag(int state) argument 202 __state_is_last_reader(int state) argument 206 __state_have_pending_writers(int state) argument 210 __state_have_pending_readers_or_writers(int state) argument [all...] |
H A D | wchar.cpp | 42 // The state is the UTF-8 sequence. We only support <= 4-bytes sequences so LP32 45 // intermediary state). 47 // The C standard leaves the conversion state undefined after a bad conversion. 49 // state we always reset the conversion state when encountering illegal 62 mbstate_t* state = (ps == NULL) ? &__private_state : ps; local 65 return mbrtoc32(reinterpret_cast<char32_t*>(pwc), s, n, state); 70 mbstate_t* state = (ps == NULL) ? &__private_state : ps; local 76 if (nmc > 0 && mbstate_bytes_so_far(state) > 0 && static_cast<uint8_t>((*src)[0]) < 0x80) { 77 return mbstate_reset_and_return_illegal(EILSEQ, state); 141 mbstate_t* state = (ps == NULL) ? &__private_state : ps; local 149 mbstate_t* state = (ps == NULL) ? &__private_state : ps; local [all...] |
/bionic/libc/kernel/uapi/drm/ |
H A D | amdgpu_drm.h | 134 } state; member in union:drm_amdgpu_ctx_out
|
H A D | radeon_drm.h | 500 drm_radeon_state_t __user * state; member in struct:drm_radeon_vertex2
|
H A D | savage_drm.h | 127 } state; member in union:drm_savage_cmd_header
|
/bionic/libc/kernel/uapi/linux/ |
H A D | ax25.h | 90 unsigned int state; member in struct:ax25_info_struct_deprecated 99 unsigned int state; member in struct:ax25_info_struct
|
H A D | btrfs.h | 238 __u64 state; member in struct:btrfs_ioctl_balance_args
|
H A D | i2o-dev.h | 146 __u32 state : 4; member in struct:_i2o_hrt_entry
|
H A D | if_bonding.h | 62 __s8 state; member in struct:ifslave
|
H A D | if_bridge.h | 82 __u8 state; member in struct:__port_info 191 __u8 state; member in struct:br_mdb_entry
|
H A D | ip_vs.h | 165 int state; member in struct:ip_vs_daemon_user
|
H A D | msdos_fs.h | 106 __u8 state; member in struct:fat_boot_sector::__anon657::__anon658 121 __u8 state; member in struct:fat_boot_sector::__anon657::__anon659
|
H A D | synclink.h | 199 __u32 state; member in struct:gpio_desc
|
H A D | xfrm.h | 376 struct xfrm_usersa_info state; member in struct:xfrm_user_expire
|
/bionic/libc/kernel/uapi/linux/raid/ |
H A D | md_p.h | 60 __u32 state; member in struct:mdp_device_descriptor_s 87 __u32 state; member in struct:mdp_superblock_s
|
H A D | md_u.h | 64 int state; member in struct:mdu_array_info_s 81 int state; member in struct:mdu_disk_info_s 87 int state; member in struct:mdu_start_info_s
|
/bionic/libc/kernel/uapi/linux/wimax/ |
H A D | i2400m.h | 240 __le32 state; member in struct:i2400m_tlv_system_state
|