Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/lib/libc/sys Pull up revision 1.3 (requested by bouyer in...



details:   https://anonhg.NetBSD.org/src/rev/b9643b9a6e80
branches:  netbsd-3
changeset: 575309:b9643b9a6e80
user:      tron <tron%NetBSD.org@localhost>
date:      Fri Apr 08 13:38:06 2005 +0000

description:
Pull up revision 1.3 (requested by bouyer in ticket #125):
PR/29919: Evaldo Gardenali: getmntinfo() calling deprecated function getfsstat()
Fixed by defining an _getfsstat() internal function and calling that instead.

diffstat:

 lib/libc/sys/statfs.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r 5845a2d6523e -r b9643b9a6e80 lib/libc/sys/statfs.c
--- a/lib/libc/sys/statfs.c     Fri Apr 08 00:23:57 2005 +0000
+++ b/lib/libc/sys/statfs.c     Fri Apr 08 13:38:06 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: statfs.c,v 1.2 2005/02/09 21:35:47 kleink Exp $        */
+/*     $NetBSD: statfs.c,v 1.2.2.1 2005/04/08 13:38:06 tron Exp $      */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -56,6 +56,8 @@
 __warn_references(getfsstat,
     "warning: reference to obsolete getfsstat(); use getvfsstat()")
 
+int _getfsstat(struct statfs12 *, long, int);
+
 /*
  * Convert from a new statvfs to an old statfs structure.
  */
@@ -160,7 +162,7 @@
 }
 
 int
-getfsstat(struct statfs12 *ost, long size, int flags)
+_getfsstat(struct statfs12 *ost, long size, int flags)
 {
        struct statvfs *nst;
        int ret, i;
@@ -182,3 +184,9 @@
                free(nst);
        return ret;
 }
+
+int
+getfsstat(struct statfs12 *ost, long size, int flags)
+{
+       return _getfsstat(ost, size, flags);
+}



Home | Main Index | Thread Index | Old Index