1a3050234Sbostic /*- 2*82f2451bSbostic * Copyright (c) 1990, 1993 3*82f2451bSbostic * The Regents of the University of California. All rights reserved. 4a3050234Sbostic * 5a3050234Sbostic * This code is derived from software contributed to Berkeley by 6a3050234Sbostic * Chris Torek. 7a3050234Sbostic * 8a3050234Sbostic * %sccs.include.redist.c% 9a3050234Sbostic */ 10a3050234Sbostic 11a3050234Sbostic #if defined(LIBC_SCCS) && !defined(lint) 12*82f2451bSbostic static char sccsid[] = "@(#)fileno.c 8.1 (Berkeley) 06/04/93"; 13a3050234Sbostic #endif /* LIBC_SCCS and not lint */ 14a3050234Sbostic 15a3050234Sbostic #include <stdio.h> 16a3050234Sbostic 17a3050234Sbostic /* 18a3050234Sbostic * A subroutine version of the macro fileno. 19a3050234Sbostic */ 20a3050234Sbostic #undef fileno 21a3050234Sbostic fileno(fp)22a3050234Sbosticfileno(fp) 23a3050234Sbostic FILE *fp; 24a3050234Sbostic { 25a3050234Sbostic return (__sfileno(fp)); 26a3050234Sbostic } 27