/* * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de. All rights reserved. * Distributed under the terms of the MIT License. */ #include #include #include #include int chroot(const char *path) { status_t error = _kern_change_root(path); if (error != B_OK) { __set_errno(error); return -1; } return 0; }