Add several missing ioctl handlers. One needed by Sybase, the others

found while looking for the one.
This commit is contained in:
John Fieber 1998-09-30 01:42:53 +00:00
parent df077352a7
commit f18bad6e73
4 changed files with 58 additions and 4 deletions

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: linux.h,v 1.20 1998/02/13 07:34:52 bde Exp $
* $Id: linux.h,v 1.21 1998/08/31 06:55:02 jkh Exp $
*/
#ifndef _I386_LINUX_LINUX_H_
@ -553,7 +553,14 @@ struct trapframe;
#define LINUX_SOUND_MIXER_WRITE_LINE3 0x4d10
#define LINUX_SOUND_MIXER_READ_DEVMASK 0x4dfe
/* Socket system defines */
#define LINUX_FIOSETOWN 0x8901
#define LINUX_SIOCSPGRP 0x8902
#define LINUX_FIOGETOWN 0x8903
#define LINUX_SIOCGPGRP 0x8904
#define LINUX_SIOCATMARK 0x8905
#define LINUX_SIOCGSTAMP 0x8906
#define LINUX_SIOCGIFCONF 0x8912
#define LINUX_SIOCGIFFLAGS 0x8913
#define LINUX_SIOCGIFADDR 0x8915

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: linux_ioctl.c,v 1.27 1998/08/31 10:51:19 jkh Exp $
* $Id: linux_ioctl.c,v 1.28 1998/08/31 10:53:33 jkh Exp $
*/
#include <sys/param.h>
@ -628,6 +628,26 @@ linux_ioctl(struct proc *p, struct linux_ioctl_args *args)
args->cmd = SIOCDELMULTI;
return ioctl(p, (struct ioctl_args *)args);
case LINUX_FIOSETOWN:
args->cmd = FIOSETOWN;
return ioctl(p, (struct ioctl_args *)args);
case LINUX_SIOCSPGRP:
args->cmd = SIOCSPGRP;
return ioctl(p, (struct ioctl_args *)args);
case LINUX_FIOGETOWN:
args->cmd = FIOGETOWN;
return ioctl(p, (struct ioctl_args *)args);
case LINUX_SIOCGPGRP:
args->cmd = SIOCGPGRP;
return ioctl(p, (struct ioctl_args *)args);
case LINUX_SIOCATMARK:
args->cmd = SIOCATMARK;
return ioctl(p, (struct ioctl_args *)args);
case LINUX_TIOCSETD:
switch (args->arg) {
case LINUX_N_TTY:

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: linux.h,v 1.20 1998/02/13 07:34:52 bde Exp $
* $Id: linux.h,v 1.21 1998/08/31 06:55:02 jkh Exp $
*/
#ifndef _I386_LINUX_LINUX_H_
@ -553,7 +553,14 @@ struct trapframe;
#define LINUX_SOUND_MIXER_WRITE_LINE3 0x4d10
#define LINUX_SOUND_MIXER_READ_DEVMASK 0x4dfe
/* Socket system defines */
#define LINUX_FIOSETOWN 0x8901
#define LINUX_SIOCSPGRP 0x8902
#define LINUX_FIOGETOWN 0x8903
#define LINUX_SIOCGPGRP 0x8904
#define LINUX_SIOCATMARK 0x8905
#define LINUX_SIOCGSTAMP 0x8906
#define LINUX_SIOCGIFCONF 0x8912
#define LINUX_SIOCGIFFLAGS 0x8913
#define LINUX_SIOCGIFADDR 0x8915

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: linux_ioctl.c,v 1.27 1998/08/31 10:51:19 jkh Exp $
* $Id: linux_ioctl.c,v 1.28 1998/08/31 10:53:33 jkh Exp $
*/
#include <sys/param.h>
@ -628,6 +628,26 @@ linux_ioctl(struct proc *p, struct linux_ioctl_args *args)
args->cmd = SIOCDELMULTI;
return ioctl(p, (struct ioctl_args *)args);
case LINUX_FIOSETOWN:
args->cmd = FIOSETOWN;
return ioctl(p, (struct ioctl_args *)args);
case LINUX_SIOCSPGRP:
args->cmd = SIOCSPGRP;
return ioctl(p, (struct ioctl_args *)args);
case LINUX_FIOGETOWN:
args->cmd = FIOGETOWN;
return ioctl(p, (struct ioctl_args *)args);
case LINUX_SIOCGPGRP:
args->cmd = SIOCGPGRP;
return ioctl(p, (struct ioctl_args *)args);
case LINUX_SIOCATMARK:
args->cmd = SIOCATMARK;
return ioctl(p, (struct ioctl_args *)args);
case LINUX_TIOCSETD:
switch (args->arg) {
case LINUX_N_TTY: