• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/coreutils/

Lines Matching refs:pformat

120 static void print_statfs(char *pformat, const size_t buf_len, const char m,
126 strncat(pformat, "s", buf_len);
127 printf(pformat, filename);
129 strncat(pformat, "Lx", buf_len);
130 printf(pformat, statfsbuf->f_fsid);
132 strncat(pformat, "lu", buf_len);
133 printf(pformat, statfsbuf->f_namelen);
135 strncat(pformat, "lx", buf_len);
136 printf(pformat, (unsigned long) (statfsbuf->f_type)); /* no equiv */
138 strncat(pformat, "s", buf_len);
139 printf(pformat, human_fstype(statfsbuf->f_type));
141 strncat(pformat, "jd", buf_len);
142 printf(pformat, (intmax_t) (statfsbuf->f_blocks));
144 strncat(pformat, "jd", buf_len);
145 printf(pformat, (intmax_t) (statfsbuf->f_bfree));
147 strncat(pformat, "jd", buf_len);
148 printf(pformat, (intmax_t) (statfsbuf->f_bavail));
150 strncat(pformat, "lu", buf_len);
151 printf(pformat, (unsigned long) (statfsbuf->f_bsize));
153 strncat(pformat, "jd", buf_len);
154 printf(pformat, (intmax_t) (statfsbuf->f_files));
156 strncat(pformat, "jd", buf_len);
157 printf(pformat, (intmax_t) (statfsbuf->f_ffree));
160 strncat(pformat, "s", buf_len);
164 strncat(pformat, "c", buf_len);
165 printf(pformat, m);
170 static void print_stat(char *pformat, const size_t buf_len, const char m,
180 strncat(pformat, "s", buf_len);
181 printf(pformat, filename);
183 strncat(pformat, "s", buf_len);
191 printf(pformat, filename);
193 printf(pformat, linkname);
195 printf(pformat, filename);
198 strncat(pformat, "ju", buf_len);
199 printf(pformat, (uintmax_t) statbuf->st_dev);
201 strncat(pformat, "jx", buf_len);
202 printf(pformat, (uintmax_t) statbuf->st_dev);
204 strncat(pformat, "ju", buf_len);
205 printf(pformat, (uintmax_t) statbuf->st_ino);
207 strncat(pformat, "lo", buf_len);
208 printf(pformat, (unsigned long) (statbuf->st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)));
210 strncat(pformat, "s", buf_len);
211 printf(pformat, bb_mode_string(statbuf->st_mode));
213 strncat(pformat, "lx", buf_len);
214 printf(pformat, (unsigned long) statbuf->st_mode);
216 strncat(pformat, "s", buf_len);
217 printf(pformat, file_type(statbuf));
219 strncat(pformat, "lu", buf_len);
220 printf(pformat, (unsigned long) statbuf->st_nlink);
222 strncat(pformat, "lu", buf_len);
223 printf(pformat, (unsigned long) statbuf->st_uid);
225 strncat(pformat, "s", buf_len);
228 printf(pformat, (pw_ent != 0L) ? pw_ent->pw_name : "UNKNOWN");
230 strncat(pformat, "lu", buf_len);
231 printf(pformat, (unsigned long) statbuf->st_gid);
233 strncat(pformat, "s", buf_len);
236 printf(pformat, (gw_ent != 0L) ? gw_ent->gr_name : "UNKNOWN");
238 strncat(pformat, "lx", buf_len);
239 printf(pformat, (unsigned long) major(statbuf->st_rdev));
241 strncat(pformat, "lx", buf_len);
242 printf(pformat, (unsigned long) minor(statbuf->st_rdev));
244 strncat(pformat, "ju", buf_len);
245 printf(pformat, (uintmax_t) (statbuf->st_size));
247 strncat(pformat, "lu", buf_len);
248 printf(pformat, (unsigned long) 512); //ST_NBLOCKSIZE
250 strncat(pformat, "ju", buf_len);
251 printf(pformat, (uintmax_t) statbuf->st_blocks);
253 strncat(pformat, "lu", buf_len);
254 printf(pformat, (unsigned long) statbuf->st_blksize);
256 strncat(pformat, "s", buf_len);
257 printf(pformat, human_time(statbuf->st_atime));
259 strncat(pformat, TYPE_SIGNED(time_t) ? "ld" : "lu", buf_len);
260 printf(pformat, (unsigned long) statbuf->st_atime);
262 strncat(pformat, "s", buf_len);
263 printf(pformat, human_time(statbuf->st_mtime));
265 strncat(pformat, TYPE_SIGNED(time_t) ? "ld" : "lu", buf_len);
266 printf(pformat, (unsigned long) statbuf->st_mtime);
268 strncat(pformat, "s", buf_len);
269 printf(pformat, human_time(statbuf->st_ctime));
271 strncat(pformat, TYPE_SIGNED(time_t) ? "ld" : "lu", buf_len);
272 printf(pformat, (unsigned long) statbuf->st_ctime);
275 strncat(pformat, "s", buf_len);
276 printf(pformat, scontext);
279 strncat(pformat, "c", buf_len);
280 printf(pformat, m);