www.delorie.com/djgpp/doc/libc/libc_360.html   search  
libc.a reference

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

__FSEXT_get_function

Syntax

 
#include <sys/fsext.h>

__FSEXT_Function *__FSEXT_get_function(int _fd);

This function is part of the File System Extensions. It is used internal to libc.a to redirect I/O requests to the appropriate extensions.

Portability

ANSI/ISO C No
POSIX No

Example

 
_read(int fd, void *buf, int len)
{
  __FSEXT_Function *func = __FSEXT_get_function(fd);
  if (func)
  {
    int rv;
    if (func(__FSEXT_read, &rv, &fd))
      return rv;
  }
  /* rest of read() */
}


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004