the remaining purpose of cmsg_nxthdr()
Subsystems (3)
Are there still valid users of <linux/socket.h>?
All I found was uClibc-0.9.26/include/netinet/ip_tcp.h, which should probably include their sys/socket.h instead.
include/linux/socket.h +2 -13
@@ -95,20 +95,8 @@ struct cmsghdr { ((mhdr)->msg_controllen - \ ((char *)(cmsg) - (char *)(mhdr)->msg_control))) -/* -* This mess will go away with glibc -*/ -#ifdef __KERNEL__#define __KINLINE static inline -#elif defined(__GNUC__) -#define __KINLINE static __inline__ -#elif defined(__cplusplus) -#define __KINLINE static inline -#else -#define __KINLINE static -#endif -/* * Get the next cmsg header
@@ -120,7 +108,7 @@ struct cmsghdr {* Now it always returns valid, not truncated ancillary object * HEADER. But caller still MUST check, that cmsg->cmsg_len is * inside range, given by msg->msg_controllen before using -* ansillary object DATA. --ANK (980731) +* ancillary object DATA. --ANK (980731) */ __KINLINE struct cmsghdr * __cmsg_nxthdr(void *__ctl, __kernel_size_t __size,
@@ -139,6 +127,7 @@ __KINLINE struct cmsghdr * cmsg_nxthdr ( {return __cmsg_nxthdr (__msg->msg_control, __msg->msg_controllen, __cmsg); } +#endif /* "Socket"-level control message types: */
PATCH 1/1 fix typo in include/linux/socket.h
I guess we have to reduce the patch to fix just the typo.
Signed-off-by Olaf Hering <[email protected]>
include/linux/socket.h +1 -1
@@ -120,7 +108,7 @@ struct cmsghdr {* Now it always returns valid, not truncated ancillary object * HEADER. But caller still MUST check, that cmsg->cmsg_len is * inside range, given by msg->msg_controllen before using -* ansillary object DATA. --ANK (980731) +* ancillary object DATA. --ANK (980731) */ __KINLINE struct cmsghdr * __cmsg_nxthdr(void *__ctl, __kernel_size_t __size,
Re: [PATCH] fix typo in include/linux/socket.h
Quoted 3 lines · On Mon, 14 Feb 2005 18:47:39 +0100 Olaf Hering <[email protected]> wrote:
I guess we have to reduce the patch to fix just the typo.
Signed-off-by Olaf Hering <[email protected]>
Applied, thanks Olaf.