Searched refs:name (Results 51 - 75 of 184) sorted by relevance

12345678

/system/core/libcutils/
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)
H A Dashmem-dev.c39 * `name' is an optional label to give the region (visible in /proc/pid/maps)
42 int ashmem_create_region(const char *name, size_t size) argument
50 if (name) {
53 strlcpy(buf, name, sizeof(buf));
H A Dtztime.c213 static int tzload P((const char * name, struct state * sp,
215 static int tzload_uncached P((const char * name, struct state * sp,
217 static int tzparse P((const char * name, struct state * sp,
311 tzload(const char *name, struct state * const sp, const int doextend) argument
313 if (name) {
315 if (0 == strcmp(name, "UTC")) {
317 tzload_uncached(name, &g_utc, 1);
325 if (g_cacheNames[i] && 0 == strcmp(name, g_cacheNames[i])) {
327 //printf("tzload: hit: %s\n", name);
331 //printf("tzload: miss: %s\n", name);
408 char name[NAMELEN + 1]; local
[all...]
/system/core/sdcard/
H A Dsdcard.c108 char *name; member in struct:node
109 /* If non-null, this is the real name of the file in the underlying storage.
110 * This may differ from the field "name" only by case.
111 * strlen(actual_name) will always equal strlen(name), so it is safe to use
153 TRACE("ACQUIRE %p (%s) rc=%d\n", node, node->name, node->refcount);
160 TRACE("RELEASE %p (%s) rc=%d\n", node, node->name, node->refcount);
164 TRACE("DESTROY %p (%s)\n", node, node->name);
168 memset(node->name, 0xef, node->namelen);
169 free(node->name);
225 const char* name local
238 find_file_within(const char* path, const char* name, char* buf, size_t bufsize, int search) argument
303 create_node_locked(struct fuse* fuse, struct node *parent, const char *name, const char* actual_name) argument
336 rename_node_locked(struct node *node, const char *name, const char* actual_name) argument
396 lookup_child_by_name_locked(struct node *node, const char *name) argument
410 acquire_or_create_child_locked( struct fuse* fuse, struct node* parent, const char* name, const char* actual_name) argument
467 fuse_reply_entry(struct fuse* fuse, __u64 unique, struct node* parent, const char* name, const char* actual_name, const char* path) argument
512 handle_lookup(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header *hdr, const char* name) argument
629 handle_mknod(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_mknod_in* req, const char* name) argument
655 handle_mkdir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_mkdir_in* req, const char* name) argument
681 handle_unlink(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const char* name) argument
705 handle_rmdir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const char* name) argument
1040 const char* name = data; local
1063 const char *name = ((const char*) data) + sizeof(*req); local
1069 const char *name = ((const char*) data) + sizeof(*req); local
1074 const char* name = data; local
1079 const char* name = data; local
[all...]
/system/core/init/
H A Dinit.c89 void notify_service_state(const char *name, const char *state) argument
92 int len = strlen(name);
95 snprintf(pname, sizeof(pname), "init.svc.%s", name);
146 static void publish_socket(const char *name, int fd) argument
152 name,
189 ERROR("service '%s' requires console\n", svc->name);
195 ERROR("cannot find '%s', disabling '%s'\n", svc->args[0], svc->name);
214 ERROR("could not get context while starting '%s'\n", svc->name);
220 ERROR("could not get context while starting '%s'\n", svc->name);
229 ERROR("could not get context while starting '%s'\n", svc->name);
428 property_changed(const char *name, const char *value) argument
457 msg_start(const char *name) argument
483 msg_stop(const char *name) argument
614 import_kernel_nv(char *name, int for_emulator) argument
[all...]
H A Dutil.c46 * name, or -1U on error.
48 static unsigned int android_name_to_id(const char *name) argument
54 if (!strcmp(info[n].name, name))
63 * numeric or name representation, into the integer uid or gid. Returns -1U on
86 * variable ANDROID_SOCKET_ENV_PREFIX<name> ("ANDROID_SOCKET_foo").
88 int create_socket(const char *name, int type, mode_t perm, uid_t uid, gid_t gid) argument
98 ERROR("Failed to open socket '%s': %s\n", name, strerror(errno));
105 name);
109 ERROR("Failed to unlink old socket '%s': %s\n", name, strerro
195 char name[16]; member in struct:__anon375
249 mtd_name_to_number(const char *name) argument
375 static const char *name = "/dev/__null__"; local
437 import_kernel_cmdline(int in_qemu, void (*import_kernel_nv)(char *name, int in_qemu)) argument
[all...]
H A Dsignal_handler.c64 NOTICE("process '%s', pid %d exited\n", svc->name, pid);
68 NOTICE("process '%s' killing any children in process group\n", svc->name);
74 snprintf(tmp, sizeof(tmp), ANDROID_SOCKET_DIR"/%s", si->name);
88 notify_service_state(svc->name, "stopped");
97 "rebooting into recovery mode\n", svc->name,
115 notify_service_state(svc->name, "restarting");
/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/core/toolbox/
H A Dschedtop.c20 char name[64]; member in struct:thread_info
97 char *name, *name_end; local
121 name = NULL;
125 name = line;
126 name_len = strlen(name);
129 if (!name) {
136 name = strchr(line, '(');
137 if (name == NULL)
139 name_end = strchr(name, ')');
142 name
[all...]
H A Dgetprop.c9 static void record_prop(const char* key, const char* name, void* opaque) argument
13 snprintf(temp, sizeof temp, "[%s]: [%s]", key, name);
H A Ddd.c19 * 3. Neither the name of the University nor the names of its contributors
157 if (in.name == NULL) {
158 in.name = "stdin";
161 in.fd = open(in.name, O_RDONLY, 0);
164 in.name, strerror(errno));
182 if (out.name == NULL) {
185 out.name = "stdout";
189 out.fd = open(out.name, O_RDWR | OFLAGS, DEFFILEMODE);
196 out.fd = open(out.name, O_WRONLY | OFLAGS, DEFFILEMODE);
201 out.name, strerro
1031 const char *name; member in struct:arg
1159 strsuftoll(const char* name, const char* arg, int def, unsigned int max) argument
1265 const char *name; member in struct:conv
[all...]
/system/core/libnetutils/
H A Difc_utils.c160 static void ifc_init_ifr(const char *name, struct ifreq *ifr) argument
163 strncpy(ifr->ifr_name, name, IFNAMSIZ);
167 int ifc_get_hwaddr(const char *name, void *ptr) argument
171 ifc_init_ifr(name, &ifr);
180 int ifc_get_ifindex(const char *name, int *if_indexp) argument
184 ifc_init_ifr(name, &ifr);
193 static int ifc_set_flags(const char *name, unsigned set, unsigned clr) argument
196 ifc_init_ifr(name, &ifr);
203 int ifc_up(const char *name) argument
205 int ret = ifc_set_flags(name, IFF_U
210 ifc_down(const char *name) argument
225 ifc_set_addr(const char *name, in_addr_t addr) argument
247 ifc_act_on_address(int action, const char *name, const char *address, int prefixlen) argument
337 ifc_add_address(const char *name, const char *address, int prefixlen) argument
341 ifc_del_address(const char *name, const char * address, int prefixlen) argument
348 ifc_clear_ipv6_addresses(const char *name) argument
397 ifc_clear_ipv4_addresses(const char *name) argument
412 ifc_clear_addresses(const char *name) argument
417 ifc_set_hwaddr(const char *name, const void *ptr) argument
428 ifc_set_mask(const char *name, in_addr_t mask) argument
441 ifc_set_prefixLength(const char *name, int prefixLength) argument
454 ifc_get_addr(const char *name, in_addr_t *addr) argument
471 ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, unsigned *flags) argument
549 ifc_create_default_route(const char *name, in_addr_t gw) argument
562 ifc_add_host_route(const char *name, in_addr_t dst) argument
648 ifc_remove_host_routes(const char *name) argument
703 char name[64]; local
[all...]
/system/core/fastboot/
H A Dgenkey.sh21 -out $1.p12 -name $1 -passout pass:"$2"
H A Dfastboot.c297 " -p <product> specify product name\n"
360 void *unzip_file(zipfile_t zip, const char *name, unsigned *sz) argument
366 entry = lookup_zipentry(zip, name);
368 fprintf(stderr, "archive does not contain '%s'\n", name);
383 fprintf(stderr, "failed to unzip '%s' from archive\n", name);
404 static int setup_requirement_line(char *name) argument
413 if (!strncmp(name, "reject ", 7)) {
414 name += 7;
416 } else if (!strncmp(name, "require ", 8)) {
417 name
[all...]
/system/core/include/cutils/
H A Dmq.h111 * Gets the destination bound to a name.
113 MqDestination* mqGetDestination(char* name);
116 * Binds a destination to a name.
118 void mqPutDestination(char* name, MqDestination* desintation);
H A Dashmem.h19 int ashmem_create_region(const char *name, size_t size);
/system/core/include/diskconfig/
H A Ddiskconfig.h82 char *name; member in struct:part_info
116 char *find_part_device(struct disk_info *dinfo, const char *name);
118 struct part_info *find_part(struct disk_info *dinfo, const char *name);
124 char *find_mbr_part(struct disk_info *dinfo, const char *name);
/system/bluetooth/tools/
H A Dsock_shutdown_test.c254 char *name; member in struct:__anon265
262 char *name; member in struct:__anon266
278 for (i = 0; type_table[i].name; i++) {
279 printf("\t%s\n", type_table[i].name);
282 for (i = 0; action_table[i].name; i++) {
283 printf("\t%s\n", action_table[i].name);
295 for (i = 0; type_table[i].name; i++) {
296 if (!strcmp(argv[1], type_table[i].name)) {
305 for (i = 0; action_table[i].name; i++) {
306 if (!strcmp(argv[2], action_table[i].name)) {
[all...]
/system/core/libcorkscrew/
H A Dmap_info.c49 const char* name = line + name_pos; local
50 size_t name_len = strlen(name);
51 if (name_len && name[name_len - 1] == '\n') {
62 memcpy(mi->name, name, name_len);
63 mi->name[name_len] = '\0';
65 "is_readable=%d, is_executable=%d, name=%s",
66 mi->start, mi->end, mi->is_readable, mi->is_executable, mi->name);
/system/vold/
H A DProcess.cpp104 // append the file name, after truncating to parent directory
154 int Process::checkSymLink(int pid, const char *mountPoint, const char *name) { argument
158 sprintf(path, "/proc/%d/%s", pid, name);
192 char name[PATH_MAX]; local
196 getProcessName(pid, name, sizeof(name));
201 SLOGE("Process %s (%d) has open file %s", name, pid, openfile);
203 SLOGE("Process %s (%d) has open filemap for %s", name, pid, openfile);
205 SLOGE("Process %s (%d) has cwd within %s", name, pid, path);
207 SLOGE("Process %s (%d) has chroot within %s", name, pi
[all...]
/system/core/adb/
H A Dfile_sync_service.c34 static int mkdirs(char *name) argument
37 char *x = name + 1;
39 if(name[0] != '/') return -1;
45 ret = adb_mkdir(name, 0775);
47 D("mkdir(\"%s\") -> %s\n", name, strerror(errno));
362 char name[1025]; local
380 if(readx(fd, name, namelen)) {
384 name[namelen] = 0;
387 D("sync: '%s' '%s'\n", (char*) &msg.req, name);
391 if(do_stat(fd, name)) got
[all...]
H A Dfile_sync_client.c75 typedef void (*sync_ls_cb)(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie);
422 static int mkdirs(char *name) argument
425 char *x = name + 1;
431 ret = adb_mkdir(name, 0775);
536 const char *name, void *cookie)
538 printf("%08x %08x %08x %s\n", mode, size, time, name);
572 const char *name, int isdir)
576 int nlen = strlen(name);
593 snprintf((char*) ci->src, ssize, isdir ? "%s%s/" : "%s%s", spath, name);
594 snprintf((char*) ci->dst, dsize, isdir ? "%s%s/" : "%s%s", dpath, name);
535 do_sync_ls_cb(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie) argument
571 mkcopyinfo(const char *spath, const char *dpath, const char *name, int isdir) argument
620 char *name = de->d_name; local
776 const char *name = adb_dirstop(lpath); local
810 sync_ls_build_list_cb(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie) argument
970 const char *name = adb_dirstop(rpath); local
[all...]
/system/core/sh/
H A Dmknodes.sh18 # 3. Neither the name of The NetBSD Foundation nor the names of its
88 name=$1
94 * ) name=; shift 2; type="$*";;
96 echo " $type$name;"
162 name=$1
171 echo " ${fn}(n->$struct.$name${cl};"
197 name=$1
205 f="$struct.$name"
/system/extras/micro_bench/
H A Dmicro_bench.c160 char *name; member in struct:__anon500
175 for (i = 0; function_table[i].name; i++) {
176 printf("\tmicro_bench %s ARG [ITERS]\n", function_table[i].name);
193 for (i = 0; function_table[i].name; i++) {
194 if (!strcmp(argv[1], function_table[i].name)) {
195 printf("%s\n", function_table[i].name);
/system/core/gpttool/
H A Dgpttool.c75 u16 name[EFI_NAMELEN]; member in struct:efi_entry
118 int add_ptn(struct ptable *ptbl, u64 first, u64 last, const char *name) argument
125 fprintf(stderr,"partition '%s' overlaps partition table\n", name);
130 fprintf(stderr,"partition '%s' does not fit on disk\n", name);
140 for (n = 0; (n < EFI_NAMELEN) && *name; n++)
141 entry->name[n] = *name++;
155 "partition: [<name>]:<size>[kmg] | @<file-of-partitions>\n"
164 char name[EFI_NAMELEN]; local
166 fprintf(stderr,"ptn start block end block name\
[all...]

Completed in 238 milliseconds

12345678