You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If not,
- write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
+ see <http://www.gnu.org/licenses/>. */
-#include <features.h>
-
-#ifdef __UCLIBC_HAS_LFS__
-#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64
-#undef _FILE_OFFSET_BITS
-#define _FILE_OFFSET_BITS 64
-#endif
-#ifndef __USE_FILE_OFFSET64
-# define __USE_FILE_OFFSET64 1
-#endif
-#ifndef __USE_LARGEFILE64
-# define __USE_LARGEFILE64 1
-#endif
-#endif
-
-#define __USE_GNU
+#include <_lfs_64.h>
#include <sys/types.h>
#include <unistd.h>
#ifdef __NR_fcntl64
#define flock flock64
#define fcntl fcntl64
+#undef F_GETLK
#define F_GETLK F_GETLK64
+#undef F_SETLK
#define F_SETLK F_SETLK64
+#else
#endif
-libc_hidden_proto(lockf64)
-
-libc_hidden_proto(memset)
-//libc_hidden_proto(fcntl)
-libc_hidden_proto(getpid)
/* lockf is a simplified interface to fcntl's locking facilities. */
return fcntl(fd, cmd, &fl);
}
-libc_hidden_def(lockf64)