__sfileno
#define fileno(p) __sfileno(p)
r = __sfileno(fp);
if ((wantfd = __sfileno(fp)) == -1 && isopen) {
__sfileno(fp) == -1 || fstat(__sfileno(fp), &st) ||
if (fstat(__sfileno(fp), &st))
if (couldbetty && isatty(__sfileno(fp)))
if (__sfileno(fp) == -1 || fstat(__sfileno(fp), &st) < 0) {
ret = lseek(__sfileno(fp), offset, whence);
return close(__sfileno(fp));
ret = read(__sfileno(fp), buf, n);
if (lseek(__sfileno(fp), (off_t)0, SEEK_END) == (off_t)-1) {
return write(__sfileno(fp), buf, n);
__sfileno(fp) != -1)