version alphasort.

This commit is contained in:
christos 2009-02-24 18:41:40 +00:00
parent 54db37b1cf
commit 2c266c8a4c
4 changed files with 28 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dirent.h,v 1.32 2009/01/11 03:04:12 christos Exp $ */
/* $NetBSD: dirent.h,v 1.33 2009/02/24 18:41:40 christos Exp $ */
/*-
* Copyright (c) 1989, 1993
@ -104,8 +104,8 @@ int scandir(const char *, struct dirent ***,
int (*)(const struct dirent *), int (*)(const void *, const void *))
__RENAME(__scandir30);
int getdents(int, char *, size_t) __RENAME(__getdents30);
int alphasort(const void *, const void *) __RENAME(__alphasort30);
#endif
int alphasort(const void *, const void *);
#endif /* defined(_NETBSD_SOURCE) */
__END_DECLS

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.10 2009/01/20 20:08:12 drochner Exp $
# $NetBSD: Makefile.inc,v 1.11 2009/02/24 18:42:36 christos Exp $
.PATH: ${COMPATDIR}/gen
SRCS+=compat_errlist.c compat_fts.c compat___fts13.c compat___fts30.c \
@ -7,7 +7,7 @@ SRCS+=compat_errlist.c compat_fts.c compat___fts13.c compat___fts30.c \
compat_scandir.c compat_siglist.c compat_signame.c compat_sigsetops.c \
compat_times.c compat_timezone.c compat_unvis.c compat_utmpx.c \
compat__sys_errlist.c compat__sys_nerr.c compat__sys_siglist.c \
compat_time.c compat_utime.c compat_devname.c \
compat_time.c compat_utime.c compat_devname.c compat_alphasort.c \
compat_getpwent.c compat___fts32.c compat_utmp.c
LIBMINC=-I${LIBCDIR}/../libm/src -DUSE_LIBM

View File

@ -0,0 +1,20 @@
/* $NetBSD: compat_alphasort.c,v 1.1 2009/02/24 18:42:36 christos Exp $ */
#include <sys/stat.h>
#define __LIBC12_SOURCE__
#include "namespace.h"
#include <dirent.h>
#include <compat/include/dirent.h>
#ifdef __weak_alias
__weak_alias(alphasort,_alphasort)
#endif
#ifdef __warn_references
__warn_references(alphasort,
"warning: reference to compatibility alphasort(); include <dirent.h> for correct reference")
#endif
#define dirent dirent12
#include "gen/alphasort.c"

View File

@ -1,4 +1,4 @@
/* $NetBSD: dirent.h,v 1.6 2008/05/04 18:53:26 tonnerre Exp $ */
/* $NetBSD: dirent.h,v 1.7 2009/02/24 18:42:36 christos Exp $ */
/*-
* Copyright (c) 1989, 1993
@ -66,6 +66,9 @@ int __scandir30(const char *, struct dirent ***,
int getdents(int, char *, size_t);
int __getdents30(int, char *, size_t);
int alphasort(const void *, const void *);
int __alphasort30(const void *, const void *);
int getdirentries(int, char *, int, long *);
#endif /* defined(_NETBSD_SOURCE) */