/system/core/fastboot/ |
H A D | util_linux.c | 37 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/vold/ |
H A D | Process.h | 22 static void killProcessesWithOpenFiles(const char *path, int action); 24 static int checkSymLink(int pid, const char *path, const char *name); 25 static int checkFileMaps(int pid, const char *path); 26 static int checkFileMaps(int pid, const char *path, char *openFilename, size_t max); 31 static int readSymLink(const char *path, char *link, size_t max); 32 static int pathMatchesMountPoint(const char *path, const char *mountPoint);
|
H A D | Process.cpp | 35 int Process::readSymLink(const char *path, char *link, size_t max) { argument 39 if (lstat(path, &s) < 0) 45 length = readlink(path, link, max- 1); 52 int Process::pathMatchesMountPoint(const char* path, const char* mountPoint) { argument 54 if (length > 1 && strncmp(path, mountPoint, length) == 0) { 59 // there is one in the path to avoid partial matches. 60 return (path[length] == 0 || path[length] == '/'); 86 // compute path to process's directory of open files 87 char path[PATH_MA local 139 const char* path = strchr(buffer, '/'); local 155 char path[PATH_MAX]; local 180 killProcessesWithOpenFiles(const char *path, int action) argument [all...] |
/system/core/libcutils/ |
H A D | fs.c | 33 int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid) { argument 34 // Check if path needs to be created 36 if (TEMP_FAILURE_RETRY(lstat(path, &sb)) == -1) { 40 ALOGE("Failed to lstat(%s): %s", path, strerror(errno)); 47 ALOGE("Not a directory: %s", path); 57 if (TEMP_FAILURE_RETRY(mkdir(path, mode)) == -1) { 59 ALOGE("Failed to mkdir(%s): %s", path, strerror(errno)); 65 if (TEMP_FAILURE_RETRY(chmod(path, mode)) == -1) { 66 ALOGE("Failed to chmod(%s, %d): %s", path, mode, strerror(errno)); 69 if (TEMP_FAILURE_RETRY(chown(path, ui 77 fs_read_atomic_int(const char* path, int* out_value) argument 102 fs_write_atomic_int(const char* path, int value) argument [all...] |
/system/media/audio_utils/ |
H A D | Android.mk | 14 LOCAL_C_INCLUDES += $(call include-path-for, speex) 16 $(call include-path-for, speex) \ 17 $(call include-path-for, audio-utils)
|
/system/core/include/cutils/ |
H A D | fs.h | 44 extern int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid); 50 extern int fs_read_atomic_int(const char* path, int* value); 56 extern int fs_write_atomic_int(const char* path, int value);
|
H A D | dir_hash.h | 21 int get_file_hash(HashAlgorithm algorithm, const char *path,
|
/system/core/toolbox/ |
H A D | load_policy.c | 16 const char *path; local 23 path = argv[1]; 24 fd = open(path, O_RDONLY); 26 fprintf(stderr, "Could not open %s: %s\n", path, strerror(errno)); 31 fprintf(stderr, "Could not stat %s: %s\n", path, strerror(errno)); 37 fprintf(stderr, "Could not mmap %s: %s\n", path, strerror(errno)); 43 fprintf(stderr, "Could not load %s: %s\n", path, strerror(errno));
|
H A D | lsof.c | 53 char path[PATH_MAX]; member in struct:pid_info_t 76 strncat(info->path, type, sizeof(info->path)); 77 if ((link_dest_size = readlink(info->path, link_dest, sizeof(link_dest)-1)) < 0) { 81 snprintf(link_dest, sizeof(link_dest), "%s (readlink: %s)", info->path, strerror(errno)); 95 info->path[info->parent_length] = '\0'; 110 strncat(info->path, "maps", sizeof(info->path)); 112 maps = fopen(info->path, "r"); 130 info->path[inf [all...] |
H A D | md5.c | 20 static int do_md5(const char *path) argument 27 fd = open(path, O_RDONLY); 29 fprintf(stderr,"could not open %s, %s\n", path, strerror(errno)); 44 fprintf(stderr,"could not read %s, %s\n", path, strerror(errno)); 50 fprintf(stderr,"could not close %s, %s\n", path, strerror(errno)); 58 printf(" %s\n", path);
|
H A D | wipe.c | 28 static void wipe (const char *path); 81 static void wipe (const char *path) argument 87 dir = opendir(path); 91 path, strerror(errno)); 97 strcpy(nameBuffer, path); 153 dir = opendir(path); 156 path, strerror(errno)); 161 strcpy(nameBuffer, path);
|
H A D | ls.c | 132 static int listfile_size(const char *path, const char *filename, int flags) argument 136 if (lstat(path, &s) < 0) { 137 fprintf(stderr, "lstat '%s' failed: %s\n", path, strerror(errno)); 152 if (!stat(path, &link_dest)) { 155 fprintf(stderr, "stat '%s' failed: %s\n", path, strerror(errno)); 166 static int listfile_long(const char *path, int flags) argument 175 /* name is anything after the final '/', or the whole path if none*/ 176 name = strrchr(path, '/'); 178 name = path; 183 if(lstat(path, 242 listfile_maclabel(const char *path, int flags) argument [all...] |
H A D | chmod.c | 13 void recurse_chmod(char* path, int mode) argument 16 DIR *dir = opendir(path); 22 int pathlen = strlen(path); 29 fprintf(stderr, "Invalid path specified: too long\n"); 33 strcpy(subpath, path);
|
/system/core/adb/ |
H A D | adb_auth_host.c | 136 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 D | sysdeps.h | 90 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 D | file_sync_service.c | 56 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...] |
/system/extras/ext4_utils/ |
H A D | setup_fs.c | 14 char buf[256], path[128]; local 20 n = readlink(blockdev, path, sizeof(path) - 1); 22 path[n] = 0; 23 if (!memcmp(path, "/dev/block/", 11)) 24 blockdev = path + 11;
|
H A D | make_ext4fs.h | 34 typedef void (*fs_config_func_t)(const char *path, int dir, unsigned *uid, unsigned *gid,
|
/system/extras/fatblock/ |
H A D | import.c | 95 static int import_file(struct fs *fs, char *path, struct imported *out) argument 102 ret = stat(path, &st); 104 WARN("importing %s: stat failed: %s\n", path, strerror(errno)); 111 "out of memory\n", path); 116 path_copy = strdup(path); 118 WARN("importing %s: couldn't strdup path: out of memory\n", 119 path); 124 f->path = path_copy; 134 WARN("importing %s: couldn't allocate data extent\n", path); 193 static int import_dir(struct fs *fs, char *path, in argument 352 import_tree(struct fs *fs, char *path) argument [all...] |
H A D | fatblock.h | 46 char *path; member in struct:file 59 char *path; member in struct:dir 67 int import_tree(struct fs *fs, char *path);
|
H A D | read.c | 59 ret = stat(f->path, &st); 62 f->path, strerror(errno)); 84 f->path, off, len); 91 f->path, off, len); 97 f->path, off, len); 101 fd = fdpool_open(&f->pfd, f->path, O_RDONLY); 103 WARN("reading %s: open failed: %s\n", f->path, strerror(errno)); 110 f->path, off, len, strerror(errno)); 117 f->path, off, len, strerror(errno));
|
/system/core/libsparse/ |
H A D | simg_dump.py | 53 for path in args: 54 FH = open(path, 'rb') 70 % (me, path, magic)) 74 % (me, path, major_version, minor_version)) 78 % (me, path, file_hdr_sz)) 82 % (me, path, chunk_hdr_sz)) 86 % (path, total_blks, blk_sz, total_chunks))
|
/system/core/debuggerd/ |
H A D | backtrace.c | 38 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"))) {
|
/system/core/rootdir/etc/ |
H A D | dbus.conf | 11 <!-- Only listen on a local socket. (abstract=/path/to/socket 13 file; only Linux supports this. Use path=/whatever on other 15 <listen>unix:path=/dev/socket/dbus</listen>
|
/system/netd/ |
H A D | NatController.h | 42 int runCmd(const char *path, const char *cmd);
|