Hi Markus,
On Wed, 19 Jul 2017, Markus Gothe wrote:
> However it should be noted that this [scanf's %m format] seems not to be
> the same as glibc %m: "To use the dynamic allocation conversion
> specifier in C99 and C11, specify m as a length modifier as per
> POSIX.1-2008. That is, use %ms or
Hi Denys,
On Sun, 23 Jul 2017, Denys Vlasenko wrote:
> On Sat, Jul 22, 2017 at 8:56 PM, Johannes Schindelin
> wrote:
> > On Fri, 21 Jul 2017, Denys Vlasenko wrote:
> >
> >> On Wed, Jul 19, 2017 at 3:47 AM, Jody Bruchon wrote:
> >> > On
On Mon, Jul 24, 2017 at 3:34 AM, Denys Vlasenko
wrote:
> On Sat, Jul 22, 2017 at 8:56 PM, Johannes Schindelin
> wrote:
>> On Fri, 21 Jul 2017, Denys Vlasenko wrote:
>>
>>> On Wed, Jul 19, 2017 at 3:47 AM, Jody Bruchon
On Sun, Jul 23, 2017 at 9:34 PM, Denys Vlasenko
wrote:
> On Sat, Jul 22, 2017 at 8:56 PM, Johannes Schindelin
> wrote:
>> On Fri, 21 Jul 2017, Denys Vlasenko wrote:
>>
>>> On Wed, Jul 19, 2017 at 3:47 AM, Jody Bruchon
On Sat, Jul 22, 2017 at 8:56 PM, Johannes Schindelin
wrote:
> On Fri, 21 Jul 2017, Denys Vlasenko wrote:
>
>> On Wed, Jul 19, 2017 at 3:47 AM, Jody Bruchon wrote:
>> > On 2017-07-18 9:15 PM, Kang-Che Sung wrote:
>> >>
>> >> On Wed, Jul 19, 2017
On Sun, Jul 23, 2017 at 10:03 AM, Kang-Che Sung wrote:
>
> How about wrapping the printf("%m") uses within the __GNU_LIBRARY__ macro?
> It seems that %m support has been there from the beginning of glibc.
Correction. It's since glibc 1.06.
I've looked in the old ChangeLog
On Sun, Jul 23, 2017 at 4:33 AM, Michael Conrad wrote:
> On 7/22/2017 2:56 PM, Johannes Schindelin wrote:
>>
>> No, not every libc. I would not have spent the time and effort to develop
>> the patch, contribute it, rework it and contribute a second iteration if
>> it was
On 7/22/2017 2:56 PM, Johannes Schindelin wrote:
Hi Denys,
On Fri, 21 Jul 2017, Denys Vlasenko wrote:
On Wed, Jul 19, 2017 at 3:47 AM, Jody Bruchon wrote:
On 2017-07-18 9:15 PM, Kang-Che Sung wrote:
On Wed, Jul 19, 2017 at 2:11 AM, Markus Gothe
Hi Denys,
On Fri, 21 Jul 2017, Denys Vlasenko wrote:
> On Wed, Jul 19, 2017 at 3:47 AM, Jody Bruchon wrote:
> > On 2017-07-18 9:15 PM, Kang-Che Sung wrote:
> >>
> >> On Wed, Jul 19, 2017 at 2:11 AM, Markus Gothe
> >> wrote:
> >>>
> >>> Actually
On Wed, Jul 19, 2017 at 3:47 AM, Jody Bruchon wrote:
> On 2017-07-18 9:15 PM, Kang-Che Sung wrote:
>>
>> On Wed, Jul 19, 2017 at 2:11 AM, Markus Gothe
>> wrote:
>>>
>>> Actually last time I checked ‘%m’ is POSIX contrary to glibc’s deprecated
>>>
Ah, my mistake!
Seems like I mixed the two up and made the assumption that they were the same
for both scanf and printf.
On 19 Jul 2017, at 20:37 , Jody Bruchon wrote:
> On 2017-07-19 14:34, Markus Gothe wrote:
>> Look over here
>>
On 2017-07-19 14:34, Markus Gothe wrote:
Look over here
http://pubs.opengroup.org/onlinepubs/9699919799/functions/scanf.html
instead:
The %m in BusyBox is a printf specifier, not a scanf specifier. How is
this link relevant to printf("%m")?
___
However it should be noted that this seems not to be the same as glibc %m: "To
use the dynamic allocation conversion specifier in C99 and C11, specify m as a
length modifier as per POSIX.1-2008. That is, use %ms or %m[…]."
So I guess, the basic assumption of not using %m for errors is correct.
Look over here
http://pubs.opengroup.org/onlinepubs/9699919799/functions/scanf.html instead:
[CX] The %c, %s, and %[ conversion specifiers shall accept an optional
assignment-allocation character 'm', which shall cause a memory buffer to be
allocated to hold the string converted including a
On 2017-07-18 9:15 PM, Kang-Che Sung wrote:
On Wed, Jul 19, 2017 at 2:11 AM, Markus Gothe
wrote:
Actually last time I checked ‘%m’ is POSIX contrary to glibc’s
deprecated '%a’. However, I agree that it should not be used since at
least uClibc can be built without
On Wed, Jul 19, 2017 at 2:11 AM, Markus Gothe wrote:
> Actually last time I checked ‘%m’ is POSIX contrary to glibc’s deprecated
> '%a’.
> However, I agree that it should not be used since at least uClibc can be
> built without support for it.
How come %m is POSIX
Actually last time I checked ‘%m’ is POSIX contrary to glibc’s deprecated '%a’.
However, I agree that it should not be used since at least uClibc can be built
without support for it.
BR,
Markus - The panama-hat hacker
On 17 Jul 2017, at 04:01 , Kang-Che Sung wrote:
> I
I wonder if there's a better solution to this.
BusyBox has bb_perror_msg() and like. Maybe using these API's are better?
On Mon, Jul 17, 2017 at 4:08 AM, Johannes Schindelin
wrote:
> GLIBC's printf() family supports the extension where the placeholder %m
> is
GLIBC's printf() family supports the extension where the placeholder %m
is interpolated to strerror(errno).
This is not portable. So don't use it. (It was only used in ash's source
code to begin with.)
Signed-off-by: Johannes Schindelin
---
Published-As:
19 matches
Mail list logo