* removed symbols in strings.h
@ 2013-02-11 20:25 Jens Gustedt
2013-02-11 21:14 ` nwmcsween
2013-02-26 6:31 ` Rich Felker
0 siblings, 2 replies; 4+ messages in thread
From: Jens Gustedt @ 2013-02-11 20:25 UTC (permalink / raw)
To: musl
[-- Attachment #1: Type: text/plain, Size: 783 bytes --]
Hello,
the functions
int bcmp (const void *, const void *, size_t);
void bcopy (const void *, void *, size_t);
void bzero (void *, size_t);
char *index (const char *, int);
char *rindex (const char *, int);
in strings.h are removed from the current version of the POSIX
standard. Shouldn't that mean they should be put between guards
(something with POSIX version and / or __GNU_SOURCE) and the symbols
made weak in the library?
Jens
--
:: INRIA Nancy Grand Est :: http://www.loria.fr/~gustedt/ ::
:: AlGorille ::::::::::::::: office Nancy : +33 383593090 ::
:: ICube :::::::::::::: office Strasbourg : +33 368854536 ::
:: ::::::::::::::::::::::::::: gsm France : +33 651400183 ::
:: :::::::::::::::::::: gsm international : +49 15737185122 ::
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: removed symbols in strings.h
2013-02-11 20:25 removed symbols in strings.h Jens Gustedt
@ 2013-02-11 21:14 ` nwmcsween
2013-02-11 21:52 ` Rich Felker
2013-02-26 6:31 ` Rich Felker
1 sibling, 1 reply; 4+ messages in thread
From: nwmcsween @ 2013-02-11 21:14 UTC (permalink / raw)
To: musl
#if posix ....
deprecated warning etc
#endif
On Feb 11, 2013, at 12:25 PM, Jens Gustedt <jens.gustedt@inria.fr> wrote:
> Hello,
> the functions
>
> int bcmp (const void *, const void *, size_t);
> void bcopy (const void *, void *, size_t);
> void bzero (void *, size_t);
> char *index (const char *, int);
> char *rindex (const char *, int);
>
> in strings.h are removed from the current version of the POSIX
> standard. Shouldn't that mean they should be put between guards
> (something with POSIX version and / or __GNU_SOURCE) and the symbols
> made weak in the library?
>
> Jens
>
> --
> :: INRIA Nancy Grand Est :: http://www.loria.fr/~gustedt/ ::
> :: AlGorille ::::::::::::::: office Nancy : +33 383593090 ::
> :: ICube :::::::::::::: office Strasbourg : +33 368854536 ::
> :: ::::::::::::::::::::::::::: gsm France : +33 651400183 ::
> :: :::::::::::::::::::: gsm international : +49 15737185122 ::
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: removed symbols in strings.h
2013-02-11 21:14 ` nwmcsween
@ 2013-02-11 21:52 ` Rich Felker
0 siblings, 0 replies; 4+ messages in thread
From: Rich Felker @ 2013-02-11 21:52 UTC (permalink / raw)
To: musl
On Mon, Feb 11, 2013 at 01:14:30PM -0800, nwmcsween@gmail.com wrote:
> #if posix ....
> deprecated warning etc
> #endif
No, if it's removed from POSIX, then they can't be declared, since the
namespace belongs to the application. For instance, index() could be
an application-defined macro that does something completely different.
I doubt apps will do that for a while until POSIX 2008 is mainstream,
but that's what the text of the standard means.
What should be done, I think, is just exposing these functions under
the same rules gethostbyname is exposed under.
Rich
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: removed symbols in strings.h
2013-02-11 20:25 removed symbols in strings.h Jens Gustedt
2013-02-11 21:14 ` nwmcsween
@ 2013-02-26 6:31 ` Rich Felker
1 sibling, 0 replies; 4+ messages in thread
From: Rich Felker @ 2013-02-26 6:31 UTC (permalink / raw)
To: musl
On Mon, Feb 11, 2013 at 09:25:47PM +0100, Jens Gustedt wrote:
> Hello,
> the functions
>
> int bcmp (const void *, const void *, size_t);
> void bcopy (const void *, void *, size_t);
> void bzero (void *, size_t);
> char *index (const char *, int);
> char *rindex (const char *, int);
>
> in strings.h are removed from the current version of the POSIX
> standard. Shouldn't that mean they should be put between guards
> (something with POSIX version and / or __GNU_SOURCE)
Fixed.
> and the symbols
> made weak in the library?
They're not referenced by anything else in the library and they're in
their own translation units, so whether they're weak makes no
difference.
Rich
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-02-26 6:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-11 20:25 removed symbols in strings.h Jens Gustedt
2013-02-11 21:14 ` nwmcsween
2013-02-11 21:52 ` Rich Felker
2013-02-26 6:31 ` Rich Felker
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
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 NNTP newsgroup(s).