From mboxrd@z Thu Jan 1 00:00:00 1970 From: wkt@minnie.tuhs.org (Warren Toomey) Date: Fri, 30 May 2003 11:01:26 +1000 Subject: [TUHS] SCO vs. IBM: NOVELL steps up to the plate In-Reply-To: <20030530003746.GF20321@wantadilla.lemis.com> References: <20030529.063354.51702197.imp@bsdimp.com> <20030529235027.GE20321@wantadilla.lemis.com> <20030529.175639.34763729.imp@bsdimp.com> <20030530003746.GF20321@wantadilla.lemis.com> Message-ID: <20030530010126.GA90870@minnie.tuhs.org> On Fri, May 30, 2003 at 10:07:46AM +0930, Greg 'groggy' Lehey wrote: > There are plenty of cases where you need to initialize a data > structure. Many data structures are public knowledge, and > initialization is a brainless enough task that the code could have > been written independently and look almost the same. Does this line > ring a bell? > > (*bdevsw[major(bp->b_dev)]->d_strategy) (bp); And you've got to watch out for these ones, which have been around since 1973: #define EPERM 1 /* Operation not permitted */ #define ENOENT 2 /* No such file or directory */ #define ESRCH 3 /* No such process */ #define EINTR 4 /* Interrupted system call */ So that that extent, there is real UNIX code in Linux 8-) Warren