Lines Matching defs:int

21 int create_pkg_path_in_dir(char path[PKG_PATH_MAX],
58 int create_pkg_path(char path[PKG_PATH_MAX],
87 int ret = snprintf(dst, dst_size, "%d/", userid);
105 int create_user_path(char path[PKG_PATH_MAX],
132 int ret = snprintf(dst, dst_size, "%d/", userid);
145 int create_user_media_path(char path[PATH_MAX], userid_t userid) {
156 int create_user_config_path(char path[PATH_MAX], userid_t userid) {
163 int create_move_path(char path[PKG_PATH_MAX],
181 int is_valid_package_name(const char* pkgname) {
183 int alpha = -1;
222 static int _delete_dir_contents(DIR *d,
223 int (*exclusion_predicate)(const char *name, const int is_dir))
225 int result = 0;
227 int dfd;
242 int r, subfd;
283 int delete_dir_contents(const char *pathname,
284 int also_delete_dir,
285 int (*exclusion_predicate)(const char*, const int))
287 int res = 0;
306 int delete_dir_contents_fd(int dfd, const char *name)
308 int fd, res;
327 static int _copy_owner_permissions(int srcfd, int dstfd)
339 static int _copy_dir_files(int sdfd, int ddfd, uid_t owner, gid_t group)
341 int result = 0;
361 int fsfd = openat(sdfd, name, O_RDONLY | O_NOFOLLOW | O_CLOEXEC);
362 int fdfd = openat(ddfd, name, O_WRONLY | O_NOFOLLOW | O_CLOEXEC | O_CREAT, 0600);
390 int copy_dir_files(const char *srcname,
395 int res = 0;
413 int sdfd = dirfd(ds);
414 int ddfd = dirfd(dd);
425 int lookup_media_dir(char basepath[PATH_MAX], const char *dir)
620 static int _add_cache_files(cache_t *cache, cache_dir_t *parentDir, const char *dirName,
625 int dfd;
642 int subfd;
832 static int cache_modtime_sort(const void *lhsP, const void *rhsP)
842 int skip = 0;
871 ALOGI("DEL (mod %d) %s\n", (int)file->modTime, path);
896 (int)file->modTime, file->dir);
913 static int validate_path(const dir_rec_t* dir, const char* path) {
939 int validate_system_app_path(const char* path) {
957 int get_path_from_env(dir_rec_t* rec, const char* var) {
959 int ret = get_path_from_string(rec, path);
973 int get_path_from_string(dir_rec_t* rec, const char* path) {
1022 int copy_and_append(dir_rec_t* dst, const dir_rec_t* src, const char* suffix) {
1042 int validate_apk_path(const char *path)
1059 int append_and_increment(char** dst, const char* src, size_t* dst_size) {
1072 int len_s1 = strlen(s1);
1073 int len_s2 = strlen(s2);
1074 int len = len_s1 + len_s2 + 1;
1087 int len_s1 = strlen(s1);
1088 int len_s2 = strlen(s2);
1089 int len_s3 = strlen(s3);
1090 int len = len_s1 + len_s2 + len_s3 + 1;
1102 int ensure_media_user_dirs(userid_t userid) {
1115 int ensure_config_user_dirs(userid_t userid) {
1120 const int uid = multiuser_get_uid(userid, AID_SYSTEM);
1121 const int gid = multiuser_get_uid(userid, AID_EVERYBODY);
1132 int create_profile_file(const char *pkgname, gid_t gid) {
1142 int fd = open(profile_file, O_WRONLY | O_CREAT | O_NOFOLLOW | O_CLOEXEC, 0660);