2002-10-16 22:09:42 +00:00
|
|
|
/* Common parts of Linux implementation of pathconf and fpathconf.
|
2017-01-01 00:14:16 +00:00
|
|
|
Copyright (C) 1991-2017 Free Software Foundation, Inc.
|
2002-10-16 22:09:42 +00:00
|
|
|
This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2012-02-09 23:18:22 +00:00
|
|
|
License along with the GNU C Library; if not, see
|
|
|
|
<http://www.gnu.org/licenses/>. */
|
2002-10-16 22:09:42 +00:00
|
|
|
|
|
|
|
#include <errno.h>
|
2003-06-11 23:22:36 +00:00
|
|
|
#include <unistd.h>
|
2002-10-16 22:09:42 +00:00
|
|
|
#include <sys/statfs.h>
|
|
|
|
|
|
|
|
|
2011-07-07 14:53:16 +00:00
|
|
|
/* Used like: return __statfs_link_max (__statfs (name, &buf), &buf,
|
|
|
|
name, -1); */
|
|
|
|
extern long int __statfs_link_max (int result, const struct statfs *fsbuf,
|
2017-10-01 22:18:09 +00:00
|
|
|
const char *file, int fd)
|
|
|
|
attribute_hidden;
|
2002-10-18 19:03:55 +00:00
|
|
|
|
|
|
|
|
2008-03-08 01:57:18 +00:00
|
|
|
/* Used like: return __statfs_filesize_max (__statfs (name, &buf), &buf); */
|
2017-10-01 22:18:09 +00:00
|
|
|
extern long int __statfs_filesize_max (int result, const struct statfs *fsbuf)
|
|
|
|
attribute_hidden;
|
2003-03-14 06:28:45 +00:00
|
|
|
|
|
|
|
|
2008-03-08 01:57:18 +00:00
|
|
|
/* Used like: return __statfs_link_max (__statfs (name, &buf), &buf); */
|
2017-10-01 22:18:09 +00:00
|
|
|
extern long int __statfs_symlinks (int result, const struct statfs *fsbuf)
|
|
|
|
attribute_hidden;
|
2008-03-08 01:57:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Used like: return __statfs_chown_restricted (__statfs (name, &buf), &buf);*/
|
|
|
|
extern long int __statfs_chown_restricted (int result,
|
2017-10-01 22:18:09 +00:00
|
|
|
const struct statfs *fsbuf)
|
|
|
|
attribute_hidden;
|