Searched refs:pathname (Results 1 - 9 of 9) sorted by relevance

/system/extras/fatblock/
H A Dfdpool.h27 int fdpool_open(struct pooled_fd *pfd, const char *pathname, int flags);
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.h34 int mkdir_recursive(const char *pathname, mode_t mode);
43 int restorecon(const char *pathname);
44 int restorecon_recursive(const char *pathname);
H A Dutil.c275 int mkdir_recursive(const char *pathname, mode_t mode) argument
279 const char *p = pathname;
285 width = slash - pathname;
295 memcpy(buf, pathname, width);
303 ret = make_dir(pathname, mode);
496 int restorecon(const char *pathname) argument
505 if (lstat(pathname, &sb) < 0)
507 if (selabel_lookup(sehandle, &secontext, pathname, sb.st_mode) < 0)
509 if (lsetfilecon(pathname, secontext) < 0) {
524 int restorecon_recursive(const char* pathname) argument
[all...]
/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.c309 const char* pathname = filename; local
313 pathname = tmp;
315 pathname = filename;
318 if(lstat(pathname, &s) < 0) {
327 return listfile_maclabel(pathname, &s, flags);
329 return listfile_long(pathname, &s, flags);
331 return listfile_size(pathname, filename, &s, flags);
/system/core/liblog/
H A Dlogd_write.c38 #define log_open(pathname, flags) fakeLogOpen(pathname, flags)
42 #define log_open(pathname, flags) open(pathname, (flags) | O_CLOEXEC)
/system/core/adb/
H A Dsysdeps.h167 extern void* load_file(const char* pathname, unsigned* psize);
341 static __inline__ int adb_open_mode( const char* pathname, int options, int mode ) argument
343 return TEMP_FAILURE_RETRY( open( pathname, options, mode ) );
347 static __inline__ int adb_open( const char* pathname, int options ) argument
349 int fd = TEMP_FAILURE_RETRY( 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 147 milliseconds