vboxmslnk.c revision 5ce6430a4bdc0d8e64b379e763d5b80a3259e805
95881853170c1ca02b650717fd416a2c2a5e3568nd * VirtualBox Guest Additions Mouse Driver for Solaris: user space loader tool.
db878466c5e95073429dda0bdd001f45e9486e16fielding * Copyright (C) 2012 Oracle Corporation
db878466c5e95073429dda0bdd001f45e9486e16fielding * This file is part of VirtualBox Open Source Edition (OSE), as
db878466c5e95073429dda0bdd001f45e9486e16fielding * available from http://www.virtualbox.org. This file is free software;
db878466c5e95073429dda0bdd001f45e9486e16fielding * you can redistribute it and/or modify it under the terms of the GNU
db878466c5e95073429dda0bdd001f45e9486e16fielding * General Public License (GPL) as published by the Free Software
95881853170c1ca02b650717fd416a2c2a5e3568nd * Foundation, in version 2 as it comes in the "COPYING" file of the
95881853170c1ca02b650717fd416a2c2a5e3568nd * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
95881853170c1ca02b650717fd416a2c2a5e3568nd * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
95881853170c1ca02b650717fd416a2c2a5e3568nd * The contents of this file may alternatively be used under the terms
95881853170c1ca02b650717fd416a2c2a5e3568nd * of the Common Development and Distribution License Version 1.0
95881853170c1ca02b650717fd416a2c2a5e3568nd * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
95881853170c1ca02b650717fd416a2c2a5e3568nd * VirtualBox OSE distribution, in which case the provisions of the
95881853170c1ca02b650717fd416a2c2a5e3568nd * CDDL are applicable instead of those of the GPL.
95881853170c1ca02b650717fd416a2c2a5e3568nd * You may elect to license modified versions of this file under the
95881853170c1ca02b650717fd416a2c2a5e3568nd * terms and conditions of either the GPL or the CDDL or both.
95881853170c1ca02b650717fd416a2c2a5e3568ndstatic void handleArgs(int argc, char *argv[], int *pfNoLogo);
95881853170c1ca02b650717fd416a2c2a5e3568nd /* Open our pointer integration driver (vboxms). */
95881853170c1ca02b650717fd416a2c2a5e3568nd printf("Failed to open /dev/vboxms - please make sure that the node exists and that\n"
95881853170c1ca02b650717fd416a2c2a5e3568nd "you have permission to open it. The error reported was:\n"
95881853170c1ca02b650717fd416a2c2a5e3568nd /* Open the Solaris virtual mouse driver (consms). */
95881853170c1ca02b650717fd416a2c2a5e3568nd printf("Failed to open /dev/mouse - please make sure that the node exists and that\n"
f37877a589391f0c8cf7fe41933039cb199f8896nd "you have permission to open it. The error reported was:\n"
33350fa12dd520954b23b41e6a17b07e538d79f8nd /* Link vboxms to consms from below. What this means is that vboxms is
33350fa12dd520954b23b41e6a17b07e538d79f8nd * added to the list of input sources multiplexed by consms, and vboxms
95881853170c1ca02b650717fd416a2c2a5e3568nd * will receive any control messages (such as information about guest
6e48215232940ab47baefa4f6eb9cd546eb2400atakashi * resolution changes) sent to consms. The link can only be broken
33350fa12dd520954b23b41e6a17b07e538d79f8nd * explicitly using the connection ID returned from the IOCtl. */
33350fa12dd520954b23b41e6a17b07e538d79f8nd printf("Failed to add /dev/vboxms (the pointer integration driver) to /dev/mouse\n"
33350fa12dd520954b23b41e6a17b07e538d79f8nd "(the Solaris virtual master mouse). The error reported was:\n"
95881853170c1ca02b650717fd416a2c2a5e3568nd printf("Successfully enabled pointer integration. Connection ID number to the\n"
95881853170c1ca02b650717fd416a2c2a5e3568nd "Solaris virtual master mouse:\n");
if (fShowVersion)
exit(0);
if (!fNoLogo)
if (fShowUsage)
exit(0);