Date: Sat, 01 Dec 2001 00:11:37 -0700 From: Wes Peters <wes@softweyr.com> To: Mike Barcroft <mike@FreeBSD.org> Cc: Bill Fenner <fenner@research.att.com>, freebsd-standards@bostonradio.org Subject: Re: strerror_r() implementation Message-ID: <3C0882A9.EF07073@softweyr.com> References: <20011125014216.A84711@espresso.q9media.com> <3C00A43B.9929E9C7@softweyr.com> <200111281854.KAA13574@windsor.research.att.com> <3C05BE3A.1DF1A539@softweyr.com> <200111300454.UAA06333@windsor.research.att.com> <20011130001910.C23064@espresso.q9media.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Mike Barcroft wrote: > > Bill Fenner <fenner@research.att.com> writes: > > >Ah, I see the confusion. The size of ebuf in strerror doesn't need to > > >be big enough to hold messages from sys_errlist, it only needs to be > > >large enough to hold "Unknown error: " plus the length of a 64-bit > > >number in ascii. > > > > Right. 40 was enough for this in rev 1.4; I dunno why it has to be > > 55 now. I don't feel particularly strongly about the details of this, > > though. > > Room for a 128-bit number "+ slop"? Room for the 40 characters for the number + 13 characters of message plus a trailing null plus 1 byte in case somebody miscounted? Is anyone here actually reading the freaking CODE? -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C0882A9.EF07073>