Home
last modified time | relevance | path

Searched refs:name (Results 1 – 25 of 246) sorted by relevance

12345678910

/system/core/libsysutils/src/
DServiceManager.cpp12 int ServiceManager::start(const char *name) { in start() argument
13 if (isRunning(name)) { in start()
14 SLOGW("Service '%s' is already running", name); in start()
18 SLOGD("Starting service '%s'", name); in start()
19 property_set("ctl.start", name); in start()
24 if (isRunning(name)) in start()
28 SLOGW("Timed out waiting for service '%s' to start", name); in start()
32 SLOGD("Sucessfully started '%s'", name); in start()
36 int ServiceManager::stop(const char *name) { in stop() argument
37 if (!isRunning(name)) { in stop()
[all …]
/system/core/toolbox/
Dtoolbox.c18 #define TOOL(name) int name##_main(int, char**); argument
24 const char *name; member
28 #define TOOL(name) { #name, name##_main }, argument
37 char *name = argv[0]; in main() local
40 name = argv[1] + 1; in main()
46 name = cmd + 1; in main()
49 for(i = 0; tools[i].name; i++){ in main()
50 if(!strcmp(tools[i].name, name)){ in main()
Dsyren.c23 const char *name; member
43 static syren_reg *find_reg(const char *name) in find_reg() argument
47 for (i = 0; registers[i].name != 0; i++) { in find_reg()
48 if (!strcasecmp(registers[i].name, name)) in find_reg()
67 char name[32]; in syren_main() local
110 for (i = 0; registers[i].name; i++) { in syren_main()
114 fprintf(stderr, "%s: error\n", registers[i].name); in syren_main()
116 fprintf(stderr, "%s: %04x\n", registers[i].name, sio.value); in syren_main()
126 strcpy(name, argv[2]); in syren_main()
134 strcpy(name, r->name); in syren_main()
[all …]
Dls.c25 static int listpath(const char *name, int flags);
143 const char *name; in listfile_long() local
146 name = strrchr(path, '/'); in listfile_long()
147 if(name == 0) { in listfile_long()
148 name = path; in listfile_long()
150 name++; in listfile_long()
173 date, name); in listfile_long()
177 mode, user, group, s.st_size, date, name); in listfile_long()
196 mode, user, group, date, name, linkto); in listfile_long()
201 mode, user, group, date, name); in listfile_long()
[all …]
/system/core/adb/
Dservices.c342 int service_to_fd(const char *name) in service_to_fd() argument
346 if(!strncmp(name, "tcp:", 4)) { in service_to_fd()
347 int port = atoi(name + 4); in service_to_fd()
348 name = strchr(name + 4, ':'); in service_to_fd()
349 if(name == 0) { in service_to_fd()
356 ret = socket_network_client(name + 1, port, SOCK_STREAM); in service_to_fd()
363 } else if(!strncmp(name, "local:", 6)) { in service_to_fd()
364 ret = socket_local_client(name + 6, in service_to_fd()
366 } else if(!strncmp(name, "localreserved:", 14)) { in service_to_fd()
367 ret = socket_local_client(name + 14, in service_to_fd()
[all …]
/system/core/libcutils/
Ddir_hash.c118 char *name; member
126 return strcmp((*ra)->name, (*rb)->name); in cmp()
149 char *name = malloc(strlen(de->d_name) + 1); in recurse() local
152 if (name == NULL || node == NULL) { in recurse()
156 free(f->name); in recurse()
160 free(name); in recurse()
165 strcpy(name, de->d_name); in recurse()
167 node->name = name; in recurse()
176 char *name; in recurse() local
181 name = malloc(strlen(f->name) + strlen(directory_path) + 2); in recurse()
[all …]
Dsocket_local_client.c27 int socket_local_client(const char *name, int namespaceId, int type) in socket_local_client() argument
45 int socket_make_sockaddr_un(const char *name, int namespaceId, in socket_make_sockaddr_un() argument
54 namelen = strlen(name); in socket_make_sockaddr_un()
67 memcpy(p_addr->sun_path + 1, name, namelen); in socket_make_sockaddr_un()
71 namelen = strlen(name) + strlen(FILESYSTEM_SOCKET_PREFIX); in socket_make_sockaddr_un()
79 strcat(p_addr->sun_path, name); in socket_make_sockaddr_un()
84 namelen = strlen(name) + strlen(ANDROID_RESERVED_SOCKET_PREFIX); in socket_make_sockaddr_un()
92 strcat(p_addr->sun_path, name); in socket_make_sockaddr_un()
96 namelen = strlen(name); in socket_make_sockaddr_un()
103 strcpy(p_addr->sun_path, name); in socket_make_sockaddr_un()
[all …]
Dconfig_utils.c26 cnode* config_node(const char *name, const char *value) in config_node() argument
32 node->name = name ? name : ""; in config_node()
39 cnode* config_find(cnode *root, const char *name) in config_find() argument
45 if(!strcmp(node->name, name)) in config_find()
51 static cnode* _config_create(cnode *root, const char *name) in _config_create() argument
55 node = config_node(name, NULL); in _config_create()
67 int config_bool(cnode *root, const char *name, int _default) in config_bool() argument
71 node = config_find(root, name); in config_bool()
85 const char* config_str(cnode *root, const char *name, const char *_default) in config_str() argument
89 node = config_find(root, name); in config_str()
[all …]
/system/core/sh/
Dalias.c65 setalias(char *name, char *val) in setalias() argument
69 app = hashalias(name); in setalias()
71 if (equal(name, ap->name)) { in setalias()
82 ap->name = savestr(name); in setalias()
117 unalias(char *name) in unalias() argument
121 app = hashalias(name); in unalias()
124 if (equal(name, ap->name)) { in unalias()
133 *ap->name = '\0'; in unalias()
137 ckfree(ap->name); in unalias()
168 ckfree(ap->name); in rmaliases()
[all …]
Dexec.c292 padvance(const char **path, const char *name) in padvance() argument
303 len = p - start + strlen(name) + 2; /* "2" is for '/' and '\0' */ in padvance()
312 strcpy(q, name); in padvance()
338 char *name; in hashcmd() local
357 while ((name = *argptr) != NULL) { in hashcmd()
358 if ((cmdp = cmdlookup(name, 0)) != NULL in hashcmd()
362 find_command(name, &entry, DO_ERR, pathval()); in hashcmd()
365 cmdp = cmdlookup(name, 0); in hashcmd()
381 char *name; in printentry() local
388 name = padvance(&path, cmdp->cmdname); in printentry()
[all …]
Dvar.c195 setvarsafe(const char *name, const char *val, int flags) in setvarsafe() argument
208 setvar(name, val, flags); in setvarsafe()
220 setvar(const char *name, const char *val, int flags) in setvar() argument
231 p = name; in setvar()
243 namelen = p - name; in setvar()
245 error("%.*s: bad variable name", namelen, name); in setvar()
253 q = name; in setvar()
346 lookupvar(const char *name) in lookupvar() argument
350 v = find_var(name, NULL, NULL); in lookupvar()
365 bltinlookup(const char *name, int doall) in bltinlookup() argument
[all …]
/system/wlan/ti/sta_dk_4_0_4_32/CUDK/CLI/
Dconsole.c58 static t_TokenType console_getWord( char *name, U16 len );
60 static t_TokenType console_analizeToken( char *name );
63 static ConEntry_t *console_searchToken( ConEntry_t *p_dir, char *name );
119 const char *name, /* New directory name */ in consoleAddDirExt() argument
138 strncpy( p_dir->name, name, MAX_NAME_LEN ); in consoleAddDirExt()
177 const char *name, in consoleAddToken() argument
204 strncpy( p_token->name, name, MAX_NAME_LEN ); in consoleAddToken()
215 for(i = 0; p_parms->name && p_parms->name[0] && ( i < MAX_NUM_OF_PARMS); i++ ) in consoleAddToken()
224 fprintf(stderr, "** buffer too big: %s/%s\n", p_dir->name, name); in consoleAddToken()
231 fprintf(stderr, "** Bad string param definition: %s/%s\n", p_dir->name, name ); in consoleAddToken()
[all …]
/system/core/libnetutils/
Difc_utils.h22 int ifc_get_ifindex(const char *name, int *if_indexp);
23 int ifc_get_hwaddr(const char *name, void *ptr);
25 int ifc_up(const char *name);
26 int ifc_down(const char *name);
28 int ifc_set_addr(const char *name, unsigned addr);
29 int ifc_set_mask(const char *name, unsigned mask);
31 int ifc_create_default_route(const char *name, unsigned addr);
33 int ifc_get_info(const char *name, unsigned *addr, unsigned *mask, unsigned *flags);
Difc_utils.c75 static void ifc_init_ifr(const char *name, struct ifreq *ifr) in ifc_init_ifr() argument
78 strncpy(ifr->ifr_name, name, IFNAMSIZ); in ifc_init_ifr()
82 int ifc_get_hwaddr(const char *name, void *ptr) in ifc_get_hwaddr() argument
86 ifc_init_ifr(name, &ifr); in ifc_get_hwaddr()
95 int ifc_get_ifindex(const char *name, int *if_indexp) in ifc_get_ifindex() argument
99 ifc_init_ifr(name, &ifr); in ifc_get_ifindex()
108 static int ifc_set_flags(const char *name, unsigned set, unsigned clr) in ifc_set_flags() argument
111 ifc_init_ifr(name, &ifr); in ifc_set_flags()
118 int ifc_up(const char *name) in ifc_up() argument
120 return ifc_set_flags(name, IFF_UP, 0); in ifc_up()
[all …]
/system/core/nexus/
DProperty.cpp28 Property::Property(const char *name, bool readOnly, in Property() argument
30 mName(name), mReadOnly(readOnly), mType(type), in Property()
32 if (index(name, '.')) { in Property()
33 LOGW("Property name %s violates namespace rules", name); in Property()
37 StringProperty::StringProperty(const char *name, bool ro, int elements) : in StringProperty() argument
38 Property(name, ro, Property::Type_STRING, elements) { in StringProperty()
61 StringPropertyHelper::StringPropertyHelper(const char *name, bool ro, in StringPropertyHelper() argument
63 StringProperty(name, ro, 1) { in StringPropertyHelper()
88 IntegerProperty::IntegerProperty(const char *name, bool ro, int elements) : in IntegerProperty() argument
89 Property(name, ro, Property::Type_INTEGER, elements) { in IntegerProperty()
[all …]
/system/core/init/
Dproperty_service.c204 static int check_control_perms(const char *name, unsigned int uid, unsigned int gid) { in check_control_perms() argument
211 if (strcmp(control_perms[i].service, name) == 0) { in check_control_perms()
225 static int check_perms(const char *name, unsigned int uid, unsigned int gid) in check_perms() argument
231 if(!strncmp(name, "ro.", 3)) in check_perms()
232 name +=3; in check_perms()
236 if (strncmp(property_perms[i].prefix, name, in check_perms()
248 const char* property_get(const char *name) in property_get() argument
252 if(strlen(name) >= PROP_NAME_MAX) return 0; in property_get()
254 pi = (prop_info*) __system_property_find(name); in property_get()
263 static void write_persistent_property(const char *name, const char *value) in write_persistent_property() argument
[all …]
Dueventd.c71 if (!strcmp(id, android_ids[i].name)) in get_android_id()
78 char *name; in set_device_permission() local
94 name = args[0]; in set_device_permission()
96 if (!strncmp(name,"/sys/", 5) && (nargs == 5)) { in set_device_permission()
109 if (!strncmp(name, "mtd@", 4)) { in set_device_permission()
110 int n = mtd_name_to_number(name + 4); in set_device_permission()
113 name = tmp; in set_device_permission()
115 int len = strlen(name); in set_device_permission()
116 if (name[len - 1] == '*') { in set_device_permission()
118 name[len - 1] = '\0'; in set_device_permission()
[all …]
Dinit.c75 void notify_service_state(const char *name, const char *state) in notify_service_state() argument
78 int len = strlen(name); in notify_service_state()
81 snprintf(pname, sizeof(pname), "init.svc.%s", name); in notify_service_state()
131 static void publish_socket(const char *name, int fd) in publish_socket() argument
137 name, in publish_socket()
171 ERROR("service '%s' requires console\n", svc->name); in service_start()
177 ERROR("cannot find '%s', disabling '%s'\n", svc->args[0], svc->name); in service_start()
189 NOTICE("starting '%s'\n", svc->name); in service_start()
206 add_environment(ei->name, ei->value); in service_start()
212 int s = create_socket(si->name, socket_type, in service_start()
[all …]
Dutil.c51 static const char *name = "/dev/__kmsg__"; in log_init() local
52 if (mknod(name, S_IFCHR | 0600, (1 << 8) | 11) == 0) { in log_init()
53 log_fd = open(name, O_WRONLY); in log_init()
55 unlink(name); in log_init()
80 static unsigned int android_name_to_id(const char *name) in android_name_to_id() argument
86 if (!strcmp(info[n].name, name)) in android_name_to_id()
120 int create_socket(const char *name, int type, mode_t perm, uid_t uid, gid_t gid) in create_socket() argument
127 ERROR("Failed to open socket '%s': %s\n", name, strerror(errno)); in create_socket()
134 name); in create_socket()
138 ERROR("Failed to unlink old socket '%s': %s\n", name, strerror(errno)); in create_socket()
[all …]
Dinit_parser.c59 const char *name; member
70 #define kw_name(kw) (keyword_info[kw].name)
231 static int valid_name(const char *name) in valid_name() argument
233 if (strlen(name) > 16) { in valid_name()
236 while (*name) { in valid_name()
237 if (!isalnum(*name) && (*name != '_') && (*name != '-')) { in valid_name()
240 name++; in valid_name()
245 struct service *service_find_by_name(const char *name) in service_find_by_name() argument
251 if (!strcmp(svc->name, name)) { in service_find_by_name()
327 if (!strcmp(act->name, trigger)) { in action_for_each_trigger()
[all …]
/system/extras/tests/fstest/
Dperm_checker.c200 static void print_new_rule(const char *name, mode_t mode, uid_t uid, gid_t gid) in print_new_rule() argument
206 printf("%s %4o %4o %s %d %s %d\n", name, mode, mode, pw->pw_name, uid, in print_new_rule()
223 static int validate_file(const char *name, mode_t mode, uid_t uid, gid_t gid) in validate_file() argument
231 if (strcmp(name, pr->spec) == 0) { in validate_file()
241 printf("# WARNING # Multiple exact rules for file: %s\n", name); in validate_file()
245 print_new_rule(name, mode, uid, gid); in validate_file()
253 if ((strstr(name, pr->spec) == name) && in validate_file()
254 (!strchr(name + strlen(pr->spec), '/'))) { in validate_file()
265 if (strstr(name, pr->spec) == name) { in validate_file()
278 print_new_rule(name, mode, uid, gid); in validate_file()
[all …]
/system/wlan/ti/wilink_6_1/CUDK/configurationutility/src/
Dconsole.c80 S8 name[MAX_NAME_LEN+1]; /* Entry name */ member
97 PS8 *name; /* Parameter name with totalParams size */ member
135 static TokenType_t Console_analizeToken( PS8 name ) in Console_analizeToken() argument
137 if (!name[0]) in Console_analizeToken()
140 if (!os_strcmp(name, (PS8)TOKEN_UP ) ) in Console_analizeToken()
143 if (!os_strcmp(name, (PS8)TOKEN_ROOT ) ) in Console_analizeToken()
146 if (!os_strcmp(name, (PS8)TOKEN_BREAK ) ) in Console_analizeToken()
149 if (!os_strcmp(name, (PS8)TOKEN_HELP ) ) in Console_analizeToken()
152 if (!os_strcmp(name, (PS8)TOKEN_DIRHELP ) ) in Console_analizeToken()
155 if (!os_strcmp(name, (PS8)TOKEN_QUIT ) ) in Console_analizeToken()
[all …]
/system/core/include/cutils/
Dsockets.h46 static inline int android_get_control_socket(const char *name) in android_get_control_socket() argument
55 name, in android_get_control_socket()
59 name, in android_get_control_socket()
89 extern int socket_local_server(const char *name, int namespaceId, int type);
90 extern int socket_local_server_bind(int s, const char *name, int namespaceId);
92 const char *name, int namespaceId, int type);
93 extern int socket_local_client(const char *name, int namespaceId, int type);
Dconfig_utils.h32 const char *name; member
43 cnode* config_node(const char *name, const char *value);
46 cnode* config_find(cnode *root, const char *name);
49 int config_bool(cnode *root, const char *name, int _default);
52 const char* config_str(cnode *root, const char *name, const char *_default);
55 void config_set(cnode *root, const char *name, const char *value);
/system/vold/
DDevmapper.cpp86 ioctlInit(io2, 4096, n->name, 0); in dumpState()
96 … asprintf(&tmp, "%s %llu:%llu (no status available)", n->name, MAJOR(n->dev), MINOR(n->dev)); in dumpState()
98 asprintf(&tmp, "%s %llu:%llu %d %d 0x%.8x %llu:%llu", n->name, MAJOR(n->dev), in dumpState()
114 const char *name, unsigned flags) { in ioctlInit() argument
122 if (name) { in ioctlInit()
123 strncpy(io->name, name, sizeof(io->name)); in ioctlInit()
127 int Devmapper::lookupActive(const char *name, char *ubuffer, size_t len) { in lookupActive() argument
143 ioctlInit(io, 4096, name, 0); in lookupActive()
160 int Devmapper::create(const char *name, const char *loopFile, const char *key, in create() argument
178 ioctlInit(io, 4096, name, 0); in create()
[all …]

12345678910