Searched defs:pathname (Results 1 - 6 of 6) sorted by relevance

/system/core/toolbox/
H A Drestorecon.c19 fprintf(stderr, "usage: %s [-nrRv] pathname...\n", progname);
23 static int restore(const char *pathname, const struct stat *sb) argument
27 if (lgetfilecon(pathname, &oldcontext) < 0) {
29 pathname, strerror(errno));
32 if (selabel_lookup(sehandle, &newcontext, pathname, sb->st_mode) < 0) {
33 fprintf(stderr, "Could not lookup context for %s: %s\n", pathname,
40 printf("Relabeling %s from %s to %s.\n", pathname, oldcontext, newcontext);
42 if (lsetfilecon(pathname, newcontext) < 0) {
44 pathname, newcontext, strerror(errno));
H A Dls.c316 const char* pathname = filename; local
320 pathname = tmp;
322 pathname = filename;
326 return listfile_maclabel(pathname, flags);
328 return listfile_long(pathname, flags);
330 return listfile_size(pathname, filename, flags);
/system/extras/fatblock/
H A Dfdpool.c119 int fdpool_open(struct pooled_fd *pfd, const char *pathname, int flags) argument
129 fd = open(pathname, flags);
/system/core/init/
H A Dutil.c282 int mkdir_recursive(const char *pathname, mode_t mode) argument
286 const char *p = pathname;
292 width = slash - pathname;
302 memcpy(buf, pathname, width);
310 ret = make_dir(pathname, mode);
493 int restorecon(const char *pathname) argument
503 if (lstat(pathname, &sb) < 0)
505 if (selabel_lookup(sehandle, &secontext, pathname, sb.st_mode) < 0)
507 if (lsetfilecon(pathname, secontext) < 0) {
/system/core/adb/
H A Dsysdeps.h167 extern void* load_file(const char* pathname, unsigned* psize);
326 static __inline__ int adb_open_mode( const char* pathname, int options, int mode ) argument
328 return open( pathname, options, mode );
332 static __inline__ int adb_open( const char* pathname, int options ) argument
334 int fd = open( pathname, options );
/system/core/logcat/
H A Dlogcat.cpp102 static int openLogFile (const char *pathname) argument
104 return open(pathname, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR);

Completed in 105 milliseconds