On Friday, November 23, 2012 12:31:07 PM Scott Kitterman wrote:
> On Wednesday, November 21, 2012 09:05:47 PM Scott Kitterman wrote:
> > On Wednesday, November 21, 2012 04:13:59 PM Scott Kitterman wrote:
> > > On Wednesday, November 21, 2012 08:29:42 PM Eray Aslan wrote:
> > > ...
> > >
> > > > These problems are only for Linux obviously. BSDs are good.
> > >
> > > ...
> > >
> > > Some subset of Linux distros. Debian and it's derivatives have an
> > > external
> > > implementation available. It should be preferred when it is. Whatever
> > > the
> > > solution, please don't assume all Linux are the same on this.
> >
> > I do have to offer a correction to what I said before. It turns out
> > Debian's libbsd doesn't provide the header file, it does provide both
> > strlcpy and strlcat. I looked again and I'm getting the same implicit
> > declaration warnings.
> >
> > So provides the function, but not the header is a definite possibility.
> > I'm going to ask the maintainers about providing the header.
> >
> > Sorry for any confusion.
>
> I did hear back from the Debian BSD maintainers:
> > Well strl.h is not a “standard” BSD header, on BSDs those functions are
> > declared in <string.h>, when using libbsd it's either in <string.h>
> > when using the overlay (pkg-config --cflags libbsd-overlay), or in
> > <bsd/string.h>.
>
> So i guess if you're looking for a header, looking for string.h in addition
> to strl.h would make sense.
http://libbsd.freedesktop.org/wiki/
I gather quite a number of Linux distros are starting to ship this. I'm told
Samba is using it now.
Scott K
Received on Fri Nov 23 2012 - 19:42:24 PST