delorie.com/djgpp/doc/libc/libc_377.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

__get_fd_flags

Syntax

 
#include <libc/fd_props.h>

unsigned long __get_fd_flags(int fd);

Description

This internal functions gets the flags associated with file descriptor fd, if any. The flags are some properties that may be associated with a file descriptor (see section __set_fd_properties).

This function will return zero, if no flags are associated with fd. The caller should first check that there are flags associated with fd using __has_fd_properties (see section __has_fd_properties), before calling __get_fd_flags. This will allow the cases of no flags and the flags being zero to be distinguished.

Return Value

The flags, if any; otherwise zero.

Portability

ANSI/ISO C No
POSIX No


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004