~ubuntu-branches/ubuntu/raring/virtualbox-ose/raring

« back to all changes in this revision

Viewing changes to src/VBox/Frontends/VBoxBFE/USBProxyServiceLinux.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-12-18 16:44:29 UTC
  • mfrom: (0.3.3 upstream) (0.4.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091218164429-jd34ccexpv5na11a
Tags: 3.1.2-dfsg-1ubuntu1
* Merge from Debian unstable (LP: #498219), remaining changes:
  - Disable update action
    - debian/patches/u01-disable-update-action.dpatch
  - VirtualBox should go in Accessories, not in System tools (LP: #288590)
    - debian/virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add Apport hook
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Add Launchpad integration
    - debian/control
    - debian/lpi-bug.xpm
    - debian/patches/u02-lp-integration.dpatch
* Fixes the following bugs:
  - Kernel module fails to build with Linux >= 2.6.32 (LP: #474625)
  - X.Org drivers need to be rebuilt against X-Server 1.7 (LP: #495935)
  - The *-source packages try to build the kernel modules even though the
    kernel headers aren't available (LP: #473334)
* Replace *-source packages with transitional packages for *-dkms.
* Adapt u01-disable-update-action.dpatch and u02-lp-integration.dpatch for
  new upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include <VBox/usb.h>
33
33
#include <VBox/err.h>
34
34
 
 
35
#include <iprt/alloc.h>
 
36
#include <iprt/ctype.h>
35
37
#include <iprt/string.h>
36
 
#include <iprt/alloc.h>
37
38
#include <iprt/assert.h>
38
39
#include <iprt/file.h>
39
40
#include <iprt/err.h>
41
42
#include <stdlib.h>
42
43
#include <string.h>
43
44
#include <stdio.h>
44
 
#include <ctype.h>
45
45
#include <errno.h>
46
46
#include <sys/statfs.h>
47
47
#include <sys/poll.h>
281
281
static int usbReadSkipSuffix (char **ppszNext)
282
282
{
283
283
    char *pszNext = *ppszNext;
284
 
    if (!isspace (*pszNext) && *pszNext)
 
284
    if (!RT_C_IS_SPACE (*pszNext) && *pszNext)
285
285
    {
286
286
        /* skip unit */
287
287
        if (pszNext[0] == 'm' && pszNext[1] == 's')
301
301
        }
302
302
 
303
303
        /* blank or end of the line. */
304
 
        if (!isspace (*pszNext) && *pszNext)
 
304
        if (!RT_C_IS_SPACE (*pszNext) && *pszNext)
305
305
        {
306
306
            AssertMsgFailed (("pszNext=%s\n", pszNext));
307
307
            return VERR_PARSE_ERROR;
358
358
         */
359
359
        if (paSuffs)
360
360
        {
361
 
            if (!isspace (*pszNext) && *pszNext)
 
361
            if (!RT_C_IS_SPACE (*pszNext) && *pszNext)
362
362
            {
363
363
                for (PCUSBSUFF pSuff = paSuffs; pSuff->szSuff[0]; pSuff++)
364
364
                {
365
365
                    if (    !strncmp (pSuff->szSuff, pszNext, pSuff->cchSuff)
366
 
                        &&  (!pszNext[pSuff->cchSuff] || isspace (pszNext[pSuff->cchSuff])))
 
366
                        &&  (!pszNext[pSuff->cchSuff] || RT_C_IS_SPACE (pszNext[pSuff->cchSuff])))
367
367
                    {
368
368
                        if (pSuff->uDiv)
369
369
                            u32 /= pSuff->uDiv;
506
506
        psz = strchr (psz + 1, '=');
507
507
    if (!psz)
508
508
        return strchr (pszValue,  '\0');
509
 
    while (psz > pszValue && !isspace (psz[-1]))
 
509
    while (psz > pszValue && !RT_C_IS_SPACE (psz[-1]))
510
510
        psz--;
511
511
    Assert (psz > pszValue);
512
512
    return psz;