Searched refs:pathname (Results 1 – 11 of 11) sorted by relevance
/system/core/toolbox/ |
D | restorecon.c | 23 static int restore(const char *pathname, const struct stat *sb) in restore() argument 27 if (lgetfilecon(pathname, &oldcontext) < 0) { in restore() 29 pathname, strerror(errno)); in restore() 32 if (selabel_lookup(sehandle, &newcontext, pathname, sb->st_mode) < 0) { in restore() 33 fprintf(stderr, "Could not lookup context for %s: %s\n", pathname, in restore() 40 printf("Relabeling %s from %s to %s.\n", pathname, oldcontext, newcontext); in restore() 42 if (lsetfilecon(pathname, newcontext) < 0) { in restore() 44 pathname, newcontext, strerror(errno)); in restore()
|
D | ls.c | 310 const char* pathname = filename; in listfile() local 314 pathname = tmp; in listfile() 316 pathname = filename; in listfile() 320 return listfile_maclabel(pathname, flags); in listfile() 322 return listfile_long(pathname, flags); in listfile() 324 return listfile_size(pathname, filename, flags); in listfile()
|
/system/core/init/ |
D | util.c | 274 int mkdir_recursive(const char *pathname, mode_t mode) in mkdir_recursive() argument 278 const char *p = pathname; in mkdir_recursive() 284 width = slash - pathname; in mkdir_recursive() 294 memcpy(buf, pathname, width); in mkdir_recursive() 302 ret = make_dir(pathname, mode); in mkdir_recursive() 482 int restorecon(const char *pathname) in restorecon() argument 491 if (lstat(pathname, &sb) < 0) in restorecon() 493 if (selabel_lookup(sehandle, &secontext, pathname, sb.st_mode) < 0) in restorecon() 495 if (lsetfilecon(pathname, secontext) < 0) { in restorecon()
|
D | util.h | 34 int mkdir_recursive(const char *pathname, mode_t mode); 43 int restorecon(const char *pathname);
|
D | readme.txt | 51 service <name> <pathname> [ <argument> ]*
|
/system/extras/fatblock/ |
D | fdpool.h | 27 int fdpool_open(struct pooled_fd *pfd, const char *pathname, int flags);
|
D | fdpool.c | 119 int fdpool_open(struct pooled_fd *pfd, const char *pathname, int flags) in fdpool_open() argument 129 fd = open(pathname, flags); in fdpool_open()
|
/system/core/liblog/ |
D | logd_write.c | 38 #define log_open(pathname, flags) fakeLogOpen(pathname, flags) argument 42 #define log_open(pathname, flags) open(pathname, (flags) | O_CLOEXEC) argument
|
/system/core/adb/ |
D | sysdeps.h | 167 extern void* load_file(const char* pathname, unsigned* psize); 342 static __inline__ int adb_open_mode( const char* pathname, int options, int mode ) in adb_open_mode() argument 344 return TEMP_FAILURE_RETRY( open( pathname, options, mode ) ); in adb_open_mode() 348 static __inline__ int adb_open( const char* pathname, int options ) in adb_open() argument 350 int fd = TEMP_FAILURE_RETRY( open( pathname, options ) ); in adb_open()
|
/system/core/logcat/ |
D | logcat.cpp | 102 static int openLogFile (const char *pathname) in openLogFile() argument 104 return open(pathname, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR); in openLogFile()
|
/system/core/sh/ |
D | TOUR | 314 has already done a cd to an absolute pathname), but then
|