I am afraild Casey Marshall's comment could not reach me.
I have just found this comment in the mailing list archive.

Casey Marshall wrote.

| Not sure why you have this block...
|   
| > +#if defined(ENOTTY) && defined(HAVE_FSTAT)
| > +      if (errno == ENOTTY)
| > +        {
| > +          if ((fstat (fd, &statBuffer) == 0) && S_ISREG
| > (statBuffer.st_mode))
| > +            {
| > +              n = lseek (fd, 0, SEEK_CUR);
| > +              if (n != -1)
| > +                {
| > +                  avail = statBuffer.st_size - n;
| > +                  return avail;
| > +                }
| > +            }
| > +        }
| > +#endif
| > +      JCL_ThrowException (env, IO_EXCEPTION, strerror (errno));
| 
| ...surrounding it, though.

I do not like this surrounding "#if", but I am afraid in some environment
defined(HAVE_FSTAT) can be false.

Reply via email to