entered into RCS

This commit is contained in:
Roland McGrath 1994-01-24 21:59:33 +00:00
parent c316c1ae19
commit 5f9a1a9b13
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991, 1993 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1993, 1994 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -24,12 +24,16 @@ Cambridge, MA 02139, USA. */
int
DEFUN(fileno, (stream), FILE *stream)
{
extern void __stdio_check_funcs __P ((FILE *));
if (! __validfp (stream))
{
errno = EINVAL;
return -1;
}
__stdio_check_funcs (stream);
if (stream->__io_funcs.__fileno == NULL)
{
#ifdef EOPNOTSUPP