Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 26) sorted by relevance

12

/sysdeps/htl/
A Dpt-getspecific.c24 __pthread_getspecific (pthread_key_t key) in __pthread_getspecific() argument
28 if (key < 0 || key >= __pthread_key_count in __pthread_getspecific()
29 || __pthread_key_destructors[key] == PTHREAD_KEY_INVALID) in __pthread_getspecific()
33 if (key >= self->thread_specifics_size) in __pthread_getspecific()
36 return self->thread_specifics[key]; in __pthread_getspecific()
A Dpt-setspecific.c24 __pthread_setspecific (pthread_key_t key, const void *value) in __pthread_setspecific() argument
28 if (key < 0 || key >= __pthread_key_count in __pthread_setspecific()
29 || __pthread_key_destructors[key] == PTHREAD_KEY_INVALID) in __pthread_setspecific()
32 if (key >= self->thread_specifics_size) in __pthread_setspecific()
35 int newsize = 2 * key + 1; in __pthread_setspecific()
47 self->thread_specifics[key] = (void *) value; in __pthread_setspecific()
A Dpt-key-delete.c24 __pthread_key_delete (pthread_key_t key) in __pthread_key_delete() argument
32 if (key < 0 || key >= __pthread_key_count in __pthread_key_delete()
33 || __pthread_key_destructors[key] == PTHREAD_KEY_INVALID) in __pthread_key_delete()
39 __pthread_key_destructors[key] = PTHREAD_KEY_INVALID; in __pthread_key_delete()
54 if (key < t->thread_specifics_size) in __pthread_key_delete()
55 t->thread_specifics[key] = 0; in __pthread_key_delete()
A Dpt-key-create.c34 __pthread_key_create (pthread_key_t *key, void (*destructor) (void *)) in __pthread_key_create() argument
57 *key = index++; in __pthread_key_create()
101 *key = index; in __pthread_key_create()
A DpthreadP.h75 int __pthread_key_create (pthread_key_t *key, void (*destr) (void *));
76 void *__pthread_getspecific (pthread_key_t key);
77 int __pthread_setspecific (pthread_key_t key, const void *value);
78 int __pthread_key_delete (pthread_key_t key);
/sysdeps/pthread/
A Dtst-tss-basic.c26 static tss_t key; variable
33 if (tss_create (&key, NULL) != thrd_success) in tss_thrd()
36 if (tss_set (key, TSS_VALUE) != thrd_success) in tss_thrd()
39 void *value = tss_get (key); in tss_thrd()
52 if (tss_set (key, TSS_VALUE) == thrd_success) in do_test()
55 if (tss_create (&key, NULL) != thrd_success) in do_test()
66 void *value = tss_get (key); in do_test()
70 tss_delete (key); in do_test()
A Dtst-tsd2.c39 pthread_key_t key = (pthread_key_t) (long int) arg; in tf() local
43 err = pthread_setspecific (key, &result); in tf()
54 pthread_key_t key; in do_test() local
58 err = pthread_key_create (&key, destr); in do_test()
67 err = pthread_create (&th, NULL, tf, (void *) (long int) key); in do_test()
A Dtst-key2.c56 pthread_key_t *key = (pthread_key_t *) arg; in tf() local
59 if (pthread_setspecific (*key, arg) != 0) in tf()
A Dtst-key3.c59 pthread_key_t *key = (pthread_key_t *) arg; in tf() local
61 if (pthread_setspecific (*key, arg) != 0) in tf()
/sysdeps/unix/sysv/linux/x86/
A Dpkey_set.c23 pkey_set (int key, unsigned int rights) in pkey_set() argument
25 if (key < 0 || key > 15 || rights > 3) in pkey_set()
30 unsigned int mask = 3 << (2 * key); in pkey_set()
32 pkru = (pkru & ~mask) | (rights << (2 * key)); in pkey_set()
A Dpkey_get.c23 pkey_get (int key) in pkey_get() argument
25 if (key < 0 || key > 15) in pkey_get()
31 return (pkru >> (2 * key)) & 3; in pkey_get()
/sysdeps/unix/sysv/linux/powerpc/powerpc64/
A Dpkey_get.c24 pkey_get (int key) in pkey_get() argument
26 if (key < 0 || key > PKEY_MAX) in pkey_get()
31 unsigned int index = pkey_index (key); in pkey_get()
A Dpkey_set.c24 pkey_set (int key, unsigned int rights) in pkey_set() argument
26 if (key < 0 || key > PKEY_MAX || rights > 3) in pkey_set()
42 unsigned int index = pkey_index (key); in pkey_set()
A Darch-pkey.h50 pkey_index (int key) in pkey_index() argument
52 return 2 * (PKEY_MAX - key); in pkey_index()
/sysdeps/mach/hurd/
A Dcthreads.c30 __cthread_keycreate (__cthread_key_t *key) in __cthread_keycreate() argument
33 *key = -1; in __cthread_keycreate()
40 __cthread_getspecific (__cthread_key_t key, void **pval) in __cthread_getspecific() argument
50 __cthread_setspecific (__cthread_key_t key, void *val) in __cthread_setspecific() argument
/sysdeps/unix/sysv/linux/
A Dmsgget.c26 msgget (key_t key, int msgflg) in msgget() argument
29 return INLINE_SYSCALL_CALL (msgget, key, msgflg); in msgget()
31 return INLINE_SYSCALL_CALL (ipc, IPCOP_msgget, key, msgflg, 0, NULL); in msgget()
A Dsemget.c27 semget (key_t key, int nsems, int semflg) in semget() argument
30 return INLINE_SYSCALL_CALL (semget, key, nsems, semflg); in semget()
32 return INLINE_SYSCALL_CALL (ipc, IPCOP_semget, key, nsems, semflg, NULL); in semget()
A Dshmget.c27 shmget (key_t key, size_t size, int shmflg) in shmget() argument
30 return INLINE_SYSCALL_CALL (shmget, key, size, shmflg, NULL); in shmget()
32 return INLINE_SYSCALL_CALL (ipc, IPCOP_shmget, key, size, shmflg, NULL); in shmget()
A Dtst-sysvshm-linux.c88 check_shminfo (int idx, key_t key, int cmd) in check_shminfo() argument
101 TEST_COMPARE (shminfo.shm_perm.__key, key); in check_shminfo()
117 key_t key = ftok (name, 'G'); in do_test() local
118 if (key == -1) in do_test()
121 shmid = shmget (key, pgsz, IPC_CREAT | IPC_EXCL | SHM_MODE); in do_test()
169 check_shminfo (i, key, SHM_STAT_ANY); in do_test()
171 if (check_shminfo (i, key, SHM_STAT)) in do_test()
A Dtst-sysvmsg-linux.c87 check_msginfo (int idx, key_t key, int cmd) in check_msginfo() argument
100 TEST_COMPARE (msginfo.msg_perm.__key, key); in check_msginfo()
112 key_t key = ftok (name, 'G'); in do_test() local
113 if (key == -1) in do_test()
116 msqid = msgget (key, MSGQ_MODE | IPC_CREAT); in do_test()
158 check_msginfo (i, key, MSG_STAT_ANY); in do_test()
160 if (check_msginfo (i, key, MSG_STAT)) in do_test()
A Dtst-sysvsem-linux.c96 check_seminfo (int idx, key_t key, int cmd) in check_seminfo() argument
108 TEST_COMPARE (seminfo.sem_perm.__key, key); in check_seminfo()
120 key_t key = ftok (name, 'G'); in do_test() local
121 if (key == -1) in do_test()
124 semid = semget (key, 1, IPC_CREAT | IPC_EXCL | SEM_MODE); in do_test()
165 check_seminfo (i, key, SEM_STAT_ANY); in do_test()
167 if (check_seminfo (i, key, SEM_STAT)) in do_test()
A Dpkey_get.c22 pkey_get (int key) in pkey_get() argument
A Dpkey_set.c22 pkey_set (int key, unsigned int access_rights) in pkey_set() argument
/sysdeps/generic/
A Ddl-cache.h70 uint32_t key, value; /* String table indices. */ member
95 uint32_t key, value; /* String table indices. */ member
/sysdeps/nptl/
A DpthreadP.h498 extern int __pthread_key_create (pthread_key_t *key, void (*destr) (void *));
500 extern int __pthread_key_delete (pthread_key_t key);
502 extern void *__pthread_getspecific (pthread_key_t key);
504 extern int __pthread_setspecific (pthread_key_t key, const void *value);

Completed in 30 milliseconds

12