Searched refs:path (Results 51 - 75 of 81) sorted by last modified time

1234

/system/core/toolbox/grep/
H A Dfile.c235 grep_open(const char *path) argument
241 if (path == NULL) {
245 } else if ((f->fd = open(path, O_RDONLY)) == -1) {
H A Dgrep.h160 struct file *grep_open(const char *path);
/system/core/toolbox/
H A Dload_policy.c16 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 Dls.c132 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 Dlsof.c53 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 Dmd5.c20 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 Dschedtop.c157 char path[1024]; local
160 sprintf(path, "/proc/%d/task", pid);
161 d = opendir(path);
H A Dumount.c28 static int is_loop_mount(const char* path, char *loopdev) argument
36 int path_length = strlen(path);
47 if (is_loop(device) && strcmp(path, mount_path) == 0) {
65 fprintf(stderr,"umount <path>\n");
H A Dwipe.c28 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);
/system/extras/ext4_utils/
H A Dcontents.h21 char *path; member in struct:dentry
H A Dext2simg.c46 static void usage(char *path) argument
48 fprintf(stderr, "%s [ options ] <image or block device> <output image>\n", path);
H A Dmake_ext4fs.c130 asprintf(&dentries[i].path, "%s/%s", dir_path, namelist[i]->d_name);
152 fs_config_func(dentries[i].path, dir, &uid, &gid, &mode);
163 asprintf(&sepath, "/%s", dentries[i].path);
191 error("unknown file type on %s", dentries[i].path);
205 dentries[i].path, inode, fs_config_func, sehnd);
209 error("unknown file type on %s", dentries[i].path);
218 error("failed to set permissions on %s\n", dentries[i].path);
221 error("failed to set SELinux context on %s\n", dentries[i].path);
223 free(dentries[i].path);
H A Dmake_ext4fs.h34 typedef void (*fs_config_func_t)(const char *path, int dir, unsigned *uid, unsigned *gid,
H A Dmake_ext4fs_main.c40 static void usage(char *path) argument
42 fprintf(stderr, "%s [ -l <len> ] [ -j <journal size> ] [ -b <block_size> ]\n", basename(path));
H A Dsetup_fs.c14 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;
/system/extras/fatblock/
H A Dfatblock.c151 char *path; local
162 DIE("Usage: fatblock <path> <size in MB>\n");
164 path = argv[1];
167 INFO("fatblock: importing filesystem from %s (%d MB)\n", path, mb);
169 ret = chdir(path);
171 DIE("fatblock: chdir(%s) failed: %s; aborting\n", path, strerror(errno));
H A Dfatblock.h46 char *path; member in struct:file
59 char *path; member in struct:dir
67 int import_tree(struct fs *fs, char *path);
H A Dimport.c95 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 Dread.c59 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/extras/librank/
H A DAndroid.mk20 LOCAL_C_INCLUDES := $(call include-path-for, libpagemap)
/system/extras/procmem/
H A DAndroid.mk20 LOCAL_C_INCLUDES := $(call include-path-for, libpagemap)
/system/extras/procrank/
H A DAndroid.mk20 LOCAL_C_INCLUDES := $(call include-path-for, libpagemap)
/system/extras/tests/directiotest/
H A Ddirectiotest.c172 const char *path; local
186 path = argv[1];
187 fd = open(path, O_RDWR | O_DIRECT | O_LARGEFILE);
196 fprintf(stderr, "%s is not a block device\n", path);
/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp609 char path[MAX_PATH]; local
611 strcpy(path, kTestDir);
616 // Go deeper by appending onto current path
617 snprintf(path + strlen(path), MAX_PATH - strlen(path), "/dir%d", i);
618 mkdir(path, S_IRWXU);
621 strcpy(filepath, path);
622 int pathlen = strlen(path);
/system/media/audio_utils/
H A DAndroid.mk14 LOCAL_C_INCLUDES += $(call include-path-for, speex)
16 $(call include-path-for, speex) \
17 $(call include-path-for, audio-utils)

Completed in 1310 milliseconds

1234