Searched defs:path (Results 1 - 25 of 59) sorted by path

123

/system/bluetooth/bluedroid/
H A Dbluetooth.c50 char path[64]; local
56 snprintf(path, sizeof(path), "/sys/class/rfkill/rfkill%d/type", id);
57 fd = open(path, O_RDONLY);
59 ALOGW("open(%s) failed: %s (%d)\n", path, strerror(errno), errno);
/system/bluetooth/brcm_patchram_plus/
H A Dbrcm_patchram_plus.c100 ** set, then the bd_addr will be read from this path.
746 char path[PROPERTY_VALUE_MAX]; local
752 property_get("ro.bt.bdaddr_path", path, "");
753 if (path[0] == 0)
756 fd = open(path, O_RDONLY);
758 fprintf(stderr, "open(%s) failed: %s (%d)", path, strerror(errno),
765 fprintf(stderr, "read(%s) failed: %s (%d)", path, strerror(errno),
770 fprintf(stderr, "read(%s) unexpected size %d", path, sz);
/system/core/adb/
H A Dadb.c873 char path[PATH_MAX]; local
888 strftime(path, sizeof(path),
891 fd = unix_open(path, O_WRONLY | O_CREAT | O_TRUNC, 0640);
944 /* get path of current program */
948 program_path, /* program path */
989 char path[PATH_MAX];
998 get_my_path(path, PATH_MAX);
1012 int result = execl(path, "adb", "fork-server", "server", NULL);
1125 // Our external storage path ma
[all...]
H A Dadb_auth_client.c107 char *path; local
113 while ((path = *paths++)) {
114 if (!stat(path, &buf)) {
115 D("Loading keys from '%s'\n", path);
116 read_keys(path, &key_list);
H A Dadb_auth_host.c136 char path[PATH_MAX], info[MAX_PAYLOAD]; local
139 ret = snprintf(path, sizeof(path), "%s.pub", private_key_path);
140 if (ret >= (signed)sizeof(path))
149 bfile = BIO_new_file(path, "w");
151 D("Failed to open '%s'\n", path);
155 D("Writing public key to '%s'\n", path);
266 char path[PATH_MAX]; local
269 SHGetFolderPath(NULL, CSIDL_PROFILE, NULL, 0, path);
270 home = path;
299 char path[PATH_MAX]; local
324 char *path; local
383 char path[PATH_MAX]; local
[all...]
H A Dcommandline.c90 " -p <product name or path> - simple product name like 'sooner', or\n"
91 " a relative/absolute path to a product\n"
95 " be an absolute path.\n"
163 " adb get-devpath - prints: <device-path>\n"
665 static int mkdirs(char *path) argument
668 char *x = path + 1;
674 ret = adb_mkdir(path, 0775);
843 * - A relative path from the CWD to the ANDROID_PRODUCT_OUT dir
845 * - An absolute path to the PRODUCT_OUT dir
848 * Given <hint>, try to construct an absolute path t
[all...]
H A Dfile_sync_client.c77 int sync_ls(int fd, const char *path, sync_ls_cb func, void *cookie) argument
83 len = strlen(path);
90 writex(fd, path, len)) {
126 int sync_readtime(int fd, const char *path, unsigned *timestamp) argument
129 int len = strlen(path);
135 writex(fd, path, len)) {
151 static int sync_start_readtime(int fd, const char *path) argument
154 int len = strlen(path);
160 writex(fd, path, len)) {
185 int sync_readmode(int fd, const char *path, unsigne argument
210 write_data_file(int fd, const char *path, syncsendbuf *sbuf) argument
273 write_data_link(int fd, const char *path, syncsendbuf *sbuf) argument
541 do_sync_ls(const char *path) argument
[all...]
H A Dfile_sync_service.c56 static int do_stat(int s, const char *path) argument
63 if(lstat(path, &st)) {
76 static int do_list(int s, const char *path) argument
87 len = strlen(path);
88 memcpy(tmp, path, len);
94 d = opendir(path);
151 static int handle_send_file(int s, char *path, mode_t mode, char *buffer) argument
157 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL, mode);
159 mkdirs(path);
160 fd = adb_open_mode(path, O_WRONL
227 handle_send_link(int s, char *path, char *buffer) argument
276 do_send(int s, char *path, char *buffer) argument
319 do_recv(int s, const char *path, char *buffer) argument
[all...]
H A Dsysdeps.h90 static __inline__ int adb_unlink(const char* path) argument
92 int rc = unlink(path);
97 rc = chmod(path, _S_IREAD|_S_IWRITE );
99 rc = unlink(path);
106 static __inline__ int adb_mkdir(const char* path, int mode) argument
108 return _mkdir(path);
113 extern int adb_open(const char* path, int options);
114 extern int adb_creat(const char* path, int mode);
142 static __inline__ int adb_open_mode(const char* path, int options, int mode) argument
144 return adb_open(path, option
147 unix_open(const char* path, int options,...) argument
309 unix_open(const char* path, int options,...) argument
380 adb_unlink(const char* path) argument
387 adb_creat(const char* path, int mode) argument
471 adb_mkdir(const char* path, int mode) argument
482 adb_dirstart(const char* path) argument
487 adb_dirstop(const char* path) argument
[all...]
H A Dsysdeps_win32.c303 int adb_open(const char* path, int options) argument
332 f->fh_handle = CreateFile( path, desiredAccess, shareMode, NULL, OPEN_EXISTING,
337 D( "adb_open: could not open '%s':", path );
345 D( "path not found\n" );
356 snprintf( f->name, sizeof(f->name), "%d(%s)", _fh_to_int(f), path );
357 D( "adb_open: '%s' => fd %d\n", path, _fh_to_int(f) );
362 int adb_creat(const char* path, int mode) argument
372 f->fh_handle = CreateFile( path, GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE,
378 D( "adb_creat: could not open '%s':", path );
386 D( "path no
[all...]
H A Dusb_vendors.c244 /* builds the path to the adb vendor id file. returns 0 if success */
254 /* fills buff with the path to the adb vendor id file. returns 0 if success */
262 char path[MAX_PATH]; local
263 SHGetFolderPath( NULL, CSIDL_PROFILE, NULL, 0, path);
264 return build_path(buff, len, "%s\\%s\\%s", path);
/system/core/charger/
H A Dcharger.c130 const char *path; member in struct:uevent
245 static int read_file(const char *path, char *buf, size_t sz) argument
250 fd = open(path, O_RDONLY, 0);
272 static int read_file_int(const char *path, int *val) argument
279 ret = read_file(path, buf, sizeof(buf));
327 const char *path, bool online)
338 "/sys/%s/capacity", path);
358 uevent->path = "";
374 uevent->path = msg;
395 uevent->action, uevent->path, ueven
325 add_supply(struct charger *charger, const char *name, const char *type, const char *path, bool online) argument
409 char *path; local
572 coldboot(struct charger *charger, const char *path, const char *event) argument
[all...]
/system/core/cpio/
H A Dmkbootfs.c45 /* Each line in the canned file should be a path plus three ints (uid,
56 static void fix_stat(const char *path, struct stat *s) argument
68 if (strcmp(p->name, path) == 0) {
81 fs_config(path, S_ISDIR(s->st_mode), &s->st_uid, &s->st_gid, &s->st_mode);
/system/core/debuggerd/
H A Dbacktrace.c38 char path[PATH_MAX]; local
43 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);
44 if ((fp = fopen(path, "r"))) {
67 char path[PATH_MAX]; local
72 snprintf(path, sizeof(path), "/proc/%d/comm", tid);
73 if ((fp = fopen(path, "r"))) {
H A Ddebuggerd.c160 char path[64]; local
161 snprintf(path, sizeof(path), "/proc/%d/status", tid);
163 FILE* fp = fopen(path, "r");
H A Dtombstone.c168 char path[64]; local
173 snprintf(path, sizeof(path), "/proc/%d/comm", tid);
174 if ((fp = fopen(path, "r"))) {
189 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);
190 if ((fp = fopen(path, "r"))) {
642 * Returns the path of the tombstone file, allocated using malloc(). Caller must free() it.
659 char path[128]; local
662 snprintf(path, sizeo
707 char* path = find_and_open_tombstone(&fd); local
[all...]
/system/core/fastboot/
H A Dfastboot.c90 void get_my_path(char *path);
96 char path[PATH_MAX + 128]; local
116 get_my_path(path);
117 sprintf(path + strlen(path),
119 return strdup(path);
128 sprintf(path, "%s/%s", dir, fn);
129 return strdup(path);
213 // require matching serial number or device path if requested
295 " or path t
[all...]
H A Dutil_linux.c37 void get_my_path(char *path) argument
43 int err = readlink(proc, path, PATH_MAX - 1);
46 path[0] = 0;
48 path[err] = 0;
49 x = strrchr(path,'/');
/system/core/include/private/
H A Dandroid_filesystem_config.h156 ** should start with the most specific path and work their
184 ** should start with the most specific path and work their
231 static inline void fs_config(const char *path, int dir, argument
238 plen = strlen(path);
243 if(!strncmp(pc->prefix, path, len)) break;
248 if(!strncmp(pc->prefix, path, len - 1)) break;
250 if(!strncmp(pc->prefix, path, len)) break;
259 path, pc->prefix ? pc->prefix : "", *uid, *gid, *mode);
/system/core/init/
H A Dbuiltins.c57 static int write_file(const char *path, const char *value) argument
61 fd = open(path, O_WRONLY|O_CREAT, 0622);
80 static int _open(const char *path) argument
84 fd = open(path, O_RDONLY | O_NOFOLLOW);
86 fd = open(path, O_WRONLY | O_NOFOLLOW);
91 static int _chown(const char *path, unsigned int uid, unsigned int gid) argument
96 fd = _open(path);
114 static int _chmod(const char *path, mode_t mode) argument
119 fd = _open(path);
299 /* mkdir <path> [mod
642 const char *path = args[1]; local
[all...]
H A Ddevices.c64 const char *path; member in struct:uevent
157 static mode_t get_device_perm(const char *path, unsigned *uid, unsigned *gid) argument
172 if (strncmp(path, dp->name, strlen(dp->name)))
175 if (strcmp(path, dp->name))
188 static void make_device(const char *path, argument
200 mode = get_device_perm(path, &uid, &gid) | (block ? S_IFBLK : S_IFCHR);
203 selabel_lookup(sehandle, &secontext, path, mode);
214 mknod(path, mode, dev);
215 chown(path, uid, -1);
308 uevent->path
412 const char *path; local
470 handle_device(const char *action, const char *devpath, const char *path, int block, int major, int minor, char **links) argument
871 coldboot(const char *path) argument
[all...]
H A Dproperty_service.c324 char path[PATH_MAX]; local
327 snprintf(path, sizeof(path), "%s/%s", PERSISTENT_PROPERTY_DIR, name);
337 if (rename(tempPath, path)) {
339 ERROR("Unable to rename persistent property file %s to %s\n", tempPath, path);
534 char path[PATH_MAX]; local
547 snprintf(path, sizeof(path), "%s/%s", PERSISTENT_PROPERTY_DIR, entry->d_name);
548 fd = open(path, O_RDONLY);
555 ERROR("Unable to read persistent property file %s errno: %d\n", path, errn
[all...]
H A Dutil.c299 ERROR("path too long for mkdir_recursive\n");
350 char path[256]; local
352 ret = readlink(newpath, path, sizeof(path) - 1);
355 path[ret] = 0;
356 if (!strcmp(path, oldpath))
467 int make_dir(const char *path, mode_t mode) argument
475 selabel_lookup(sehandle, &secontext, path, mode);
480 rc = mkdir(path, mode);
/system/core/libcorkscrew/
H A Dmap_info.c72 char path[PATH_MAX]; local
77 snprintf(path, PATH_MAX, "/proc/%d/maps", tid);
78 fp = fopen(path, "r");
/system/core/libcutils/
H A Ddir_hash.c36 * specified by path, using the specified algorithm. Returns the length
39 int get_file_hash(HashAlgorithm algorithm, const char *path, argument
52 if (stat(path, &sb) != 0) {
60 len = readlink(path, buf, sizeof(buf));
70 FILE *f = fopen(path, "rb");

Completed in 158 milliseconds

123