From 279eb600d98131197c732147621e96c2d019bc52 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 8 Apr 1998 07:13:42 +0000 Subject: Update. 1998-04-07 Andreas Schwab * sysdeps/unix/sysv/linux/_G_config.h (_G_stat64): Define to stat64. (_G_OPEN64, _G_LSEEK64, _G_FSTAT64): Use namespace clean functions. * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __lseek64 alias for __llseek. * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/llseek.c: Likewise. * sysdeps/generic/lseek64.c (lseek64): Rename to __lseek64, and make it a weak alias. * posix/unistd.h: Declare __lseek64. * libio/fileops.c (fstat) [_LIBC]: Use namespace clean function. (_IO_file_stat): Fix typo. (_IO_file_xsgetn): Update fd->_offset. Read a multiple of the block size from the file. Use __mempcpy if _LIBC. --- sysdeps/generic/lseek64.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sysdeps/generic/lseek64.c') diff --git a/sysdeps/generic/lseek64.c b/sysdeps/generic/lseek64.c index a2ffe2e0bd..91ef7f3dcc 100644 --- a/sysdeps/generic/lseek64.c +++ b/sysdeps/generic/lseek64.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1996, 1997, 1998 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,7 +22,7 @@ /* Seek to OFFSET on FD, starting from WHENCE. */ off64_t -lseek64 (fd, offset, whence) +__lseek64 (fd, offset, whence) int fd; off64_t offset; int whence; @@ -46,5 +46,6 @@ lseek64 (fd, offset, whence) __set_errno (ENOSYS); return -1; } +weak_alias (__lseek64, lseek64) stub_warning (lseek64) #include -- cgit v1.2.3