ref: 75926842ab179c9354ff726532679b58c0fc7fb0
parent: 060c45697b9bfd1cb834738e8da55357202713a8
author: Sam Hocevar <[email protected]>
date: Tue Jun 4 03:10:07 EDT 2002
* ./src/ioctl.c: implemented ioctl_ReportKey1 for HP-UX.
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
HEAD
+ * ./src/ioctl.c: implemented ioctl_ReportKey1 for HP-UX.
* ./src/libdvdcss.c: Win32 compilation fix.
1.2.1
--- a/src/ioctl.c
+++ b/src/ioctl.c
@@ -2,7 +2,7 @@
* ioctl.c: DVD ioctl replacement function
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
- * $Id: ioctl.c,v 1.9 2002/06/02 16:14:48 sam Exp $
+ * $Id: ioctl.c,v 1.10 2002/06/04 07:10:07 sam Exp $
*
* Authors: Markus Kuespert <[email protected]>
* Samuel Hocevar <[email protected]>
@@ -1428,6 +1428,17 @@
rdc.command[ 10 ] = DVD_REPORT_RPC;
i_ret = ioctl( i_fd, B_RAW_DEVICE_COMMAND, &rdc, sizeof(rdc) );
+
+ *p_type = p_buffer[ 4 ] >> 6;
+ *p_mask = p_buffer[ 5 ];
+ *p_scheme = p_buffer[ 6 ];
+
+#elif defined( HPUX_SCTL_IO )
+ INIT_SCTL_IO( GPCMD_REPORT_KEY, 8 );
+
+ sctl_io.cdb[ 10 ] = DVD_REPORT_RPC;
+
+ i_ret = ioctl( i_fd, SIOC_IO, &sctl_io );
*p_type = p_buffer[ 4 ] >> 6;
*p_mask = p_buffer[ 5 ];