head 1.6; access; symbols pkgsrc-2020Q2:1.5.0.30 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.5.0.10 pkgsrc-2020Q1-base:1.5 pkgsrc-2019Q4:1.5.0.32 pkgsrc-2019Q4-base:1.5 pkgsrc-2019Q3:1.5.0.28 pkgsrc-2019Q3-base:1.5 pkgsrc-2019Q2:1.5.0.26 pkgsrc-2019Q2-base:1.5 pkgsrc-2019Q1:1.5.0.24 pkgsrc-2019Q1-base:1.5 pkgsrc-2018Q4:1.5.0.22 pkgsrc-2018Q4-base:1.5 pkgsrc-2018Q3:1.5.0.20 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.18 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.16 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.14 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.12 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.8 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.6 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.4 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.2 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.4.0.26 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.24 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.22 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.20 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.18 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.16 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.14 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.12 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.4.0.10 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.4.0.8 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.4.0.6 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.4 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.2 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.3.0.20 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.18 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.16 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.14 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.3.0.12 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.10 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.8 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.6 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.4 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.2 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.1.0.14 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.12 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.10 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.8 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.6 pkgsrc-2009Q3-base:1.1 pkgsrc-2009Q2:1.1.0.4 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.2 pkgsrc-2009Q1-base:1.1; locks; strict; comment @# @; 1.6 date 2020.09.02.09.54.33; author ryoon; state dead; branches; next 1.5; commitid CsbTXPoUFZfjpsmC; 1.5 date 2016.08.28.15.48.32; author wiz; state Exp; branches; next 1.4; commitid rTBn3EBawNhbu5kz; 1.4 date 2013.06.24.15.57.21; author jperkin; state Exp; branches; next 1.3; commitid PGZJx1hTXxnYQSUw; 1.3 date 2011.01.07.15.20.45; author obache; state Exp; branches; next 1.2; 1.2 date 2010.12.27.04.58.10; author obache; state Exp; branches; next 1.1; 1.1 date 2009.01.10.21.04.23; author jmcneill; state Exp; branches; next ; desc @@ 1.6 log @libv4l, libv4l1: Update graphics/libv4l with libv4l1 * Copy graphics/libv4l1 to graphics/libv4l. * Remove graphics/libv4l1. @ text @$NetBSD: patch-am,v 1.5 2016/08/28 15:48:32 wiz Exp $ * XXXX * `mode_t' is promoted to `int' when passed through `...'. * Fix SunOS 64-bit --- libv4l1/v4l1compat.c.orig 2008-08-26 12:32:39.000000000 +0000 +++ libv4l1/v4l1compat.c @@@@ -40,6 +40,10 @@@@ #define LIBV4L_PUBLIC #endif +#ifndef O_LARGEFILE +#define O_LARGEFILE 0 +#endif + LIBV4L_PUBLIC int open (const char *file, int oflag, ...) { int fd; @@@@ -50,7 +54,7 @@@@ LIBV4L_PUBLIC int open (const char *file mode_t mode; va_start (ap, oflag); - mode = va_arg (ap, mode_t); + mode = (sizeof (mode_t) < sizeof (int) ? (mode_t)va_arg (ap, int) : va_arg (ap, mode_t)); fd = v4l1_open(file, oflag, mode); @@@@ -61,6 +65,7 @@@@ LIBV4L_PUBLIC int open (const char *file return fd; } +#if !(defined(__sun) && defined(_LP64)) LIBV4L_PUBLIC int open64 (const char *file, int oflag, ...) { int fd; @@@@ -71,7 +76,7 @@@@ LIBV4L_PUBLIC int open64 (const char *fi mode_t mode; va_start (ap, oflag); - mode = va_arg (ap, mode_t); + mode = (mode_t)va_arg (ap, int); fd = v4l1_open(file, oflag | O_LARGEFILE, mode); @@@@ -81,6 +86,7 @@@@ LIBV4L_PUBLIC int open64 (const char *fi return fd; } +#endif LIBV4L_PUBLIC int close(int fd) { return v4l1_close(fd); @@@@ -103,22 +109,19 @@@@ LIBV4L_PUBLIC int ioctl (int fd, unsigne return v4l1_ioctl (fd, request, arg); } -LIBV4L_PUBLIC ssize_t read(int fd, void* buffer, size_t n) -{ - return v4l1_read (fd, buffer, n); -} - LIBV4L_PUBLIC void *mmap(void *start, size_t length, int prot, int flags, int fd, __off_t offset) { return v4l1_mmap(start, length, prot, flags, fd, offset); } +#if !(defined(__sun) && defined(_LP64)) LIBV4L_PUBLIC void *mmap64(void *start, size_t length, int prot, int flags, int fd, __off64_t offset) { return v4l1_mmap(start, length, prot, flags, fd, offset); } +#endif LIBV4L_PUBLIC int munmap(void *start, size_t length) { @ 1.5 log @Remove unnecessary PLIST_SUBST and FILES_SUBST that are now provided by the infrastructure. Mark a couple more packages as not ready for python-3.x. @ text @d1 1 a1 1 $NetBSD: patch-am,v 1.4 2013/06/24 15:57:21 jperkin Exp $ @ 1.4 log @Fixes for SunOS 64-bit where open/mmap are redefined to *64 versions. @ text @d1 1 a1 1 $NetBSD: patch-am,v 1.3 2011/01/07 15:20:45 obache Exp $ d54 12 a65 1 @@@@ -114,11 +120,13 @@@@ LIBV4L_PUBLIC void *mmap(void *start, si @ 1.3 log @better and one more fix for mode_t of va_arg. @ text @d1 1 a1 1 $NetBSD: patch-am,v 1.2 2010/12/27 04:58:10 obache Exp $ d5 1 d29 9 a37 1 @@@@ -71,7 +75,7 @@@@ LIBV4L_PUBLIC int open64 (const char *fi d46 22 @ 1.2 log @Fixes to build on DragonFly, contains bug fixes for sizeof(mode_t) != sizeof(int) @ text @d1 1 a1 1 $NetBSD: patch-am,v 1.1 2009/01/10 21:04:23 jmcneill Exp $ d24 1 a24 1 + mode = (mode_t)va_arg (ap, int); @ 1.1 log @Add libv4l1 compatibility support, bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ d3 5 a7 2 --- libv4l1/v4l1compat.c.orig 2009-01-10 15:37:56.000000000 -0500 +++ libv4l1/v4l1compat.c 2009-01-10 15:38:45.000000000 -0500 d19 18 @