This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] Use madvise in glibc
- From: Roland McGrath <roland at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Thorsten Kukuk <kukuk at suse dot de>, libc-alpha at sources dot redhat dot com
- Date: Fri, 23 Jul 2004 12:29:15 -0700
- Subject: Re: [PATCH] Use madvise in glibc
> Please avoid creating new __* aliases.
> Adding libc_hidden_proto (madvise) to include/sys/mman.h
> would be IMHO better (and libc_hidden_def (madvise) to
> sysdeps/{generic,unix/sysv/aix}/madvise.c).
Actually, __ aliases are appropriate and necessary when static linking
might be done. The code modified to call __madvise can be staticallly
linked, even though it is a rare thing.