[OpenAFS-devel] solaris8 'bug'

Daniel Jacobowitz dmj+afs@andrew.cmu.edu
Wed, 31 Jan 2001 20:43:41 -0500


On Wed, Jan 31, 2001 at 08:32:03PM -0500, Chas Williams wrote:
> 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

"Most"?  Really?  Certainly both GCC's preprocessor and the current Sun
WorkShop preprocessor grock it.


Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan@debian.org         |  |       dmj+@andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/