#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <limits.h>#include <fcntl.h>#include <errno.h>#include <unistd.h>#include <stdlib.h>#include <string.h>#include <dirent.h>#include <minix/minlib.h>#include <minix/config.h>#include <minix/const.h>#include <minix/type.h>#include <servers/fs/const.h>#include <servers/fs/type.h>#include <servers/fs/super.h>Include dependency graph for df.c:

Go to the source code of this file.
Data Structures | |
| struct | mtab |
Defines | |
| #define | v12_super_block super_block |
| #define | SUPER_V1 SUPER_MAGIC |
| #define | ISDISK(mode) S_ISBLK(mode) |
| #define | percent(num, tot) ((int) ((100L * (num) + ((tot) - 1)) / (tot))) |
| #define | L(n) ((long) (n)) |
Functions | |
| mtab * | searchtab (char *name) |
| void | readmtab (char *type) |
| int | df (const struct mtab *mt) |
| bit_t | bit_count (unsigned blocks, bit_t bits, int fd, int bs) |
| void | usage (void) |
| int | main (int argc, char *argv[]) |
Variables | |
| int | errno |
| char | MTAB [] = "/etc/mtab" |
| int | iflag = 0 |
| int | Pflag = 0 |
| int | kflag = 0 |
| int | istty |
| uid_t | ruid |
| uid_t | euid |
| gid_t | rgid |
| gid_t | egid |
| int | unitsize |
|
|
Definition at line 45 of file df.c. Referenced by readmtab(), and searchtab(). |
|
|
|
Definition at line 265 of file df.c. Referenced by df(). |
|
|
|
|
|
Definition at line 40 of file df.c. Referenced by df(). |
|
||||||||||||||||||||
|
Definition at line 399 of file df.c. References _MAX_BLOCK_SIZE, b, busy, CHAR_BIT, i, and read. Referenced by df(), and Draw_Map(). |
|
|
Definition at line 270 of file df.c. References _MAX_BLOCK_SIZE, _STATIC_BLOCK_SIZE, bit_count(), block_size, close, mtab::devname, egid, errno, euid, fprintf(), iflag, istty, L, lseek, mtab::mountpoint, n, O_RDONLY, open, percent, Pflag, printf, putchar, read, rgid, ruid, SEEK_SET, setegid, seteuid, sp, stderr, strerror(), strlen(), SUPER_BLOCK_BYTES, SUPER_V1, SUPER_V2, SUPER_V3, unitsize, and v12_super_block. Referenced by main(). |
|
||||||||||||
|
Definition at line 77 of file df.c. References df(), egid, euid, ex, exit(), getegid, geteuid, getgid, getuid, i, iflag, isatty, istty, kflag, mtab::next, NULL, Pflag, printf, readmtab(), rgid, ruid, searchtab(), type, unitsize, and usage. |
|
|
Definition at line 135 of file df.c. References devname, exit(), fclose(), fopen(), fprintf(), get_mtab_entry(), ISDISK, load_mtab(), malloc(), mountpoint, MTAB, mtab::next, NULL, st, stat::st_mode, stat::st_rdev, stat, stderr, strcmp, strcpy(), strlen(), and version. Referenced by main(). |
|
|
Definition at line 214 of file df.c. References mtab::device, devname, ISDISK, mtab::next, NULL, st, stat::st_dev, stat::st_mode, stat::st_rdev, stat, and unknown. Referenced by main(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 64 of file df.c. Referenced by chk_same(), cpio_options(), main(), mk_link(), pax_options(), and unlnk_exist(). |
|
|
Definition at line 48 of file df.c. Referenced by readmtab(). |
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6