Back to index

glibc  2.9
Functions
fpathconf.c File Reference
#include <errno.h>
#include <stddef.h>
#include <unistd.h>
#include <stub-tag.h>

Go to the source code of this file.

Functions

long int __fpathconf (int fd, int name)

Function Documentation

long int __fpathconf ( int  fd,
int  name 
)

Definition at line 26 of file fpathconf.c.

{
  if (fd < 0)
    {
      __set_errno (EBADF);
      return -1;
    }

  switch (name)
    {
    default:
      __set_errno (EINVAL);
      return -1;

    case _PC_LINK_MAX:
    case _PC_MAX_CANON:
    case _PC_MAX_INPUT:
    case _PC_NAME_MAX:
    case _PC_PATH_MAX:
    case _PC_PIPE_BUF:
    case _PC_SOCK_MAXBUF:
    case _PC_CHOWN_RESTRICTED:
    case _PC_NO_TRUNC:
    case _PC_VDISABLE:
      break;
    }

  __set_errno (ENOSYS);
  return -1;
}