public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Lukasz Majewski <lukma@denx.de>
To: Joseph Myers <joseph@codesourcery.com>,
	Adhemerval Zanella <adhemerval.zanella@linaro.org>
Cc: Florian Weimer <fweimer@redhat.com>,
	Andreas Schwab <schwab@suse.de>,
	Stepan Golosunov <stepan@golosunov.pp.ru>,
	Alistair Francis <alistair.francis@wdc.com>,
	GNU C Library <libc-alpha@sourceware.org>
Subject: Re: [PATCH 2/3] msqid: Provide internal copy of struct __msqid64_ds
Date: Tue, 10 Nov 2020 01:02:20 +0100	[thread overview]
Message-ID: <20201110010220.4f57721e@jawa> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2011092025590.1036058@digraph.polyomino.org.uk>

[-- Attachment #1: Type: text/plain, Size: 1223 bytes --]

Hi Joseph, Adhemerval,

> On Mon, 9 Nov 2020, Lukasz Majewski wrote:
> 
> > > If in a particular case defining the struct tag as a macro is
> > > unsafe,  
> > 
> > Could you explain why having construct as:
> > 
> > #define timespec __timespec64 in
> > ./time/bits/types/struct_timespec.c is unsafe (after having the
> > file ./time/bits/types/struct___timespec64.c exported)?  
> 
> I think "#define stat __stat64_time64" is unsafe, since people may do 
> "#undef stat" to get a function rather than a macro (and thereby
> suppress the macro expansion for the struct tag as well).
> 
> I'm less sure there would be any problems with "#define timespec 
> __timespec64".  The POSIX namespace rules are clearer on e.g. what's 
> reserved with file scope, than on what's reserved as a macro name
> that the user mustn't undefine.
> 

Please correct me if I'm wrong, but the scheme shall be consistent.
Which approach shall be taken then?


Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2020-11-10  0:02 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-27 22:10 [PATCH 1/3] msg: Remove redundant #include <sys/msg.h> header Lukasz Majewski
2020-10-27 22:10 ` [PATCH 2/3] msqid: Provide internal copy of struct __msqid64_ds Lukasz Majewski
2020-11-03  8:59   ` Lukasz Majewski
2020-11-03 20:45   ` Adhemerval Zanella
2020-11-03 22:33     ` Joseph Myers
2020-11-04 13:30     ` Lukasz Majewski
2020-11-04 20:05       ` Adhemerval Zanella
2020-11-06 17:15         ` Lukasz Majewski
2020-11-06 17:37           ` Joseph Myers
2020-11-09 15:02             ` Adhemerval Zanella
2020-11-09 18:39               ` Joseph Myers
2020-11-09 20:19                 ` Lukasz Majewski
2020-11-09 20:28                   ` Joseph Myers
2020-11-10  0:02                     ` Lukasz Majewski [this message]
2020-11-11 18:14                       ` Adhemerval Zanella
2020-11-11 23:57                         ` Lukasz Majewski
2020-11-12 14:50                           ` Adhemerval Zanella
2020-11-12 15:27                             ` Lukasz Majewski
2020-11-12 16:16                               ` Adhemerval Zanella
2020-11-12 22:02                                 ` Lukasz Majewski
2020-11-13 14:17                                   ` Adhemerval Zanella
2020-11-13 14:42                                     ` Lukasz Majewski
2020-11-13 16:57                                       ` Adhemerval Zanella
2020-11-13 21:08                                         ` Lukasz Majewski
2020-11-16 13:44                                           ` Adhemerval Zanella
2020-11-16 14:25                                             ` Lukasz Majewski
2020-12-03 23:27                                               ` Lukasz Majewski
2020-12-15 22:55                                                 ` Lukasz Majewski
2020-11-09 20:22                 ` Adhemerval Zanella
2020-10-27 22:10 ` [PATCH 3/3] msg: provide glibc local copy of struct msqid_ds Lukasz Majewski
2020-12-03 23:29   ` Lukasz Majewski
2020-12-15 22:55     ` Lukasz Majewski
2020-10-28 10:33 ` [PATCH 1/3] msg: Remove redundant #include <sys/msg.h> header Andreas Schwab

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=20201110010220.4f57721e@jawa \
    --to=lukma@denx.de \
    --cc=adhemerval.zanella@linaro.org \
    --cc=alistair.francis@wdc.com \
    --cc=fweimer@redhat.com \
    --cc=joseph@codesourcery.com \
    --cc=libc-alpha@sourceware.org \
    --cc=schwab@suse.de \
    --cc=stepan@golosunov.pp.ru \
    /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).