Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

clearerr(3)

fdopen(3)

feof(3)

ferror(3)

fopen(3)

open(2)

fileno(3)  —  Subroutines

NAME

fileno − Maps a stream pointer to a file descriptor

LIBRARY

Standard C Library (libc.a)

SYNOPSIS

#include <stdio.h>

int fileno(
        FILE ∗stream);

PARAMETERS

streamSpecifies the input stream. 

DESCRIPTION

The fileno() function returns the file descriptor of a stream.  The fileno() function may be a macro (depending on compile-time definitions). See the NOTES section for more information. 

NOTES

The fileno() function may be a macro (depending on the compile-time definitions used in the source).  Consequently, you cannot use this interface where a function is necessary; for example, a subroutine pointer cannot point to the interface. 

AES Support Level:
Full use.

RETURN VALUES

Upon successful completion, the fileno() macro returns the file descriptor associated with the stream parameter. 

RELATED INFORMATION

Functions: clearerr(3), fdopen(3), feof(3), ferror(3), fopen(3), open(2). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026