Re: sasc re-write

看板DFBSD_kernel作者時間21年前 (2005/01/18 15:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串10/10 (看更多)
> -On [20050118 05:02], David Cuthbert (dacut@kanga.org) wrote: >>Heh... this is one of those areas where there seem to be two distinct >>camps with little grey area. :-) Jeroen Ruigrok/asmodai wrote: > I think that this says enough: > > intro(2): > > Successful calls never set errno; once set, it remains until another error > occurs. It should only be examined after an error. Different issue. That just says that you can't rely on errno if the call is successful -- this is unambiguous. The camps I was referring to are: if (errno) do_something(); vs.: if (errno != 0) do_something(); Clearly, the latter is The Way God Intended(tm), and the former is the way only infidels check integral values. I also have it on good authority that God Prefers Emacs and the UN has passed a resolution banning VHDL in favor of Verilog. And if you believe any of this paragraph, I have an amazing multi-level marketing opportunity for you! :-) Dave
文章代碼(AID): #11xBGp00 (DFBSD_kernel)
文章代碼(AID): #11xBGp00 (DFBSD_kernel)