- 論壇徽章:
- 5
|
回復(fù) 2# myworkstation
現(xiàn)在有個(gè)問題額,就是這個(gè)值寫到數(shù)據(jù)庫(kù)里是負(fù)數(shù),但是數(shù)據(jù)庫(kù)的定義類型是signed long的,所以現(xiàn)在懷疑唯一有可能的就是這個(gè)值返回unsigned long的數(shù)很大,把符號(hào)位占了,所以才是顯示負(fù)數(shù),但是沒有找到這個(gè)函數(shù)的具體實(shí)現(xiàn),也不能特別確定,- int
- statvfs (const char *file, struct statvfs *buf)
- {
- /* `struct statvfs' is in fact identical to `struct statfs' so we
- can simply call statfs. */
- return __statfs (file, (struct statfs *)buf);
- }
復(fù)制代碼 這是statvfs的定義,里面又調(diào)用了__statfs,但是這個(gè)函數(shù)glibc庫(kù)里也沒有,不知道哪里出來的,有大俠能解決不? |
|