From e5cd813b4321685f7611fe1031ae1205c6a1a86f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 19 Aug 1999 20:57:48 +0000 Subject: Update. * dirent/Makefile (routines): Add getdents64. * sysdeps/unix/sysv/linux/Makefile [dirent] (sysdep_routines): Remove getdents64. * dirent/dirent.h: Redirect getdirentries to getdirentries64 if compiled with _FILE_OFFSET_BITS=64. * sysdeps/generic/getdents64.c: New file. * sysdeps/unix/sysv/linux/getdirentries.c: Also redefine off_t and __lseek for getdirentries64 definition. * sysdeps/unix/sysv/linux/llseek.c: Make __lseek64 a strong alias. * sysdeps/unix/sysv/linux/sys/sendfile.h: Don't allow use with _FILE_OFFSET_BITS=64. --- sysdeps/unix/sysv/linux/sys/sendfile.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux/sys/sendfile.h') diff --git a/sysdeps/unix/sysv/linux/sys/sendfile.h b/sysdeps/unix/sysv/linux/sys/sendfile.h index 8008101b74..63a9c41493 100644 --- a/sysdeps/unix/sysv/linux/sys/sendfile.h +++ b/sysdeps/unix/sysv/linux/sys/sendfile.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1998 Free Software Foundation, Inc. +/* Copyright (C) 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -22,6 +22,10 @@ #include #include +#ifdef __USE_FILE_OFFSET64 +# error " cannot be used with _FILE_OFFSET=64" +#endif + __BEGIN_DECLS /* Send COUNT bytes from file associated with IN_FD starting at OFFSET to -- cgit 1.4.1