Using the same test on OpenNTPD from OpenBSD-STABLE: # cd /usr/src/usr.sbin/ntpd/ # for i in $(find . -name "*.[ch]"); do cat $i >> /root/allcode; done # egrep -v '[:blank:]*/?\*' /root/allcode | grep -v "^ *$" | wc -l 2898
Quite a difference indeed. On Fri, Dec 19, 2014 at 7:26 PM, trondd <tro...@gmail.com> wrote: > On Fri, Dec 19, 2014 at 8:22 PM, Theo de Raadt <dera...@cvs.openbsd.org> > wrote: > >> whereas ntp.org's codebase is reportedly 100,000 lines of >> unknown or largely unused code >> > > That made me curious. Is it that bloated? > > $ for i in $(find . -name "*.[ch]"); do cat $i >> allcode; done > $ egrep -v '[:blank:]*/?\*' allcode | grep -v "^ *$" | wc -l > 192870 > > This is ntp-4.2.8 A rough estimate but close enough if we are comparing to > a know solution that is <5000. > > Keep up the good work. > Tim. -- "BSD is what happens when Unix programmers port Unix to the x86. Linux is what happens when x86 programmers write a Unix-like. Windows is what happens when x86 programmers run all of their programming textbooks through a blender, eat the ground up remains of the text, and then code up what they can read in the toilet 3 days later."