Lines Matching refs:info

70 static void fill_out_finfo(apr_finfo_t *finfo, struct_stat *info,
75 finfo->protection = apr_unix_mode2perms(info->st_mode);
76 finfo->filetype = filetype_from_mode(info->st_mode);
77 finfo->user = info->st_uid;
78 finfo->group = info->st_gid;
79 finfo->size = info->st_size;
80 finfo->device = info->st_dev;
81 finfo->nlink = info->st_nlink;
85 if (sizeof(apr_ino_t) >= sizeof(info->st_ino)
86 || (apr_ino_t)info->st_ino == info->st_ino) {
87 finfo->inode = info->st_ino;
92 apr_time_ansi_put(&finfo->atime, info->st_atime);
94 finfo->atime += info->st_atim.tv_nsec / APR_TIME_C(1000);
96 finfo->atime += info->st_atimensec / APR_TIME_C(1000);
98 finfo->atime += info->st_atime_n / APR_TIME_C(1000);
101 apr_time_ansi_put(&finfo->mtime, info->st_mtime);
103 finfo->mtime += info->st_mtim.tv_nsec / APR_TIME_C(1000);
105 finfo->mtime += info->st_mtimensec / APR_TIME_C(1000);
107 finfo->mtime += info->st_mtime_n / APR_TIME_C(1000);
110 apr_time_ansi_put(&finfo->ctime, info->st_ctime);
112 finfo->ctime += info->st_ctim.tv_nsec / APR_TIME_C(1000);
114 finfo->ctime += info->st_ctimensec / APR_TIME_C(1000);
116 finfo->ctime += info->st_ctime_n / APR_TIME_C(1000);
121 finfo->csize = (apr_off_t)info->st_blocks * (apr_off_t)DEV_BSIZE;
123 finfo->csize = (apr_off_t)info->st_blocks * (apr_off_t)512;
132 struct_stat info;
140 if (fstat(thefile->filedes, &info) == 0) {
143 fill_out_finfo(finfo, &info, wanted);
155 struct_stat info;
163 if (fstat(thefile->filedes, &info) == 0) {
166 fill_out_finfo(finfo, &info, wanted);
288 struct_stat info;
292 srv = lstat(fname, &info);
294 srv = stat(fname, &info);
299 fill_out_finfo(finfo, &info, wanted);