Skip to main content

Posts

Showing posts from November 28, 2010

dictionary universal

dictionary universal에 관련된 정보가 아주 자세히 기재 http://latte4u.net/680 사전파일은 아래에서 습득가능 http://www.krtek.cz/cgi-bin/ftpsearch2.fgi?ts=3&hits=&iserver=1424&ipath=3408131&ppoz=0,50,$100,150,200,250,300,350,400,450,500,550,600,650,700,750,800,850,900,950,1000,1050,1100,1150,1200,1250,1300,1350,1400,1450,1500,1550,1600,1650,1700,1750,1800,1850,

마운트 정보 in Linux

1. 마운트정보 cat /proc/mounts 를 통해 현재 마운트되어 있는 정보를 확인가능하다 2. 자세한 마운트정보는 statfs와 statvfs로 습득가능하다 statfs는 bsd계열 명령이고 statvfs는 solaris, lrix, POSIX계열 명령이다. /**  * @brief  *  get dir' avail space  */ unsigned long long get_avail_space(char *dir) { //// statvfs //    unsigned long long result = 0; //    struct statvfs sfs; // //    if (statvfs(dir, &sfs) != -1) { // //        result = (unsigned long long)sfs.f_bsize * sfs.f_bavail; //    } else { //        fprintf(stderr, "cannot read dir"); //    } // //    return result;     unsigned long long result = 0;     struct statfs sfs;     if (statfs(dir, &sfs) != -1) {         result = (unsigned long long)sfs.f_bsize * sfs.f_bavail;         cout << "File system types:" << sfs.f_type << endl;     } else {         perror("cannot read dir");     }     return result; }