This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/3] Adjust kernel-features.h defaults for recvmsg and sendmsg


On Mon, 28 Mar 2016, Adhemerval Zanella wrote:

> +/* Support for recvmsg and sendmsg was added in 2.6.12 in most architectures,
> +   with some added later (for instance 2.6.37 for powerpc) and for some only
> +   through syscall (with wire-up syscall added in later versionsi).  Define
> +   __ASSUME_RECVMSG_SYSCALL and __ASUME_SENDMSG_SYSCALL if glibc uses direct
> +   syscall, otherwise glibc will use socketcall.  */

This comment is a mess.

* I'm doubtful of the "added in 2.6.12".  Do you actually mean not in 
2.6.11 as verified by comparing 2.6.11 and 2.6.12, or do you mean that 
2.6.12 is the first release *in git* with the syscalls (for the trivial 
reason that it was the first release in git at all)?

* "only through syscall" looks wrong in that context; I think you mean 
"only through socketcall".

* "versionsi" typo.

* "__ASUME_SENDMSG_SYSCALL" typo.

I think you mean something more like:

/* On most architectures, most socket syscalls are supported for all
   supported kernel versions, but on some socketcall architectures
   separate syscalls were only added later.  */

which does not need to go into details of the particular versions for 
particular architectures.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]