[OpenAFS-devel] solaris8 'bug'
Chas Williams
chas@cmf.nrl.navy.mil
Wed, 31 Jan 2001 20:32:03 -0500
more about the solaris8 'bug'. looking at the 3.6 sources i see:
...afs_vnop_readder.c...
#ifdef AFS_NEXT_ENV
auio->afsio_resid, origOffset, &treq);
#elif defined(AFS_SUN5_ENV)
len, origOffset);
#else
auio->afsio_resid, origOffset);
#endif
pretty clever eh? #ifdef/#elif? most cpp's just silently ignore the
#elif. btw, from what i can see len will always be 0 (set at the top
of the loop). when creating the openafs tree i guess someone just
merged the #ifdef and #elif (and created a compiler warning that
someone fixed). i dont think the 'len, origOffset)' fragment was
ever actually in use especially since it doesnt make sense.
so i suspect that all solaris platforms should be broken in openafs 1.0.2.