• Home
  • Raw
  • Download

Lines Matching refs:s

101     struct stat s;  in show_total_size()  local
116 if (lstat(tmp, &s) < 0) { in show_total_size()
122 sum += s.st_blocks / 2; in show_total_size()
132 struct stat s; in listfile_size() local
134 if (lstat(path, &s) < 0) { in listfile_size()
141 printf("%lld ", s.st_blocks / 2); in listfile_size()
145 char filetype = mode2kind(s.st_mode); in listfile_size()
166 struct stat s; in listfile_long() local
181 if(lstat(path, &s) < 0) { in listfile_long()
185 mode2str(s.st_mode, mode); in listfile_long()
187 sprintf(user, "%ld", s.st_uid); in listfile_long()
188 sprintf(group, "%ld", s.st_gid); in listfile_long()
190 user2str(s.st_uid, user); in listfile_long()
191 group2str(s.st_gid, group); in listfile_long()
194 strftime(date, 32, "%Y-%m-%d %H:%M", localtime((const time_t*)&s.st_mtime)); in listfile_long()
200 switch(s.st_mode & S_IFMT) { in listfile_long()
205 (int) MAJOR(s.st_rdev), (int) MINOR(s.st_rdev), in listfile_long()
210 mode, user, group, s.st_size, date, name); in listfile_long()
242 struct stat s; in listfile_maclabel() local
257 if(lstat(path, &s) < 0) { in listfile_maclabel()
266 mode2str(s.st_mode, mode); in listfile_maclabel()
267 user2str(s.st_uid, user); in listfile_maclabel()
268 group2str(s.st_gid, group); in listfile_maclabel()
270 switch(s.st_mode & S_IFMT) { in listfile_maclabel()
362 struct stat s; in listdir() local
380 err = stat(tmp, &s); in listdir()
382 err = lstat(tmp, &s); in listdir()
390 if (S_ISDIR(s.st_mode)) { in listdir()
408 struct stat s; in listpath() local
416 err = stat(name, &s); in listpath()
418 err = lstat(name, &s); in listpath()
425 if ((flags & LIST_DIRECTORIES) == 0 && S_ISDIR(s.st_mode)) { in listpath()