Searched refs:name (Results 26 - 50 of 184) sorted by relevance

12345678

/system/core/include/cutils/
H A Dlist.h35 #define list_declare(name) \
36 struct listnode name = { \
37 .next = &name, \
38 .prev = &name, \
/system/core/init/
H A Ddevices.h24 extern int add_dev_perms(const char *name, const char *attr,
H A Dproperty_service.c202 static int check_mac_perms(const char *name, char *sctx) argument
219 if (selabel_lookup(sehandle_prop, &tctx, name, 1) != 0)
222 if (selinux_check_access(sctx, tctx, class, perm, name) == 0)
233 static int check_control_mac_perms(const char *name, char *sctx) argument
238 * Create a name prefix out of ctl.<service name>
244 int ret = snprintf(ctl_name, sizeof(ctl_name), "ctl.%s", name);
261 static int check_control_perms(const char *name, unsigned int uid, unsigned int gid, char *sctx) { argument
265 return check_control_mac_perms(name, sctx);
269 if (strcmp(control_perms[i].service, name)
283 check_perms(const char *name, unsigned int uid, unsigned int gid, char *sctx) argument
306 property_get(const char *name) argument
321 write_persistent_property(const char *name, const char *value) argument
343 property_set(const char *name, const char *value) argument
[all...]
H A Dinit.h45 const char *name; member in struct:action
53 const char *name; member in struct:socketinfo
62 const char *name; member in struct:svcenvinfo
84 const char *name; member in struct:service
120 void notify_service_state(const char *name, const char *state);
122 struct service *service_find_by_name(const char *name);
133 void property_changed(const char *name, const char *value);
H A Ddevices.c75 char *name; member in struct:perms_
89 char *name; member in struct:platform_node
98 int add_dev_perms(const char *name, const char *attr, argument
105 node->dp.name = strdup(name);
106 if (!node->dp.name)
140 if (strncmp(upath, dp->name + 4, strlen(dp->name + 4)))
143 if (strcmp(upath, dp->name + 4))
172 if (strncmp(path, dp->name, strle
225 add_platform_device(const char *name) argument
253 find_platform_device(const char *name) argument
270 remove_platform_device(const char *name) argument
500 const char *name = uevent->path + 18; /* length of /devices/platform/ */ local
510 const char *name; local
532 const char *name; local
553 const char *name; local
[all...]
H A Dutil.h27 int mtd_name_to_number(const char *name);
28 int create_socket(const char *name, int type, mode_t perm,
41 void import_kernel_cmdline(int in_qemu, void (*import_kernel_nv)(char *name, int in_qemu));
/system/core/libcutils/
H A Dklog.c37 static const char *name = "/dev/__kmsg__"; local
38 if (mknod(name, S_IFCHR | 0600, (1 << 8) | 11) == 0) {
39 klog_fd = open(name, O_WRONLY);
41 unlink(name);
H A Dsocket_local_server.c28 int socket_local_server(const char *name, int namespaceId, int type) argument
48 * Binds a pre-created socket(AF_LOCAL) 's' to 'name'
53 int socket_local_server_bind(int s, const char *name, int namespaceId) argument
60 err = socket_make_sockaddr_un(name, namespaceId, &addr, &alen);
95 int socket_local_server(const char *name, int namespace, int type) argument
103 err = socket_local_server_bind(s, name, namespace);
H A Dconfig_utils.c26 cnode* config_node(const char *name, const char *value) argument
32 node->name = name ? name : "";
39 cnode* config_find(cnode *root, const char *name) argument
45 if(!strcmp(node->name, name))
51 static cnode* _config_create(cnode *root, const char *name) argument
55 node = config_node(name, NULL);
67 int config_bool(cnode *root, const char *name, in argument
85 config_str(cnode *root, const char *name, const char *_default) argument
95 config_set(cnode *root, const char *name, const char *value) argument
[all...]
/system/extras/fatblock/
H A Dfat.c36 char *name, uint8_t attr,
40 assert(name);
44 memcpy(de->name, name, 11);
35 fat_dirent_set(struct fat_dirent *de, char *name, uint8_t attr, cluster_t first_cluster, uint32_t size) argument
/system/core/libsync/
H A Dsync.c37 int sync_merge(const char *name, int fd1, int fd2) argument
43 strlcpy(data.name, name, sizeof(data.name));
103 int sw_sync_fence_create(int fd, const char *name, unsigned value) argument
109 strlcpy(data.name, name, sizeof(data.name));
/system/core/toolbox/
H A Dls.c35 static int listpath(const char *name, int flags);
173 const char *name; local
175 /* name is anything after the final '/', or the whole path if none*/
176 name = strrchr(path, '/');
177 if(name == 0) {
178 name = path;
180 name++;
208 date, name);
212 mode, user, group, s.st_size, date, name);
231 mode, user, group, date, name, linkt
249 const char *name; local
334 listdir(const char *name, int flags) argument
412 listpath(const char *name, int flags) argument
[all...]
H A Dsetsebool.c20 char *name = args[i]; local
21 v = strchr(name, '=');
23 fprintf(stderr, "setsebool: argument %s had no =\n", name);
27 b[i-1].name = name;
50 fprintf(stderr, "Usage: %s name=value...\n", argv[0]);
H A Drm.c20 static int unlink_recursive(const char* name, int flags) argument
28 if (lstat(name, &st) < 0)
33 return unlink(name);
36 dir = opendir(name);
46 sprintf(dn, "%s/%s", name, de->d_name);
66 return rmdir(name);
H A Dkill.c10 char *name; member in struct:__anon482
12 #define _SIG(name) {SIG##name, #name}
75 fprintf(stderr, "%2d) SIG%-9s ", i, signals[index].name);
87 unsigned int name_to_signal(const char* name) argument
92 if (!strcasecmp(name, signals[i].name)) {
126 fprintf(stderr, "invalid signal name: %s\n", arg);
/system/core/sh/
H A Dexec.c18 * 3. Neither the name of the University nor the names of its contributors
59 * would make the command name "hash" a misnomer.
94 char cmdname[ARB]; /* name of command */
292 padvance(const char **path, const char *name) argument
303 len = p - start + strlen(name) + 2; /* "2" is for '/' and '\0' */
312 strcpy(q, name);
338 char *name; local
357 while ((name = *argptr) != NULL) {
358 if ((cmdp = cmdlookup(name, 0)) != NULL
362 find_command(name,
381 char *name; local
427 find_command(char *name, struct cmdentry *entry, int act, const char *path) argument
817 cmdlookup(const char *name, int add) argument
869 getcmdentry(char *name, struct cmdentry *entry) argument
890 addcmdentry(char *name, struct cmdentry *entry) argument
912 defun(char *name, union node *func) argument
929 unsetfunc(char *name) argument
1009 char *name; local
[all...]
H A Doptions.h18 * 3. Neither the name of the University nor the names of its contributors
48 const char *name; /* for set -o <name> */ member in struct:optent
57 #define DEF_OPTS(name, letter, opt_set) {name, letter, opt_set, 0},
60 #define DEF_OPTS(name, letter, opt_set)
62 #define DEF_OPT(name,letter) DEF_OPTS(name, letter, 0)
/system/core/netcfg/
H A Dnetcfg.c51 int dump_interface(const char *name) argument
57 if(ifc_get_info(name, &addr, &prefixLength, &flags)) {
61 printf("%-8s %s ", name, flags & 1 ? "UP " : "DOWN");
65 if (!ifc_get_hwaddr(name, hwbuf)) {
92 int set_hwaddr(const char *name, const char *asc) { argument
98 return ifc_set_hwaddr(name, addr->ether_addr_octet);
103 const char *name; member in struct:__anon470
159 for(n = 0; CMDS[n].name; n++){
160 if(!strcmp(argv[0], CMDS[n].name)) {
/system/extras/ext4_utils/
H A Duuid.c40 static void sha1_hash(const char *namespace, const char *name, argument
46 SHA1Update(&ctx, (const u8*)name, strlen(name));
50 void generate_uuid(const char *namespace, const char *name, u8 result[16]) argument
55 sha1_hash(namespace, name, (unsigned char*)sha1);
/system/vold/
H A DDevmapper.cpp90 ioctlInit(io2, DEVMAPPER_BUFFER_SIZE, n->name, 0);
100 asprintf(&tmp, "%s %llu:%llu (no status available)", n->name, MAJOR(n->dev), MINOR(n->dev));
102 asprintf(&tmp, "%s %llu:%llu %d %d 0x%.8x %llu:%llu", n->name, MAJOR(n->dev),
118 const char *name, unsigned flags) {
126 if (name) {
127 int ret = strlcpy(io->name, name, sizeof(io->name));
128 if (ret >= sizeof(io->name))
133 int Devmapper::lookupActive(const char *name, cha argument
117 ioctlInit(struct dm_ioctl *io, size_t dataSize, const char *name, unsigned flags) argument
166 create(const char *name, const char *loopFile, const char *key, unsigned int numSectors, char *ubuffer, size_t len) argument
264 destroy(const char *name) argument
[all...]
/system/extras/showmap/
H A Dshowmap.c27 char name[1]; member in struct:mapinfo
30 static int is_library(const char *name) { argument
31 int len = strlen(name);
32 return len >= 4 && name[0] == '/'
33 && name[len - 3] == '.' && name[len - 2] == 's' && name[len - 1] == 'o';
43 char name[128]; local
57 strlcpy(name, line + name_pos, sizeof(name));
[all...]
/system/extras/tests/fstest/
H A Dperm_checker.c200 static void print_new_rule(const char *name, mode_t mode, uid_t uid, gid_t gid) argument
206 printf("%s %4o %4o %s %d %s %d\n", name, mode, mode, pw->pw_name, uid,
223 static int validate_file(const char *name, mode_t mode, uid_t uid, gid_t gid) argument
231 if (strcmp(name, pr->spec) == 0) {
241 printf("# WARNING # Multiple exact rules for file: %s\n", name);
245 print_new_rule(name, mode, uid, gid);
253 if ((strstr(name, pr->spec) == name) &&
254 (!strchr(name + strlen(pr->spec), '/'))) {
265 if (strstr(name, p
284 validate_link(const char *name, mode_t mode, uid_t uid, gid_t gid) argument
312 validate_dir(const char *name, mode_t mode, uid_t uid, gid_t gid) argument
359 check_path(const char *name) argument
[all...]
/system/bluetooth/data/
H A Dblacklist.conf6 scoSocket:name,"MY-CAR",=ALL_ESCO_MASK;-ESCO_2EV5;-ESCO_3EV3;-ESCO_3EV5, // Infinity G35
7 scoSocket:name,"Motorola HF850",=SCO_ESCO_MASK, // Motorola HF850
/system/core/include/corkscrew/
H A Dsymbol_table.h30 char* name; member in struct:__anon298
/system/core/libnl_2/genl/
H A Dfamily.c21 static struct genl_family *genl_family_find_byname(const char *name) argument

Completed in 7159 milliseconds

12345678