This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [tile] Mark epoll_pwait as hidden
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Chris Metcalf <cmetcalf at tilera dot com>
- Cc: Roland McGrath <roland at hack dot frob dot com>, libc-alpha at sourceware dot org
- Date: Wed, 25 Jan 2012 23:32:08 +0000 (UTC)
- Subject: Re: [tile] Mark epoll_pwait as hidden
- References: <201111100054.pAA0sf6u025585@farm-0002.internal.tilera.com><201111100056.pAA0uEg2025798@farm-0002.internal.tilera.com><20111111175741.4B3282C0F9@topped-with-meat.com><201201252127.q0PLRkX7027119@farm-0002.internal.tilera.com>
On Wed, 25 Jan 2012, Chris Metcalf wrote:
> diff --git a/sysdeps/unix/sysv/linux/epoll_pwait.c b/sysdeps/unix/sysv/linux/epoll_pwait.c
> index e689073..9f72d18 100644
> --- a/sysdeps/unix/sysv/linux/epoll_pwait.c
> +++ b/sysdeps/unix/sysv/linux/epoll_pwait.c
> @@ -1,4 +1,4 @@
> -/* Copyright (C) 2007 Free Software Foundation, Inc.
> +/* Copyright (C) 2007, 2011 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
> @@ -24,6 +24,8 @@
> #include <sysdep-cancel.h>
> #include <sys/syscall.h>
>
> +libc_hidden_proto (epoll_pwait)
Typically this would go in a header rather than being duplicated both in
the file defining the function and the file using it. That is, you'd have
include/sys/epoll.h, like include/sys/prctl.h, that includes the main
header with #include_next and then has the libc_hidden_proto.
--
Joseph S. Myers
joseph@codesourcery.com