/* * Copyright 2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved. * Distributed under the terms of the MIT License. */ #include #include #include int flock(int fd, int op) { status_t status = _kern_flock(fd, op); if (status < B_OK) { errno = status; return -1; } return 0; }