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

« back to all changes in this revision

Viewing changes to src/VBox/Devices/Serial/DrvNamedPipe.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-01-30 23:27:25 UTC
  • mfrom: (0.3.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20110130232725-2ouajjd2ggdet0zd
Tags: 4.0.2-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Drop ubuntu-01-fix-build-gcc45.patch, fixed upstream.
* Drop ubuntu-02-as-needed.patch, added to the Debian package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: DrvNamedPipe.cpp $ */
 
1
/* $Id: DrvNamedPipe.cpp 35353 2010-12-27 17:25:52Z vboxsync $ */
2
2
/** @file
3
3
 * Named pipe / local socket stream driver.
4
4
 */
20
20
*   Header Files                                                               *
21
21
*******************************************************************************/
22
22
#define LOG_GROUP LOG_GROUP_DRV_NAMEDPIPE
23
 
#include <VBox/pdmdrv.h>
 
23
#include <VBox/vmm/pdmdrv.h>
24
24
#include <iprt/assert.h>
25
25
#include <iprt/file.h>
26
26
#include <iprt/stream.h>
29
29
#include <iprt/semaphore.h>
30
30
#include <iprt/uuid.h>
31
31
 
32
 
#include "Builtins.h"
 
32
#include "VBoxDD.h"
33
33
 
34
34
#ifdef RT_OS_WINDOWS
35
35
# include <windows.h>
39
39
# include <sys/types.h>
40
40
# include <sys/socket.h>
41
41
# include <sys/un.h>
 
42
# ifndef SHUT_RDWR /* OS/2 */
 
43
#  define SHUT_RDWR 3
 
44
# endif
42
45
#endif /* !RT_OS_WINDOWS */
43
46
 
44
47
 
214
217
            if (   uError == ERROR_PIPE_LISTENING
215
218
                || uError == ERROR_PIPE_NOT_CONNECTED)
216
219
            {
217
 
                /* No connection yet/anymore; just discard the write (pretening everything was written). */;
 
220
                /* No connection yet/anymore; just discard the write (pretending everything was written). */;
218
221
            }
219
222
            else if (uError != ERROR_IO_PENDING)
220
223
            {