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

12345678

/system/core/toolbox/
H A Drm.c17 static int unlink_recursive(const char* name) argument
25 if (lstat(name, &st) < 0)
30 return unlink(name);
33 dir = opendir(name);
43 sprintf(dn, "%s/%s", name, de->d_name);
63 return rmdir(name);
/system/netd/
H A DNetlinkHandler.cpp68 void NetlinkHandler::notifyInterfaceAdded(const char *name) { argument
70 snprintf(msg, sizeof(msg), "Iface added %s", name);
76 void NetlinkHandler::notifyInterfaceRemoved(const char *name) { argument
78 snprintf(msg, sizeof(msg), "Iface removed %s", name);
84 void NetlinkHandler::notifyInterfaceChanged(const char *name, bool isUp) { argument
86 snprintf(msg, sizeof(msg), "Iface is %s %s", (isUp ? "up" : "down"), name);
/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/libnetutils/
H A Difc_utils.c75 static void ifc_init_ifr(const char *name, struct ifreq *ifr) argument
78 strncpy(ifr->ifr_name, name, IFNAMSIZ);
82 int ifc_get_hwaddr(const char *name, void *ptr) argument
86 ifc_init_ifr(name, &ifr);
95 int ifc_get_ifindex(const char *name, int *if_indexp) argument
99 ifc_init_ifr(name, &ifr);
108 static int ifc_set_flags(const char *name, unsigned set, unsigned clr) argument
111 ifc_init_ifr(name, &ifr);
118 int ifc_up(const char *name) argument
120 return ifc_set_flags(name, IFF_U
123 ifc_down(const char *name) argument
136 ifc_set_addr(const char *name, in_addr_t addr) argument
146 ifc_set_mask(const char *name, in_addr_t mask) argument
156 ifc_get_info(const char *name, in_addr_t *addr, in_addr_t *mask, unsigned *flags) argument
189 ifc_create_default_route(const char *name, in_addr_t addr) argument
204 ifc_add_host_route(const char *name, in_addr_t addr) argument
271 ifc_remove_host_routes(const char *name) argument
324 char name[64]; local
[all...]
/system/core/init/
H A Dinit.h20 int mtd_name_to_number(const char *name);
24 int create_socket(const char *name, int type, mode_t perm,
53 #define list_declare(name) \
54 struct listnode name = { \
55 .next = &name, \
56 .prev = &name, \
89 const char *name; member in struct:action
97 const char *name; member in struct:socketinfo
106 const char *name; member in struct:svcenvinfo
125 const char *name; member in struct:service
[all...]
H A Dutil.c48 static const char *name = "/dev/__kmsg__"; local
49 if (mknod(name, S_IFCHR | 0600, (1 << 8) | 11) == 0) {
50 log_fd = open(name, O_WRONLY);
52 unlink(name);
75 * name, or -1U on error.
77 static unsigned int android_name_to_id(const char *name) argument
83 if (!strcmp(info[n].name, name))
92 * numeric or name representation, into the integer uid or gid. Returns -1U on
115 * variable ANDROID_SOCKET_ENV_PREFIX<name> ("ANDROID_SOCKET_fo
117 create_socket(const char *name, int type, mode_t perm, uid_t uid, gid_t gid) argument
[all...]
H A Dproperty_service.c190 static int check_control_perms(const char *name, int uid, int gid) { argument
197 if (strcmp(control_perms[i].service, name) == 0) {
211 static int check_perms(const char *name, unsigned int uid, int gid) argument
217 if(!strncmp(name, "ro.", 3))
218 name +=3;
222 if (strncmp(property_perms[i].prefix, name,
234 const char* property_get(const char *name) argument
238 if(strlen(name) >= PROP_NAME_MAX) return 0;
240 pi = (prop_info*) __system_property_find(name);
249 static void write_persistent_property(const char *name, cons argument
271 property_set(const char *name, const char *value) argument
335 char name[PROP_NAME_MAX]; local
[all...]
H A Dinit.c69 static void notify_service_state(const char *name, const char *state) argument
72 int len = strlen(name);
75 snprintf(pname, sizeof(pname), "init.svc.%s", name);
143 static void publish_socket(const char *name, int fd) argument
149 name,
183 ERROR("service '%s' requires console\n", svc->name);
189 ERROR("cannot find '%s', disabling '%s'\n", svc->args[0], svc->name);
201 NOTICE("starting '%s'\n", svc->name);
216 add_environment(ei->name, ei->value);
219 int s = create_socket(si->name,
323 property_changed(const char *name, const char *value) argument
441 msg_start(const char *name) argument
467 msg_stop(const char *name) argument
492 char name[16]; member in struct:__anon68
546 mtd_name_to_number(const char *name) argument
561 import_kernel_nv(char *name, int in_qemu) argument
697 static const char *name = "/dev/__null__"; local
[all...]
/system/core/libcutils/
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...]
H A Dashmem-host.c39 char name[64]; local
48 snprintf(name, sizeof(name), "/tmp/android-ashmem-%d-%c%c%c%c%c%c%c%c",
60 fd = open(name, O_RDWR | O_CREAT | O_EXCL, 0600);
62 /* unlikely, but if we failed because `name' exists, retry */
72 if (unlink(name) == -1)
/system/wlan/ti/wilink_6_1/CUDK/configurationutility/src/
H A Dconsole.c80 S8 name[MAX_NAME_LEN+1]; /* Entry name */ member in struct:ConEntry_t
97 PS8 *name; /* Parameter name with totalParams size */ member in struct:ConEntry_t::__anon988::t_Token
132 Make a preliminary analizis of <name> token.
135 static TokenType_t Console_analizeToken( PS8 name )
137 if (!name[0])
140 if (!os_strcmp(name, (PS8)TOKEN_UP ) )
143 if (!os_strcmp(name, (PS8)TOKEN_ROOT ) )
146 if (!os_strcmp(name, (PS
258 Console_getWord(Console_t* pConsole, PS8 name, U16 len ) argument
651 S8 name[MAX_NAME_LEN]; local
863 Console_AddDirExt(THandle hConsole, THandle hRoot, const PS8 name, const PS8 desc ) argument
921 Console_AddToken( THandle hConsole, THandle hDir, const PS8 name, const PS8 help, FuncToken_t p_func, ConParm_t p_parms[] ) argument
991 os_error_printf(CU_MSG_ERROR, (PS8)("** buffer too big: %s/%s\\n"), p_dir->name, name); local
1000 os_error_printf(CU_MSG_ERROR, (PS8)("** Bad string param definition: %s/%s\\n"), p_dir->name, name ); local
1009 os_error_printf(CU_MSG_ERROR, (PS8)("** No memory: %s/%s (max.size=%ld)\\n"), p_dir->name, name, p_parms->hi_val ); local
[all...]
/system/core/nexus/
H A DPropertyManager.h39 int set(const char *name, const char *value);
40 const char *get(const char *name, char *buffer, size_t max);
44 Property *lookupProperty_UNLOCKED(PropertyNamespace *ns, const char *name);
H A DVpnController.cpp50 const char *name,
53 IntegerProperty(name, ro, elements) {
58 const char *name,
60 StringProperty(name, ro, elements) {
65 const char *name,
67 IPV4AddressProperty(name, ro, elements) {
49 VpnIntegerProperty(VpnController *c, const char *name, bool ro, int elements) argument
57 VpnStringProperty(VpnController *c, const char *name, bool ro, int elements) argument
64 VpnIPV4AddressProperty(VpnController *c, const char *name, bool ro, int elements) argument
/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/vold/
H A DDevmapper.cpp86 ioctlInit(io2, 4096, n->name, 0);
96 asprintf(&tmp, "%s %llu:%llu (no status available)", n->name, MAJOR(n->dev), MINOR(n->dev));
98 asprintf(&tmp, "%s %llu:%llu %d %d 0x%.8x %llu:%llu", n->name, MAJOR(n->dev),
114 const char *name, unsigned flags) {
122 if (name) {
123 strncpy(io->name, name, sizeof(io->name));
127 int Devmapper::lookupActive(const char *name, char *ubuffer, size_t len) { argument
143 ioctlInit(io, 4096, name,
113 ioctlInit(struct dm_ioctl *io, size_t dataSize, const char *name, unsigned flags) argument
160 create(const char *name, const char *loopFile, const char *key, unsigned int numSectors, char *ubuffer, size_t len) argument
256 destroy(const char *name) argument
[all...]
/system/wlan/ti/sta_dk_4_0_4_32/CUDK/CLI/
H A 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 );
75 Parameters: script_file - name of script file
112 name - directory name
119 const char *name, /* New directory name */
138 strncpy( p_dir->name, name, MAX_NAME_LE
117 consoleAddDirExt( handle_t hRoot, const char *name, const char *desc ) argument
176 consoleAddToken( handle_t hDir, const char *name, const char *help, FuncToken_t p_func, ConParm_t p_parms[] ) argument
387 char name[MAX_NAME_LEN]; local
540 console_getWord( char *name, U16 len ) argument
[all...]
H A Dconsole.h71 const char *name; /* Parameter name. Shouldn't be allocated on stack! */ member in struct:ConParm_t
88 const char *name, /* New directory name */
93 const char *name, /* Token name. Shouldn't be allocated on stack! */
98 /* name = NULL */
171 /* Parameter name and format */
178 char name[MAX_NAME_LEN+1]; /* Entry name */ member in struct:ConEntry_t
193 ParmName_t name[MAX_NUM_OF_PARMS]; /* Parameter name */ member in struct:ConEntry_t::__anon183::t_Token
[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/netcfg/
H A Dnetcfg.c31 int ifc_get_info(const char *name, unsigned *addr, unsigned *mask, unsigned *flags);
58 int dump_interface(const char *name) argument
62 if(ifc_get_info(name, &addr, &mask, &flags)) {
66 printf("%-8s %s ", name, flags & 1 ? "UP " : "DOWN");
91 const char *name; member in struct:__anon142
146 for(n = 0; CMDS[n].name; n++){
147 if(!strcmp(argv[0], CMDS[n].name)) {
/system/core/libacc/tests/
H A DruntimeTest.cpp56 ACCvoid* symbolLookup(ACCvoid* pContext, const ACCchar* name) { argument
57 if (strcmp("op_int", name) == 0) {
60 if (strcmp("op_float12", name) == 0) {
63 if (strcmp("globalVar", name) == 0) {
66 return (ACCvoid*) dlsym(RTLD_DEFAULT, name);
/system/extras/tests/sdcard/
H A Dplot_sdcard.py55 self.name = res.group(1)
58 self.summary = re.match('([a-z_]+)_total', self.name)
91 self.name = ''
119 self.name = dataset.name
212 if not dataset.name in styles:
213 styles[dataset.name] = line_style
216 title=dataset.name,
217 with_='lines ls %d' % styles[dataset.name])
220 with_='lines ls %d' % styles[dataset.name])
[all...]
/system/wlan/ti/sta_dk_4_0_4_32/pform/linux/src/
H A DosRgstry_parser.c17 **| * Neither the name Texas Instruments nor the names of its |**
116 char *name = keyword->Buffer; local
129 if( !name || !*name || !init_file || !init_file_length )
137 if( !(s = mem_str(buf, name, end_buf)) )
140 buf = ltrim(s + strlen(name));
145 buf = s + 1; /*strlen(name);*/
177 print_info("NdisReadConfiguration(): %s = (%d)'%s'\n", name, pNdisParm->ParameterData.StringData.Length, pNdisParm->ParameterData.StringData.Buffer);
186 print_err("\n...init_config: invalid int value for <%s> : %s\n", name, buf );
190 print_info("NdisReadConfiguration(): %s = %d\n", name, (INT3
[all...]
/system/wlan/ti/wilink_6_1/platforms/os/linux/src/
H A DosRgstry_parser.c17 * * Neither the name Texas Instruments nor the names of its
119 char *name = keyword->Buffer; local
132 if( !name || !*name || !init_file || !init_file_length )
140 if( !(s = mem_str(buf, name, end_buf)) )
143 buf = ltrim(s + strlen(name));
148 buf = s + 1; /*strlen(name);*/
180 print_info("NdisReadConfiguration(): %s = (%d)'%s'\n", name, pNdisParm->ParameterData.StringData.Length, pNdisParm->ParameterData.StringData.Buffer);
189 print_err("\n...init_config: invalid int value for <%s> : %s\n", name, buf );
193 print_info("NdisReadConfiguration(): %s = %d\n", name, (TI_INT3
[all...]

Completed in 247 milliseconds

12345678