public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/azanella/clang] socket: Use internal alias for __cmsg_nxthdr
Date: Tue, 29 Mar 2022 20:31:06 +0000 (GMT)	[thread overview]
Message-ID: <20220329203106.AE23C385DC02@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ae9ae18ff9bc3168917cd7b26c2ad3335aec6ba8

commit ae9ae18ff9bc3168917cd7b26c2ad3335aec6ba8
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 17 08:16:41 2022 -0300

    socket: Use internal alias for __cmsg_nxthdr

Diff:
---
 include/sys/socket.h                  | 4 ++++
 sysdeps/unix/sysv/linux/cmsg_nxthdr.c | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/include/sys/socket.h b/include/sys/socket.h
index f2525f4f3e..e3d855fab0 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -174,5 +174,9 @@ extern void __convert_scm_timestamps (struct msghdr *msg, socklen_t msgsize)
      attribute_hidden;
 #endif
 
+#undef CMSG_NXTHDR
+#define CMSG_NXTHDR(mhdr, cmsg) __libc_cmsg_nxthdr (mhdr, cmsg)
+hidden_proto2 (__cmsg_nxthdr, __libc_cmsg_nxthdr)
+
 #endif
 #endif
diff --git a/sysdeps/unix/sysv/linux/cmsg_nxthdr.c b/sysdeps/unix/sysv/linux/cmsg_nxthdr.c
index f3f5389b74..5d21ca7224 100644
--- a/sysdeps/unix/sysv/linux/cmsg_nxthdr.c
+++ b/sysdeps/unix/sysv/linux/cmsg_nxthdr.c
@@ -21,7 +21,7 @@
 
 
 struct cmsghdr *
-__cmsg_nxthdr (struct msghdr *mhdr, struct cmsghdr *cmsg)
+__libc_cmsg_nxthdr (struct msghdr *mhdr, struct cmsghdr *cmsg)
 {
   if ((size_t) cmsg->cmsg_len < sizeof (struct cmsghdr))
     /* The kernel header does this so there may be a reason.  */
@@ -37,3 +37,5 @@ __cmsg_nxthdr (struct msghdr *mhdr, struct cmsghdr *cmsg)
     return NULL;
   return cmsg;
 }
+libc_hidden_def (__libc_cmsg_nxthdr)
+strong_alias (__libc_cmsg_nxthdr, __cmsg_nxthdr);


             reply	other threads:[~2022-03-29 20:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-29 20:31 Adhemerval Zanella [this message]
2022-03-31 19:08 Adhemerval Zanella
2022-04-04 12:55 Adhemerval Zanella
2022-04-29 14:05 Adhemerval Zanella
2022-05-10 18:25 Adhemerval Zanella
2022-05-12 19:34 Adhemerval Zanella
2022-05-13 14:21 Adhemerval Zanella
2022-06-03 14:07 Adhemerval Zanella
2022-06-09 13:18 Adhemerval Zanella
2022-06-09 21:21 Adhemerval Zanella

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220329203106.AE23C385DC02@sourceware.org \
    --to=azanella@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).