OSDN Git Service

Replace FSF snail mail address with URLs
[uclinux-h8/uClibc.git] / libc / unistd / pathconf.c
index 8e3c0a3..de78a83 100644 (file)
@@ -13,9 +13,8 @@
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+   License along with the GNU C Library; if not, see
+   <http://www.gnu.org/licenses/>.  */
 
 /* pathconf -- adjusted for busybox */
 
 #include <fcntl.h>
 #include <sys/stat.h>
 #include <sys/statfs.h>
-//#include <sys/statvfs.h>
 
-libc_hidden_proto(statfs)
-libc_hidden_proto(stat)
+extern __typeof(statfs) __libc_statfs;
 
 
 /* The Linux kernel headers mention this as a kind of generic value. */
@@ -83,7 +80,7 @@ pathconf (const char *path, int name)
        struct statfs buf;
        int save_errno = errno;
 
-       if (statfs (path, &buf) < 0)
+       if (__libc_statfs (path, &buf) < 0)
          {
            if (errno == ENOSYS)
              {