head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.48 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.46 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.44 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.42 pkgsrc-2011Q2-base:1.3 TNF:1.1.1 pkgsrc-2009Q4:1.3.0.40 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.38 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.36 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.34 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.32 pkgsrc-2008Q2-base:1.3 pkgsrc-2008Q1:1.3.0.30 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.28 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.26 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.24 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.22 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.20 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.18 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.16 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.14 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.12 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.10 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.8 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.6 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.4 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.2 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.2.0.2 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.1.1.1.0.12 pkgsrc-2004Q1-base:1.1.1.1 pkgsrc-2003Q4:1.1.1.1.0.10 pkgsrc-2003Q4-base:1.1.1.1 netbsd-1-6-1:1.1.1.1.0.6 netbsd-1-6-1-base:1.1.1.1 netbsd-1-6:1.1.1.1.0.8 netbsd-1-6-RELEASE-base:1.1.1.1 pkgviews:1.1.1.1.0.4 pkgviews-base:1.1.1.1 buildlink2:1.1.1.1.0.2 buildlink2-base:1.1.1.1 netbsd-1-5-PATCH003:1.1.1.1 tnf_010802:1.1.1.1; locks; strict; comment @# @; 1.3 date 2004.06.26.18.00.21; author grant; state dead; branches; next 1.2; 1.2 date 2004.05.04.13.50.57; author mrg; state Exp; branches; next 1.1; 1.1 date 2001.08.02.17.34.00; author drochner; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.08.02.17.34.00; author drochner; state Exp; branches; next ; desc @@ 1.3 log @move libmpeg3 to multimedia/ @ text @$NetBSD: patch-ae,v 1.2 2004/05/04 13:50:57 mrg Exp $ --- mpeg3io.c.orig 2001-05-20 13:05:26.000000000 +1000 +++ mpeg3io.c 2004-05-04 23:48:36.000000000 +1000 @@@@ -1,11 +1,17 @@@@ #include "mpeg3private.h" #include "mpeg3protos.h" -#include -#include +#include +#include #include #include +#ifdef __NetBSD__ +# if __NetBSD_Version__ >= 200040000 /* 2.0D */ +# define statfs statvfs +# endif +#endif + mpeg3_fs_t* mpeg3_new_fs(char *path) { mpeg3_fs_t *fs = calloc(1, sizeof(mpeg3_fs_t)); @@@@ -88,27 +94,15 @@@@ int mpeg3io_device(char *path, char *device) { - struct stat file_st, device_st; - struct mntent *mnt; - FILE *fp; + struct statfs file_st; - if(stat(path, &file_st) < 0) + if(statfs(path, &file_st) < 0) { perror("mpeg3io_device"); return 1; } - fp = setmntent(MOUNTED, "r"); - while(fp && (mnt = getmntent(fp))) - { - if(stat(mnt->mnt_fsname, &device_st) < 0) continue; - if(device_st.st_rdev == file_st.st_dev) - { - strncpy(device, mnt->mnt_fsname, MPEG3_STRLEN); - break; - } - } - endmntent(fp); + strncpy(device, file_st.f_mntfromname, MPEG3_STRLEN); return 0; } @ 1.2 log @statfs->statvfs. @ text @d1 1 a1 1 $NetBSD: patch-ae,v 1.1.1.1 2001/08/02 17:34:00 drochner Exp $ @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- mpeg3io.c.orig Sun May 20 05:05:26 2001 +++ mpeg3io.c Tue Jul 31 17:57:27 2001 @@@@ -1,8 +1,8 @@@@ d16 10 a25 1 @@@@ -88,27 +88,15 @@@@ @ 1.1.1.1 log @initial import of libmpeg3, an MPEG decoding library @ text @@