John E. Malmberg wrote:
> >> This patch defines the CMSG_LEN and CMSG_SPACE macros for OpenVMS in
> >> sys_socket.h.
>
> Sorry, here is the patch.
Thanks, looks good.
Two nits:
* The argument names of C macros don't need to be protected; only K&R C
preprocessors were not hygienic regarding C m
On 7/15/2017 10:23 AM, Bruno Haible wrote:
John E. Malmberg wrote:
This patch defines the CMSG_LEN and CMSG_SPACE macros for OpenVMS in
sys_socket.h.
There was no patch attached to your mail.
Sorry, here is the patch.
Regards,
-John
0001-socket-Add-support-for-OpenVMS.patch.gz
Descriptio
John E. Malmberg wrote:
> This patch defines the CMSG_LEN and CMSG_SPACE macros for OpenVMS in
> sys_socket.h.
There was no patch attached to your mail.
Bruno
This patch defines the CMSG_LEN and CMSG_SPACE macros for OpenVMS in
sys_socket.h.
Regards,
-John
Jim Meyering <[EMAIL PROTECTED]> writes:
>> I agree. I wish 'indent' could fix this
>> too. Maybe it can? Even if I agree many code writing ideas given
>> here, I forget them all the time.
>
> I tend to forget, too, so have automated quite a few policy checks,
> over the years. You might try a
Paul Eggert wrote:
> I don't see any technical reason to prefer the parentheses.
While I agree that there are no technical reason to put the parentheses,
I wouldn't be religious on the issue, because the majority of the C
programmers does it the other way. The same argument as for "const char *":
Simon Josefsson <[EMAIL PROTECTED]> wrote:
>> Any objection to removing [useless parentheses]?
>
> No, please install them.
Ok. I've checked that in.
> I agree. I wish 'indent' could fix this
> too. Maybe it can? Even if I agree many code writing ideas given
> here, I forget them all the time
Jim Meyering <[EMAIL PROTECTED]> writes:
> Simon Josefsson <[EMAIL PROTECTED]> wrote:
>> For some reason, mingw32 uses non-POSIX names for shutdown's
> ...
>> --- socket_.h09 Jan 2006 17:13:09 +0100 1.1
>> +++ socket_.h19 Jan 2006 14:39:07 +0100
>> @@ -34,4 +34,15 @@
>> # incl
Bruno Haible <[EMAIL PROTECTED]> writes:
> Simon Josefsson wrote:
>> +#if !defined(SHUT_WR) && defined (SD_SEND)
>> +# define SHUT_WR 1
>> +#endif
>> +#if !defined(SHUT_RDWR) && defined (SD_BOTH)
>> +# define SHUT_RDWR 2
>> +#endif
>
> Is SD_SEND == 1 and SD_BOTH == 2 ?
Yes, although it is a mist
Jim Meyering <[EMAIL PROTECTED]> writes:
> I find that those parentheses provide no benefit. Although coreutils
> doesn't use that module, it might be worthwhile to start following the
> same guideline in gnulib.
I've never run into a compiler that didn't support "defined FOO", and
I don't see a
Simon Josefsson <[EMAIL PROTECTED]> wrote:
> For some reason, mingw32 uses non-POSIX names for shutdown's
...
> --- socket_.h 09 Jan 2006 17:13:09 +0100 1.1
> +++ socket_.h 19 Jan 2006 14:39:07 +0100
> @@ -34,4 +34,15 @@
> # include
> #endif
>
> +/* For shutdown(). */
> +#if !defined(SHUT_RD)
Simon Josefsson wrote:
> +#if !defined(SHUT_WR) && defined (SD_SEND)
> +# define SHUT_WR 1
> +#endif
> +#if !defined(SHUT_RDWR) && defined (SD_BOTH)
> +# define SHUT_RDWR 2
> +#endif
Is SD_SEND == 1 and SD_BOTH == 2 ?
Bruno
___
bug-gnulib mailing lis
For some reason, mingw32 uses non-POSIX names for shutdown's
'how'. I have installed this. 2006-01-19 Simon Josefsson
<[EMAIL PROTECTED]>
* socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
--- socket_.h 09 Jan 2006 17:13:09 +0100 1.1
+++ socket_.h 19 Jan 2006 14:39:07
;> > on MacOS X.)
>>
>> How do I test for that in a portable way?
>
> Let rmdir do the test, and ignore a possible error:
>
> -rmdir sys 2>/dev/null
Of course. Added.
>> Applications that need socklen_t should probably depend on
>> the sys/socket.h mo
y?
Let rmdir do the test, and ignore a possible error:
-rmdir sys 2>/dev/null
> Applications that need socklen_t should probably depend on
> the sys/socket.h module. Perhaps the socklen_t module should depend
> on the sys_socket module?
I don't think so: Application
Bruno Haible <[EMAIL PROTECTED]> writes:
> Simon Josefsson wrote on 2005-12-17:
>> The sys_socket module below will create a sys/socket.h file, primarily
>> for mingw32, but it could be extended for other systems or missing
>> sys/socket.h features in the future.
Simon Josefsson wrote on 2005-12-17:
> The sys_socket module below will create a sys/socket.h file, primarily
> for mingw32, but it could be extended for other systems or missing
> sys/socket.h features in the future.
>
> This would solve the problem of accessing sys/so
Hi!
The sys_socket module below will create a sys/socket.h file, primarily
for mingw32, but it could be extended for other systems or missing
sys/socket.h features in the future.
This would solve the problem of accessing sys/socket.h stuff in
applications.
However, it does not solve the problem
Hi! The sys_socket module below will create a sys/socket.h file,
primarily for mingw32, but it could be extended for other systems
or missing sys/socket.h features in the future. This would solve
the problem of accessing sys/socket.h stuff in applications.
However, it does not solve the
19 matches
Mail list logo