Back to index

glibc  2.9
pathconf.c File Reference
#include <errno.h>
#include <stddef.h>
#include <sys/stat.h>
#include <hurd.h>
#include <hurd/fd.h>

Go to the source code of this file.


long int __pathconf (const char *file, int name)

Function Documentation

long int __pathconf ( const char *  file,
int  name 

Definition at line 27 of file pathconf.c.

  error_t err;
  int value;                /* RPC returns an `int', not a `long int'.  */
  file_t port = __file_name_lookup (file, 0, 0);
  if (port == MACH_PORT_NULL)
    return -1L;
  err = __io_pathconf (port, name, &value);
  __mach_port_deallocate (__mach_task_self (), port);
  if (err)
    return __hurd_fail (err), -1L;
  return value;

Here is the call graph for this function: