From 89a9e37b7a7a2134cedb6d27db265a8ab774f9d1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 20 Mar 1998 12:06:55 +0000 Subject: Update. 1998-03-20 11:58 Ulrich Drepper * dirent/Makefile (routines): Add scandir64, alphasort64, and versionsort64. * dirent/alphasort64.c: New file. * dirent/scandir64.c: New file. * dirent/versionsort64.c: New file. * dirent/dirent.h: Add LFS support for scandir, alphasort, and versionsort. * sysdeps/generic/readdir64.c: Rename to __readdir64 and make old name weak alias. * sysdeps/unix/sysv/linux/readdir64.c: Likewise. * dirent/alphasort.c: Use strcoll instead of strcmp. * dirent/scandir.c: Optimize a bit. * dirent/versionsort.c: Pretty print. 1998-03-20 Ulrich Drepper * string/string.h: Add prototype for __strtok_r. --- sysdeps/generic/readdir64.c | 5 +++-- sysdeps/unix/sysv/linux/readdir64.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/generic/readdir64.c b/sysdeps/generic/readdir64.c index ce84340c8e..db26b9b1f6 100644 --- a/sysdeps/generic/readdir64.c +++ b/sysdeps/generic/readdir64.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,10 +22,11 @@ /* Read a directory entry from DIRP. */ struct dirent64 * -readdir64 (DIR *dirp) +__readdir64 (DIR *dirp) { __set_errno (ENOSYS); return NULL; } +weak_alias (__readdir64, readdir64) stub_warning (readdir64) #include diff --git a/sysdeps/unix/sysv/linux/readdir64.c b/sysdeps/unix/sysv/linux/readdir64.c index 37623655f4..710f934ebb 100644 --- a/sysdeps/unix/sysv/linux/readdir64.c +++ b/sysdeps/unix/sysv/linux/readdir64.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997 Free Software Foundation, Inc. +/* Copyright (C) 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 @@ -32,7 +32,7 @@ extern ssize_t __getdirentries64 (int, char *, size_t, off_t *); /* Read a directory entry from DIRP. */ struct dirent64 * -readdir64 (DIR *dirp) +__readdir64 (DIR *dirp) { struct dirent64 *dp; @@ -101,3 +101,4 @@ readdir64 (DIR *dirp) return dp; } +weak_alias (__readdir64, readdir64) -- cgit v1.2.3