/bionic/libc/kernel/common/linux/ |
D | notifier.h | 38 #define ATOMIC_INIT_NOTIFIER_HEAD(name) do { spin_lock_init(&(name)->lock); (name)->head = NULL… argument 39 #define BLOCKING_INIT_NOTIFIER_HEAD(name) do { init_rwsem(&(name)->rwsem); (name)->head = NULL;… argument 40 #define RAW_INIT_NOTIFIER_HEAD(name) do { (name)->head = NULL; } while (0) argument 42 #define ATOMIC_NOTIFIER_INIT(name) { .lock = __SPIN_LOCK_UNLOCKED(name.lock), .head = NULL } argument 43 #define BLOCKING_NOTIFIER_INIT(name) { .rwsem = __RWSEM_INITIALIZER((name).rwsem), .head = NULL… argument 44 #define RAW_NOTIFIER_INIT(name) { .head = NULL } argument 46 #define ATOMIC_NOTIFIER_HEAD(name) struct atomic_notifier_head name = ATOMIC_NOTIFIER_INIT(name) argument 47 #define BLOCKING_NOTIFIER_HEAD(name) struct blocking_notifier_head name = BLOCKING_NOTIFIER_INI… argument 48 #define RAW_NOTIFIER_HEAD(name) struct raw_notifier_head name = RAW_NOTIFIER_INIT(name) argument
|
D | moduleparam.h | 28 #define __MODULE_INFO(tag, name, info) static const char __module_cat(name,__LINE__)[] __attribu… argument 30 #define __MODULE_INFO(tag, name, info) argument 32 #define __MODULE_PARM_TYPE(name, _type) __MODULE_INFO(parmtype, name##type, #name ":" _type) argument 41 const char *name; member 63 …name, set, get, arg, perm) static char __param_str_##name[] = prefix #name; static struct kern… argument 65 #define module_param_call(name, set, get, arg, perm) __module_param_call(MODULE_PARAM_PREFIX, nam… argument 67 …name, value, type, perm) param_check_##type(name, &(value)); module_param_call(name, param_set… argument 69 #define module_param(name, type, perm) module_param_named(name, name, type, perm) argument 71 …name, string, len, perm) static struct kparam_string __param_string_##name = { len, string }; … argument 73 #define __param_check(name, p, type) static inline type *__check_##name(void) { return(p); } argument [all …]
|
D | linkage.h | 42 #define ENTRY(name) .globl name; ALIGN; name: 45 #define KPROBE_ENTRY(name) .section .kprobes.text, "ax"; ENTRY(name) 48 #define END(name) .size name, .-name 52 #define ENDPROC(name) .type name, @function; END(name)
|
D | module.h | 30 #define MODULE_SUPPORTED_DEVICE(name) argument 41 const char *name; member 47 char name[MODULE_NAME_LEN]; member 71 …E_GENERIC_TABLE(gtype,name) extern const struct gtype##_id __mod_##gtype##_table __attribute__ … argument 75 #define MODULE_GENERIC_TABLE(gtype,name) argument 91 #define MODULE_DEVICE_TABLE(type,name) MODULE_GENERIC_TABLE(type##_device,name) argument
|
D | ioport.h | 21 const char *name; member 87 #define request_region(start,n,name) __request_region(&ioport_resource, (start), (n), (name)) argument 88 #define request_mem_region(start,n,name) __request_region(&iomem_resource, (start), (n), (name)) argument 89 #define rename_region(region, newname) do { (region)->name = (newname); } while (0)
|
D | sysfs.h | 21 const char * name; member 27 const char * name; member 31 #define __ATTR(_name,_mode,_show,_store) { .attr = {.name = __stringify(_name), .mode = _mode, .o… 33 #define __ATTR_RO(_name) { .attr = { .name = __stringify(_name), .mode = 0444, .owner = THIS_MODU… 35 #define __ATTR_NULL { .attr = { .name = NULL } } 37 #define attr_name(_attr) (_attr).attr.name
|
D | workqueue.h | 42 #define create_workqueue(name) __create_workqueue((name), 0) argument 43 #define create_singlethread_workqueue(name) __create_workqueue((name), 1) argument
|
D | xattr.h | 36 const char *name, size_t name_len); 37 int (*get)(struct inode *inode, const char *name, void *buffer, 39 int (*set)(struct inode *inode, const char *name, const void *buffer,
|
/bionic/libc/private/ |
D | thread_private.h | 30 #define WEAK_NAME(name) __CONCAT(_weak_,name) argument 31 #define WEAK_ALIAS(name) __weak_alias(name, WEAK_NAME(name)) argument 33 #define WEAK_PROTOTYPE(name) __typeof__(name) WEAK_NAME(name) argument 35 #define WEAK_PROTOTYPE(name) /* typeof() only in gcc */ argument 41 #define __THREAD_NAME(name) __CONCAT(_thread_tagname_,name) argument 48 #define _THREAD_PRIVATE_MUTEX(name) \ argument 49 static struct __thread_private_tag_t __THREAD_NAME(name) = { PTHREAD_MUTEX_INITIALIZER, -1 } 50 #define _THREAD_PRIVATE_MUTEX_LOCK(name) \ argument 51 pthread_mutex_lock( &__THREAD_NAME(name)._private_lock ) 52 #define _THREAD_PRIVATE_MUTEX_UNLOCK(name) \ argument [all …]
|
/bionic/libc/kernel/arch-arm/asm/ |
D | semaphore.h | 29 #define __SEMAPHORE_INIT(name, cnt) { .count = ATOMIC_INIT(cnt), .wait = __WAIT_QUEUE_HEAD_INI… argument 31 #define __DECLARE_SEMAPHORE_GENERIC(name,count) struct semaphore name = __SEMAPHORE_INIT(name,cou… argument 33 #define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1) argument 34 #define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0) argument
|
/bionic/libc/stdio/ |
D | tempnam.c | 48 char *f, *name; in tempnam() local 50 if (!(name = malloc(MAXPATHLEN))) in tempnam() 57 (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXXXXXX", f, in tempnam() 59 if ((f = _mktemp(name))) in tempnam() 64 (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXXXXXX", f, in tempnam() 66 if ((f = _mktemp(name))) in tempnam() 71 (void)snprintf(name, MAXPATHLEN, "%s%sXXXXXXXXX", f, pfx); in tempnam() 72 if ((f = _mktemp(name))) in tempnam() 76 (void)snprintf(name, MAXPATHLEN, "%s%sXXXXXXXXX", f, pfx); in tempnam() 77 if ((f = _mktemp(name))) in tempnam() [all …]
|
/bionic/libc/stdlib/ |
D | getenv.c | 34 char *__findenv(const char *name, int *offset); 46 __findenv(const char *name, int *offset) in __findenv() argument 53 if (name == NULL || environ == NULL) in __findenv() 55 for (np = name; *np && *np != '='; ++np) in __findenv() 57 len = np - name; in __findenv() 59 for (np = name, i = len; i && *cp; i--) in __findenv() 75 getenv(const char *name) in getenv() argument 79 return (__findenv(name, &offset)); in getenv()
|
D | setenv.c | 34 char *__findenv(const char *name, int *offset); 44 setenv(const char *name, const char *value, int rewrite) in setenv() argument 53 if ((C = __findenv(name, &offset))) { /* find if already exists */ in setenv() 77 for (C = (char *)name; *C && *C != '='; ++C) in setenv() 80 malloc((size_t)((int)(C - name) + l_value + 2)))) in setenv() 82 for (C = environ[offset]; (*C = *name++) && *C != '='; ++C) in setenv() 94 unsetenv(const char *name) in unsetenv() argument 99 while (__findenv(name, &offset)) /* if set multiple times */ in unsetenv()
|
/bionic/linker/ |
D | linker_environ.c | 106 env_match(char* envstr, const char* name) in env_match() argument 110 while (envstr[cnt] == name[cnt] && name[cnt] != '\0') in env_match() 113 if (name[cnt] == '\0' && envstr[cnt] == '=') in env_match() 122 linker_env_get(const char* name) in linker_env_get() argument 126 if (name == NULL || name[0] == '\0') in linker_env_get() 130 char* val = env_match(readp[0], name); in linker_env_get() 143 linker_env_unset(const char* name) in linker_env_unset() argument 148 if (name == NULL || name[0] == '\0') in linker_env_unset() 152 if (env_match(readp[0], name)) in linker_env_unset()
|
D | linker.c | 129 #define HOODLUM(name, ret, ...) \ argument 130 ret name __VA_ARGS__ \ 132 char errstr[] = "ERROR: " #name " called from the dynamic linker!\n"; \ 175 map->l_name = (char*) info->name; in insert_soinfo_into_debug_map() 254 static soinfo *alloc_info(const char *name) in alloc_info() argument 258 if(strlen(name) >= SOINFO_NAME_LEN) { in alloc_info() 259 DL_ERR("%5d library name %s too long", pid, name); in alloc_info() 268 DL_ERR("%5d too many libraries when loading %s", pid, name); in alloc_info() 280 strlcpy((char*) si->name, name, sizeof(si->name)); in alloc_info() 286 TRACE("%5d name %s: allocated soinfo @ %p\n", pid, name, si); in alloc_info() [all …]
|
D | linker_environ.h | 41 extern void linker_env_unset(const char* name); 48 extern const char* linker_env_get(const char* name);
|
/bionic/libc/kernel/arch-x86/asm/xen/ |
D | hypercall.h | 22 …ercall0(type, name) ({ long __res; asm volatile ( "call %[call]" : "=a" (__res) : [call… argument 24 …name, a1) ({ long __res, __ign1; asm volatile ( "call %[call]" : "=a" (__res), "=b" (__ig… argument 26 …name, a1, a2) ({ long __res, __ign1, __ign2; asm volatile ( "call %[call]" : "=a" (__res)… argument 28 …name, a1, a2, a3) ({ long __res, __ign1, __ign2, __ign3; asm volatile ( "call %[call]" : … argument 30 …name, a1, a2, a3, a4) ({ long __res, __ign1, __ign2, __ign3, __ign4; asm volatile ( "call %… argument 32 …name, a1, a2, a3, a4, a5) ({ long __res, __ign1, __ign2, __ign3, __ign4, __ign5; asm volatile… argument
|
/bionic/libc/unistd/ |
D | gethostname.c | 35 struct utsname name; in gethostname() local 38 result = uname(&name); in gethostname() 41 int namelen = strlen(name.nodename); in gethostname() 47 memcpy( buff, name.nodename, namelen+1 ); in gethostname()
|
D | exec.c | 48 execl(const char *name, const char *arg, ...) in execl() argument 70 return (execve(name, argv, environ)); in execl() 74 execle(const char *name, const char *arg, ...) in execle() argument 97 return (execve(name, argv, envp)); in execle() 101 execlp(const char *name, const char *arg, ...) in execlp() argument 123 return (execvp(name, argv)); in execlp() 127 execv(const char *name, char * const *argv) in execv() argument 129 (void)execve(name, argv, environ); in execv() 134 execvp(const char *name, char * const *argv) in execvp() argument 145 if (name == NULL || *name == '\0') { in execvp() [all …]
|
/bionic/libc/kernel/common/asm-generic/ |
D | percpu.h | 18 #define DEFINE_PER_CPU(type, name) __typeof__(type) per_cpu__##name argument 24 #define DECLARE_PER_CPU(type, name) extern __typeof__(type) per_cpu__##name argument
|
/bionic/libc/include/sys/ |
D | system_properties.h | 47 int __system_property_get(const char *name, char *value); 62 const prop_info *__system_property_find(const char *name); 73 int __system_property_read(const prop_info *pi, char *name, char *value);
|
/bionic/libc/netbsd/resolv/ |
D | res_query.c | 128 const char *name, /* domain name */ in res_nquery() argument 145 printf(";; res_query(%s, %d, %d)\n", name, class, type); in res_nquery() 148 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, in res_nquery() 222 const char *name, /* domain name */ in res_nsearch() argument 240 for (cp = name; *cp != '\0'; cp++) in res_nsearch() 243 if (cp > name && *--cp == '.') in res_nsearch() 247 if (!dots && (cp = res_hostalias(statp, name, tmp, sizeof tmp))!= NULL) in res_nsearch() 257 ret = res_nquerydomain(statp, name, NULL, class, type, in res_nsearch() 284 ret = res_nquerydomain(statp, name, *domain, in res_nsearch() 341 ret = res_nquerydomain(statp, name, NULL, class, type, in res_nsearch() [all …]
|
/bionic/libc/netbsd/net/ |
D | getservbyname_r.c | 49 getservbyname_r(const char *name, const char *proto, struct servent *sp, in getservbyname_r() argument 55 assert(name != NULL); in getservbyname_r() 60 if (strcmp(name, s->s_name) == 0) in getservbyname_r() 63 if (strcmp(name, *cp) == 0) in getservbyname_r()
|
D | getservbyname.c | 34 getservbyname(const char *name, const char *proto) in getservbyname() argument 39 if (rs == NULL || proto == NULL || name == NULL) { in getservbyname() 49 if ( !strcmp( s->s_name, name ) && !strcmp( s->s_proto, proto ) ) in getservbyname()
|
/bionic/libc/bionic/ |
D | system_properties.c | 103 const prop_info *__system_property_find(const char *name) in __system_property_find() argument 108 unsigned len = strlen(name); in __system_property_find() 116 if(memcmp(name, pi->name, len)) continue; in __system_property_find() 124 int __system_property_read(const prop_info *pi, char *name, char *value) in __system_property_read() argument 137 if(name != 0) { in __system_property_read() 138 strcpy(name, pi->name); in __system_property_read() 145 int __system_property_get(const char *name, char *value) in __system_property_get() argument 147 const prop_info *pi = __system_property_find(name); in __system_property_get() 232 strlcpy(msg.name, key, sizeof msg.name); in __system_property_set()
|