/* * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de. All rights reserved. * Distributed under the terms of the MIT License. */ #include #include #include #include int pipe(int streams[2]) { status_t error = _kern_create_pipe(streams); if (error != B_OK) { __set_errno(error); return -1; } return 0; }