|

楼主 |
发表于 2004-4-2 08:41:50
|
显示全部楼层
bash# cat fake_df.c
- #include <stdio.h>
- char *lp = "Filesystem 1K-blocks Used Available Use% Mounted on\n"
- "/dev/hda1 1234567 7654321 -6419754 620% /boot\n"
- "/dev/hda2 1234567 7654321 -6419754 620% /\n"
- "none 1234567 7654321 -6419754 620% /proc\n"
- "none 1234567 7654321 -6419754 620% /dev/shm\n"
- "none 1234567 7654321 -6419754 620% /dev/pts\n";
- int main()
- {
- printf("%s", lp);
- return 0;
- }
复制代码
April 1 |
|