statvfs.c (99836) | statvfs.c (103012) |
---|---|
1/* 2 * Copyright 2002 Massachusetts Institute of Technology 3 * 4 * Permission to use, copy, modify, and distribute this software and 5 * its documentation for any purpose and without fee is hereby 6 * granted, provided that both the above copyright notice and this 7 * permission notice appear in all copies, that both the above 8 * copyright notice and this permission notice appear in all --- 14 unchanged lines hidden (view full) --- 23 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 26 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/* 2 * Copyright 2002 Massachusetts Institute of Technology 3 * 4 * Permission to use, copy, modify, and distribute this software and 5 * its documentation for any purpose and without fee is hereby 6 * granted, provided that both the above copyright notice and this 7 * permission notice appear in all copies, that both the above 8 * copyright notice and this permission notice appear in all --- 14 unchanged lines hidden (view full) --- 23 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 26 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/lib/libc/gen/statvfs.c 99836 2002-07-11 22:54:11Z wollman $"); | 31__FBSDID("$FreeBSD: head/lib/libc/gen/statvfs.c 103012 2002-09-06 11:24:06Z tjr $"); |
32 33#include "namespace.h" 34#include <sys/param.h> 35#include <sys/mount.h> 36#include <sys/statvfs.h> 37 38#include <errno.h> 39#include <limits.h> --- 25 unchanged lines hidden (view full) --- 65 if (pcval == -1) 66 result->f_namemax = ~0UL; 67 else 68 result->f_namemax = (unsigned long)pcval; 69 return (0); 70} 71 72int | 32 33#include "namespace.h" 34#include <sys/param.h> 35#include <sys/mount.h> 36#include <sys/statvfs.h> 37 38#include <errno.h> 39#include <limits.h> --- 25 unchanged lines hidden (view full) --- 65 if (pcval == -1) 66 result->f_namemax = ~0UL; 67 else 68 result->f_namemax = (unsigned long)pcval; 69 return (0); 70} 71 72int |
73statvfs(const char *__restrict path, struct statvfs *__restrict result) | 73statvfs(const char * __restrict path, struct statvfs * __restrict result) |
74{ 75 struct statfs sfs; 76 int rv; 77 long pcval; 78 79 rv = statfs(path, &sfs); 80 if (rv != 0) 81 return (rv); --- 79 unchanged lines hidden --- | 74{ 75 struct statfs sfs; 76 int rv; 77 long pcval; 78 79 rv = statfs(path, &sfs); 80 if (rv != 0) 81 return (rv); --- 79 unchanged lines hidden --- |