Searched refs:name (Results 1 - 25 of 176) sorted by relevance

12345678

/bionic/libc/kernel/common/linux/netfilter/
H A Dxt_helper.h5 *** of the same name, to make information necessary for userspace to
24 char name[30]; member in struct:xt_helper_info
/bionic/libc/private/
H A Dthread_private.h25 #define __THREAD_NAME(name) __CONCAT(_thread_tagname_,name)
32 #define _THREAD_PRIVATE_MUTEX(name) \
33 static struct __thread_private_tag_t __THREAD_NAME(name) = { PTHREAD_MUTEX_INITIALIZER, -1 }
34 #define _THREAD_PRIVATE_MUTEX_LOCK(name) \
35 pthread_mutex_lock( &__THREAD_NAME(name)._private_lock )
36 #define _THREAD_PRIVATE_MUTEX_UNLOCK(name) \
37 pthread_mutex_unlock( &__THREAD_NAME(name)._private_lock )
H A DThreadLocalBuffer.h42 #define GLOBAL_INIT_THREAD_LOCAL_BUFFER(name) \
43 static pthread_key_t __bionic_tls_ ## name ## _key; \
44 static void __bionic_tls_ ## name ## _key_destroy(void* buffer) { \
47 __attribute__((constructor)) static void __bionic_tls_ ## name ## _key_init() { \
48 pthread_key_create(&__bionic_tls_ ## name ## _key, __bionic_tls_ ## name ## _key_destroy); \
52 #define LOCAL_INIT_THREAD_LOCAL_BUFFER(type, name, byte_count) \
53 type name ## _tls_buffer = \
54 reinterpret_cast<type>(pthread_getspecific(__bionic_tls_ ## name ## _key)); \
55 if (name ## _tls_buffe
[all...]
H A Dbionic_name_mem.h36 int __bionic_name_mem(void *addr, size_t len, const char *name);
/bionic/libc/kernel/arch-mips/asm/
H A Dhazards.h5 *** of the same name, to make information necessary for userspace to
22 #define ASMMACRO(name, code...) .macro name; code; .endm
26 #define ASMMACRO(name, code...) __asm__(".macro " #name "; " #code "; .endm"); static inline void name(void) { __asm__ __volatile__ (#name); }
/bionic/libc/kernel/common/linux/
H A Dnotifier.h5 *** of the same name, to make information necessary for userspace to
45 #define ATOMIC_INIT_NOTIFIER_HEAD(name) do { spin_lock_init(&(name)->lock); (name)->head = NULL; } while (0)
46 #define BLOCKING_INIT_NOTIFIER_HEAD(name) do { init_rwsem(&(name)->rwsem); (name)->head = NULL; } while (0)
47 #define RAW_INIT_NOTIFIER_HEAD(name) do { (name)->head = NULL; } while (0)
49 #define ATOMIC_NOTIFIER_INIT(name) {
[all...]
H A Dmoduleparam.h5 *** of the same name, to make information necessary for userspace to
35 #define __MODULE_INFO(tag, name, info) static const char __module_cat(name,__LINE__)[] __attribute_used__ __attribute__((section(".modinfo"),unused)) = __stringify(tag) "=" info
37 #define __MODULE_INFO(tag, name, info)
40 #define __MODULE_PARM_TYPE(name, _type) __MODULE_INFO(parmtype, name##type, #name ":" _type)
46 const char *name; member in struct:kernel_param
70 #define __module_param_call(prefix, name, set, get, arg, perm) static char __param_str_##name[]
[all...]
H A Dlinkage.h5 *** of the same name, to make information necessary for userspace to
46 #define ENTRY(name) .globl name; ALIGN; name:
49 #define KPROBE_ENTRY(name) .section .kprobes.text, "ax"; ENTRY(name)
51 #define END(name) .size name, .-name
55 #define ENDPROC(name)
[all...]
/bionic/libc/kernel/arch-arm/asm/
H A Dsemaphore.h5 *** of the same name, to make information necessary for userspace to
35 #define __SEMAPHORE_INIT(name, cnt) { .count = ATOMIC_INIT(cnt), .wait = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait), }
36 #define __DECLARE_SEMAPHORE_GENERIC(name,count) struct semaphore name = __SEMAPHORE_INIT(name,count)
37 #define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)
39 #define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,
[all...]
/bionic/libc/bionic/
H A Dname_mem.c32 * Local definitions of custom prctl arguments to set a vma name in some kernels
38 * Names a region of memory. The name is expected to show up in /proc/pid/maps
41 * mmap(MAP_ANONYMOUS), and only on regions that are page aligned. name should
49 int __bionic_name_mem(void *addr, size_t len, const char *name) argument
52 addr, len, name);
H A Dgethostname.c35 struct utsname name; local
38 result = uname(&name);
41 int namelen = strlen(name.nodename);
47 memcpy( buff, name.nodename, namelen+1 );
/bionic/libc/upstream-netbsd/libc/regex/
H A Dcclass.h18 * 3. Neither the name of the University nor the names of its contributors
55 * 4. Neither the name of the University nor the names of its contributors
76 const char *name; member in struct:cclass
H A Dcname.h18 * 3. Neither the name of the University nor the names of its contributors
55 * 4. Neither the name of the University nor the names of its contributors
74 /* character-name table */
76 const char *name; member in struct:cname
/bionic/libc/include/sys/
H A Dxattr.h38 extern int fsetxattr(int fd, const char *name, const void *value, size_t size, int flags);
39 extern int setxattr(const char *path, const char *name, const void *value, size_t size, int flags);
40 extern int lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags);
42 extern ssize_t fgetxattr(int fd, const char *name, void *value, size_t size);
43 extern ssize_t getxattr(const char *path, const char *name, void *value, size_t size);
44 extern ssize_t lgetxattr(const char *path, const char *name, void *value, size_t size);
50 extern int removexattr(const char *path, const char *name);
51 extern int lremovexattr(const char *path, const char *name);
52 extern int fremovexattr(int fd, const char *name);
H A Dsystem_properties.h41 /* Look up a system property by name, copying its value and a
47 int __system_property_get(const char *name, char *value);
49 /* Set a system property by name.
53 /* Return a pointer to the system property named name, if it
62 const prop_info *__system_property_find(const char *name);
69 ** If name is nonzero, up to PROP_NAME_MAX bytes will be
70 ** copied into the provided name pointer. The name will
73 int __system_property_read(const prop_info *pi, char *name, char *value);
/bionic/libc/kernel/common/sound/
H A Dtlv.h5 *** of the same name, to make information necessary for userspace to
32 #define DECLARE_TLV_DB_SCALE(name, min, step, mute) unsigned int name[] = { TLV_DB_SCALE_ITEM(min, step, mute) }
36 #define DECLARE_TLV_DB_MINMAX(name, min_dB, max_dB) unsigned int name[] = { TLV_DB_MINMAX_ITEM(min_dB, max_dB) }
37 #define DECLARE_TLV_DB_MINMAX_MUTE(name, min_dB, max_dB) unsigned int name[] = { TLV_DB_MINMAX_MUTE_ITEM(min_dB, max_dB) }
40 #define DECLARE_TLV_DB_LINEAR(name, min_dB, max_dB) unsigned int name[] = { TLV_DB_LINEAR_ITEM(min_dB, max_dB) }
/bionic/libc/stdlib/
H A Dgetenv.c14 * 3. Neither the name of the University nor the names of its contributors
34 char *__findenv(const char *name, int *offset);
38 * Returns pointer to value associated with name, if any, else NULL.
39 * Sets offset to be the offset of the name/value combination in the
41 * Explicitly removes '=' in argument name.
46 __findenv(const char *name, int *offset) argument
53 if (name == NULL || environ == NULL)
55 for (np = name; *np && *np != '='; ++np)
57 len = np - name;
59 for (np = name,
75 getenv(const char *name) argument
[all...]
H A Dsetenv.c14 * 3. Neither the name of the University nor the names of its contributors
34 char *__findenv(const char *name, int *offset);
40 * Set the value of the environmental variable "name" to be
44 setenv(const char *name, const char *value, int rewrite) argument
53 if ((C = __findenv(name, &offset))) { /* find if already exists */
77 for (C = (char *)name; *C && *C != '='; ++C)
78 ; /* no `=' in name */
79 if (!(environ[offset] = /* name + `=' + value */
80 malloc((size_t)((int)(C - name) + l_value + 2))))
82 for (C = environ[offset]; (*C = *name
94 unsetenv(const char *name) argument
[all...]
/bionic/linker/
H A Dlinker_environ.h37 // Returns the value of environment variable 'name' if defined and not
39 extern const char* linker_env_get(const char* name);
H A Dlinker_environ.cpp60 // starts with '<name>=', and if so return the address of the
62 static const char* env_match(const char* envstr, const char* name) { argument
65 while (envstr[i] == name[i] && name[i] != '\0') {
69 if (name[i] == '\0' && envstr[i] == '=') {
76 static bool __is_valid_environment_variable(const char* name) { argument
81 if (name == NULL) {
89 if (name[pos] == '\0') {
92 if (name[pos] == '=' && first_equal_pos < 0) {
111 static bool __is_unsafe_environment_variable(const char* name) { argument
174 linker_env_get(const char* name) argument
[all...]
/bionic/libc/upstream-freebsd/lib/libc/stdio/
H A Dtempnam.c13 * 3. Neither the name of the University nor the names of its contributors
53 char *f, *name; local
55 if (!(name = malloc(MAXPATHLEN)))
62 (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXX", f,
64 if ((f = _mktemp(name)))
69 (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXX", f,
71 if ((f = _mktemp(name)))
76 (void)snprintf(name, MAXPATHLEN, "%s%sXXXXXX", f, pfx);
77 if ((f = _mktemp(name)))
81 (void)snprintf(name, MAXPATHLE
[all...]
/bionic/libc/kernel/arch-x86/asm/xen/
H A Dhypercall.h5 *** of the same name, to make information necessary for userspace to
27 #define _hypercall0(type, name) ({ long __res; asm volatile ( "call %[call]" : "=a" (__res) : [call] "m" (hypercall_page[__HYPERVISOR_##name]) : "memory" ); (type)__res; })
29 #define _hypercall1(type, name, a1) ({ long __res, __ign1; asm volatile ( "call %[call]" : "=a" (__res), "=b" (__ign1) : "1" ((long)(a1)), [call] "m" (hypercall_page[__HYPERVISOR_##name]) : "memory" ); (type)__res; })
30 #define _hypercall2(type, name, a1, a2) ({ long __res, __ign1, __ign2; asm volatile ( "call %[call]" : "=a" (__res), "=b" (__ign1), "=c" (__ign2) : "1" ((long)(a1)), "2" ((long)(a2)), [call] "m" (hypercall_page[__HYPERVISOR_##name]) : "memory" ); (type)__res; })
31 #define _hypercall3(type, name, a1, a2, a3) ({ long __res, __ign1, __ign2, __ign3; asm volatile ( "call %[call]" : "=a" (__res), "=b" (__ign1), "=c" (__ign2), "=d" (__ign3) : "1" ((long)(a1)), "2" ((long)(a2)), "3" ((long)(a3)), [call] "m" (hypercall_page[__HYPERVISOR_##name]) : "memory" ); (type)__res; })
32 #define _hypercall4(type, name, a
[all...]
/bionic/libc/kernel/common/asm-generic/
H A Dpercpu.h5 *** of the same name, to make information necessary for userspace to
24 #define DEFINE_PER_CPU(type, name) __typeof__(type) per_cpu__##name
29 #define DECLARE_PER_CPU(type, name) extern __typeof__(type) per_cpu__##name
/bionic/tests/
H A Dbenchmark.h25 Benchmark(const char* name, void (*fn)(int)) { argument
26 Register(name, fn, NULL);
29 Benchmark(const char* name, void (*fn_range)(int, int)) { argument
30 Register(name, NULL, fn_range);
48 void Register(const char* name, void (*fn)(int), void (*fn_range)(int, int));
/bionic/libc/arch-x86/include/machine/
H A Dasm.h18 * 3. Neither the name of the University nor the names of its contributors
108 #define IDTVEC(name) \
109 ALIGN_TEXT; .globl X ## name; .type X ## name,@function; X ## name:
110 #define IDTVEC_END(name) \
111 .size X ## name, . - X ## name
113 #define IDTVEC(name) \
114 ALIGN_TEXT; .globl X/**/name;
[all...]

Completed in 743 milliseconds

12345678