pipe.h revision 33698994f509c2b3a92e81a828ee7a0e01b81de0
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * IPRT - Anonymous Pipes.
1612ddf488e6d1a459dc02cd7078215985f87081vboxsync * Copyright (C) 2010 Sun Microsystems, Inc.
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * available from http://www.virtualbox.org. This file is free software;
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * you can redistribute it and/or modify it under the terms of the GNU
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * General Public License (GPL) as published by the Free Software
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * The contents of this file may alternatively be used under the terms
1612ddf488e6d1a459dc02cd7078215985f87081vboxsync * of the Common Development and Distribution License Version 1.0
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
1612ddf488e6d1a459dc02cd7078215985f87081vboxsync * VirtualBox OSE distribution, in which case the provisions of the
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * CDDL are applicable instead of those of the GPL.
1612ddf488e6d1a459dc02cd7078215985f87081vboxsync * You may elect to license modified versions of this file under the
1612ddf488e6d1a459dc02cd7078215985f87081vboxsync * terms and conditions of either the GPL or the CDDL or both.
1612ddf488e6d1a459dc02cd7078215985f87081vboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
1612ddf488e6d1a459dc02cd7078215985f87081vboxsync * additional information or have any questions.
e9c0d852b4db112840ba14c704766576cffd623cvboxsync/** @defgroup grp_rt_pipe RTPipe - Anonymous Pipes
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * @ingroup grp_rt
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * Create an anonymous pipe.
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * @returns IPRT status code.
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * @param phPipeRead Where to return the read end of the pipe.
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * @param phPipeWrite Where to return the write end of the pipe.
e9c0d852b4db112840ba14c704766576cffd623cvboxsync * @param fFlags A combination of RTPIPE_C_XXX defines.
1612ddf488e6d1a459dc02cd7078215985f87081vboxsyncRTDECL(int) RTPipeCreate(PRTPIPE phPipeRead, PRTPIPE phPipeWrite, uint32_t fFlags);
1612ddf488e6d1a459dc02cd7078215985f87081vboxsync/** @name RTPipeCreate flags.
1612ddf488e6d1a459dc02cd7078215985f87081vboxsync/** Mark the read end as inheritable. */
e9c0d852b4db112840ba14c704766576cffd623cvboxsync/** Mark the write end as inheritable. */
1612ddf488e6d1a459dc02cd7078215985f87081vboxsync/** Mask of valid flags. */
RTDECL(int) RTPipeWriteBlocking(RTPIPE hPipe, const void *pvBuf, size_t cbToWrite, size_t *pcbWritten);