CONTENTS | INDEX | PREV | NEXT

 fcntl

 NAME
  fcntl - file control on a file

 SYNOPSIS
  int r = fcntl(fd, req, arg)
  int fd;
  int req;
  int arg;

 FUNCTION
  fcntl() may be used to control various aspects of an FD and is a
  higher level call than ioctl().

  CURRENTLY, NOTHING REAL IS DOABLE BY THE FCNTL() CALL for files.
  However, fcntl fully supports programmer simulated file descriptors.

 NOTE
  refer to the file_descriptor manual page for general information

  Unlike file pointers and file handles, the file descriptor is
  checked for validity and will simply return an error if illegal.

 EXAMPLE
  #include <fcntl.h>

 INPUTS
  int fd;     file descriptor to operate on
  int req;    request from <fcntl.h> (F_* defines)
  int arg;    control argument

 RESULTS
  int r;      result, error if less than 0.