Back to index

glibc  2.9
Defines | Functions
fpathconf.c File Reference
#include "pathconf.h"
#include <sysdeps/posix/fpathconf.c>

Go to the source code of this file.

Defines

#define __fpathconf   static posix_fpathconf

Functions

static long int posix_fpathconf (int fd, int name)
long int __fpathconf (int fd, int name)

Define Documentation

#define __fpathconf   static posix_fpathconf

Definition at line 25 of file fpathconf.c.


Function Documentation

long int __fpathconf ( int  fd,
int  name 
)

Definition at line 31 of file fpathconf.c.

{
  struct statfs fsbuf;

  switch (name)
    {
    case _PC_LINK_MAX:
      return __statfs_link_max (__fstatfs (fd, &fsbuf), &fsbuf);

    case _PC_FILESIZEBITS:
      return __statfs_filesize_max (__fstatfs (fd, &fsbuf), &fsbuf);

    case _PC_2_SYMLINKS:
      return __statfs_symlinks (__fstatfs (fd, &fsbuf), &fsbuf);

    case _PC_CHOWN_RESTRICTED:
      return __statfs_chown_restricted (__fstatfs (fd, &fsbuf), &fsbuf);

    default:
      return posix_fpathconf (fd, name);
    }
}

Here is the call graph for this function:

static long int posix_fpathconf ( int  fd,
int  name 
) [static]

Here is the caller graph for this function: