Is it considered to be ok to not check the return code of close(2) in base?

Rodney W. Grimes freebsd-rwg at pdx.rh.CN85.dnsmgr.net
Mon Jan 1 18:35:35 UTC 2018


> --------
> In message <201801011755.w01HtOtD087353 at pdx.rh.CN85.dnsmgr.net>, "Rodney W. Gri
> mes" writes:
> 
> >It further says that an assert() appeared in V6, and I bet that NDEBUG
> >didnt exist at that time.
> 
> Well, I think you'll loose that bet, because the earliest copy of assert.h
> which has been uncovered does have NDEBUG:
> 
> 	https://github.com/dspinellis/unix-history-repo/blob/Research-V7-Snapshot-Development/usr/include/assert.h

Um V7 was after V6, and is probably when asssert.h was introduced, so I
would win the bit, assert.h didnt even exist at V6.
I can go pull the hardcopy manuals and check.... be later today.


-- 
Rod Grimes                                                 rgrimes at freebsd.org


More information about the freebsd-hackers mailing list