/* Copyright (C) 2008 Andreas Baumann This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #ifndef __UNISTD_H #define __UNISTD_H #include "port/sys_internal.h" #include #if !defined HAVE_LOCKF || defined TEST_LOCKF #include /* for off_t */ #include /* for F_XXX constants */ #if !defined F_ULOCK #define F_ULOCK 0 /* Unlock a previously locked region */ #define F_LOCK 1 /* Lock exclusively */ #define F_TLOCK 2 /* Test and lock exclusively */ #define F_TEST 3 /* Test for a locked region */ #endif extern int wolf_port_lockf( int fd, int cmd, off_t len ); #if !defined HAVE_LOCKF #define lockf( fd, cmd, len ) wolf_port_lockf( fd, cmd, len ) #endif #endif /* !defined HAVE_LOCKF || defined TEST_LOCKF */ #endif /* ifndef __UNISTD_H */