Re: size_t changes and 32/64-bit, kernel uio_resid type changed.

看板DFBSD_kernel作者時間16年前 (2009/08/20 16:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串7/10 (看更多)
Matthew Dillon wrote: > size_t has been changed to unsigned long (and ssize_t to long). I may > revert this prior to the release if we hit pkgsrc problems. The change > will be kept for 64-bit machines. > > The change on 32 bit machines seems to do a pretty good job generating > compiler warnings on 32-bit machines for code that will break on > 64-bit machines. Because of this I think it is worth seeing how badly > pkgsrc breaks with the change. If it breaks too much we will revert > it on 32 bit machines. As it turns out, it breaks C++ ABI. IMHO it's too high cost for just to get better warnings. And massive breakage of software on 64-bit machines is thing of past. In fact I see opposite more nowadays - software written on 64-bit platforms breaks on 32-bit machines ("Who uses 32-bit nowadays? Embedded platforms?"). -- Hasso Tepper
文章代碼(AID): #1AZGB1hb (DFBSD_kernel)
討論串 (同標題文章)
完整討論串 (本文為第 7 之 10 篇):
文章代碼(AID): #1AZGB1hb (DFBSD_kernel)