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